2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.
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.2'
553 PACKAGE_STRING
='emacs 24.2'
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
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
662 REPLACE_OBSTACK_PRINTF
687 HAVE_DECL_OBSTACK_PRINTF
693 GNULIB_VSPRINTF_POSIX
697 GNULIB_VFPRINTF_POSIX
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
748 GL_GENERATE_STDDEF_H_FALSE
749 GL_GENERATE_STDDEF_H_TRUE
754 GL_GENERATE_STDBOOL_H_FALSE
755 GL_GENERATE_STDBOOL_H_TRUE
757 GL_GENERATE_STDARG_H_FALSE
758 GL_GENERATE_STDARG_H_TRUE
760 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
765 REPLACE_PTHREAD_SIGMASK
767 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
768 HAVE_STRUCT_SIGACTION_SA_SIGACTION
774 HAVE_POSIX_SIGNALBLOCKING
777 GNULIB_SIGNAL_H_SIGPIPE
779 GNULIB_PTHREAD_SIGMASK
788 HAVE_DECL_LOCALTIME_R
827 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
829 UINT64_MAX_EQ_ULONG_MAX
830 UINT32_MAX_LT_UINTMAX_MAX
833 INT64_MAX_EQ_LONG_MAX
834 INT32_MAX_LT_INTMAX_MAX
843 GL_GENERATE_STDINT_H_FALSE
844 GL_GENERATE_STDINT_H_TRUE
853 HAVE_SIGNED_SIG_ATOMIC_T
856 BITSIZEOF_SIG_ATOMIC_T
859 APPLE_UNIVERSAL_BUILD
863 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
868 HAVE_UNSIGNED_LONG_LONG_INT
872 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
876 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
889 REPLACE_CANONICALIZE_FILE_NAME
894 HAVE_STRUCT_RANDOM_DATA
913 HAVE_CANONICALIZE_FILE_NAME
940 GNULIB_CANONICALIZE_FILE_NAME
944 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
945 UNISTD_H_HAVE_WINSOCK2_H
965 REPLACE_GETDOMAINNAME
975 HAVE_DECL_GETUSERSHELL
976 HAVE_DECL_GETPAGESIZE
978 HAVE_DECL_GETDOMAINNAME
1016 GNULIB_UNISTD_H_SIGPIPE
1017 GNULIB_UNISTD_H_NONBLOCKING
1018 GNULIB_UNISTD_H_GETOPT
1042 GNULIB_GETDTABLESIZE
1043 GNULIB_GETDOMAINNAME
1059 GL_GENERATE_ALLOCA_H_FALSE
1060 GL_GENERATE_ALLOCA_H_TRUE
1063 GL_COND_LIBTOOL_FALSE
1064 GL_COND_LIBTOOL_TRUE
1097 x_default_search_path
1165 LD_SWITCH_X_SITE_AUX_RPATH
1166 LD_SWITCH_X_SITE_AUX
1230 INSTALL_STRIP_PROGRAM
1272 program_transform_name
1283 ac_subst_files
='deps_frag
1287 enable_option_checking
1310 with_toolkit_scroll_bars
1322 with_pkg_config_prog
1326 enable_ns_self_contained
1328 enable_maintainer_mode
1329 enable_locallisppath
1331 enable_use_lisp_union_type
1334 enable_dependency_tracking
1338 ac_precious_vars
='build_alias
1350 # Initialize some variables set by options.
1352 ac_init_version
=false
1353 ac_unrecognized_opts
=
1354 ac_unrecognized_sep
=
1355 # The variables have the same names as the options, with
1356 # dashes changed to underlines.
1357 cache_file
=/dev
/null
1364 program_transform_name
=s
,x
,x
,
1372 # Installation directory options.
1373 # These are left unexpanded so users can "make install exec_prefix=/foo"
1374 # and all the variables that are supposed to be based on exec_prefix
1375 # by default will actually change.
1376 # Use braces instead of parens because sh, perl, etc. also accept them.
1377 # (The list follows the same order as the GNU Coding Standards.)
1378 bindir
='${exec_prefix}/bin'
1379 sbindir
='${exec_prefix}/sbin'
1380 libexecdir
='${exec_prefix}/libexec'
1381 datarootdir
='${prefix}/share'
1382 datadir
='${datarootdir}'
1383 sysconfdir
='${prefix}/etc'
1384 sharedstatedir
='${prefix}/com'
1385 localstatedir
='${prefix}/var'
1386 includedir
='${prefix}/include'
1387 oldincludedir
='/usr/include'
1388 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1389 infodir
='${datarootdir}/info'
1394 libdir
='${exec_prefix}/lib'
1395 localedir
='${datarootdir}/locale'
1396 mandir
='${datarootdir}/man'
1402 # If the previous option needs an argument, assign it.
1403 if test -n "$ac_prev"; then
1404 eval $ac_prev=\
$ac_option
1410 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1414 # Accept the important Cygnus configure options, so we can diagnose typos.
1416 case $ac_dashdash$ac_option in
1420 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1422 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1423 bindir
=$ac_optarg ;;
1425 -build |
--build |
--buil |
--bui |
--bu)
1426 ac_prev
=build_alias
;;
1427 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1428 build_alias
=$ac_optarg ;;
1430 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1431 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1432 ac_prev
=cache_file
;;
1433 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1434 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1435 cache_file
=$ac_optarg ;;
1437 --config-cache |
-C)
1438 cache_file
=config.cache
;;
1440 -datadir |
--datadir |
--datadi |
--datad)
1442 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1443 datadir
=$ac_optarg ;;
1445 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1446 |
--dataroo |
--dataro |
--datar)
1447 ac_prev
=datarootdir
;;
1448 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1449 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1450 datarootdir
=$ac_optarg ;;
1452 -disable-* |
--disable-*)
1453 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1456 as_fn_error
"invalid feature name: $ac_useropt"
1457 ac_useropt_orig
=$ac_useropt
1458 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1461 "enable_
$ac_useropt"
1463 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1464 ac_unrecognized_sep
=', ';;
1466 eval enable_
$ac_useropt=no
;;
1468 -docdir |
--docdir |
--docdi |
--doc |
--do)
1470 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1471 docdir
=$ac_optarg ;;
1473 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1475 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1476 dvidir
=$ac_optarg ;;
1478 -enable-* |
--enable-*)
1479 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1482 as_fn_error
"invalid feature name: $ac_useropt"
1483 ac_useropt_orig
=$ac_useropt
1484 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1487 "enable_
$ac_useropt"
1489 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1490 ac_unrecognized_sep
=', ';;
1492 eval enable_
$ac_useropt=\
$ac_optarg ;;
1494 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1495 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1496 |
--exec |
--exe |
--ex)
1497 ac_prev
=exec_prefix
;;
1498 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1499 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1500 |
--exec=* |
--exe=* |
--ex=*)
1501 exec_prefix
=$ac_optarg ;;
1503 -gas |
--gas |
--ga |
--g)
1504 # Obsolete; use --with-gas.
1507 -help |
--help |
--hel |
--he |
-h)
1508 ac_init_help
=long
;;
1509 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1510 ac_init_help
=recursive
;;
1511 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1512 ac_init_help
=short
;;
1514 -host |
--host |
--hos |
--ho)
1515 ac_prev
=host_alias
;;
1516 -host=* |
--host=* |
--hos=* |
--ho=*)
1517 host_alias
=$ac_optarg ;;
1519 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1521 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1523 htmldir
=$ac_optarg ;;
1525 -includedir |
--includedir |
--includedi |
--included |
--include \
1526 |
--includ |
--inclu |
--incl |
--inc)
1527 ac_prev
=includedir
;;
1528 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1529 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1530 includedir
=$ac_optarg ;;
1532 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1534 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1535 infodir
=$ac_optarg ;;
1537 -libdir |
--libdir |
--libdi |
--libd)
1539 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1540 libdir
=$ac_optarg ;;
1542 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1543 |
--libexe |
--libex |
--libe)
1544 ac_prev
=libexecdir
;;
1545 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1546 |
--libexe=* |
--libex=* |
--libe=*)
1547 libexecdir
=$ac_optarg ;;
1549 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1550 ac_prev
=localedir
;;
1551 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1552 localedir
=$ac_optarg ;;
1554 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1555 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1556 ac_prev
=localstatedir
;;
1557 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1558 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1559 localstatedir
=$ac_optarg ;;
1561 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1563 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1564 mandir
=$ac_optarg ;;
1566 -nfp |
--nfp |
--nf)
1567 # Obsolete; use --without-fp.
1570 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1571 |
--no-cr |
--no-c |
-n)
1574 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1575 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1578 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1579 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1580 |
--oldin |
--oldi |
--old |
--ol |
--o)
1581 ac_prev
=oldincludedir
;;
1582 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1583 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1584 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1585 oldincludedir
=$ac_optarg ;;
1587 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1589 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1590 prefix
=$ac_optarg ;;
1592 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1593 |
--program-pre |
--program-pr |
--program-p)
1594 ac_prev
=program_prefix
;;
1595 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1596 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1597 program_prefix
=$ac_optarg ;;
1599 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1600 |
--program-suf |
--program-su |
--program-s)
1601 ac_prev
=program_suffix
;;
1602 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1603 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1604 program_suffix
=$ac_optarg ;;
1606 -program-transform-name |
--program-transform-name \
1607 |
--program-transform-nam |
--program-transform-na \
1608 |
--program-transform-n |
--program-transform- \
1609 |
--program-transform |
--program-transfor \
1610 |
--program-transfo |
--program-transf \
1611 |
--program-trans |
--program-tran \
1612 |
--progr-tra |
--program-tr |
--program-t)
1613 ac_prev
=program_transform_name
;;
1614 -program-transform-name=* |
--program-transform-name=* \
1615 |
--program-transform-nam=* |
--program-transform-na=* \
1616 |
--program-transform-n=* |
--program-transform-=* \
1617 |
--program-transform=* |
--program-transfor=* \
1618 |
--program-transfo=* |
--program-transf=* \
1619 |
--program-trans=* |
--program-tran=* \
1620 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1621 program_transform_name
=$ac_optarg ;;
1623 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1625 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1626 pdfdir
=$ac_optarg ;;
1628 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1630 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1633 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1634 |
-silent |
--silent |
--silen |
--sile |
--sil)
1637 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1639 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1641 sbindir
=$ac_optarg ;;
1643 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1644 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1645 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1647 ac_prev
=sharedstatedir
;;
1648 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1649 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1650 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1652 sharedstatedir
=$ac_optarg ;;
1654 -site |
--site |
--sit)
1656 -site=* |
--site=* |
--sit=*)
1659 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1661 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1662 srcdir
=$ac_optarg ;;
1664 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1665 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1666 ac_prev
=sysconfdir
;;
1667 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1668 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1669 sysconfdir
=$ac_optarg ;;
1671 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1672 ac_prev
=target_alias
;;
1673 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1674 target_alias
=$ac_optarg ;;
1676 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1679 -version |
--version |
--versio |
--versi |
--vers |
-V)
1680 ac_init_version
=: ;;
1683 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1684 # Reject names that are not valid shell variable names.
1685 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1686 as_fn_error
"invalid package name: $ac_useropt"
1687 ac_useropt_orig
=$ac_useropt
1688 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1689 case $ac_user_opts in
1693 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1694 ac_unrecognized_sep
=', ';;
1696 eval with_
$ac_useropt=\
$ac_optarg ;;
1698 -without-* |
--without-*)
1699 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1700 # Reject names that are not valid shell variable names.
1701 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1702 as_fn_error
"invalid package name: $ac_useropt"
1703 ac_useropt_orig
=$ac_useropt
1704 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1705 case $ac_user_opts in
1709 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1710 ac_unrecognized_sep
=', ';;
1712 eval with_
$ac_useropt=no
;;
1715 # Obsolete; use --with-x.
1718 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1719 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1720 ac_prev
=x_includes
;;
1721 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1722 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1723 x_includes
=$ac_optarg ;;
1725 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1726 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1727 ac_prev
=x_libraries
;;
1728 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1729 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1730 x_libraries
=$ac_optarg ;;
1732 -*) as_fn_error
"unrecognized option: \`$ac_option'
1733 Try \`$0 --help' for more information."
1737 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1738 # Reject names that are not valid shell variable names.
1739 case $ac_envvar in #(
1740 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1741 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1743 eval $ac_envvar=\
$ac_optarg
1744 export $ac_envvar ;;
1747 # FIXME: should be removed in autoconf 3.0.
1748 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1749 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1750 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1751 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1757 if test -n "$ac_prev"; then
1758 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1759 as_fn_error
"missing argument to $ac_option"
1762 if test -n "$ac_unrecognized_opts"; then
1763 case $enable_option_checking in
1765 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1766 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1770 # Check all directory arguments for consistency.
1771 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1772 datadir sysconfdir sharedstatedir localstatedir includedir \
1773 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1774 libdir localedir mandir
1776 eval ac_val
=\$
$ac_var
1777 # Remove trailing slashes.
1780 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1781 eval $ac_var=\
$ac_val;;
1783 # Be sure to have absolute directory names.
1785 [\\/$
]* | ?
:[\\/]* ) continue;;
1786 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1788 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1791 # There might be people who depend on the old broken behavior: `$host'
1792 # used to hold the argument of --host etc.
1793 # FIXME: To remove some day.
1796 target
=$target_alias
1798 # FIXME: To remove some day.
1799 if test "x$host_alias" != x
; then
1800 if test "x$build_alias" = x
; then
1801 cross_compiling
=maybe
1802 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1803 If a cross compiler is detected then cross compile mode will be used." >&2
1804 elif test "x$build_alias" != "x$host_alias"; then
1810 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1812 test "$silent" = yes && exec 6>/dev
/null
1815 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1816 ac_ls_di
=`ls -di .` &&
1817 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1818 as_fn_error
"working directory cannot be determined"
1819 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1820 as_fn_error
"pwd does not report name of working directory"
1823 # Find the source files, if location was not specified.
1824 if test -z "$srcdir"; then
1825 ac_srcdir_defaulted
=yes
1826 # Try the directory containing this script, then the parent directory.
1827 ac_confdir
=`$as_dirname -- "$as_myself" ||
1828 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1829 X"$as_myself" : 'X\(//\)[^/]' \| \
1830 X"$as_myself" : 'X\(//\)$' \| \
1831 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1832 $as_echo X"$as_myself" |
1833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1851 if test ! -r "$srcdir/$ac_unique_file"; then
1855 ac_srcdir_defaulted
=no
1857 if test ! -r "$srcdir/$ac_unique_file"; then
1858 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1859 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1861 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1863 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1865 # When building in place, set srcdir=.
1866 if test "$ac_abs_confdir" = "$ac_pwd"; then
1869 # Remove unnecessary trailing slashes from srcdir.
1870 # Double slashes in file names in object file debugging info
1871 # mess up M-x gdb in Emacs.
1873 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1875 for ac_var
in $ac_precious_vars; do
1876 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1877 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1878 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1879 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1883 # Report the --help message.
1885 if test "$ac_init_help" = "long"; then
1886 # Omit some internal or obsolete options to make the list less imposing.
1887 # This message is too long to be a string in the A/UX 3.1 sh.
1889 \`configure' configures emacs 24.2 to adapt to many kinds of systems.
1891 Usage: $0 [OPTION]... [VAR=VALUE]...
1893 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1894 VAR=VALUE. See below for descriptions of some of the useful variables.
1896 Defaults for the options are specified in brackets.
1899 -h, --help display this help and exit
1900 --help=short display options specific to this package
1901 --help=recursive display the short help of all the included packages
1902 -V, --version display version information and exit
1903 -q, --quiet, --silent do not print \`checking...' messages
1904 --cache-file=FILE cache test results in FILE [disabled]
1905 -C, --config-cache alias for \`--cache-file=config.cache'
1906 -n, --no-create do not create output files
1907 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1909 Installation directories:
1910 --prefix=PREFIX install architecture-independent files in PREFIX
1911 [$ac_default_prefix]
1912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1915 By default, \`make install' will install all the files in
1916 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1917 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1918 for instance \`--prefix=\$HOME'.
1920 For better control, use the options below.
1922 Fine tuning of the installation directories:
1923 --bindir=DIR user executables [EPREFIX/bin]
1924 --sbindir=DIR system admin executables [EPREFIX/sbin]
1925 --libexecdir=DIR program executables [EPREFIX/libexec]
1926 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1927 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1928 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1929 --libdir=DIR object code libraries [EPREFIX/lib]
1930 --includedir=DIR C header files [PREFIX/include]
1931 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1932 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1933 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1934 --infodir=DIR info documentation [DATAROOTDIR/info]
1935 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1936 --mandir=DIR man documentation [DATAROOTDIR/man]
1937 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1938 --htmldir=DIR html documentation [DOCDIR]
1939 --dvidir=DIR dvi documentation [DOCDIR]
1940 --pdfdir=DIR pdf documentation [DOCDIR]
1941 --psdir=DIR ps documentation [DOCDIR]
1947 --program-prefix=PREFIX prepend PREFIX to installed program names
1948 --program-suffix=SUFFIX append SUFFIX to installed program names
1949 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1952 --x-includes=DIR X include files are
in DIR
1953 --x-libraries=DIR X library files are
in DIR
1956 --build=BUILD configure
for building on BUILD
[guessed
]
1957 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1961 if test -n "$ac_init_help"; then
1962 case $ac_init_help in
1963 short | recursive
) echo "Configuration of emacs 24.2:";;
1968 --disable-option-checking ignore unrecognized
--enable/--with options
1969 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1970 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1971 --disable-ns-self-contained
1972 disable self contained build under NeXTstep
1973 --enable-asserts compile code with asserts enabled
1974 --disable-maintainer-mode
1975 disable
make rules and dependencies not useful
(and
1976 sometimes confusing
) to the casual installer
1977 --enable-locallisppath=PATH
1978 directories Emacs should search
for lisp files
1979 specific to this site
1980 --enable-checking[=LIST
]
1981 enable expensive run-time checks. With LIST
, enable
1982 only specific categories of checks. Categories are
:
1983 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1984 stringfreelist
, xmallocoverrun
, conslist
1985 --enable-use-lisp-union-type
1986 use a union
for the Lisp_Object data
type. This is
1987 only useful
for development
for catching certain
1989 --enable-profiling build emacs with profiling support. This might not
1990 work on all platforms
1991 --enable-autodepend automatically generate dependencies to .h-files.
1992 Requires GNU Make and Gcc. Enabled
if GNU Make and
1994 --disable-dependency-tracking speeds up one-time build
1995 --enable-dependency-tracking do not reject slow dependency extractors
1996 --disable-largefile omit support
for large files
1999 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2000 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2001 --without-pop don
't support POP mail retrieval with movemail
2002 --with-kerberos support Kerberos-authenticated POP
2003 --with-kerberos5 support Kerberos version 5 authenticated POP
2004 --with-hesiod support Hesiod to get the POP server host
2005 --with-mmdf support MMDF mailboxes
2006 --with-mail-unlink unlink, rather than empty, mail spool after reading
2007 --with-mailhost=HOSTNAME
2008 string giving default POP mail host
2009 --without-sound don't compile with sound support
2010 --without-sync-input process async input synchronously
2011 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2012 lucid or athena
, motif
, no
)
2013 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2014 --without-xpm don
't compile with XPM image support
2015 --without-jpeg don't compile with JPEG image support
2016 --without-tiff don
't compile with TIFF image support
2017 --without-gif don't compile with GIF image support
2018 --without-png don
't compile with PNG image support
2019 --without-rsvg don't compile with SVG image support
2020 --without-xml2 don
't compile with XML parsing support
2021 --without-imagemagick don't compile with ImageMagick image support
2022 --without-xft don
't use XFT for anti aliased fonts
2023 --without-libotf don't use libotf
for OpenType font support
2024 --without-m17n-flt don
't use m17n-flt for text shaping
2025 --without-toolkit-scroll-bars
2026 don't use Motif or Xaw3d scroll bars
2027 --without-xaw3d don
't use Xaw3d
2028 --without-xim don't use X11 XIM
2029 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2030 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2032 --without-dbus don't compile with D-Bus support
2033 --without-gconf don
't compile with GConf support
2034 --without-gsettings don't compile with GSettings support
2035 --without-selinux don
't compile with SELinux support
2036 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2037 --without-makeinfo don
't require makeinfo for building manuals
2038 --without-compress-info don't
compress the installed Info pages
2039 --with-pkg-config-prog=PATH
2040 path to pkg-config
for finding GTK and librsvg
2041 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2042 /usr
/lib
, or
/usr
/lib64 on some platforms.
2043 --with-gameuser=USER user
for shared game score files
2044 --with-gnustep-conf=PATH
2045 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2046 or
/etc
/GNUstep
/GNUstep.conf
2047 --with-x use the X Window System
2049 Some influential environment variables
:
2050 CC C compiler
command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2053 nonstandard directory
<lib dir
>
2054 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2055 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2056 you have headers
in a nonstandard directory
<include dir
>
2058 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2060 Use these variables to override the choices made by
`configure' or to help
2061 it to find libraries and programs with nonstandard names/locations.
2063 Report bugs to the package provider.
2068 if test "$ac_init_help" = "recursive"; then
2069 # If there are subdirs, report their specific --help.
2070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2071 test -d "$ac_dir" ||
2072 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2079 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2080 # A ".." for each directory in $ac_dir_suffix.
2081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2082 case $ac_top_builddir_sub in
2083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2087 ac_abs_top_builddir=$ac_pwd
2088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2089 # for backward compatibility:
2090 ac_top_builddir=$ac_top_build_prefix
2093 .) # We are building in place.
2095 ac_top_srcdir=$ac_top_builddir_sub
2096 ac_abs_top_srcdir=$ac_pwd ;;
2097 [\\/]* | ?:[\\/]* ) # Absolute name.
2098 ac_srcdir=$srcdir$ac_dir_suffix;
2099 ac_top_srcdir=$srcdir
2100 ac_abs_top_srcdir=$srcdir ;;
2102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2103 ac_top_srcdir=$ac_top_build_prefix$srcdir
2104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2108 cd "$ac_dir" || { ac_status=$?; continue; }
2109 # Check for guested configure.
2110 if test -f "$ac_srcdir/configure.gnu"; then
2112 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2113 elif test -f "$ac_srcdir/configure"; then
2115 $SHELL "$ac_srcdir/configure" --help=recursive
2117 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2119 cd "$ac_pwd" || { ac_status=$?; break; }
2123 test -n "$ac_init_help" && exit $ac_status
2124 if $ac_init_version; then
2126 emacs configure 24.2
2127 generated by GNU Autoconf 2.65
2129 Copyright (C) 2009 Free Software Foundation, Inc.
2130 This configure script is free software; the Free Software Foundation
2131 gives unlimited permission to copy, distribute and modify it.
2136 ## ------------------------ ##
2137 ## Autoconf initialization. ##
2138 ## ------------------------ ##
2140 # ac_fn_c_try_compile LINENO
2141 # --------------------------
2142 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_c_try_compile ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext
2147 if { { ac_try="$ac_compile"
2149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2150 *) ac_try_echo
=$ac_try;;
2152 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_compile") 2>conftest.err
2156 if test -s conftest.err
; then
2157 grep -v '^ *+' conftest.err
>conftest.er1
2158 cat conftest.er1
>&5
2159 mv -f conftest.er1 conftest.err
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_c_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest.
$ac_objext; then :
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.
$ac_ext >&5
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2174 as_fn_set_status
$ac_retval
2176 } # ac_fn_c_try_compile
2178 # ac_fn_c_try_cpp LINENO
2179 # ----------------------
2180 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2183 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2184 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2193 if test -s conftest.err; then
2194 grep -v '^ *+' conftest.err >conftest.er1
2195 cat conftest.er1 >&5
2196 mv -f conftest.er1 conftest.err
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } >/dev/null && {
2200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2201 test ! -s conftest.err
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 as_fn_set_status $ac_retval
2215 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2216 # -------------------------------------------------------
2217 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2218 # the include files in INCLUDES and setting the cache variable VAR
2220 ac_fn_c_check_header_mongrel ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 # Is the header compilable?
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2235 $as_echo_n "checking $2 usability... " >&6; }
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 ac_header_compiler=yes
2244 ac_header_compiler=no
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2248 $as_echo "$ac_header_compiler" >&6; }
2250 # Is the header present?
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2252 $as_echo_n "checking $2 presence... " >&6; }
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 if ac_fn_c_try_cpp "$LINENO"; then :
2258 ac_header_preproc=yes
2260 ac_header_preproc=no
2262 rm -f conftest.err conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2264 $as_echo "$ac_header_preproc" >&6; }
2266 # So? What about this header?
2267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2270 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2276 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2278 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2280 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2282 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2284 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2292 eval "$3=\$ac_header_compiler"
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 } # ac_fn_c_check_header_mongrel
2302 # ac_fn_c_try_run LINENO
2303 # ----------------------
2304 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2305 # that executables *can* be run.
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if { { ac_try="$ac_link"
2311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2312 *) ac_try_echo
=$ac_try;;
2314 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_link") 2>&5
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2320 { { case "(($ac_try" in
2321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_try") 2>&5
2328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; }; }; then :
2332 $as_echo "$as_me: program exited with status $ac_status" >&5
2333 $as_echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 ac_retval=$ac_status
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340 as_fn_set_status $ac_retval
2344 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2345 # -------------------------------------------------------
2346 # Tests whether HEADER exists and can be compiled using the include files in
2347 # INCLUDES, setting the cache variable VAR accordingly.
2348 ac_fn_c_check_header_compile ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354 $as_echo_n "(cached) " >&6
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2361 if ac_fn_c_try_compile "$LINENO"; then :
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_check_header_compile
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2385 *) ac_try_echo
=$ac_try;;
2387 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2391 if test -s conftest.err
; then
2392 grep -v '^ *+' conftest.err
>conftest.er1
2393 cat conftest.er1
>&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest
$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest
$ac_exeext
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2417 as_fn_set_status
$ac_retval
2419 } # ac_fn_c_try_link
2421 # ac_fn_c_check_decl LINENO SYMBOL VAR
2422 # ------------------------------------
2423 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2424 ac_fn_c_check_decl
()
2426 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2428 $as_echo_n "checking whether $2 is declared... " >&6; }
2429 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2446 if ac_fn_c_try_compile
"$LINENO"; then :
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2458 } # ac_fn_c_check_decl
2460 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2461 # ----------------------------------------------
2462 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2463 ac_fn_c_check_header_preproc
()
2465 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2475 if ac_fn_c_try_cpp
"$LINENO"; then :
2480 rm -f conftest.err conftest.
$ac_ext
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2487 } # ac_fn_c_check_header_preproc
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func
()
2494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2504 #define $2 innocuous_$2
2506 /* System header to define __stub macros and hopefully few prototypes,
2507 which can conflict with char $2 (); below.
2508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 <limits.h> exists even on freestanding compilers. */
2512 # include <limits.h>
2514 # include <assert.h>
2519 /* Override any GCC internal prototype to avoid an error.
2520 Use char because int might match the return type of a GCC
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined __stub_$2 || defined __stub___$2
2541 if ac_fn_c_try_link
"$LINENO"; then :
2546 rm -f core conftest.err conftest.
$ac_objext \
2547 conftest
$ac_exeext conftest.
$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2554 } # ac_fn_c_check_func
2556 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2557 # ----------------------------------------------------
2558 # Tries to find if the field MEMBER exists in type AGGR, after including
2559 # INCLUDES, setting cache variable VAR accordingly.
2560 ac_fn_c_check_member
()
2562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2564 $as_echo_n "checking for $2.$3... " >&6; }
2565 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2581 if ac_fn_c_try_compile
"$LINENO"; then :
2584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2591 if (sizeof ac_aggr.$3)
2597 if ac_fn_c_try_compile
"$LINENO"; then :
2602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2611 } # ac_fn_c_check_member
2613 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2614 # -------------------------------------------
2615 # Tests whether TYPE exists after having included INCLUDES, setting cache
2616 # variable VAR accordingly.
2617 ac_fn_c_check_type
()
2619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621 $as_echo_n "checking for $2... " >&6; }
2622 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2623 $as_echo_n "(cached) " >&6
2626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2638 if ac_fn_c_try_compile
"$LINENO"; then :
2639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2651 if ac_fn_c_try_compile
"$LINENO"; then :
2656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2665 } # ac_fn_c_check_type
2667 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2668 # --------------------------------------------
2669 # Tries to find the compile-time value of EXPR in a program that includes
2670 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2672 ac_fn_c_compute_int
()
2674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2675 if test "$cross_compiling" = yes; then
2676 # Depending upon the size, compute the lo and hi bounds.
2677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2683 static int test_array [1 - 2 * !(($2) >= 0)];
2690 if ac_fn_c_try_compile
"$LINENO"; then :
2693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2706 if ac_fn_c_try_compile
"$LINENO"; then :
2707 ac_hi
=$ac_mid; break
2709 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2710 if test $ac_lo -le $ac_mid; then
2714 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 static int test_array [1 - 2 * !(($2) < 0)];
2732 if ac_fn_c_try_compile
"$LINENO"; then :
2735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2741 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2748 if ac_fn_c_try_compile
"$LINENO"; then :
2749 ac_lo
=$ac_mid; break
2751 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2752 if test $ac_mid -le $ac_hi; then
2756 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2766 # Binary search between lo and hi bounds.
2767 while test "x$ac_lo" != "x$ac_hi"; do
2768 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2775 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2782 if ac_fn_c_try_compile
"$LINENO"; then :
2785 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2790 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2797 static long int longval () { return $2; }
2798 static unsigned long int ulongval () { return $2; }
2805 FILE *f = fopen ("conftest.val", "w");
2810 long int i = longval ();
2813 fprintf (f, "%ld", i);
2817 unsigned long int i = ulongval ();
2820 fprintf (f, "%lu", i);
2822 /* Do not output a trailing newline, as this causes \r\n confusion
2823 on some platforms. */
2824 return ferror (f) || fclose (f) != 0;
2830 if ac_fn_c_try_run
"$LINENO"; then :
2831 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2840 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2841 as_fn_set_status
$ac_retval
2843 } # ac_fn_c_compute_int
2844 cat >config.log
<<_ACEOF
2845 This file contains any messages produced by compilers while
2846 running configure, to aid debugging if configure makes a mistake.
2848 It was created by emacs $as_me 24.2, which was
2849 generated by GNU Autoconf 2.65. Invocation command line was
2861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir
=.
2885 $as_echo "PATH: $as_dir"
2901 # Keep a trace of the command line.
2902 # Strip out --no-create and --no-recursion so they do not pile up.
2903 # Strip out --silent because we don't want to record it for future runs.
2904 # Also quote any args containing shell meta-characters.
2905 # Make two passes to allow for proper duplicate-argument suppression.
2909 ac_must_keep_next
=false
2915 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2916 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2917 |
-silent |
--silent |
--silen |
--sile |
--sil)
2920 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2925 as_fn_append ac_configure_args1
" '$ac_arg'"
2926 if test $ac_must_keep_next = true
; then
2927 ac_must_keep_next
=false
# Got value, back to normal.
2930 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2931 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2932 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2933 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2934 case "$ac_configure_args0 " in
2935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2938 -* ) ac_must_keep_next
=true
;;
2941 as_fn_append ac_configure_args
" '$ac_arg'"
2946 { ac_configure_args0
=; unset ac_configure_args0
;}
2947 { ac_configure_args1
=; unset ac_configure_args1
;}
2949 # When interrupted or exit'd, cleanup temporary files, and complete
2950 # config.log. We remove comments because anyway the quotes in there
2951 # would cause problems or look ugly.
2952 # WARNING: Use '\'' to represent an apostrophe within the trap.
2953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2954 trap 'exit_status=$?
2955 # Save into config.log some information that might help in debugging.
2960 ## ---------------- ##
2961 ## Cache variables. ##
2962 ## ---------------- ##
2965 # The following way of writing the cache mishandles newlines in values,
2967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2968 eval ac_val=\$$ac_var
2972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2976 _ | IFS | as_nl) ;; #(
2977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2978 *) { eval $ac_var=; unset $ac_var;} ;;
2983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2984 *${as_nl}ac_space=\ *)
2986 "s/'\''/'\''\\\\'\'''\''/g;
2987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2998 ## ----------------- ##
2999 ## Output variables. ##
3000 ## ----------------- ##
3003 for ac_var in $ac_subst_vars
3005 eval ac_val=\$$ac_var
3007 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3009 $as_echo "$ac_var='\''$ac_val'\''"
3013 if test -n "$ac_subst_files"; then
3015 ## ------------------- ##
3016 ## File substitutions. ##
3017 ## ------------------- ##
3020 for ac_var
in $ac_subst_files
3022 eval ac_val
=\$
$ac_var
3024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3026 $as_echo "$ac_var='\''$ac_val'\''"
3031 if test -s confdefs.h; then
3041 test "$ac_signal" != 0 &&
3042 $as_echo "$as_me: caught signal $ac_signal"
3043 $as_echo "$as_me: exit $exit_status"
3045 rm -f core *.core core.conftest.* &&
3046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3049 for ac_signal
in 1 2 13 15; do
3050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3055 rm -f -r conftest
* confdefs.h
3057 $as_echo "/* confdefs.h */" > confdefs.h
3059 # Predefined preprocessor variables.
3061 cat >>confdefs.h
<<_ACEOF
3062 #define PACKAGE_NAME "$PACKAGE_NAME"
3065 cat >>confdefs.h
<<_ACEOF
3066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3069 cat >>confdefs.h
<<_ACEOF
3070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3073 cat >>confdefs.h
<<_ACEOF
3074 #define PACKAGE_STRING "$PACKAGE_STRING"
3077 cat >>confdefs.h
<<_ACEOF
3078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3081 cat >>confdefs.h
<<_ACEOF
3082 #define PACKAGE_URL "$PACKAGE_URL"
3086 # Let the site file select an alternate cache file if it wants to.
3087 # Prefer an explicitly selected file to automatically selected ones.
3090 if test -n "$CONFIG_SITE"; then
3091 ac_site_file1
=$CONFIG_SITE
3092 elif test "x$prefix" != xNONE
; then
3093 ac_site_file1
=$prefix/share
/config.site
3094 ac_site_file2
=$prefix/etc
/config.site
3096 ac_site_file1
=$ac_default_prefix/share
/config.site
3097 ac_site_file2
=$ac_default_prefix/etc
/config.site
3099 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3101 test "x$ac_site_file" = xNONE
&& continue
3102 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3105 sed 's/^/| /' "$ac_site_file" >&5
3110 if test -r "$cache_file"; then
3111 # Some versions of bash will fail to source /dev/null (special files
3112 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3113 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3115 $as_echo "$as_me: loading cache $cache_file" >&6;}
3117 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3118 *) .
"./$cache_file";;
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3123 $as_echo "$as_me: creating cache $cache_file" >&6;}
3127 as_fn_append ac_header_list
" stdlib.h"
3128 as_fn_append ac_header_list
" unistd.h"
3129 as_fn_append ac_header_list
" sys/param.h"
3130 as_fn_append ac_func_list
" readlinkat"
3131 gl_getopt_required
=GNU
3132 as_fn_append ac_header_list
" getopt.h"
3133 as_fn_append ac_header_list
" wchar.h"
3134 as_fn_append ac_header_list
" stdint.h"
3135 as_fn_append ac_header_list
" inttypes.h"
3136 as_fn_append ac_func_list
" lstat"
3137 as_fn_append ac_func_list
" alarm"
3138 as_fn_append ac_func_list
" pthread_sigmask"
3139 as_fn_append ac_func_list
" readlink"
3140 as_fn_append ac_header_list
" sys/socket.h"
3141 as_fn_append ac_func_list
" tzset"
3142 as_fn_append ac_func_list
" strtoimax"
3143 as_fn_append ac_func_list
" strtoumax"
3144 as_fn_append ac_func_list
" symlink"
3145 as_fn_append ac_header_list
" sys/stat.h"
3146 as_fn_append ac_header_list
" sys/time.h"
3147 as_fn_append ac_func_list
" localtime_r"
3148 # Check that the precious variables saved in the cache have kept the same
3150 ac_cache_corrupted
=false
3151 for ac_var
in $ac_precious_vars; do
3152 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3153 eval ac_new_set
=\
$ac_env_${ac_var}_set
3154 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3155 eval ac_new_val
=\
$ac_env_${ac_var}_value
3156 case $ac_old_set,$ac_new_set in
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3160 ac_cache_corrupted
=: ;;
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3164 ac_cache_corrupted
=: ;;
3167 if test "x$ac_old_val" != "x$ac_new_val"; then
3168 # differences in whitespace do not lead to failure.
3169 ac_old_val_w
=`echo x $ac_old_val`
3170 ac_new_val_w
=`echo x $ac_new_val`
3171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3174 ac_cache_corrupted
=:
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3178 eval $ac_var=\
$ac_old_val
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3186 # Pass precious variables to config.status.
3187 if test "$ac_new_set" = set; then
3189 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3190 *) ac_arg
=$ac_var=$ac_new_val ;;
3192 case " $ac_configure_args " in
3193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3194 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3198 if $ac_cache_corrupted; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3203 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3205 ## -------------------- ##
3206 ## Main body of script. ##
3207 ## -------------------- ##
3210 ac_cpp
='$CPP $CPPFLAGS'
3211 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3216 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3220 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3221 for ac_t
in install-sh
install.sh shtool
; do
3222 if test -f "$ac_dir/$ac_t"; then
3224 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3229 if test -z "$ac_aux_dir"; then
3230 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3233 # These three variables are undocumented and unsupported,
3234 # and are intended to be withdrawn in a future Autoconf release.
3235 # They can cause serious problems if a builder's source tree is in a directory
3236 # whose full name contains unusual characters.
3237 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3238 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3239 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3242 am__api_version
='1.11'
3244 # Find a good install program. We prefer a C program (faster),
3245 # so one script is as good as another. But avoid the broken or
3246 # incompatible versions:
3247 # SysV /etc/install, /usr/sbin/install
3248 # SunOS /usr/etc/install
3249 # IRIX /sbin/install
3251 # AmigaOS /C/install, which installs bootblocks on floppy discs
3252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3255 # OS/2's system install, which has a completely different semantic
3256 # ./install, which can be erroneously created by make from ./install.sh.
3257 # Reject install programs that cannot install multiple files.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3259 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3260 if test -z "$INSTALL"; then
3261 if test "${ac_cv_path_install+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir
=.
3269 # Account for people who put trailing slashes in PATH elements.
3270 case $as_dir/ in #((
3271 .
/ | .
// |
/[cC
]/* | \
3272 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3273 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3276 # OSF1 and SCO ODT 3.0 have their own names for install.
3277 # Don't use installbsd from OSF since it installs stuff as root
3279 for ac_prog
in ginstall scoinst
install; do
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3282 if test $ac_prog = install &&
3283 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3284 # AIX install. It has an incompatible calling convention.
3286 elif test $ac_prog = install &&
3287 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3288 # program-specific install script used by HP pwplus--don't use.
3291 rm -rf conftest.one conftest.two conftest.dir
3292 echo one
> conftest.one
3293 echo two
> conftest.two
3295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3296 test -s conftest.one
&& test -s conftest.two
&&
3297 test -s conftest.dir
/conftest.one
&&
3298 test -s conftest.dir
/conftest.two
3300 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3313 rm -rf conftest.one conftest.two conftest.dir
3316 if test "${ac_cv_path_install+set}" = set; then
3317 INSTALL
=$ac_cv_path_install
3319 # As a last resort, use the slow shell script. Don't cache a
3320 # value for INSTALL within a source directory, because that will
3321 # break other packages using the cache if that directory is
3322 # removed, or if the value is a relative name.
3323 INSTALL
=$ac_install_sh
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3327 $as_echo "$INSTALL" >&6; }
3329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3330 # It thinks the first close brace ends the variable substitution.
3331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3335 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3338 $as_echo_n "checking whether build environment is sane... " >&6; }
3341 echo timestamp
> conftest.
file
3342 # Reject unsafe characters in $srcdir or the absolute working directory
3343 # name. Accept space and tab only in the latter.
3347 *[\\\"\
#\$\&\'\`$am_lf]*)
3348 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3351 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3352 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3355 # Do `set' in a subshell so we don't clobber the current shell's
3356 # arguments. Must try -L first in case configure is actually a
3357 # symlink; some systems play weird games with the mod time of symlinks
3358 # (eg FreeBSD returns the mod time of the symlink's containing
3361 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3362 if test "$*" = "X"; then
3364 set X
`ls -t "$srcdir/configure" conftest.file`
3367 if test "$*" != "X $srcdir/configure conftest.file" \
3368 && test "$*" != "X conftest.file $srcdir/configure"; then
3370 # If neither matched, then we have a broken ls. This can happen
3371 # if, for instance, CONFIG_SHELL is bash and it inherits a
3372 # broken ls alias from the environment. This has actually
3373 # happened. Such a system could not be considered "sane".
3374 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3375 alias in your environment" "$LINENO" 5
3378 test "$2" = conftest.
file
3384 as_fn_error
"newly created file is older than distributed files!
3385 Check your system clock" "$LINENO" 5
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388 $as_echo "yes" >&6; }
3389 test "$program_prefix" != NONE
&&
3390 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3391 # Use a double $ so make ignores it.
3392 test "$program_suffix" != NONE
&&
3393 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3394 # Double any \ or $.
3395 # By default was `s,x,x', remove it if useless.
3396 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3397 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # expand $ac_aux_dir to an absolute path
3400 am_aux_dir
=`cd $ac_aux_dir && pwd`
3402 if test x
"${MISSING+set}" != xset
; then
3405 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3407 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3410 # Use eval to expand $SHELL
3411 if eval "$MISSING --run true"; then
3412 am_missing_run
="$MISSING --run "
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3416 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3419 if test x
"${install_sh}" != xset
; then
3422 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3424 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3428 # Installed binaries are usually stripped using `strip' when the user
3429 # run `make install-strip'. However `strip' might not be the right
3430 # tool to use in cross-compilation environments, therefore Automake
3431 # will honor the `STRIP' environment variable to overrule this program.
3432 if test "$cross_compiling" != no
; then
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3435 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if test "${ac_cv_prog_STRIP+set}" = set; then :
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$STRIP"; then
3442 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir
=.
3449 for ac_exec_ext
in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 STRIP
=$ac_cv_prog_STRIP
3462 if test -n "$STRIP"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3464 $as_echo "$STRIP" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3472 if test -z "$ac_cv_prog_STRIP"; then
3474 # Extract the first word of "strip", so it can be a program name with args.
3475 set dummy strip
; ac_word
=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$ac_ct_STRIP"; then
3482 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir
=.
3489 for ac_exec_ext
in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_ac_ct_STRIP
="strip"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3502 if test -n "$ac_ct_STRIP"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3504 $as_echo "$ac_ct_STRIP" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3510 if test "x$ac_ct_STRIP" = x
; then
3513 case $cross_compiling:$ac_tool_warned in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned
=yes ;;
3522 STRIP
="$ac_cv_prog_STRIP"
3526 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3529 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3530 if test -z "$MKDIR_P"; then
3531 if test "${ac_cv_path_mkdir+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3535 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3538 test -z "$as_dir" && as_dir
=.
3539 for ac_prog
in mkdir gmkdir
; do
3540 for ac_exec_ext
in '' $ac_executable_extensions; do
3541 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3542 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3543 'mkdir (GNU coreutils) '* | \
3544 'mkdir (coreutils) '* | \
3545 'mkdir (fileutils) '4.1*)
3546 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3556 test -d .
/--version && rmdir .
/--version
3557 if test "${ac_cv_path_mkdir+set}" = set; then
3558 MKDIR_P
="$ac_cv_path_mkdir -p"
3560 # As a last resort, use the slow shell script. Don't cache a
3561 # value for MKDIR_P within a source directory, because that will
3562 # break other packages using the cache if that directory is
3563 # removed, or if the value is a relative name.
3564 MKDIR_P
="$ac_install_sh -d"
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3568 $as_echo "$MKDIR_P" >&6; }
3573 [\\/$
]* | ?
:[\\/]*) ;;
3574 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3577 for ac_prog
in gawk mawk nawk
awk
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy
$ac_prog; ac_word
=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_AWK+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3586 if test -n "$AWK"; then
3587 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir
=.
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_AWK
="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 if test -n "$AWK"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3609 $as_echo "$AWK" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$AWK" && break
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3622 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3623 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3624 $as_echo_n "(cached) " >&6
3626 cat >conftest.
make <<\_ACEOF
3629 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3634 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3636 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3640 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 SET_MAKE
="MAKE=${MAKE-make}"
3650 rm -rf .tst
2>/dev
/null
3651 mkdir .tst
2>/dev
/null
3652 if test -d .tst
; then
3657 rmdir .tst
2>/dev
/null
3659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3661 # is not polluted with repeated "-I."
3662 am__isrc
=' -I$(srcdir)'
3663 # test to see if srcdir already configured
3664 if test -f $srcdir/config.status
; then
3665 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3669 # test whether we have cygpath
3670 if test -z "$CYGPATH_W"; then
3671 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3672 CYGPATH_W
='cygpath -w'
3679 # Define the identity of the package.
3684 cat >>confdefs.h
<<_ACEOF
3685 #define PACKAGE "$PACKAGE"
3689 cat >>confdefs.h
<<_ACEOF
3690 #define VERSION "$VERSION"
3693 # Some tools Automake needs.
3695 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3698 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3701 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3704 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3707 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3709 # We need awk for the "check" target. The system "awk" is bad on
3711 # Always define AMTAR for backward compatibility.
3713 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3715 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3724 lispdir
='${datadir}/emacs/${version}/lisp'
3725 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3726 '${datadir}/emacs/site-lisp'
3727 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3728 etcdir
='${datadir}/emacs/${version}/etc'
3729 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3730 docdir
='${datadir}/emacs/${version}/etc'
3731 gamedir
='${localstatedir}/games/emacs'
3736 # Check whether --with-pop was given.
3737 if test "${with_pop+set}" = set; then :
3743 if test "$with_pop" = yes; then
3744 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3749 # Check whether --with-kerberos was given.
3750 if test "${with_kerberos+set}" = set; then :
3751 withval
=$with_kerberos;
3756 if test "$with_kerberos" != no
; then
3757 $as_echo "#define KERBEROS 1" >>confdefs.h
3762 # Check whether --with-kerberos5 was given.
3763 if test "${with_kerberos5+set}" = set; then :
3764 withval
=$with_kerberos5;
3769 if test "${with_kerberos5}" != no
; then
3770 if test "${with_kerberos}" = no
; then
3772 $as_echo "#define KERBEROS 1" >>confdefs.h
3776 $as_echo "#define KERBEROS5 1" >>confdefs.h
3781 # Check whether --with-hesiod was given.
3782 if test "${with_hesiod+set}" = set; then :
3783 withval
=$with_hesiod;
3788 if test "$with_hesiod" != no
; then
3790 $as_echo "#define HESIOD 1" >>confdefs.h
3795 # Check whether --with-mmdf was given.
3796 if test "${with_mmdf+set}" = set; then :
3802 if test "$with_mmdf" != no
; then
3804 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3809 # Check whether --with-mail-unlink was given.
3810 if test "${with_mail_unlink+set}" = set; then :
3811 withval
=$with_mail_unlink;
3816 if test "$with_mail_unlink" != no
; then
3818 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3823 # Check whether --with-mailhost was given.
3824 if test "${with_mailhost+set}" = set; then :
3825 withval
=$with_mailhost;
3826 cat >>confdefs.h
<<_ACEOF
3827 #define MAILHOST "$withval"
3834 # Check whether --with-sound was given.
3835 if test "${with_sound+set}" = set; then :
3836 withval
=$with_sound;
3843 # Check whether --with-sync-input was given.
3844 if test "${with_sync_input+set}" = set; then :
3845 withval
=$with_sync_input;
3850 if test "$with_sync_input" = yes; then
3852 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3857 # Check whether --with-x-toolkit was given.
3858 if test "${with_x_toolkit+set}" = set; then :
3859 withval
=$with_x_toolkit; case "${withval}" in
3860 y | ye |
yes ) val
=gtk
;;
3862 l | lu | luc | luci | lucid
) val
=lucid
;;
3863 a |
at | ath | athe | athen | athena
) val
=athena
;;
3864 m | mo | mot | moti | motif
) val
=motif
;;
3865 g | gt | gtk
) val
=gtk
;;
3868 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3869 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3870 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3879 # Check whether --with-wide-int was given.
3880 if test "${with_wide_int+set}" = set; then :
3881 withval
=$with_wide_int;
3886 if test "$with_wide_int" = yes; then
3888 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3893 # Check whether --with-xpm was given.
3894 if test "${with_xpm+set}" = set; then :
3901 # Check whether --with-jpeg was given.
3902 if test "${with_jpeg+set}" = set; then :
3909 # Check whether --with-tiff was given.
3910 if test "${with_tiff+set}" = set; then :
3917 # Check whether --with-gif was given.
3918 if test "${with_gif+set}" = set; then :
3925 # Check whether --with-png was given.
3926 if test "${with_png+set}" = set; then :
3933 # Check whether --with-rsvg was given.
3934 if test "${with_rsvg+set}" = set; then :
3941 # Check whether --with-xml2 was given.
3942 if test "${with_xml2+set}" = set; then :
3949 # Check whether --with-imagemagick was given.
3950 if test "${with_imagemagick+set}" = set; then :
3951 withval
=$with_imagemagick;
3953 with_imagemagick
=yes
3958 # Check whether --with-xft was given.
3959 if test "${with_xft+set}" = set; then :
3966 # Check whether --with-libotf was given.
3967 if test "${with_libotf+set}" = set; then :
3968 withval
=$with_libotf;
3974 # Check whether --with-m17n-flt was given.
3975 if test "${with_m17n_flt+set}" = set; then :
3976 withval
=$with_m17n_flt;
3983 # Check whether --with-toolkit-scroll-bars was given.
3984 if test "${with_toolkit_scroll_bars+set}" = set; then :
3985 withval
=$with_toolkit_scroll_bars;
3987 with_toolkit_scroll_bars
=yes
3991 # Check whether --with-xaw3d was given.
3992 if test "${with_xaw3d+set}" = set; then :
3993 withval
=$with_xaw3d;
3999 # Check whether --with-xim was given.
4000 if test "${with_xim+set}" = set; then :
4007 # Check whether --with-ns was given.
4008 if test "${with_ns+set}" = set; then :
4016 # Check whether --with-gpm was given.
4017 if test "${with_gpm+set}" = set; then :
4024 # Check whether --with-dbus was given.
4025 if test "${with_dbus+set}" = set; then :
4032 # Check whether --with-gconf was given.
4033 if test "${with_gconf+set}" = set; then :
4034 withval
=$with_gconf;
4040 # Check whether --with-gsettings was given.
4041 if test "${with_gsettings+set}" = set; then :
4042 withval
=$with_gsettings;
4048 # Check whether --with-selinux was given.
4049 if test "${with_selinux+set}" = set; then :
4050 withval
=$with_selinux;
4056 # Check whether --with-gnutls was given.
4057 if test "${with_gnutls+set}" = set; then :
4058 withval
=$with_gnutls;
4064 ## For the times when you want to build Emacs but don't have
4065 ## a suitable makeinfo, and can live without the manuals.
4067 # Check whether --with-makeinfo was given.
4068 if test "${with_makeinfo+set}" = set; then :
4069 withval
=$with_makeinfo;
4075 ## Makefile.in needs the cache file name.
4078 ## This is an option because I do not know if all info/man support
4079 ## compressed files, nor how to test if they do so.
4081 # Check whether --with-compress-info was given.
4082 if test "${with_compress_info+set}" = set; then :
4083 withval
=$with_compress_info;
4085 with_compress_info
=yes
4088 if test $with_compress_info = yes; then
4096 # Check whether --with-pkg-config-prog was given.
4097 if test "${with_pkg_config_prog+set}" = set; then :
4098 withval
=$with_pkg_config_prog;
4101 if test "X${with_pkg_config_prog}" != X
; then
4102 if test "${with_pkg_config_prog}" != yes; then
4103 PKG_CONFIG
="${with_pkg_config_prog}"
4109 # Check whether --with-crt-dir was given.
4110 if test "${with_crt_dir+set}" = set; then :
4111 withval
=$with_crt_dir;
4114 CRT_DIR
="${with_crt_dir}"
4117 # Check whether --with-gameuser was given.
4118 if test "${with_gameuser+set}" = set; then :
4119 withval
=$with_gameuser;
4122 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4123 && gameuser
="${with_gameuser}"
4124 test "X$gameuser" = X
&& gameuser
=games
4127 # Check whether --with-gnustep-conf was given.
4128 if test "${with_gnustep_conf+set}" = set; then :
4129 withval
=$with_gnustep_conf;
4132 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4133 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4134 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4135 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4137 # Check whether --enable-ns-self-contained was given.
4138 if test "${enable_ns_self_contained+set}" = set; then :
4139 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4141 EN_NS_SELF_CONTAINED
=yes
4145 # Check whether --enable-asserts was given.
4146 if test "${enable_asserts+set}" = set; then :
4147 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4153 # Check whether --enable-maintainer-mode was given.
4154 if test "${enable_maintainer_mode+set}" = set; then :
4155 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4157 USE_MAINTAINER_MODE
=yes
4160 if test $USE_MAINTAINER_MODE = yes; then
4167 # Check whether --enable-locallisppath was given.
4168 if test "${enable_locallisppath+set}" = set; then :
4169 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4171 elif test "${enableval}" != "yes"; then
4172 locallisppath
=${enableval}
4177 # Check whether --enable-checking was given.
4178 if test "${enable_checking+set}" = set; then :
4179 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4182 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4183 for check
in $ac_checking_flags
4186 # these set all the flags to specific states
4187 yes) ac_enable_checking
=1 ;;
4188 no
) ac_enable_checking
= ;
4189 ac_gc_check_stringbytes
= ;
4190 ac_gc_check_string_overrun
= ;
4191 ac_gc_check_string_free_list
= ;
4192 ac_xmalloc_overrun
= ;
4193 ac_gc_check_cons_list
= ;;
4194 all
) ac_enable_checking
=1 ;
4195 ac_gc_check_stringbytes
=1 ;
4196 ac_gc_check_string_overrun
=1 ;
4197 ac_gc_check_string_free_list
=1 ;
4198 ac_xmalloc_overrun
=1 ;
4199 ac_gc_check_cons_list
=1 ;;
4200 # these enable particular checks
4201 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4202 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4203 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4204 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4205 conslist
) ac_gc_check_cons_list
=1 ;;
4206 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4211 if test x
$ac_enable_checking != x
; then
4213 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4216 if test x
$ac_gc_check_stringbytes != x
; then
4218 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4221 if test x
$ac_gc_check_string_overrun != x
; then
4223 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4226 if test x
$ac_gc_check_string_free_list != x
; then
4228 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4231 if test x
$ac_xmalloc_overrun != x
; then
4233 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4236 if test x
$ac_gc_check_cons_list != x
; then
4238 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4242 # Check whether --enable-use-lisp-union-type was given.
4243 if test "${enable_use_lisp_union_type+set}" = set; then :
4244 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4246 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4253 # Check whether --enable-profiling was given.
4254 if test "${enable_profiling+set}" = set; then :
4255 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4258 if test x
$ac_enable_profiling != x
; then
4259 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4265 # Check whether --enable-autodepend was given.
4266 if test "${enable_autodepend+set}" = set; then :
4267 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4269 ac_enable_autodepend
=yes
4273 #### Make srcdir absolute, if it isn't already. It's important to
4274 #### avoid running the path through pwd unnecessarily, since pwd can
4275 #### give you automounter prefixes, which can go away. We do all this
4276 #### so Emacs can find its files when run uninstalled.
4277 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4282 ## We may be able to use the $PWD environment variable to make this
4283 ## absolute. But sometimes PWD is inaccurate.
4284 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4285 ## but that tested only for a well-formed and valid PWD,
4286 ## it did not object when PWD was well-formed and valid but just wrong.
4287 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4291 srcdir
="`(cd ${srcdir}; pwd)`"
4294 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4297 #### Given the configuration name, set machfile and opsysfile to the
4298 #### names of the m/*.h and s/*.h files we should use.
4300 ### Canonicalize the configuration name.
4302 # Make sure we can run config.sub.
4303 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4304 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4307 $as_echo_n "checking build system type... " >&6; }
4308 if test "${ac_cv_build+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 ac_build_alias
=$build_alias
4312 test "x$ac_build_alias" = x
&&
4313 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4314 test "x$ac_build_alias" = x
&&
4315 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4316 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4317 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4321 $as_echo "$ac_cv_build" >&6; }
4322 case $ac_cv_build in
4324 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4327 ac_save_IFS
=$IFS; IFS
='-'
4333 # Remember, the first character of IFS is used to create $*,
4334 # except with old shells:
4337 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4341 $as_echo_n "checking host system type... " >&6; }
4342 if test "${ac_cv_host+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4345 if test "x$host_alias" = x
; then
4346 ac_cv_host
=$ac_cv_build
4348 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4349 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4354 $as_echo "$ac_cv_host" >&6; }
4357 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4360 ac_save_IFS
=$IFS; IFS
='-'
4366 # Remember, the first character of IFS is used to create $*,
4367 # except with old shells:
4370 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4374 configuration
=${host_alias-${build_alias-$host}}
4378 ### If you add support for a new configuration, add code to this
4379 ### switch statement to recognize your configuration name and select
4380 ### the appropriate operating system and machine description files.
4382 ### You would hope that you could choose an m/*.h file pretty much
4383 ### based on the machine portion of the configuration name, and an s/*.h
4384 ### file based on the operating system portion. However, it turns out
4385 ### that each m/*.h file is pretty manufacturer-specific - for
4386 ### example mips.h is MIPS
4387 ### So we basically have to have a special case for each
4388 ### configuration name.
4390 ### As far as handling version numbers on operating systems is
4391 ### concerned, make sure things will fail in a fixable way. If
4392 ### /etc/MACHINES doesn't say anything about version numbers, be
4393 ### prepared to handle anything reasonably. If version numbers
4394 ### matter, be sure /etc/MACHINES says something about it.
4396 machine
='' opsys
='' unported
=no
4397 case "${canonical}" in
4399 ## GNU/Linux and similar ports
4402 case ${canonical} in
4403 alpha
*) machine
=alpha
;;
4404 s390x-
*) machine
=ibms390x
;;
4405 powerpc
*) machine
=macppc
;;
4406 sparc
*) machine
=sparc
;;
4407 ia64
*) machine
=ia64
;;
4408 m68k
*) machine
=m68k
;;
4409 x86_64
*) machine
=amdx86-64
;;
4416 case "${canonical}" in
4417 alpha
*) machine
=alpha
;;
4418 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4419 ia64-
*) machine
=ia64
;;
4420 i
[3456]86-*) machine
=intel386
;;
4421 powerpc-
*) machine
=macppc
;;
4422 sparc-
*) machine
=sparc
;;
4423 sparc64-
*) machine
=sparc
;;
4427 ## FreeBSD kernel + glibc based userland
4430 case "${canonical}" in
4431 alpha
*) machine
=alpha
;;
4432 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4433 ia64-
*) machine
=ia64
;;
4434 i
[3456]86-*) machine
=intel386
;;
4435 powerpc-
*) machine
=macppc
;;
4436 sparc-
*) machine
=sparc
;;
4437 sparc64-
*) machine
=sparc
;;
4444 case "${canonical}" in
4445 alpha
*) machine
=alpha
;;
4446 x86_64-
*) machine
=amdx86-64
;;
4447 i
[3456]86-*) machine
=intel386
;;
4448 m68k-
*) machine
=m68k
;;
4449 powerpc-
*) machine
=macppc
;;
4450 sparc
*-) machine
=sparc
;;
4451 vax-
*) machine
=vax
;;
4458 case "${canonical}" in
4459 alpha
*) machine
=alpha
;;
4460 x86_64-
*) machine
=amdx86-64
;;
4461 i386-
*) machine
=intel386
;;
4462 powerpc-
*) machine
=macppc
;;
4463 sparc
*) machine
=sparc
;;
4464 vax-
*) machine
=vax
;;
4468 ## Apple Darwin / Mac OS X
4470 case "${canonical}" in
4471 i
[3456]86-* ) machine
=intel386
;;
4472 powerpc-
* ) machine
=macppc
;;
4473 x86_64-
* ) machine
=amdx86-64
;;
4477 # Define CPP as follows to make autoconf work correctly.
4478 CPP
="${CC-cc} -E -no-cpp-precomp"
4479 # Use fink packages if available.
4480 if test -d /sw
/include
&& test -d /sw
/lib
; then
4481 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4482 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4483 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4487 ## HP 9000 series 700 and 800, running HP/UX
4488 hppa
*-hp-hpux10.2
* )
4491 hppa
*-hp-hpux1[1-9]* )
4493 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4497 rs6000-ibm-aix4.
[23]* )
4498 machine
=ibmrs6000 opsys
=aix4-2
4500 powerpc-ibm-aix4.
[23]* )
4501 machine
=ibmrs6000 opsys
=aix4-2
4503 rs6000-ibm-aix
[56]* )
4504 machine
=ibmrs6000 opsys
=aix4-2
4506 powerpc-ibm-aix
[56]* )
4507 machine
=ibmrs6000 opsys
=aix4-2
4510 ## Silicon Graphics machines
4514 # Without defining _LANGUAGE_C, things get masked out in the headers
4515 # so that, for instance, grepping for `free' in stdlib.h fails and
4516 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4517 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4518 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4523 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4524 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4525 case "${canonical}" in
4526 i
[3456]86-*-* ) machine
=intel386
;;
4527 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4528 sparc
* ) machine
=sparc
;;
4531 case "${canonical}" in
4532 *-sunos5.6
* |
*-solaris2.6
* )
4534 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4537 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4539 emacs_check_sunpro_c
=yes
4540 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4542 *-sunos5* |
*-solaris* )
4544 emacs_check_sunpro_c
=yes
4545 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4548 ## Watch out for a compiler that we know will not work.
4549 case "${canonical}" in
4550 *-solaris* |
*-sunos5* )
4551 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4552 ## /usr/ucb/cc doesn't work;
4553 ## we should find some other compiler that does work.
4561 ## Intel 386 machines where we don't care about the manufacturer.
4564 case "${canonical}" in
4565 *-cygwin ) opsys
=cygwin
;;
4566 *-darwin* ) opsys
=darwin
4567 CPP
="${CC-cc} -E -no-cpp-precomp"
4569 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4570 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4571 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4572 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4581 ### If the code above didn't choose an operating system, just choose
4582 ### an operating system based on the configuration name. You really
4583 ### only want to use this when you have no idea what the right
4584 ### operating system is; if you know what operating systems a machine
4585 ### runs, it's cleaner to make it explicit in the case statement
4587 if test x
"${opsys}" = x
; then
4588 case "${canonical}" in
4589 *-gnu* ) opsys
=gnu
;;
4598 if test $unported = yes; then
4599 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4600 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4603 if test -n "$machine"; then
4604 machfile
="m/${machine}.h"
4608 opsysfile
="s/${opsys}.h"
4611 #### Choose a compiler.
4612 test -n "$CC" && cc_specified
=yes
4614 # Save the value of CFLAGS that the user specified.
4615 SPECIFIED_CFLAGS
="$CFLAGS"
4618 ac_cpp
='$CPP $CPPFLAGS'
4619 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4624 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_CC+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4630 if test -n "$CC"; then
4631 ac_cv_prog_CC
="$CC" # Let the user override the test.
4633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir
=.
4638 for ac_exec_ext
in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 if test -n "$CC"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4653 $as_echo "$CC" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4661 if test -z "$ac_cv_prog_CC"; then
4663 # Extract the first word of "gcc", so it can be a program name with args.
4664 set dummy gcc
; ac_word
=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir
=.
4678 for ac_exec_ext
in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_ac_ct_CC
="gcc"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4693 $as_echo "$ac_ct_CC" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4699 if test "x$ac_ct_CC" = x
; then
4702 case $cross_compiling:$ac_tool_warned in
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned
=yes ;;
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4717 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_CC+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC
="$CC" # Let the user override the test.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 if test -n "$CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4746 $as_echo "$CC" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4755 if test -z "$CC"; then
4756 # Extract the first word of "cc", so it can be a program name with args.
4757 set dummy cc
; ac_word
=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$CC"; then
4764 ac_cv_prog_CC
="$CC" # Let the user override the test.
4767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir
=.
4772 for ac_exec_ext
in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4775 ac_prog_rejected
=yes
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 if test $ac_prog_rejected = yes; then
4787 # We found a bogon in the path, so make sure we never use it.
4788 set dummy
$ac_cv_prog_CC
4790 if test $# != 0; then
4791 # We chose a different compiler from the bogus one.
4792 # However, it has the same basename, so the bogon will be chosen
4793 # first if we set CC to just the basename; use the full file name.
4795 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4801 if test -n "$CC"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 $as_echo "$CC" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4811 if test -z "$CC"; then
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog
in cl.exe
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CC+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC
="$CC" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 if test -n "$CC"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4845 $as_echo "$CC" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 test -n "$CC" && break
4855 if test -z "$CC"; then
4857 for ac_prog
in cl.exe
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy
$ac_prog; ac_word
=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$ac_ct_CC"; then
4867 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir
=.
4874 for ac_exec_ext
in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_CC
="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4889 $as_echo "$ac_ct_CC" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 test -n "$ac_ct_CC" && break
4899 if test "x$ac_ct_CC" = x
; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned
=yes ;;
4915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 as_fn_error
"no acceptable C compiler found in \$PATH
4918 See \`config.log' for more details." "$LINENO" 5; }
4920 # Provide some information about the compiler.
4921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4924 for ac_option
in --version -v -V -qversion; do
4925 { { ac_try
="$ac_compiler $ac_option >&5"
4927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4934 if test -s conftest.err; then
4936 ... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
4940 rm -f conftest.er1 conftest.err
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4956 ac_clean_files_save=$ac_clean_files
4957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4958 # Try to create an executable without -o first, disregard a.out.
4959 # It will help us diagnose broken compilers, and finding out an intuition
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4962 $as_echo_n "checking whether the C compiler works... " >&6; }
4963 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4965 # The possible output files:
4966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4969 for ac_file in $ac_files
4972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4978 if { { ac_try="$ac_link_default"
4980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4981 *) ac_try_echo
=$ac_try;;
4983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_link_default") 2>&5
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
4989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4992 # so that the user can short-circuit this test for compilers unknown to
4994 for ac_file
in $ac_files ''
4996 test -f "$ac_file" ||
continue
4998 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5001 # We found the default executable, but exeext='' is most
5005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5007 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5009 # We set ac_cv_exeext here because the later test for it is not
5010 # safe: cross compilers may not add the suffix if given an `-o'
5011 # argument, so we may need to know it at that point already.
5012 # Even if this section looks crufty: it has the advantage of
5019 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5024 if test -z "$ac_file"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5032 { as_fn_set_status
77
5033 as_fn_error
"C compiler cannot create executables
5034 See \`config.log' for more details." "$LINENO" 5; }; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5037 $as_echo "yes" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5040 $as_echo_n "checking for C compiler default output file name... " >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5042 $as_echo "$ac_file" >&6; }
5043 ac_exeext
=$ac_cv_exeext
5045 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5046 ac_clean_files
=$ac_clean_files_save
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5048 $as_echo_n "checking for suffix of executables... " >&6; }
5049 if { { ac_try
="$ac_link"
5051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055 $as_echo "$ac_try_echo"; } >&5
5056 (eval "$ac_link") 2>&5
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; then :
5060 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5061 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5062 # work properly (i.e., refer to `conftest.exe'), while it won't with
5064 for ac_file
in conftest.exe conftest conftest.
*; do
5065 test -f "$ac_file" ||
continue
5067 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5068 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5077 See \`config.log' for more details." "$LINENO" 5; }
5079 rm -f conftest conftest
$ac_cv_exeext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5081 $as_echo "$ac_cv_exeext" >&6; }
5083 rm -f conftest.
$ac_ext
5084 EXEEXT
=$ac_cv_exeext
5086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5092 FILE *f = fopen ("conftest.out", "w");
5093 return ferror (f) || fclose (f) != 0;
5099 ac_clean_files
="$ac_clean_files conftest.out"
5100 # Check that the compiler produces executables we can run. If not, either
5101 # the compiler is broken, or we cross compile.
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5103 $as_echo_n "checking whether we are cross compiling... " >&6; }
5104 if test "$cross_compiling" != yes; then
5105 { { ac_try
="$ac_link"
5107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_link") 2>&5
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }
5116 if { ac_try='./conftest$ac_cv_exeext'
5117 { { case "(($ac_try" in
5118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5119 *) ac_try_echo
=$ac_try;;
5121 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_try") 2>&5
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; }; then
5129 if test "$cross_compiling" = maybe
; then
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 as_fn_error
"cannot run C compiled programs.
5135 If you meant to cross compile, use \`--host'.
5136 See \`config.log' for more details." "$LINENO" 5; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5141 $as_echo "$cross_compiling" >&6; }
5143 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5144 ac_clean_files
=$ac_clean_files_save
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5146 $as_echo_n "checking for suffix of object files... " >&6; }
5147 if test "${ac_cv_objext+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5161 rm -f conftest.o conftest.obj
5162 if { { ac_try
="$ac_compile"
5164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_compile") 2>&5
5171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5172 test $ac_status = 0; }; then :
5173 for ac_file in conftest.o conftest.obj conftest.*; do
5174 test -f "$ac_file" || continue;
5176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5187 as_fn_error "cannot compute suffix of object files
: cannot compile
5188 See \
`config.log' for more details." "$LINENO" 5; }
5190 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5193 $as_echo "$ac_cv_objext" >&6; }
5194 OBJEXT=$ac_cv_objext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5197 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5198 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5215 if ac_fn_c_try_compile "$LINENO"; then :
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5225 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5226 if test $ac_compiler_gnu = yes; then
5231 ac_test_CFLAGS=${CFLAGS+set}
5232 ac_save_CFLAGS=$CFLAGS
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5234 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5235 if test "${ac_cv_prog_cc_g+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5238 ac_save_c_werror_flag=$ac_c_werror_flag
5239 ac_c_werror_flag=yes
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5253 if ac_fn_c_try_compile "$LINENO"; then :
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5268 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_c_werror_flag=$ac_save_c_werror_flag
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5284 if ac_fn_c_try_compile "$LINENO"; then :
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 ac_c_werror_flag=$ac_save_c_werror_flag
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5295 $as_echo "$ac_cv_prog_cc_g" >&6; }
5296 if test "$ac_test_CFLAGS" = set; then
5297 CFLAGS=$ac_save_CFLAGS
5298 elif test $ac_cv_prog_cc_g = yes; then
5299 if test "$GCC" = yes; then
5305 if test "$GCC" = yes; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5312 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5313 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5316 ac_cv_prog_cc_c89=no
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5322 #include <sys/types.h>
5323 #include <sys/stat.h>
5324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5325 struct buf { int x; };
5326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5327 static char *e (p, i)
5333 static char *f (char * (*g) (char **, int), char **p, ...)
5338 s = g (p, va_arg (v,int));
5343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5344 function prototypes and stuff, but not '\xHH' hex character constants.
5345 These don't provoke an error unfortunately, instead are silently treated
5346 as 'x'. The following induces an error, until -std is added to get
5347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5348 array size at least. It's necessary to write '\x00'==0 to get something
5349 that's true only with -std. */
5350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5353 inside strings and character constants. */
5355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5357 int test (int i, double x);
5358 struct s1 {int (*f) (int a);};
5359 struct s2 {int (*f) (double a);};
5360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5374 CC="$ac_save_CC $ac_arg"
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_prog_cc_c89=$ac_arg
5378 rm -f core conftest.err conftest.$ac_objext
5379 test "x$ac_cv_prog_cc_c89" != "xno" && break
5381 rm -f conftest.$ac_ext
5386 case "x$ac_cv_prog_cc_c89" in
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5389 $as_echo "none needed" >&6; } ;;
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 $as_echo "unsupported" >&6; } ;;
5394 CC="$CC $ac_cv_prog_cc_c89"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5398 if test "x$ac_cv_prog_cc_c89" != xno; then :
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 DEPDIR="${am__leading_dot}deps"
5409 ac_config_commands="$ac_config_commands depfiles"
5412 am_make=${MAKE-make}
5413 cat > confinc << 'END'
5415 @echo this is the am__doit target
5418 # If we don't find an include directive, just comment out the code.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5424 # First try GNU make style include.
5425 echo "include confinc" > confmf
5426 # Ignore all kinds of additional output from `make'.
5427 case `$am_make -s -f confmf 2> /dev/null` in #(
5428 *the\ am__doit\ target*)
5434 # Now try BSD make style include.
5435 if test "$am__include" = "#"; then
5436 echo '.include
"confinc"' > confmf
5437 case `$am_make -s -f confmf 2> /dev/null` in #(
5438 *the\ am__doit\ target*)
5439 am__include=.include
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5448 $as_echo "$_am_result" >&6; }
5449 rm -f confinc confmf
5451 # Check whether --enable-dependency-tracking was given.
5452 if test "${enable_dependency_tracking+set}" = set; then :
5453 enableval=$enable_dependency_tracking;
5456 if test "x$enable_dependency_tracking" != xno; then
5457 am_depcomp="$ac_aux_dir/depcomp"
5460 if test "x$enable_dependency_tracking" != xno
; then
5470 depcc
="$CC" am_compiler_list
=
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5473 $as_echo_n "checking dependency style of $depcc... " >&6; }
5474 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5478 # We make a subdir and do the tests there. Otherwise we can end up
5479 # making bogus files that we don't know about and never remove. For
5480 # instance it was reported that on HP-UX the gcc test will end up
5481 # making a dummy file named `D' -- because `-MD' means `put the output
5484 # Copy depcomp to subdir because otherwise we won't find it if we're
5485 # using a relative directory.
5486 cp "$am_depcomp" conftest.dir
5488 # We will build objects and dependencies in a subdirectory because
5489 # it helps to detect inapplicable dependency modes. For instance
5490 # both Tru64's cc and ICC support -MD to output dependencies as a
5491 # side effect of compilation, but ICC will put the dependencies in
5492 # the current directory while Tru64 will put them in the object
5496 am_cv_CC_dependencies_compiler_type
=none
5497 if test "$am_compiler_list" = ""; then
5498 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5501 case " $depcc " in #(
5502 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5505 for depmode
in $am_compiler_list; do
5506 # Setup a source with many dependencies, because some compilers
5507 # like to wrap large dependency lists on column 80 (with \), and
5508 # we should not choose a depcomp mode which is confused by this.
5510 # We need to recreate these files for each test, as the compiler may
5511 # overwrite some of them when testing with obscure command lines.
5512 # This happens at least with the AIX C compiler.
5514 for i
in 1 2 3 4 5 6; do
5515 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5516 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517 # Solaris 8's {/usr,}/bin/sh.
5518 touch sub
/conftst
$i.h
5520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5522 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5523 # mode. It turns out that the SunPro C++ compiler does not properly
5524 # handle `-M -o', and we need to detect this. Also, some Intel
5525 # versions had trouble with output in subdirs
5526 am__obj
=sub
/conftest.
${OBJEXT-o}
5527 am__minus_obj
="-o $am__obj"
5530 # This depmode causes a compiler race in universal mode.
5531 test "$am__universal" = false ||
continue
5534 # after this tag, mechanisms are not by side-effect, so they'll
5535 # only be used when explicitly requested
5536 if test "x$enable_dependency_tracking" = xyes
; then
5542 msvisualcpp | msvcmsys
)
5543 # This compiler won't grok `-c -o', but also, the minuso test has
5544 # not run yet. These depmodes are late enough in the game, and
5545 # so weak that their functioning should not be impacted.
5546 am__obj
=conftest.
${OBJEXT-o}
5551 if depmode
=$depmode \
5552 source=sub
/conftest.c object
=$am__obj \
5553 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5554 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5555 >/dev
/null
2>conftest.err
&&
5556 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5557 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5558 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5559 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5560 # icc doesn't choke on unknown options, it will just issue warnings
5561 # or remarks (even with -Werror). So we grep stderr for any message
5562 # that says an option was ignored or not supported.
5563 # When given -MP, icc 7.0 and 7.1 complain thusly:
5564 # icc: Command line warning: ignoring option '-M'; no argument required
5565 # The diagnosis changed in icc 8.0:
5566 # icc: Command line remark: option '-MP' not supported
5567 if (grep 'ignoring option' conftest.err ||
5568 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5569 am_cv_CC_dependencies_compiler_type
=$depmode
5578 am_cv_CC_dependencies_compiler_type
=none
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5583 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5584 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5587 test "x$enable_dependency_tracking" != xno \
5588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5590 am__fastdepCC_FALSE
='#'
5592 am__fastdepCC_TRUE
='#'
5593 am__fastdepCC_FALSE
=
5597 if test "x$CC" != xcc
; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5599 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5602 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5604 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5605 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5606 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5607 $as_echo_n "(cached) " >&6
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5620 # Make sure it works both with $CC and with simple cc.
5621 # We do the test twice because some compilers refuse to overwrite an
5622 # existing .o file with -o, though they will create one.
5623 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5625 if { { case "(($ac_try" in
5626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5630 $as_echo "$ac_try_echo"; } >&5
5631 (eval "$ac_try") 2>&5
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; } &&
5635 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5637 *) ac_try_echo
=$ac_try;;
5639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641 (eval "$ac_try") 2>&5
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; };
5646 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5647 if test "x$CC" != xcc
; then
5648 # Test first that cc exists at all.
5649 if { ac_try
='cc -c conftest.$ac_ext >&5'
5650 { { case "(($ac_try" in
5651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5655 $as_echo "$ac_try_echo"; } >&5
5656 (eval "$ac_try") 2>&5
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }; }; then
5660 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5662 if { { case "(($ac_try" in
5663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5664 *) ac_try_echo
=$ac_try;;
5666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667 $as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; } &&
5672 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_try") 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; };
5686 # cc exists but doesn't like -o.
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5694 rm -f core conftest*
5697 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699 $as_echo "yes" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5704 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5708 # FIXME: we rely on the cache variable name because
5709 # there is no other way.
5711 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5712 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5713 if test "$am_t" != yes; then
5714 # Losing compiler, so override with the script.
5715 # FIXME: It is wrong to rewrite CC.
5716 # But if we don't then we get into trouble of one sort or another.
5717 # A longer-term fix would be to have automake use am__CC in this case,
5718 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5719 CC="$am_aux_dir/compile $CC"
5724 # Initialize gnulib right after verifying that the C compiler works.
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5732 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5733 # On Suns, sometimes $CPP names a directory.
5734 if test -n "$CPP" && test -d "$CPP"; then
5737 if test -z "$CPP"; then
5738 if test "${ac_cv_prog_CPP+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5741 # Double quotes because CPP needs to be expanded
5742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5745 for ac_c_preproc_warn_flag in '' yes
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 # include <limits.h>
5758 # include <assert.h>
5762 if ac_fn_c_try_cpp "$LINENO"; then :
5765 # Broken: fails on valid input.
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5776 if ac_fn_c_try_cpp "$LINENO"; then :
5777 # Broken: success on invalid input.
5780 # Passes both tests.
5784 rm -f conftest.err conftest.$ac_ext
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.err conftest.
$ac_ext
5789 if $ac_preproc_ok; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5802 $as_echo "$CPP" >&6; }
5804 for ac_c_preproc_warn_flag
in '' yes
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5815 # include <limits.h>
5817 # include <assert.h>
5821 if ac_fn_c_try_cpp
"$LINENO"; then :
5824 # Broken: fails on valid input.
5827 rm -f conftest.err conftest.
$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <ac_nonexistent.h>
5835 if ac_fn_c_try_cpp
"$LINENO"; then :
5836 # Broken: success on invalid input.
5839 # Passes both tests.
5843 rm -f conftest.err conftest.
$ac_ext
5846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5847 rm -f conftest.err conftest.
$ac_ext
5848 if $ac_preproc_ok; then :
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5854 See \`config.log' for more details." "$LINENO" 5; }
5858 ac_cpp
='$CPP $CPPFLAGS'
5859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5866 if test "${ac_cv_path_GREP+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -z "$GREP"; then
5870 ac_path_GREP_found
=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5873 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5876 test -z "$as_dir" && as_dir
=.
5877 for ac_prog
in grep ggrep
; do
5878 for ac_exec_ext
in '' $ac_executable_extensions; do
5879 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5881 # Check for GNU ac_path_GREP and select it if it is found.
5882 # Check for GNU $ac_path_GREP
5883 case `"$ac_path_GREP" --version 2>&1` in
5885 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5888 $as_echo_n 0123456789 >"conftest.in"
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo 'GREP' >> "conftest.nl"
5895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5896 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5897 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_GREP
="$ac_path_GREP"
5901 ac_path_GREP_max
=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5906 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5909 $ac_path_GREP_found && break 3
5914 if test -z "$ac_cv_path_GREP"; then
5915 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5918 ac_cv_path_GREP
=$GREP
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5923 $as_echo "$ac_cv_path_GREP" >&6; }
5924 GREP
="$ac_cv_path_GREP"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5928 $as_echo_n "checking for egrep... " >&6; }
5929 if test "${ac_cv_path_EGREP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5933 then ac_cv_path_EGREP
="$GREP -E"
5935 if test -z "$EGREP"; then
5936 ac_path_EGREP_found
=false
5937 # Loop through the user's path and test for each of PROGNAME-LIST
5938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5939 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5942 test -z "$as_dir" && as_dir
=.
5943 for ac_prog
in egrep; do
5944 for ac_exec_ext
in '' $ac_executable_extensions; do
5945 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5946 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5947 # Check for GNU ac_path_EGREP and select it if it is found.
5948 # Check for GNU $ac_path_EGREP
5949 case `"$ac_path_EGREP" --version 2>&1` in
5951 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5954 $as_echo_n 0123456789 >"conftest.in"
5957 cat "conftest.in" "conftest.in" >"conftest.tmp"
5958 mv "conftest.tmp" "conftest.in"
5959 cp "conftest.in" "conftest.nl"
5960 $as_echo 'EGREP' >> "conftest.nl"
5961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5962 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5963 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5965 # Best one so far, save it but keep looking for a better one
5966 ac_cv_path_EGREP
="$ac_path_EGREP"
5967 ac_path_EGREP_max
=$ac_count
5969 # 10*(2^10) chars as input seems more than enough
5970 test $ac_count -gt 10 && break
5972 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5975 $ac_path_EGREP_found && break 3
5980 if test -z "$ac_cv_path_EGREP"; then
5981 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5984 ac_cv_path_EGREP
=$EGREP
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5990 $as_echo "$ac_cv_path_EGREP" >&6; }
5991 EGREP
="$ac_cv_path_EGREP"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5997 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5998 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6011 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6012 gl_cv_c_amsterdam_compiler
=yes
6014 gl_cv_c_amsterdam_compiler
=no
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6021 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6022 if test -z "$AR"; then
6023 if test $gl_cv_c_amsterdam_compiler = yes; then
6025 if test -z "$ARFLAGS"; then
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6031 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if test "${ac_cv_prog_AR+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$AR"; then
6038 ac_cv_prog_AR
="$AR" # Let the user override the test.
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_exec_ext
in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 if test -n "$AR"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6060 $as_echo "$AR" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test -z "$ac_cv_prog_AR"; then
6070 # Extract the first word of "ar", so it can be a program name with args.
6071 set dummy
ar; ac_word
=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$ac_ct_AR"; then
6078 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir
=.
6085 for ac_exec_ext
in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_AR
="ar"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6098 if test -n "$ac_ct_AR"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6100 $as_echo "$ac_ct_AR" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6106 if test "x$ac_ct_AR" = x
; then
6109 case $cross_compiling:$ac_tool_warned in
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned
=yes ;;
6121 if test -z "$ARFLAGS"; then
6126 if test -z "$ARFLAGS"; then
6132 if test -z "$RANLIB"; then
6133 if test $gl_cv_c_amsterdam_compiler = yes; then
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$RANLIB"; then
6145 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir
=.
6152 for ac_exec_ext
in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 RANLIB
=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6167 $as_echo "$RANLIB" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176 ac_ct_RANLIB
=$RANLIB
6177 # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib
; ac_word
=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6184 if test -n "$ac_ct_RANLIB"; then
6185 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir
=.
6192 for ac_exec_ext
in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6207 $as_echo "$ac_ct_RANLIB" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6213 if test "x$ac_ct_RANLIB" = x
; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned
=yes ;;
6222 RANLIB
=$ac_ct_RANLIB
6225 RANLIB
="$ac_cv_prog_RANLIB"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6233 $as_echo_n "checking for ANSI C header files... " >&6; }
6234 if test "${ac_cv_header_stdc+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6252 if ac_fn_c_try_compile
"$LINENO"; then :
6253 ac_cv_header_stdc
=yes
6255 ac_cv_header_stdc
=no
6257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 if test $ac_cv_header_stdc = yes; then
6260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "memchr" >/dev
/null
2>&1; then :
6270 ac_cv_header_stdc
=no
6276 if test $ac_cv_header_stdc = yes; then
6277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "free" >/dev
/null
2>&1; then :
6287 ac_cv_header_stdc
=no
6293 if test $ac_cv_header_stdc = yes; then
6294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6295 if test "$cross_compiling" = yes; then :
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6302 #if ((' ' & 0x0FF) == 0x020)
6303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 # define ISLOWER(c) \
6307 (('a' <= (c) && (c) <= 'i') \
6308 || ('j' <= (c) && (c) <= 'r') \
6309 || ('s' <= (c) && (c) <= 'z'))
6310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6318 for (i = 0; i < 256; i++)
6319 if (XOR (islower (i), ISLOWER (i))
6320 || toupper (i) != TOUPPER (i))
6325 if ac_fn_c_try_run
"$LINENO"; then :
6328 ac_cv_header_stdc
=no
6330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6337 $as_echo "$ac_cv_header_stdc" >&6; }
6338 if test $ac_cv_header_stdc = yes; then
6340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6345 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6346 inttypes.h stdint.h unistd.h
6348 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6351 eval as_val
=\$
$as_ac_Header
6352 if test "x$as_val" = x
""yes; then :
6353 cat >>confdefs.h
<<_ACEOF
6354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6365 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6366 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6373 if test "$MINIX" = yes; then
6375 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6378 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6381 $as_echo "#define _MINIX 1" >>confdefs.h
6388 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6402 # define __EXTENSIONS__ 1
6403 $ac_includes_default
6412 if ac_fn_c_try_compile
"$LINENO"; then :
6413 ac_cv_safe_to_define___extensions__
=yes
6415 ac_cv_safe_to_define___extensions__
=no
6417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6421 test $ac_cv_safe_to_define___extensions__ = yes &&
6422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6426 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6428 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6430 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6432 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6441 # Check whether --enable-largefile was given.
6442 if test "${enable_largefile+set}" = set; then :
6443 enableval
=$enable_largefile;
6446 if test "$enable_largefile" != no
; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6449 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6450 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6453 ac_cv_sys_largefile_CC
=no
6454 if test "$GCC" != yes; then
6457 # IRIX 6.2 and later do not support large files by default,
6458 # so use the C compiler's -n32 option if that helps.
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 #include <sys/types.h>
6462 /* Check that off_t can represent 2**63 - 1 correctly.
6463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6464 since some C++ compilers masquerading as C compilers
6465 incorrectly reject 9223372036854775807. */
6466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6468 && LARGE_OFF_T % 2147483647 == 1)
6478 if ac_fn_c_try_compile
"$LINENO"; then :
6481 rm -f core conftest.err conftest.
$ac_objext
6483 if ac_fn_c_try_compile
"$LINENO"; then :
6484 ac_cv_sys_largefile_CC
=' -n32'; break
6486 rm -f core conftest.err conftest.
$ac_objext
6490 rm -f conftest.
$ac_ext
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6494 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6495 if test "$ac_cv_sys_largefile_CC" != no
; then
6496 CC
=$CC$ac_cv_sys_largefile_CC
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6500 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6501 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 #include <sys/types.h>
6508 /* Check that off_t can represent 2**63 - 1 correctly.
6509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6510 since some C++ compilers masquerading as C compilers
6511 incorrectly reject 9223372036854775807. */
6512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6514 && LARGE_OFF_T % 2147483647 == 1)
6524 if ac_fn_c_try_compile
"$LINENO"; then :
6525 ac_cv_sys_file_offset_bits
=no
; break
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 #define _FILE_OFFSET_BITS 64
6531 #include <sys/types.h>
6532 /* Check that off_t can represent 2**63 - 1 correctly.
6533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6534 since some C++ compilers masquerading as C compilers
6535 incorrectly reject 9223372036854775807. */
6536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6538 && LARGE_OFF_T % 2147483647 == 1)
6548 if ac_fn_c_try_compile
"$LINENO"; then :
6549 ac_cv_sys_file_offset_bits
=64; break
6551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 ac_cv_sys_file_offset_bits
=unknown
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6557 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6558 case $ac_cv_sys_file_offset_bits in #(
6561 cat >>confdefs.h
<<_ACEOF
6562 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6567 if test $ac_cv_sys_file_offset_bits = unknown
; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6569 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6570 if test "${ac_cv_sys_large_files+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6577 /* Check that off_t can represent 2**63 - 1 correctly.
6578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6579 since some C++ compilers masquerading as C compilers
6580 incorrectly reject 9223372036854775807. */
6581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6583 && LARGE_OFF_T % 2147483647 == 1)
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 ac_cv_sys_large_files
=no
; break
6596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #define _LARGE_FILES 1
6600 #include <sys/types.h>
6601 /* Check that off_t can represent 2**63 - 1 correctly.
6602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6603 since some C++ compilers masquerading as C compilers
6604 incorrectly reject 9223372036854775807. */
6605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6607 && LARGE_OFF_T % 2147483647 == 1)
6617 if ac_fn_c_try_compile
"$LINENO"; then :
6618 ac_cv_sys_large_files
=1; break
6620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6621 ac_cv_sys_large_files
=unknown
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6626 $as_echo "$ac_cv_sys_large_files" >&6; }
6627 case $ac_cv_sys_large_files in #(
6630 cat >>confdefs.h
<<_ACEOF
6631 #define _LARGE_FILES $ac_cv_sys_large_files
6641 case $ac_cv_prog_cc_stdc in #(
6643 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6646 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6647 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 ac_cv_prog_cc_c99
=no
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6655 #include <stdbool.h>
6660 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6661 #define debug(...) fprintf (stderr, __VA_ARGS__)
6662 #define showlist(...) puts (#__VA_ARGS__)
6663 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6665 test_varargs_macros (void)
6670 debug ("X = %d\n", x);
6671 showlist (The first, second, and third items.);
6672 report (x>y, "x is %d but y is %d", x, y);
6675 // Check long long types.
6676 #define BIG64 18446744073709551615ull
6677 #define BIG32 4294967295ul
6678 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6680 your preprocessor is broken;
6684 your preprocessor is broken;
6686 static long long int bignum = -9223372036854775807LL;
6687 static unsigned long long int ubignum = BIG64;
6689 struct incomplete_array
6697 const wchar_t *name;
6701 typedef const char *ccp;
6704 test_restrict (ccp restrict text)
6706 // See if C++-style comments work.
6707 // Iterate through items via the restricted pointer.
6708 // Also check for declarations in for loops.
6709 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6714 // Check varargs and va_copy.
6716 test_varargs (const char *format, ...)
6719 va_start (args, format);
6721 va_copy (args_copy, args);
6732 str = va_arg (args_copy, const char *);
6735 number = va_arg (args_copy, int);
6738 fnumber = va_arg (args_copy, double);
6753 _Bool success = false;
6756 if (test_restrict ("String literal") == 0)
6758 char *restrict newvar = "Another string";
6761 test_varargs ("s, d' f .", "string", 65, 34.234);
6762 test_varargs_macros ();
6764 // Check flexible array members.
6765 struct incomplete_array *ia =
6766 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6768 for (int i = 0; i < ia->datasize; ++i)
6769 ia->data[i] = i * 1.234;
6771 // Check named initializers.
6772 struct named_init ni = {
6774 .name = L"Test wide string",
6775 .average = 543.34343,
6780 int dynamic_array[ni.number];
6781 dynamic_array[ni.number - 1] = 543;
6783 // work around unused variable warnings
6784 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6785 || dynamic_array[ni.number - 1] != 543);
6791 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6793 CC
="$ac_save_CC $ac_arg"
6794 if ac_fn_c_try_compile
"$LINENO"; then :
6795 ac_cv_prog_cc_c99
=$ac_arg
6797 rm -f core conftest.err conftest.
$ac_objext
6798 test "x$ac_cv_prog_cc_c99" != "xno" && break
6800 rm -f conftest.
$ac_ext
6805 case "x$ac_cv_prog_cc_c99" in
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6808 $as_echo "none needed" >&6; } ;;
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6811 $as_echo "unsupported" >&6; } ;;
6813 CC
="$CC $ac_cv_prog_cc_c99"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6815 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6817 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6818 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6822 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6825 ac_cv_prog_cc_c89
=no
6827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <sys/stat.h>
6833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6834 struct buf { int x; };
6835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6836 static char *e (p, i)
6842 static char *f (char * (*g) (char **, int), char **p, ...)
6847 s = g (p, va_arg (v,int));
6852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6853 function prototypes and stuff, but not '\xHH' hex character constants.
6854 These don't provoke an error unfortunately, instead are silently treated
6855 as 'x'. The following induces an error, until -std is added to get
6856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6857 array size at least. It's necessary to write '\x00'==0 to get something
6858 that's true only with -std. */
6859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6862 inside strings and character constants. */
6864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6866 int test (int i, double x);
6867 struct s1 {int (*f) (int a);};
6868 struct s2 {int (*f) (double a);};
6869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6880 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6883 CC
="$ac_save_CC $ac_arg"
6884 if ac_fn_c_try_compile
"$LINENO"; then :
6885 ac_cv_prog_cc_c89
=$ac_arg
6887 rm -f core conftest.err conftest.
$ac_objext
6888 test "x$ac_cv_prog_cc_c89" != "xno" && break
6890 rm -f conftest.
$ac_ext
6895 case "x$ac_cv_prog_cc_c89" in
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6898 $as_echo "none needed" >&6; } ;;
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6901 $as_echo "unsupported" >&6; } ;;
6903 CC
="$CC $ac_cv_prog_cc_c89"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6907 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6908 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6910 ac_cv_prog_cc_stdc
=no
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6917 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6918 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6922 case $ac_cv_prog_cc_stdc in #(
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6925 $as_echo "unsupported" >&6; } ;; #(
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6928 $as_echo "none needed" >&6; } ;; #(
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6931 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6936 # Code from module alloca-opt:
6937 # Code from module allocator:
6938 # Code from module careadlinkat:
6939 # Code from module crypto/md5:
6940 # Code from module crypto/sha1:
6941 # Code from module crypto/sha256:
6942 # Code from module crypto/sha512:
6943 # Code from module dosname:
6944 # Code from module dtoastr:
6945 # Code from module dup2:
6946 # Code from module extensions:
6948 # Code from module filemode:
6949 # Code from module getloadavg:
6950 # Code from module getopt-gnu:
6951 # Code from module getopt-posix:
6952 # Code from module gettext-h:
6953 # Code from module ignore-value:
6954 # Code from module include_next:
6955 # Code from module intprops:
6956 # Code from module inttypes-incomplete:
6957 # Code from module largefile:
6959 # Code from module lstat:
6960 # Code from module mktime:
6961 # Code from module multiarch:
6962 # Code from module nocrash:
6963 # Code from module pathmax:
6964 # Code from module pthread_sigmask:
6965 # Code from module readlink:
6966 # Code from module signal-h:
6967 # Code from module sigprocmask:
6968 # Code from module snippet/_Noreturn:
6969 # Code from module snippet/arg-nonnull:
6970 # Code from module snippet/c++defs:
6971 # Code from module snippet/warn-on-use:
6972 # Code from module socklen:
6973 # Code from module ssize_t:
6974 # Code from module stat:
6975 # Code from module stdarg:
6979 # Code from module stdbool:
6980 # Code from module stddef:
6981 # Code from module stdint:
6982 # Code from module stdio:
6983 # Code from module stdlib:
6984 # Code from module strftime:
6985 # Code from module strtoimax:
6986 # Code from module strtoll:
6987 # Code from module strtoull:
6988 # Code from module strtoumax:
6989 # Code from module symlink:
6990 # Code from module sys_stat:
6991 # Code from module time:
6992 # Code from module time_r:
6993 # Code from module u64:
6994 # Code from module unistd:
6995 # Code from module verify:
6998 # On Suns, sometimes $CPP names a directory.
6999 if test -n "$CPP" && test -d "$CPP"; then
7003 ## If not using gcc, and on Solaris, and no CPP specified, see if
7004 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7005 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7006 test x
"$CPP" = x
; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7008 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7009 if test "${emacs_cv_sunpro_c+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7026 if ac_fn_c_try_link
"$LINENO"; then :
7027 emacs_cv_sunpro_c
=yes
7029 emacs_cv_sunpro_c
=no
7031 rm -f core conftest.err conftest.
$ac_objext \
7032 conftest
$ac_exeext conftest.
$ac_ext
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7036 $as_echo "$emacs_cv_sunpro_c" >&6; }
7038 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7039 NON_GNU_CPP
="$CC -E -Xs"
7043 #### Some systems specify a CPP to use unless we are using GCC.
7044 #### Now that we know whether we are using GCC, we can decide whether
7045 #### to use that one.
7046 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7051 #### Some systems specify a CC to use unless we are using GCC.
7052 #### Now that we know whether we are using GCC, we can decide whether
7053 #### to use that one.
7054 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7055 test x
$cc_specified != xyes
7060 if test x
$GCC = xyes
; then
7061 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7063 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7066 ### Use -Wdeclaration-after-statement if the compiler supports it
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7068 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7069 SAVE_CFLAGS
="$CFLAGS"
7070 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7082 if ac_fn_c_try_compile
"$LINENO"; then :
7087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7088 if test $has_option = yes; then
7089 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7092 $as_echo "$has_option" >&6; }
7093 CFLAGS
="$SAVE_CFLAGS"
7097 ### Use -Wold-style-definition if the compiler supports it
7098 # This can be removed when conversion to standard C is finished.
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7100 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7101 SAVE_CFLAGS
="$CFLAGS"
7102 CFLAGS
="$CFLAGS -Wold-style-definition"
7103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7120 if test $has_option = yes; then
7121 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7124 $as_echo "$has_option" >&6; }
7125 CFLAGS
="$SAVE_CFLAGS"
7129 ### Use -Wimplicit-function-declaration if the compiler supports it
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7131 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7132 SAVE_CFLAGS
="$CFLAGS"
7133 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7145 if ac_fn_c_try_compile
"$LINENO"; then :
7150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 if test $has_option = yes; then
7152 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7155 $as_echo "$has_option" >&6; }
7156 CFLAGS
="$SAVE_CFLAGS"
7163 #### Some other nice autoconf tests.
7166 ac_cpp
='$CPP $CPPFLAGS'
7167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7172 # On Suns, sometimes $CPP names a directory.
7173 if test -n "$CPP" && test -d "$CPP"; then
7176 if test -z "$CPP"; then
7177 if test "${ac_cv_prog_CPP+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7180 # Double quotes because CPP needs to be expanded
7181 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7184 for ac_c_preproc_warn_flag
in '' yes
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 # include <limits.h>
7197 # include <assert.h>
7201 if ac_fn_c_try_cpp
"$LINENO"; then :
7204 # Broken: fails on valid input.
7207 rm -f conftest.err conftest.
$ac_ext
7209 # OK, works on sane cases. Now check whether nonexistent headers
7210 # can be detected and how.
7211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <ac_nonexistent.h>
7215 if ac_fn_c_try_cpp
"$LINENO"; then :
7216 # Broken: success on invalid input.
7219 # Passes both tests.
7223 rm -f conftest.err conftest.
$ac_ext
7226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7227 rm -f conftest.err conftest.
$ac_ext
7228 if $ac_preproc_ok; then :
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7241 $as_echo "$CPP" >&6; }
7243 for ac_c_preproc_warn_flag
in '' yes
7245 # Use a header file that comes with gcc, so configuring glibc
7246 # with a fresh cross-compiler works.
7247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 # <limits.h> exists even on freestanding compilers.
7249 # On the NeXT, cc -E runs the code through the compiler's parser,
7250 # not just through cpp. "Syntax error" is here to catch this case.
7251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7254 # include <limits.h>
7256 # include <assert.h>
7260 if ac_fn_c_try_cpp
"$LINENO"; then :
7263 # Broken: fails on valid input.
7266 rm -f conftest.err conftest.
$ac_ext
7268 # OK, works on sane cases. Now check whether nonexistent headers
7269 # can be detected and how.
7270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <ac_nonexistent.h>
7274 if ac_fn_c_try_cpp
"$LINENO"; then :
7275 # Broken: success on invalid input.
7278 # Passes both tests.
7282 rm -f conftest.err conftest.
$ac_ext
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.err conftest.
$ac_ext
7287 if $ac_preproc_ok; then :
7290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details." "$LINENO" 5; }
7297 ac_cpp
='$CPP $CPPFLAGS'
7298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7303 if test "x$RANLIB" = x
; then
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7306 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$RANLIB"; then
7313 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir
=.
7320 for ac_exec_ext
in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 RANLIB
=$ac_cv_prog_RANLIB
7333 if test -n "$RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7335 $as_echo "$RANLIB" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB
=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib
; ac_word
=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir
=.
7360 for ac_exec_ext
in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7375 $as_echo "$ac_ct_RANLIB" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_RANLIB" = x
; then
7384 case $cross_compiling:$ac_tool_warned in
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned
=yes ;;
7390 RANLIB
=$ac_ct_RANLIB
7393 RANLIB
="$ac_cv_prog_RANLIB"
7398 ## Although we're running on an amd64 kernel, we're actually compiling for
7399 ## the x86 architecture. The user should probably have provided an
7400 ## explicit --build to `configure', but if everything else than the kernel
7401 ## is running in i386 mode, we can help them out.
7402 if test "$machine" = "amdx86-64"; then
7403 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7404 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7408 if test "$ac_cv_have_decl_i386" = "yes"; then
7409 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7411 machfile
="m/${machine}.h"
7413 ac_fn_c_check_decl
"$LINENO" "__ILP32__" "ac_cv_have_decl___ILP32__" "$ac_includes_default"
7414 if test "x$ac_cv_have_decl___ILP32__" = x
""yes; then :
7415 machfile
="m/intel386.h"
7420 # Extract the first word of "install-info", so it can be a program name with args.
7421 set dummy install-info
; ac_word
=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7427 case $INSTALL_INFO in
7429 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir
=.
7437 for ac_exec_ext
in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7451 if test -n "$INSTALL_INFO"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7453 $as_echo "$INSTALL_INFO" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7460 # Extract the first word of "install-info", so it can be a program name with args.
7461 set dummy install-info
; ac_word
=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7467 case $INSTALL_INFO in
7469 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 for as_dir
in /usr
/sbin
7476 test -z "$as_dir" && as_dir
=.
7477 for ac_exec_ext
in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7491 if test -n "$INSTALL_INFO"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7493 $as_echo "$INSTALL_INFO" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 # Extract the first word of "install-info", so it can be a program name with args.
7501 set dummy install-info
; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7507 case $INSTALL_INFO in
7509 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir
=.
7517 for ac_exec_ext
in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7531 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7532 if test -n "$INSTALL_INFO"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7534 $as_echo "$INSTALL_INFO" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 # Extract the first word of "gzip", so it can be a program name with args.
7542 set dummy
gzip; ac_word
=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7550 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir
=.
7558 for ac_exec_ext
in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7572 if test -n "$GZIP_PROG"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7574 $as_echo "$GZIP_PROG" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7583 ## Need makeinfo >= 4.6 (?) to build the manuals.
7584 # Extract the first word of "makeinfo", so it can be a program name with args.
7585 set dummy makeinfo
; ac_word
=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7593 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir
=.
7601 for ac_exec_ext
in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7615 MAKEINFO
=$ac_cv_path_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7618 $as_echo "$MAKEINFO" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7625 if test "$MAKEINFO" != "no" && \
7626 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
7630 ## Makeinfo is unusual. For a released Emacs, the manuals are
7631 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7632 ## therefore in the category of "special tools" not normally required, which
7633 ## configure does not have to check for (eg autoconf itself).
7634 ## In a Bazaar checkout on the other hand, the manuals are not included.
7635 ## So makeinfo is a requirement to build from Bazaar, and configure
7636 ## should test for it as it does for any other build requirement.
7637 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7638 ## with pre-built manuals, from a Bazaar checkout.
7641 if test "$MAKEINFO" = "no"; then
7643 if test "x${with_makeinfo}" = "xno"; then
7645 elif test ! -e $srcdir/info
/emacs
; then
7646 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7647 source tree does not seem to have pre-built manuals in the \`info' directory.
7648 Either install a suitable version of makeinfo, or re-run configure
7649 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7655 if test x
$GCC = xyes
; then
7656 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7657 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7659 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7660 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7664 late_LDFLAGS
=$LDFLAGS
7665 if test x
$GCC = xyes
; then
7666 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7668 LDFLAGS
="$LDFLAGS -znocombreloc"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7672 $as_echo_n "checking for -znocombreloc... " >&6; }
7673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7684 if ac_fn_c_try_link
"$LINENO"; then :
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7688 LDFLAGS
=$late_LDFLAGS
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7692 rm -f core conftest.err conftest.
$ac_objext \
7693 conftest
$ac_exeext conftest.
$ac_ext
7696 # The value of CPP is a quoted variable reference, so we need to do this
7697 # to get its actual value...
7698 CPP
=`eval "echo $CPP"`
7701 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7703 your-opsys-here
) CANNOT_DUMP
=yes ;;
7706 test "$CANNOT_DUMP" = "yes" && \
7708 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7714 UNEXEC_OBJ
=unexelf.o
7716 # MSDOS uses unexcoff.o
7717 # MSWindows uses unexw32.o
7719 UNEXEC_OBJ
=unexaix.o
7725 UNEXEC_OBJ
=unexmacosx.o
7728 UNEXEC_OBJ
=unexhp9k800.o
7731 # Use the Solaris dldump() function, called from unexsol.c, to dump
7732 # emacs, instead of the generic ELF dump code found in unexelf.c.
7733 # The resulting binary has a complete symbol table, and is better
7734 # for debugging and other observability tools (debuggers, pstack, etc).
7736 # If you encounter a problem using dldump(), please consider sending
7737 # a message to the OpenSolaris tools-linking mailing list:
7738 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7740 # It is likely that dldump() works with older Solaris too, but this has
7741 # not been tested, so for now this change is for Solaris 10 or newer.
7742 UNEXEC_OBJ
=unexsol.o
7749 ## Let `ld' find image libs and similar things in /usr/local/lib.
7750 ## The system compiler, GCC, has apparently been modified to not
7751 ## look there, contrary to what a stock GCC would do.
7752 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7756 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7757 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7761 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7765 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7766 ## otherwise Emacs dumps core on elf systems.
7767 LD_SWITCH_SYSTEM
="-Z"
7772 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7774 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7775 ## which has not been defined yet. When this was handled with cpp,
7776 ## it was expanded to null when configure sourced the s/*.h file.
7777 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7778 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7779 ## (or somesuch), but because it is supposed to go at the _front_
7780 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7781 ## Compare with the gnu-linux case below, which added to the end
7782 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7783 ## LD_SWITCH_SYSTEM_TEMACS.
7786 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7787 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7792 if test "$machine" = "alpha"; then
7793 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7794 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7798 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7799 ## With ELF, make sure that all common symbols get allocated to in the
7800 ## data section. Otherwise, the dump of temacs may miss variables in
7801 ## the shared library that have been initialized. For example, with
7802 ## GNU libc, __malloc_initialized would normally be resolved to the
7803 ## shared library's .bss section, which is fatal.
7804 if test "x$GCC" = "xyes"; then
7805 C_SWITCH_MACHINE
="-fno-common"
7807 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7810 UNEXEC_OBJ
=unexalpha.o
7818 ## Some programs in src produce warnings saying certain subprograms
7819 ## are too complex and need a MAXMEM value greater than 2000 for
7820 ## additional optimization. --nils@exp-math.uni-essen.de
7821 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7822 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7823 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7824 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7830 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7831 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7833 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7835 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7837 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7839 ## Motif needs -lgen.
7840 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7845 ### Make sure subsequent tests use flags consistent with the build flags.
7847 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7848 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7850 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7853 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7855 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7858 # Check whether --enable-largefile was given.
7859 if test "${enable_largefile+set}" = set; then :
7860 enableval
=$enable_largefile;
7863 if test "$enable_largefile" != no
; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7866 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7867 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7870 ac_cv_sys_largefile_CC
=no
7871 if test "$GCC" != yes; then
7874 # IRIX 6.2 and later do not support large files by default,
7875 # so use the C compiler's -n32 option if that helps.
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <sys/types.h>
7879 /* Check that off_t can represent 2**63 - 1 correctly.
7880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7881 since some C++ compilers masquerading as C compilers
7882 incorrectly reject 9223372036854775807. */
7883 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7885 && LARGE_OFF_T % 2147483647 == 1)
7895 if ac_fn_c_try_compile
"$LINENO"; then :
7898 rm -f core conftest.err conftest.
$ac_objext
7900 if ac_fn_c_try_compile
"$LINENO"; then :
7901 ac_cv_sys_largefile_CC
=' -n32'; break
7903 rm -f core conftest.err conftest.
$ac_objext
7907 rm -f conftest.
$ac_ext
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7911 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7912 if test "$ac_cv_sys_largefile_CC" != no
; then
7913 CC
=$CC$ac_cv_sys_largefile_CC
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7917 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7918 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <sys/types.h>
7925 /* Check that off_t can represent 2**63 - 1 correctly.
7926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7927 since some C++ compilers masquerading as C compilers
7928 incorrectly reject 9223372036854775807. */
7929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7931 && LARGE_OFF_T % 2147483647 == 1)
7941 if ac_fn_c_try_compile
"$LINENO"; then :
7942 ac_cv_sys_file_offset_bits
=no
; break
7944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #define _FILE_OFFSET_BITS 64
7948 #include <sys/types.h>
7949 /* Check that off_t can represent 2**63 - 1 correctly.
7950 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7951 since some C++ compilers masquerading as C compilers
7952 incorrectly reject 9223372036854775807. */
7953 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7955 && LARGE_OFF_T % 2147483647 == 1)
7965 if ac_fn_c_try_compile
"$LINENO"; then :
7966 ac_cv_sys_file_offset_bits
=64; break
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7969 ac_cv_sys_file_offset_bits
=unknown
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7974 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7975 case $ac_cv_sys_file_offset_bits in #(
7978 cat >>confdefs.h
<<_ACEOF
7979 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7984 if test $ac_cv_sys_file_offset_bits = unknown
; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7986 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7987 if test "${ac_cv_sys_large_files+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #include <sys/types.h>
7994 /* Check that off_t can represent 2**63 - 1 correctly.
7995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7996 since some C++ compilers masquerading as C compilers
7997 incorrectly reject 9223372036854775807. */
7998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8000 && LARGE_OFF_T % 2147483647 == 1)
8010 if ac_fn_c_try_compile
"$LINENO"; then :
8011 ac_cv_sys_large_files
=no
; break
8013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #define _LARGE_FILES 1
8017 #include <sys/types.h>
8018 /* Check that off_t can represent 2**63 - 1 correctly.
8019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8020 since some C++ compilers masquerading as C compilers
8021 incorrectly reject 9223372036854775807. */
8022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8024 && LARGE_OFF_T % 2147483647 == 1)
8034 if ac_fn_c_try_compile
"$LINENO"; then :
8035 ac_cv_sys_large_files
=1; break
8037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8038 ac_cv_sys_large_files
=unknown
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8043 $as_echo "$ac_cv_sys_large_files" >&6; }
8044 case $ac_cv_sys_large_files in #(
8047 cat >>confdefs.h
<<_ACEOF
8048 #define _LARGE_FILES $ac_cv_sys_large_files
8067 START_FILES
='pre-crt0.o'
8070 ## Adding -lm confuses the dynamic linker, so omit it.
8072 START_FILES
='pre-crt0.o'
8075 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8076 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8078 gnu-linux | gnu-kfreebsd
)
8079 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8080 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8082 hpux10-20 | hpux11
)
8084 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8087 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8088 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8097 for file in x
$LIB_STANDARD $START_FILES; do
8099 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8103 if test "x$crt_files" != x
; then
8105 ## If user specified a crt-dir, use that unconditionally.
8108 if test "X$CRT_DIR" = "X"; then
8110 CRT_DIR
=/usr
/lib
# default
8112 case "$canonical" in
8113 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8114 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8115 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8116 ## For anything else (eg /usr/lib32), it is up the user to specify
8117 ## the location (bug#5655).
8118 ## Test for crtn.o, not just the directory, because sometimes the
8119 ## directory exists but does not have the relevant files (bug#1287).
8120 ## FIXME better to test for binary compatibility somehow.
8121 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8124 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8128 hpux10-20
) CRT_DIR
=/lib
;;
8131 test "x${GCC}" = xyes
&& crt_gcc
=yes
8137 for file in $crt_files; do
8139 ## If we're using gcc, try to determine it automatically by asking
8140 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8141 ## system-dependent default from above.]
8142 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8144 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8147 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8176 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8179 test "x$crt_missing" = x || \
8180 as_fn_error
"Required file(s) not found:$crt_missing
8181 Try using the --with-crt-dir option." "$LINENO" 5
8183 fi # crt_files != ""
8189 if test -f $CRT_DIR/crti.o
; then
8191 test -f $CRT_DIR/crtn.o || \
8192 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8194 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8195 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8204 if test "${with_sound}" != "no"; then
8205 # Sound support for GNU/Linux and the free BSDs.
8206 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8208 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8209 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8210 eval as_val
=\$
$as_ac_Header
8211 if test "x$as_val" = x
""yes; then :
8212 cat >>confdefs.h
<<_ACEOF
8213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8215 have_sound_header
=yes
8220 # Emulation library used on NetBSD.
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8222 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8223 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 ac_check_lib_save_LIBS
=$LIBS
8227 LIBS
="-lossaudio $LIBS"
8228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 /* Override any GCC internal prototype to avoid an error.
8232 Use char because int might match the return type of a GCC
8233 builtin and then its argument prototype would still apply. */
8241 return _oss_ioctl ();
8246 if ac_fn_c_try_link
"$LINENO"; then :
8247 ac_cv_lib_ossaudio__oss_ioctl
=yes
8249 ac_cv_lib_ossaudio__oss_ioctl
=no
8251 rm -f core conftest.err conftest.
$ac_objext \
8252 conftest
$ac_exeext conftest.
$ac_ext
8253 LIBS
=$ac_check_lib_save_LIBS
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8256 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8257 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8266 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8270 # Extract the first word of "pkg-config", so it can be a program name with args.
8271 set dummy pkg-config
; ac_word
=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8279 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir
=.
8287 for ac_exec_ext
in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8301 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8302 if test -n "$PKG_CONFIG"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8304 $as_echo "$PKG_CONFIG" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8312 if test "$PKG_CONFIG" = "no" ; then
8315 PKG_CONFIG_MIN_VERSION
=0.9.0
8316 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8318 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8320 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8326 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8327 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8329 $as_echo "$ALSA_CFLAGS" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8332 $as_echo_n "checking ALSA_LIBS... " >&6; }
8333 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8335 $as_echo "$ALSA_LIBS" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8341 ## If we have a custom action on failure, don't print errors, but
8342 ## do set a variable so people can do so.
8343 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8355 if test $succeeded = yes; then
8361 if test $HAVE_ALSA = yes; then
8362 SAVE_CFLAGS
="$CFLAGS"
8364 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8365 LIBS
="$ALSA_LIBS $LIBS"
8366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 #include <asoundlib.h>
8372 snd_lib_error_set_handler (0);
8377 if ac_fn_c_try_compile
"$LINENO"; then :
8378 emacs_alsa_normal
=yes
8380 emacs_alsa_normal
=no
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8383 if test "$emacs_alsa_normal" != yes; then
8384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <alsa/asoundlib.h>
8390 snd_lib_error_set_handler (0);
8395 if ac_fn_c_try_compile
"$LINENO"; then :
8396 emacs_alsa_subdir
=yes
8398 emacs_alsa_subdir
=no
8400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8401 if test "$emacs_alsa_subdir" != yes; then
8402 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8404 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8407 CFLAGS
="$SAVE_CFLAGS"
8409 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8410 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8412 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8416 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8418 gnu-linux|freebsd|netbsd
)
8420 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8429 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8430 linux
/version.h sys
/systeminfo.h \
8431 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8432 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8433 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8435 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8437 eval as_val
=\$
$as_ac_Header
8438 if test "x$as_val" = x
""yes; then :
8439 cat >>confdefs.h
<<_ACEOF
8440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8449 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/personality.h>
8456 personality (PER_LINUX32)
8461 if ac_fn_c_try_compile
"$LINENO"; then :
8462 emacs_cv_personality_linux32
=yes
8464 emacs_cv_personality_linux32
=no
8466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8468 $as_echo "$emacs_cv_personality_linux32" >&6; }
8470 if test $emacs_cv_personality_linux32 = yes; then
8472 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8476 for ac_header
in term.h
8478 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8479 if test "x$ac_cv_header_term_h" = x
""yes; then :
8480 cat >>confdefs.h
<<_ACEOF
8481 #define HAVE_TERM_H 1
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8489 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8490 if test "${ac_cv_header_time+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <sys/types.h>
8496 #include <sys/time.h>
8502 if ((struct tm *) 0)
8508 if ac_fn_c_try_compile
"$LINENO"; then :
8509 ac_cv_header_time
=yes
8511 ac_cv_header_time
=no
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8516 $as_echo "$ac_cv_header_time" >&6; }
8517 if test $ac_cv_header_time = yes; then
8519 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8523 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8524 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8530 cat >>confdefs.h
<<_ACEOF
8531 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8534 if test $ac_cv_have_decl_sys_siglist != yes; then
8535 # For Tru64, at least:
8536 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8537 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8543 cat >>confdefs.h
<<_ACEOF
8544 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8547 if test $ac_cv_have_decl___sys_siglist = yes; then
8549 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8554 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8555 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <sys/types.h>
8561 #include <sys/wait.h>
8563 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8566 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8574 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8579 if ac_fn_c_try_compile
"$LINENO"; then :
8580 ac_cv_header_sys_wait_h
=yes
8582 ac_cv_header_sys_wait_h
=no
8584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8587 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8588 if test $ac_cv_header_sys_wait_h = yes; then
8590 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8596 $as_echo_n "checking for struct utimbuf... " >&6; }
8597 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #ifdef TIME_WITH_SYS_TIME
8603 #include <sys/time.h>
8606 #ifdef HAVE_SYS_TIME_H
8607 #include <sys/time.h>
8618 static struct utimbuf x; x.actime = x.modtime;
8623 if ac_fn_c_try_compile
"$LINENO"; then :
8624 emacs_cv_struct_utimbuf
=yes
8626 emacs_cv_struct_utimbuf
=no
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8631 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8632 if test $emacs_cv_struct_utimbuf = yes; then
8634 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8639 $as_echo_n "checking for speed_t... " >&6; }
8640 if test "${emacs_cv_speed_t+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <termios.h>
8654 if ac_fn_c_try_compile
"$LINENO"; then :
8655 emacs_cv_speed_t
=yes
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8662 $as_echo "$emacs_cv_speed_t" >&6; }
8663 if test $emacs_cv_speed_t = yes; then
8665 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8670 $as_echo_n "checking for struct timeval... " >&6; }
8671 if test "${emacs_cv_struct_timeval+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #ifdef TIME_WITH_SYS_TIME
8677 #include <sys/time.h>
8680 #ifdef HAVE_SYS_TIME_H
8681 #include <sys/time.h>
8689 static struct timeval x; x.tv_sec = x.tv_usec;
8694 if ac_fn_c_try_compile
"$LINENO"; then :
8695 emacs_cv_struct_timeval
=yes
8697 emacs_cv_struct_timeval
=no
8699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8702 $as_echo "$emacs_cv_struct_timeval" >&6; }
8703 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8704 if test $emacs_cv_struct_timeval = yes; then
8706 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8711 $as_echo_n "checking for struct exception... " >&6; }
8712 if test "${emacs_cv_struct_exception+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8721 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8726 if ac_fn_c_try_compile
"$LINENO"; then :
8727 emacs_cv_struct_exception
=yes
8729 emacs_cv_struct_exception
=no
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8734 $as_echo "$emacs_cv_struct_exception" >&6; }
8735 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8736 if test $emacs_cv_struct_exception != yes; then
8738 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8742 for ac_header
in sys
/socket.h
8744 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8745 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8746 cat >>confdefs.h
<<_ACEOF
8747 #define HAVE_SYS_SOCKET_H 1
8754 for ac_header
in net
/if.h
8756 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8761 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8762 cat >>confdefs.h
<<_ACEOF
8763 #define HAVE_NET_IF_H 1
8770 for ac_header
in ifaddrs.h
8772 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8773 #if HAVE_SYS_SOCKET_H
8774 #include <sys/socket.h>
8777 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8778 cat >>confdefs.h
<<_ACEOF
8779 #define HAVE_IFADDRS_H 1
8786 for ac_header
in net
/if_dl.h
8788 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8789 #if HAVE_SYS_SOCKET_H
8790 #include <sys/socket.h>
8793 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8794 cat >>confdefs.h
<<_ACEOF
8795 #define HAVE_NET_IF_DL_H 1
8802 for ac_func
in getifaddrs freeifaddrs
8804 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8805 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8806 eval as_val
=\$
$as_ac_var
8807 if test "x$as_val" = x
""yes; then :
8808 cat >>confdefs.h
<<_ACEOF
8809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8817 #if HAVE_SYS_SOCKET_H
8818 #include <sys/socket.h>
8824 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8826 cat >>confdefs.h
<<_ACEOF
8827 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8832 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8833 #if HAVE_SYS_SOCKET_H
8834 #include <sys/socket.h>
8840 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8842 cat >>confdefs.h
<<_ACEOF
8843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8848 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8849 #if HAVE_SYS_SOCKET_H
8850 #include <sys/socket.h>
8856 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8858 cat >>confdefs.h
<<_ACEOF
8859 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8864 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8865 #if HAVE_SYS_SOCKET_H
8866 #include <sys/socket.h>
8872 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8874 cat >>confdefs.h
<<_ACEOF
8875 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8880 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8881 #if HAVE_SYS_SOCKET_H
8882 #include <sys/socket.h>
8888 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8890 cat >>confdefs.h
<<_ACEOF
8891 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8896 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8904 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8906 cat >>confdefs.h
<<_ACEOF
8907 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8916 $as_echo_n "checking for function prototypes... " >&6; }
8917 if test "$ac_cv_prog_cc_c89" != no
; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8919 $as_echo "yes" >&6; }
8921 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8924 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8932 $as_echo_n "checking for working volatile... " >&6; }
8933 if test "${ac_cv_c_volatile+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8944 int * volatile y = (int *) 0;
8950 if ac_fn_c_try_compile
"$LINENO"; then :
8951 ac_cv_c_volatile
=yes
8955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8958 $as_echo "$ac_cv_c_volatile" >&6; }
8959 if test $ac_cv_c_volatile = no
; then
8961 $as_echo "#define volatile /**/" >>confdefs.h
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8966 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8967 if test "${ac_cv_c_const+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8976 /* FIXME: Include the comments suggested by Paul. */
8978 /* Ultrix mips cc rejects this. */
8979 typedef int charset[2];
8981 /* SunOS 4.1.1 cc rejects this. */
8982 char const *const *pcpcc;
8984 /* NEC SVR4.0.2 mips cc rejects this. */
8985 struct point {int x, y;};
8986 static struct point const zero = {0,0};
8987 /* AIX XL C 1.02.0.0 rejects this.
8988 It does not let you subtract one const X* pointer from another in
8989 an arm of an if-expression whose if-part is not a constant
8991 const char *g = "string";
8992 pcpcc = &g + (g ? g-g : 0);
8993 /* HPUX 7.0 cc rejects these. */
8995 ppc = (char**) pcpcc;
8996 pcpcc = (char const *const *) ppc;
8997 { /* SCO 3.2v4 cc rejects this. */
8999 char const *s = 0 ? (char *) 0 : (char const *) 0;
9004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9006 const int *foo = &x[0];
9009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9010 typedef const int *iptr;
9014 { /* AIX XL C 1.02.0.0 rejects this saying
9015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9016 struct s { int j; const int *ap[3]; };
9017 struct s *b; b->j = 5;
9019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9023 return !cs[0] && !zero.x;
9030 if ac_fn_c_try_compile
"$LINENO"; then :
9035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9038 $as_echo "$ac_cv_c_const" >&6; }
9039 if test $ac_cv_c_const = no
; then
9041 $as_echo "#define const /**/" >>confdefs.h
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9046 $as_echo_n "checking for void * support... " >&6; }
9047 if test "${emacs_cv_void_star+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9061 if ac_fn_c_try_compile
"$LINENO"; then :
9062 emacs_cv_void_star
=yes
9064 emacs_cv_void_star
=no
9066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9069 $as_echo "$emacs_cv_void_star" >&6; }
9070 if test $emacs_cv_void_star = yes; then
9071 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9074 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9079 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9080 if test "${ac_cv_c_bigendian+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9083 ac_cv_c_bigendian
=unknown
9084 # See if we're dealing with a universal compiler.
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #ifndef __APPLE_CC__
9088 not a universal capable compiler
9093 if ac_fn_c_try_compile
"$LINENO"; then :
9095 # Check for potential -arch flags. It is not universal unless
9096 # there are at least two -arch flags with different values.
9099 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9100 if test -n "$ac_prev"; then
9102 i?
86 | x86_64 | ppc | ppc64
)
9103 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9106 ac_cv_c_bigendian
=universal
9112 elif test "x$ac_word" = "x-arch"; then
9117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9118 if test $ac_cv_c_bigendian = unknown
; then
9119 # See if sys/param.h defines the BYTE_ORDER macro.
9120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 #include <sys/types.h>
9123 #include <sys/param.h>
9128 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9129 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9138 if ac_fn_c_try_compile
"$LINENO"; then :
9139 # It does; now see whether it defined to BIG_ENDIAN or not.
9140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 #include <sys/types.h>
9143 #include <sys/param.h>
9148 #if BYTE_ORDER != BIG_ENDIAN
9156 if ac_fn_c_try_compile
"$LINENO"; then :
9157 ac_cv_c_bigendian
=yes
9159 ac_cv_c_bigendian
=no
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9165 if test $ac_cv_c_bigendian = unknown
; then
9166 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9174 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9182 if ac_fn_c_try_compile
"$LINENO"; then :
9183 # It does; now see whether it defined to _BIG_ENDIAN or not.
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9199 if ac_fn_c_try_compile
"$LINENO"; then :
9200 ac_cv_c_bigendian
=yes
9202 ac_cv_c_bigendian
=no
9204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9208 if test $ac_cv_c_bigendian = unknown
; then
9209 # Compile a test program.
9210 if test "$cross_compiling" = yes; then :
9211 # Try to guess by grepping values from an object file.
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 short int ascii_mm[] =
9215 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9216 short int ascii_ii[] =
9217 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9218 int use_ascii (int i) {
9219 return ascii_mm[i] + ascii_ii[i];
9221 short int ebcdic_ii[] =
9222 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9223 short int ebcdic_mm[] =
9224 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9225 int use_ebcdic (int i) {
9226 return ebcdic_mm[i] + ebcdic_ii[i];
9233 return use_ascii (foo) == use_ebcdic (foo);
9238 if ac_fn_c_try_compile
"$LINENO"; then :
9239 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9240 ac_cv_c_bigendian
=yes
9242 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9243 if test "$ac_cv_c_bigendian" = unknown
; then
9244 ac_cv_c_bigendian
=no
9246 # finding both strings is unlikely to happen, but who knows?
9247 ac_cv_c_bigendian
=unknown
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 $ac_includes_default
9260 /* Are we little or big endian? From Harbison&Steele. */
9264 char c[sizeof (long int)];
9267 return u.c[sizeof (long int) - 1] == 1;
9273 if ac_fn_c_try_run
"$LINENO"; then :
9274 ac_cv_c_bigendian
=no
9276 ac_cv_c_bigendian
=yes
9278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9285 $as_echo "$ac_cv_c_bigendian" >&6; }
9286 case $ac_cv_c_bigendian in #(
9288 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9294 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9298 as_fn_error
"unknown endianness
9299 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9304 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9305 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 char __attribute__ ((__aligned__ (1 << 3))) c;
9319 if ac_fn_c_try_compile
"$LINENO"; then :
9320 emacs_cv_attribute_aligned
=yes
9322 emacs_cv_attribute_aligned
=no
9324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9327 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9328 if test $emacs_cv_attribute_aligned = yes; then
9330 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9335 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9337 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9338 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9339 $as_echo_n "(cached) " >&6
9341 cat >conftest.
make <<\_ACEOF
9344 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9346 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9347 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9349 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9351 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9355 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9357 $as_echo "yes" >&6; }
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 SET_MAKE
="MAKE=${MAKE-make}"
9369 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9371 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9373 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9374 if test "x$testval" != x
; then
9377 ac_enable_autodepend
=no
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9380 $as_echo "$HAVE_GNU_MAKE" >&6; }
9381 if test $HAVE_GNU_MAKE = yes; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9383 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9384 SAVE_CFLAGS
="$CFLAGS"
9385 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9397 if ac_fn_c_try_compile
"$LINENO"; then :
9400 ac_enable_autodepend
=no
9402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9403 CFLAGS
="$SAVE_CFLAGS"
9404 test -f deps.d || ac_enable_autodepend
=no
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9407 $as_echo "$ac_enable_autodepend" >&6; }
9409 if test $ac_enable_autodepend = yes; then
9410 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9411 ## In parallel builds, another make might create depdir between
9412 ## the first test and mkdir, so stick another test on the end.
9413 ## Or use install-sh -d? mkdir -p is not portable.
9414 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9415 deps_frag
=autodeps.mk
9418 deps_frag
=$srcdir/src
/$deps_frag
9424 lisp_frag
=$srcdir/src
/lisp.mk
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9429 $as_echo_n "checking for long file names... " >&6; }
9430 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9433 ac_cv_sys_long_file_names
=yes
9434 # Test for long file names in all the places we know might matter:
9435 # . the current directory, where building will happen
9436 # $prefix/lib where we will be installing things
9437 # $exec_prefix/lib likewise
9438 # $TMPDIR if set, where it might want to write temporary files
9439 # /tmp where it might want to write temporary files
9442 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9443 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9444 # in the usual case where exec_prefix is '${prefix}'.
9446 . |
/* | ?
:[\\/]*) ;; #(
9449 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9450 ac_xdir
=$ac_dir/cf$$
9451 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9452 ac_tf1
=$ac_xdir/conftest9012345
9453 ac_tf2
=$ac_xdir/conftest9012346
9454 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9455 ac_cv_sys_long_file_names
=no
9456 rm -f -r "$ac_xdir" 2>/dev
/null
9457 test $ac_cv_sys_long_file_names = no
&& break
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9461 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9462 if test $ac_cv_sys_long_file_names = yes; then
9464 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9469 #### Choose a window system.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9472 $as_echo_n "checking for X... " >&6; }
9475 # Check whether --with-x was given.
9476 if test "${with_x+set}" = set; then :
9480 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9481 if test "x$with_x" = xno
; then
9482 # The user explicitly disabled X.
9485 case $x_includes,$x_libraries in #(
9486 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9487 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9490 # One or both of the vars are not set, and there is no cached value.
9491 ac_x_includes
=no ac_x_libraries
=no
9492 rm -f -r conftest.dir
9493 if mkdir conftest.dir
; then
9495 cat >Imakefile
<<'_ACEOF'
9497 @echo incroot='${INCROOT}'
9499 @echo usrlibdir='${USRLIBDIR}'
9501 @echo libdir='${LIBDIR}'
9503 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9505 for ac_var
in incroot usrlibdir libdir
; do
9506 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9508 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9509 for ac_extension
in a so sl dylib la dll
; do
9510 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9511 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9512 ac_im_usrlibdir
=$ac_im_libdir; break
9515 # Screen out bogus values from the imake configuration. They are
9516 # bogus both because they are the default anyway, and because
9517 # using them would break gcc on systems where it needs fixed includes.
9518 case $ac_im_incroot in
9519 /usr
/include
) ac_x_includes
= ;;
9520 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9522 case $ac_im_usrlibdir in
9523 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9524 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9528 rm -f -r conftest.dir
9531 # Standard set of common directories for X headers.
9532 # Check X11 before X11Rn because it is often a symlink to the current release.
9546 /usr/local/X11/include
9547 /usr/local/X11R7/include
9548 /usr/local/X11R6/include
9549 /usr/local/X11R5/include
9550 /usr/local/X11R4/include
9552 /usr/local/include/X11
9553 /usr/local/include/X11R7
9554 /usr/local/include/X11R6
9555 /usr/local/include/X11R5
9556 /usr/local/include/X11R4
9560 /usr/XFree86/include/X11
9564 /usr/unsupported/include
9566 /usr/local/x11r5/include
9567 /usr/lpp/Xamples/include
9569 /usr/openwin/include
9570 /usr/openwin/share/include'
9572 if test "$ac_x_includes" = no
; then
9573 # Guess where to find include files, by looking for Xlib.h.
9574 # First, try using that file with no special directory specified.
9575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 #include <X11/Xlib.h>
9579 if ac_fn_c_try_cpp
"$LINENO"; then :
9580 # We can compile using X headers with no special include directory.
9583 for ac_dir
in $ac_x_header_dirs; do
9584 if test -r "$ac_dir/X11/Xlib.h"; then
9585 ac_x_includes
=$ac_dir
9590 rm -f conftest.err conftest.
$ac_ext
9591 fi # $ac_x_includes = no
9593 if test "$ac_x_libraries" = no
; then
9594 # Check for the libraries.
9595 # See if we find them without any special options.
9596 # Don't add to $LIBS permanently.
9599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 #include <X11/Xlib.h>
9610 if ac_fn_c_try_link
"$LINENO"; then :
9612 # We can link X programs with no special library path.
9616 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9618 # Don't even attempt the hair of trying to link an X program!
9619 for ac_extension
in a so sl dylib la dll
; do
9620 if test -r "$ac_dir/libX11.$ac_extension"; then
9621 ac_x_libraries
=$ac_dir
9627 rm -f core conftest.err conftest.
$ac_objext \
9628 conftest
$ac_exeext conftest.
$ac_ext
9629 fi # $ac_x_libraries = no
9631 case $ac_x_includes,$ac_x_libraries in #(
9633 # Didn't find X, or a directory has "'" in its name.
9634 ac_cv_have_x
="have_x=no";; #(
9636 # Record where we found X for the cache.
9637 ac_cv_have_x
="have_x=yes\
9638 ac_x_includes='$ac_x_includes'\
9639 ac_x_libraries='$ac_x_libraries'"
9645 eval "$ac_cv_have_x"
9648 if test "$have_x" != yes; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9650 $as_echo "$have_x" >&6; }
9653 # If each of the values was on the command line, it overrides each guess.
9654 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9655 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9656 # Update the cache value to reflect the command line values.
9657 ac_cv_have_x
="have_x=yes\
9658 ac_x_includes='$x_includes'\
9659 ac_x_libraries='$x_libraries'"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9661 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9664 if test "$no_x" = yes; then
9670 ## Workaround for bug in autoconf <= 2.62.
9671 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9672 ## No need to do anything special for these standard directories.
9673 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9675 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9679 LD_SWITCH_X_SITE_AUX
=
9680 LD_SWITCH_X_SITE_AUX_RPATH
=
9681 if test "${x_libraries}" != NONE
; then
9682 if test -n "${x_libraries}"; then
9683 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9684 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9685 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9687 x_default_search_path
=""
9688 x_search_path
=${x_libraries}
9689 if test -z "${x_search_path}"; then
9690 x_search_path
=/usr
/lib
9692 for x_library
in `echo ${x_search_path}: | \
9693 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9695 ${x_library}/X11/%L/%T/%N%C%S:\
9696 ${x_library}/X11/%l/%T/%N%C%S:\
9697 ${x_library}/X11/%T/%N%C%S:\
9698 ${x_library}/X11/%L/%T/%N%S:\
9699 ${x_library}/X11/%l/%T/%N%S:\
9700 ${x_library}/X11/%T/%N%S"
9701 if test x
"${x_default_search_path}" = x
; then
9702 x_default_search_path
=${x_search_path}
9704 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9711 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9712 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9715 if test x
"${x_includes}" = x
; then
9716 bitmapdir
=/usr
/include
/X11
/bitmaps
9718 # accumulate include directories that have X11 bitmap subdirectories
9720 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9721 if test -d "${bmd}/X11/bitmaps"; then
9722 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9724 if test -d "${bmd}/bitmaps"; then
9725 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9728 if test ${bmd_acc} != "dummyval"; then
9729 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9736 tmp_CPPFLAGS
="$CPPFLAGS"
9737 tmp_CFLAGS
="$CFLAGS"
9738 CPPFLAGS
="$CPPFLAGS -x objective-c"
9739 CFLAGS
="$CFLAGS -x objective-c"
9740 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9742 if test "${with_ns}" != no
; then
9743 if test "${opsys}" = darwin
; then
9745 ns_appdir
=`pwd`/nextstep
/Emacs.app
9746 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9747 ns_appresdir
=${ns_appdir}/Contents
/Resources
9748 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9749 elif test -f $GNUSTEP_CONFIG_FILE; then
9751 ns_appdir
=`pwd`/nextstep
/Emacs.app
9752 ns_appbindir
=${ns_appdir}/
9753 ns_appresdir
=${ns_appdir}/Resources
9754 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9755 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9756 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9757 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9758 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9759 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9760 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9761 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9762 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9763 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9764 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9765 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9770 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9771 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <GNUstepBase/GSConfig.h>
9780 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9789 if ac_fn_c_try_compile
"$LINENO"; then :
9790 emacs_cv_objc_exceptions
=yes
9792 emacs_cv_objc_exceptions
=no
9794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9797 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9798 if test $emacs_cv_objc_exceptions = yes; then
9800 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9802 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9806 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9808 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9812 as_fn_error
"\`--with-ns' was specified, but the include
9813 files are missing or cannot be compiled." "$LINENO" 5
9817 NS_HAVE_NSINTEGER
=yes
9818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <Foundation/NSObjCRuntime.h>
9829 if ac_fn_c_try_compile
"$LINENO"; then :
9830 ns_have_nsinteger
=yes
9832 ns_have_nsinteger
=no
9834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9835 if test $ns_have_nsinteger = no
; then
9836 NS_HAVE_NSINTEGER
=no
9844 if test "${HAVE_NS}" = yes; then
9845 if test "$with_toolkit_scroll_bars" = "no"; then
9846 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9849 window_system
=nextstep
9851 # set up packaging dirs
9852 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9853 prefix
=${ns_appresdir}
9854 exec_prefix
=${ns_appbindir}
9855 libexecdir
=${ns_appbindir}/libexec
9857 ns_frag
=$srcdir/src
/ns.mk
9858 NS_OBJ
="fontset.o fringe.o image.o"
9859 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9861 CFLAGS
="$tmp_CFLAGS"
9862 CPPFLAGS
="$tmp_CPPFLAGS"
9868 case "${window_system}" in
9872 case "${with_x_toolkit}" in
9873 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9874 motif
) USE_X_TOOLKIT
=MOTIF
;;
9876 USE_X_TOOLKIT
=none
;;
9877 gtk3
) with_gtk3
=yes
9878 USE_X_TOOLKIT
=none
;;
9879 no
) USE_X_TOOLKIT
=none
;;
9880 * ) USE_X_TOOLKIT
=maybe
;;
9890 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9891 # Extract the first word of "X", so it can be a program name with args.
9892 set dummy X
; ac_word
=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9898 if test -n "$HAVE_XSERVER"; then
9899 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9905 test -z "$as_dir" && as_dir
=.
9906 for ac_exec_ext
in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_prog_HAVE_XSERVER
="true"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9919 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9920 if test -n "$HAVE_XSERVER"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9922 $as_echo "$HAVE_XSERVER" >&6; }
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 if test "$HAVE_XSERVER" = true ||
9930 test -n "$DISPLAY" ||
9931 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9932 as_fn_error
"You seem to be running X, but no X development libraries
9933 were found. You should install the relevant development files for X
9934 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9935 sure you have development files for image handling, i.e.
9936 tiff, gif, jpeg, png and xpm.
9937 If you are sure you want Emacs compiled without X window support, pass
9939 to configure." "$LINENO" 5
9943 ### If we're using X11, we should use the X menu package.
9946 yes ) HAVE_MENUS
=yes ;;
9949 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9950 # Assume not, until told otherwise.
9953 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9954 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9960 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9961 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9968 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9969 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974 extern void (* __after_morecore_hook)();
9978 __after_morecore_hook = 0
9983 if ac_fn_c_try_link
"$LINENO"; then :
9984 emacs_cv_var___after_morecore_hook
=yes
9986 emacs_cv_var___after_morecore_hook
=no
9988 rm -f core conftest.err conftest.
$ac_objext \
9989 conftest
$ac_exeext conftest.
$ac_ext
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9992 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9993 if test $emacs_cv_var___after_morecore_hook = no
; then
10000 ## darwin ld insists on the use of malloc routines in the System framework.
10001 darwin|sol2-10
) system_malloc
=yes ;;
10004 if test "${system_malloc}" = "yes"; then
10006 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10009 GNU_MALLOC_reason
="
10010 (The GNU allocators don't work with this system configuration.)"
10014 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10015 VMLIMIT_OBJ
=vm-limit.o
10020 if test "$doug_lea_malloc" = "yes" ; then
10021 if test "$GNU_MALLOC" = yes ; then
10022 GNU_MALLOC_reason
="
10023 (Using Doug Lea's new malloc from the GNU C Library.)"
10026 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10029 ## Use mmap directly for allocating larger buffers.
10030 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10031 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10032 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10034 gnu
*) REL_ALLOC
=no
;;
10038 if test x
"${REL_ALLOC}" = x
; then
10039 REL_ALLOC
=${GNU_MALLOC}
10042 use_mmap_for_buffers
=no
10044 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10050 for ac_header
in $ac_header_list
10052 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10055 eval as_val
=\$
$as_ac_Header
10056 if test "x$as_val" = x
""yes; then :
10057 cat >>confdefs.h
<<_ACEOF
10058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 for ac_func
in getpagesize
10074 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10075 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10076 cat >>confdefs.h
<<_ACEOF
10077 #define HAVE_GETPAGESIZE 1
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10084 $as_echo_n "checking for working mmap... " >&6; }
10085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10088 if test "$cross_compiling" = yes; then :
10089 ac_cv_func_mmap_fixed_mapped
=no
10091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 /* malloc might have been renamed as rpl_malloc. */
10097 /* Thanks to Mike Haertel and Jim Avera for this test.
10098 Here is a matrix of mmap possibilities:
10099 mmap private not fixed
10100 mmap private fixed at somewhere currently unmapped
10101 mmap private fixed at somewhere already mapped
10102 mmap shared not fixed
10103 mmap shared fixed at somewhere currently unmapped
10104 mmap shared fixed at somewhere already mapped
10105 For private mappings, we should verify that changes cannot be read()
10106 back from the file, nor mmap's back from the file at a different
10107 address. (There have been systems where private was not correctly
10108 implemented like the infamous i386 svr4.0, and systems where the
10109 VM page cache was not coherent with the file system buffer cache
10110 like early versions of FreeBSD and possibly contemporary NetBSD.)
10111 For shared mappings, we should conversely verify that changes get
10112 propagated back to all the places they're supposed to be.
10114 Grep wants private fixed already mapped.
10115 The main things grep needs to know about mmap are:
10116 * does it exist and is it safe to write into the mmap'd area
10117 * how to use it (BSD variants) */
10120 #include <sys/mman.h>
10122 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10126 /* This mess was copied from the GNU getpagesize.h. */
10127 #ifndef HAVE_GETPAGESIZE
10128 # ifdef _SC_PAGESIZE
10129 # define getpagesize() sysconf(_SC_PAGESIZE)
10130 # else /* no _SC_PAGESIZE */
10131 # ifdef HAVE_SYS_PARAM_H
10132 # include <sys/param.h>
10133 # ifdef EXEC_PAGESIZE
10134 # define getpagesize() EXEC_PAGESIZE
10135 # else /* no EXEC_PAGESIZE */
10137 # define getpagesize() NBPG * CLSIZE
10140 # endif /* no CLSIZE */
10141 # else /* no NBPG */
10143 # define getpagesize() NBPC
10144 # else /* no NBPC */
10146 # define getpagesize() PAGESIZE
10147 # endif /* PAGESIZE */
10148 # endif /* no NBPC */
10149 # endif /* no NBPG */
10150 # endif /* no EXEC_PAGESIZE */
10151 # else /* no HAVE_SYS_PARAM_H */
10152 # define getpagesize() 8192 /* punt totally */
10153 # endif /* no HAVE_SYS_PARAM_H */
10154 # endif /* no _SC_PAGESIZE */
10156 #endif /* no HAVE_GETPAGESIZE */
10161 char *data, *data2, *data3;
10162 const char *cdata2;
10166 pagesize = getpagesize ();
10168 /* First, make a file with some known garbage in it. */
10169 data = (char *) malloc (pagesize);
10172 for (i = 0; i < pagesize; ++i)
10173 *(data + i) = rand ();
10175 fd = creat ("conftest.mmap", 0600);
10178 if (write (fd, data, pagesize) != pagesize)
10182 /* Next, check that the tail of a page is zero-filled. File must have
10183 non-zero length, otherwise we risk SIGBUS for entire page. */
10184 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10188 if (write (fd2, cdata2, 1) != 1)
10190 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10191 if (data2 == MAP_FAILED)
10193 for (i = 0; i < pagesize; ++i)
10197 if (munmap (data2, pagesize))
10200 /* Next, try to mmap the file at a fixed address which already has
10201 something else allocated at it. If we can, also make sure that
10202 we see the same garbage. */
10203 fd = open ("conftest.mmap", O_RDWR);
10206 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10207 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10209 for (i = 0; i < pagesize; ++i)
10210 if (*(data + i) != *(data2 + i))
10213 /* Finally, make sure that changes to the mapped area do not
10214 percolate back to the file as seen by read(). (This is a bug on
10215 some variants of i386 svr4.0.) */
10216 for (i = 0; i < pagesize; ++i)
10217 *(data2 + i) = *(data2 + i) + 1;
10218 data3 = (char *) malloc (pagesize);
10221 if (read (fd, data3, pagesize) != pagesize)
10223 for (i = 0; i < pagesize; ++i)
10224 if (*(data + i) != *(data3 + i))
10230 if ac_fn_c_try_run
"$LINENO"; then :
10231 ac_cv_func_mmap_fixed_mapped
=yes
10233 ac_cv_func_mmap_fixed_mapped
=no
10235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10241 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10242 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10244 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10247 rm -f conftest.mmap conftest.txt
10249 if test $use_mmap_for_buffers = yes; then
10251 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10256 LIBS
="$LIBS_SYSTEM $LIBS"
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10259 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10260 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10263 ac_check_lib_save_LIBS
=$LIBS
10264 LIBS
="-ldnet $LIBS"
10265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10278 return dnet_ntoa ();
10283 if ac_fn_c_try_link
"$LINENO"; then :
10284 ac_cv_lib_dnet_dnet_ntoa
=yes
10286 ac_cv_lib_dnet_dnet_ntoa
=no
10288 rm -f core conftest.err conftest.
$ac_objext \
10289 conftest
$ac_exeext conftest.
$ac_ext
10290 LIBS
=$ac_check_lib_save_LIBS
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10293 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10294 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10295 cat >>confdefs.h
<<_ACEOF
10296 #define HAVE_LIBDNET 1
10299 LIBS
="-ldnet $LIBS"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10305 $as_echo_n "checking for main in -lXbsd... " >&6; }
10306 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10309 ac_check_lib_save_LIBS
=$LIBS
10310 LIBS
="-lXbsd $LIBS"
10311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10323 if ac_fn_c_try_link
"$LINENO"; then :
10324 ac_cv_lib_Xbsd_main
=yes
10326 ac_cv_lib_Xbsd_main
=no
10328 rm -f core conftest.err conftest.
$ac_objext \
10329 conftest
$ac_exeext conftest.
$ac_ext
10330 LIBS
=$ac_check_lib_save_LIBS
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10333 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10334 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10335 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10340 for ac_header
in pthread.h
10342 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10343 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10344 cat >>confdefs.h
<<_ACEOF
10345 #define HAVE_PTHREAD_H 1
10352 if test "$ac_cv_header_pthread_h"; then
10353 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10354 emacs_pthread_function
=pthread_atfork
10356 emacs_pthread_function
=pthread_self
10358 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10360 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10361 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10362 $as_echo_n "(cached) " >&6
10364 ac_check_lib_save_LIBS
=$LIBS
10365 LIBS
="-lpthread $LIBS"
10366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10375 char $emacs_pthread_function ();
10379 return $emacs_pthread_function ();
10384 if ac_fn_c_try_link
"$LINENO"; then :
10385 eval "$as_ac_Lib=yes"
10387 eval "$as_ac_Lib=no"
10389 rm -f core conftest.err conftest.
$ac_objext \
10390 conftest
$ac_exeext conftest.
$ac_ext
10391 LIBS
=$ac_check_lib_save_LIBS
10393 eval ac_res
=\$
$as_ac_Lib
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10395 $as_echo "$ac_res" >&6; }
10396 eval as_val
=\$
$as_ac_Lib
10397 if test "x$as_val" = x
""yes; then :
10402 if test "$HAVE_PTHREAD" = yes; then
10403 case "${canonical}" in
10405 *) LIB_PTHREAD
="-lpthread"
10406 LIBS
="$LIB_PTHREAD $LIBS" ;;
10409 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10415 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10416 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10419 ac_check_lib_save_LIBS
=$LIBS
10420 LIBS
="-lpthreads $LIBS"
10421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10434 return cma_open ();
10439 if ac_fn_c_try_link
"$LINENO"; then :
10440 ac_cv_lib_pthreads_cma_open
=yes
10442 ac_cv_lib_pthreads_cma_open
=no
10444 rm -f core conftest.err conftest.
$ac_objext \
10445 conftest
$ac_exeext conftest.
$ac_ext
10446 LIBS
=$ac_check_lib_save_LIBS
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10449 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10450 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10451 cat >>confdefs.h
<<_ACEOF
10452 #define HAVE_LIBPTHREADS 1
10455 LIBS
="-lpthreads $LIBS"
10460 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10461 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10462 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10463 ## added to LIBS in configure would never contain the pthreads part,
10464 ## but the value used in Makefiles might. FIXME?
10466 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10467 ## be harmless on older versions of X where it happens to exist.
10468 test "$opsys" = "aix4-2" && \
10469 test $ac_cv_lib_pthreads_cma_open = yes && \
10470 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10476 $as_echo_n "checking for -bbigtoc option... " >&6; }
10477 if test "${gdb_cv_bigtoc+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10482 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10483 *) gdb_cv_bigtoc
=-bbigtoc ;;
10486 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10498 if ac_fn_c_try_link
"$LINENO"; then :
10503 rm -f core conftest.err conftest.
$ac_objext \
10504 conftest
$ac_exeext conftest.
$ac_ext
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10508 $as_echo "$gdb_cv_bigtoc" >&6; }
10512 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10513 # used for the tests that follow. We set them back to REAL_CFLAGS and
10514 # REAL_CPPFLAGS later on.
10516 REAL_CFLAGS
="$CFLAGS"
10517 REAL_CPPFLAGS
="$CPPFLAGS"
10519 if test "${HAVE_X11}" = "yes"; then
10520 DEFS
="$C_SWITCH_X_SITE $DEFS"
10521 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10523 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10524 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10526 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10527 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10528 # but it's more convenient here to set LD_RUN_PATH
10529 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10530 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10531 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10535 if test "${opsys}" = "gnu-linux"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10537 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10544 XOpenDisplay ("foo");
10549 if ac_fn_c_try_link
"$LINENO"; then :
10550 xgnu_linux_first_failure
=no
10552 xgnu_linux_first_failure
=yes
10554 rm -f core conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10556 if test "${xgnu_linux_first_failure}" = "yes"; then
10557 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10558 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10559 OLD_CPPFLAGS
="$CPPFLAGS"
10561 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10562 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10563 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10564 LIBS
="$LIBS -b i486-linuxaout"
10565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10571 XOpenDisplay ("foo");
10576 if ac_fn_c_try_link
"$LINENO"; then :
10577 xgnu_linux_second_failure
=no
10579 xgnu_linux_second_failure
=yes
10581 rm -f core conftest.err conftest.
$ac_objext \
10582 conftest
$ac_exeext conftest.
$ac_ext
10583 if test "${xgnu_linux_second_failure}" = "yes"; then
10584 # If we get the same failure with -b, there is no use adding -b.
10585 # So take it out. This plays safe.
10586 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10587 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10588 CPPFLAGS
="$OLD_CPPFLAGS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10602 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10603 # header files included from there.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10605 $as_echo_n "checking for Xkb... " >&6; }
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #include <X11/Xlib.h>
10609 #include <X11/XKBlib.h>
10613 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10618 if ac_fn_c_try_link
"$LINENO"; then :
10623 rm -f core conftest.err conftest.
$ac_objext \
10624 conftest
$ac_exeext conftest.
$ac_ext
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10626 $as_echo "$emacs_xkb" >&6; }
10627 if test $emacs_xkb = yes; then
10629 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10633 for ac_func
in XrmSetDatabase XScreenResourceString \
10634 XScreenNumberOfScreen XSetWMProtocols
10636 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10637 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10638 eval as_val
=\$
$as_ac_var
10639 if test "x$as_val" = x
""yes; then :
10640 cat >>confdefs.h
<<_ACEOF
10641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10649 if test "${window_system}" = "x11"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10651 $as_echo_n "checking X11 version 6... " >&6; }
10652 if test "${emacs_cv_x11_version_6+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10661 #if XlibSpecificationRelease < 6
10669 if ac_fn_c_try_link
"$LINENO"; then :
10670 emacs_cv_x11_version_6
=yes
10672 emacs_cv_x11_version_6
=no
10674 rm -f core conftest.err conftest.
$ac_objext \
10675 conftest
$ac_exeext conftest.
$ac_ext
10678 if test $emacs_cv_x11_version_6 = yes; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10680 $as_echo "6 or newer" >&6; }
10682 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10685 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10687 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10692 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10698 $as_echo "before 6" >&6; }
10703 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10705 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10706 if test "${with_rsvg}" != "no"; then
10707 RSVG_REQUIRED
=2.11.0
10708 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10713 # Extract the first word of "pkg-config", so it can be a program name with args.
10714 set dummy pkg-config
; ac_word
=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10720 case $PKG_CONFIG in
10722 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10726 for as_dir
in $PATH
10729 test -z "$as_dir" && as_dir
=.
10730 for ac_exec_ext
in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10744 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10745 if test -n "$PKG_CONFIG"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10747 $as_echo "$PKG_CONFIG" >&6; }
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 if test "$PKG_CONFIG" = "no" ; then
10758 PKG_CONFIG_MIN_VERSION
=0.9.0
10759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10761 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10763 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765 $as_echo "yes" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10769 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10770 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10772 $as_echo "$RSVG_CFLAGS" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10775 $as_echo_n "checking RSVG_LIBS... " >&6; }
10776 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10778 $as_echo "$RSVG_LIBS" >&6; }
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10784 ## If we have a custom action on failure, don't print errors, but
10785 ## do set a variable so people can do so.
10786 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10798 if test $succeeded = yes; then
10807 if test $HAVE_RSVG = yes; then
10809 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10811 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10812 LIBS
="$RSVG_LIBS $LIBS"
10817 HAVE_IMAGEMAGICK
=no
10818 if test "${HAVE_X11}" = "yes"; then
10819 if test "${with_imagemagick}" != "no"; then
10820 ## 6.2.8 is the earliest version known to work, but earlier versions
10821 ## might work - let us know if you find one.
10822 ## 6.0.7 does not work. See bug#7955.
10823 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10827 # Extract the first word of "pkg-config", so it can be a program name with args.
10828 set dummy pkg-config
; ac_word
=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10834 case $PKG_CONFIG in
10836 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10840 for as_dir
in $PATH
10843 test -z "$as_dir" && as_dir
=.
10844 for ac_exec_ext
in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10858 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10859 if test -n "$PKG_CONFIG"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10861 $as_echo "$PKG_CONFIG" >&6; }
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 if test "$PKG_CONFIG" = "no" ; then
10872 PKG_CONFIG_MIN_VERSION
=0.9.0
10873 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10875 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10877 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10883 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10884 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10886 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10889 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10890 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10892 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 IMAGEMAGICK_CFLAGS
=""
10897 IMAGEMAGICK_LIBS
=""
10898 ## If we have a custom action on failure, don't print errors, but
10899 ## do set a variable so people can do so.
10900 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10912 if test $succeeded = yes; then
10913 HAVE_IMAGEMAGICK
=yes
10921 if test $HAVE_IMAGEMAGICK = yes; then
10923 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10925 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10926 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10927 for ac_func
in MagickExportImagePixels
10929 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10930 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10931 cat >>confdefs.h
<<_ACEOF
10932 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10945 if test "${with_gtk3}" = "yes"; then
10948 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10953 # Extract the first word of "pkg-config", so it can be a program name with args.
10954 set dummy pkg-config
; ac_word
=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10960 case $PKG_CONFIG in
10962 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10966 for as_dir
in $PATH
10969 test -z "$as_dir" && as_dir
=.
10970 for ac_exec_ext
in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10984 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10985 if test -n "$PKG_CONFIG"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10987 $as_echo "$PKG_CONFIG" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10998 PKG_CONFIG_MIN_VERSION
=0.9.0
10999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11001 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11003 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11005 $as_echo "yes" >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11009 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11010 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11012 $as_echo "$GTK_CFLAGS" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11015 $as_echo_n "checking GTK_LIBS... " >&6; }
11016 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11018 $as_echo "$GTK_LIBS" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11024 ## If we have a custom action on failure, don't print errors, but
11025 ## do set a variable so people can do so.
11026 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11038 if test $succeeded = yes; then
11044 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11045 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11048 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11050 GTK_OBJ
=emacsgtkfixed.o
11053 if test "$pkg_check_gtk" != "yes"; then
11055 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11058 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11063 # Extract the first word of "pkg-config", so it can be a program name with args.
11064 set dummy pkg-config
; ac_word
=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 case $PKG_CONFIG in
11072 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11076 for as_dir
in $PATH
11079 test -z "$as_dir" && as_dir
=.
11080 for ac_exec_ext
in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11094 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11095 if test -n "$PKG_CONFIG"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11097 $as_echo "$PKG_CONFIG" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11105 if test "$PKG_CONFIG" = "no" ; then
11108 PKG_CONFIG_MIN_VERSION
=0.9.0
11109 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11111 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11113 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11115 $as_echo "yes" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11119 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11120 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11122 $as_echo "$GTK_CFLAGS" >&6; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11125 $as_echo_n "checking GTK_LIBS... " >&6; }
11126 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11128 $as_echo "$GTK_LIBS" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11134 ## If we have a custom action on failure, don't print errors, but
11135 ## do set a variable so people can do so.
11136 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 if test $succeeded = yes; then
11154 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11155 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11160 if test x
"$pkg_check_gtk" = xyes
; then
11164 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11165 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11166 LIBS
="$GTK_LIBS $LIBS"
11168 for ac_func
in gtk_main
11170 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11171 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11172 cat >>confdefs.h
<<_ACEOF
11173 #define HAVE_GTK_MAIN 1
11179 if test "${GTK_COMPILES}" != "yes"; then
11180 if test "$USE_X_TOOLKIT" != "maybe"; then
11181 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11186 $as_echo "#define USE_GTK 1" >>confdefs.h
11188 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11190 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11194 closing open displays. This is no problem if you just use
11195 one display, but if you use more than one and close one of them
11196 Emacs may crash." >&5
11197 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11198 closing open displays. This is no problem if you just use
11199 one display, but if you use more than one and close one of them
11200 Emacs may crash." >&2;}
11209 if test "${HAVE_GTK}" = "yes"; then
11211 if test "$with_toolkit_scroll_bars" != no
; then
11212 with_toolkit_scroll_bars
=yes
11215 HAVE_GTK_FILE_SELECTION
=no
11216 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11217 #include <gtk/gtk.h>
11219 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11220 HAVE_GTK_FILE_SELECTION
=yes
11222 HAVE_GTK_FILE_SELECTION
=no
11225 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11226 for ac_func
in gtk_file_selection_new
11228 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11229 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11230 cat >>confdefs.h
<<_ACEOF
11231 #define HAVE_GTK_FILE_SELECTION_NEW 1
11240 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11241 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11242 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11243 gtk_orientable_set_orientation \
11244 gtk_window_set_has_resize_grip
11246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11248 eval as_val
=\$
$as_ac_var
11249 if test "x$as_val" = x
""yes; then :
11250 cat >>confdefs.h
<<_ACEOF
11251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 if test "${with_dbus}" = "yes"; then
11265 # Extract the first word of "pkg-config", so it can be a program name with args.
11266 set dummy pkg-config
; ac_word
=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11272 case $PKG_CONFIG in
11274 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11278 for as_dir
in $PATH
11281 test -z "$as_dir" && as_dir
=.
11282 for ac_exec_ext
in '' $ac_executable_extensions; do
11283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11284 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11296 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11297 if test -n "$PKG_CONFIG"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11299 $as_echo "$PKG_CONFIG" >&6; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11307 if test "$PKG_CONFIG" = "no" ; then
11310 PKG_CONFIG_MIN_VERSION
=0.9.0
11311 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11313 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11315 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11321 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11322 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11324 $as_echo "$DBUS_CFLAGS" >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11327 $as_echo_n "checking DBUS_LIBS... " >&6; }
11328 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11330 $as_echo "$DBUS_LIBS" >&6; }
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11336 ## If we have a custom action on failure, don't print errors, but
11337 ## do set a variable so people can do so.
11338 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11350 if test $succeeded = yes; then
11356 if test "$HAVE_DBUS" = yes; then
11357 LIBS
="$LIBS $DBUS_LIBS"
11359 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11361 for ac_func
in dbus_watch_get_unix_fd
11363 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11364 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11372 DBUS_OBJ
=dbusbind.o
11378 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11382 # Extract the first word of "pkg-config", so it can be a program name with args.
11383 set dummy pkg-config
; ac_word
=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11389 case $PKG_CONFIG in
11391 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11395 for as_dir
in $PATH
11398 test -z "$as_dir" && as_dir
=.
11399 for ac_exec_ext
in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11413 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11414 if test -n "$PKG_CONFIG"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11416 $as_echo "$PKG_CONFIG" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11424 if test "$PKG_CONFIG" = "no" ; then
11427 PKG_CONFIG_MIN_VERSION
=0.9.0
11428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11430 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11432 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434 $as_echo "yes" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11438 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11439 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11441 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11444 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11445 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11447 $as_echo "$GSETTINGS_LIBS" >&6; }
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 GSETTINGS_CFLAGS
=""
11453 ## If we have a custom action on failure, don't print errors, but
11454 ## do set a variable so people can do so.
11455 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11467 if test $succeeded = yes; then
11473 if test "$HAVE_GSETTINGS" = "yes"; then
11475 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11477 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11478 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11483 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11487 # Extract the first word of "pkg-config", so it can be a program name with args.
11488 set dummy pkg-config
; ac_word
=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11494 case $PKG_CONFIG in
11496 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11500 for as_dir
in $PATH
11503 test -z "$as_dir" && as_dir
=.
11504 for ac_exec_ext
in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11518 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11519 if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11521 $as_echo "$PKG_CONFIG" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11529 if test "$PKG_CONFIG" = "no" ; then
11532 PKG_CONFIG_MIN_VERSION
=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11535 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11537 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11543 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11544 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11546 $as_echo "$GCONF_CFLAGS" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11549 $as_echo_n "checking GCONF_LIBS... " >&6; }
11550 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11552 $as_echo "$GCONF_LIBS" >&6; }
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11558 ## If we have a custom action on failure, don't print errors, but
11559 ## do set a variable so people can do so.
11560 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11572 if test $succeeded = yes; then
11578 if test "$HAVE_GCONF" = yes; then
11580 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11582 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11583 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11587 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11588 SAVE_CFLAGS
="$CFLAGS"
11590 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11591 LIBS
="$SETTINGS_LIBS $LIBS"
11592 for ac_func
in g_type_init
11594 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11595 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_G_TYPE_INIT 1
11603 CFLAGS
="$SAVE_CFLAGS"
11612 if test "${with_selinux}" = "yes"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11614 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11615 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11618 ac_check_lib_save_LIBS
=$LIBS
11619 LIBS
="-lselinux $LIBS"
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11629 char lgetfilecon ();
11633 return lgetfilecon ();
11638 if ac_fn_c_try_link
"$LINENO"; then :
11639 ac_cv_lib_selinux_lgetfilecon
=yes
11641 ac_cv_lib_selinux_lgetfilecon
=no
11643 rm -f core conftest.err conftest.
$ac_objext \
11644 conftest
$ac_exeext conftest.
$ac_ext
11645 LIBS
=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11648 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11649 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11650 HAVE_LIBSELINUX
=yes
11655 if test "$HAVE_LIBSELINUX" = yes; then
11657 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11659 LIBSELINUX_LIBS
=-lselinux
11665 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11666 if test "${with_gnutls}" = "yes" ; then
11670 # Extract the first word of "pkg-config", so it can be a program name with args.
11671 set dummy pkg-config
; ac_word
=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11677 case $PKG_CONFIG in
11679 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11683 for as_dir
in $PATH
11686 test -z "$as_dir" && as_dir
=.
11687 for ac_exec_ext
in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11701 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11702 if test -n "$PKG_CONFIG"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11704 $as_echo "$PKG_CONFIG" >&6; }
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11712 if test "$PKG_CONFIG" = "no" ; then
11715 PKG_CONFIG_MIN_VERSION
=0.9.0
11716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11718 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11720 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11726 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11727 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11729 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11732 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11733 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11735 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 LIBGNUTLS_CFLAGS
=""
11741 ## If we have a custom action on failure, don't print errors, but
11742 ## do set a variable so people can do so.
11743 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11750 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11751 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11755 if test $succeeded = yes; then
11761 if test "${HAVE_GNUTLS}" = "yes"; then
11763 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11767 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11768 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11769 for ac_func
in gnutls_certificate_set_verify_function
11771 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11772 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11773 cat >>confdefs.h
<<_ACEOF
11774 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11776 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11781 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11783 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11793 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11794 if test "$with_xaw3d" != no
; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11796 $as_echo_n "checking for xaw3d... " >&6; }
11797 if test "${emacs_cv_xaw3d+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11803 #include <X11/Intrinsic.h>
11804 #include <X11/Xaw3d/Simple.h>
11813 if ac_fn_c_try_link
"$LINENO"; then :
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11815 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11816 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 ac_check_lib_save_LIBS
=$LIBS
11820 LIBS
="-lXaw3d $LIBS"
11821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11830 char XawScrollbarSetThumb ();
11834 return XawScrollbarSetThumb ();
11839 if ac_fn_c_try_link
"$LINENO"; then :
11840 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11842 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11844 rm -f core conftest.err conftest.
$ac_objext \
11845 conftest
$ac_exeext conftest.
$ac_ext
11846 LIBS
=$ac_check_lib_save_LIBS
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11849 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11850 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11859 rm -f core conftest.err conftest.
$ac_objext \
11860 conftest
$ac_exeext conftest.
$ac_ext
11866 if test $emacs_cv_xaw3d = yes; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11868 $as_echo "yes; using Lucid toolkit" >&6; }
11869 USE_X_TOOLKIT
=LUCID
11873 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11879 $as_echo_n "checking for libXaw... " >&6; }
11880 if test "${emacs_cv_xaw+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 #include <X11/Intrinsic.h>
11887 #include <X11/Xaw/Simple.h>
11896 if ac_fn_c_try_link
"$LINENO"; then :
11901 rm -f core conftest.err conftest.
$ac_objext \
11902 conftest
$ac_exeext conftest.
$ac_ext
11905 if test $emacs_cv_xaw = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11907 $as_echo "yes; using Lucid toolkit" >&6; }
11908 USE_X_TOOLKIT
=LUCID
11910 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11911 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11913 as_fn_error
"No X toolkit could be found.
11914 If you are sure you want Emacs compiled without an X toolkit, pass
11915 --with-x-toolkit=no
11916 to configure. Otherwise, install the development libraries for the toolkit
11917 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11922 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11925 if test "${USE_X_TOOLKIT}" != "none"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11927 $as_echo_n "checking X11 toolkit version... " >&6; }
11928 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933 #include <X11/Intrinsic.h>
11937 #if XtSpecificationRelease < 6
11945 if ac_fn_c_try_link
"$LINENO"; then :
11946 emacs_cv_x11_toolkit_version_6
=yes
11948 emacs_cv_x11_toolkit_version_6
=no
11950 rm -f core conftest.err conftest.
$ac_objext \
11951 conftest
$ac_exeext conftest.
$ac_ext
11954 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11955 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11957 $as_echo "6 or newer" >&6; }
11959 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11961 LIBXTR6
="-lSM -lICE"
11963 ## Use libw.a along with X11R6 Xt.
11964 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11968 $as_echo "before 6" >&6; }
11972 if test x
$HAVE_X11XTR6 = xyes
; then
11973 LIBS
="-lXt -lSM -lICE $LIBS"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11978 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11979 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11982 ac_check_lib_save_LIBS
=$LIBS
11984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11993 char XmuConvertStandardSelection ();
11997 return XmuConvertStandardSelection ();
12002 if ac_fn_c_try_link
"$LINENO"; then :
12003 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12005 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12007 rm -f core conftest.err conftest.
$ac_objext \
12008 conftest
$ac_exeext conftest.
$ac_ext
12009 LIBS
=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12012 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12013 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12014 cat >>confdefs.h
<<_ACEOF
12015 #define HAVE_LIBXMU 1
12022 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12028 ## These systems don't supply Xmu.
12030 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12035 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12036 if test "${HAVE_X11}" = "yes"; then
12037 if test "${USE_X_TOOLKIT}" != "none"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12039 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12043 ac_check_lib_save_LIBS
=$LIBS
12044 LIBS
="-lXext $LIBS"
12045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12054 char XShapeQueryExtension ();
12058 return XShapeQueryExtension ();
12063 if ac_fn_c_try_link
"$LINENO"; then :
12064 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12066 ac_cv_lib_Xext_XShapeQueryExtension
=no
12068 rm -f core conftest.err conftest.
$ac_objext \
12069 conftest
$ac_exeext conftest.
$ac_ext
12070 LIBS
=$ac_check_lib_save_LIBS
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12073 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12074 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12075 cat >>confdefs.h
<<_ACEOF
12076 #define HAVE_LIBXEXT 1
12079 LIBS
="-lXext $LIBS"
12087 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12089 $as_echo_n "checking for Motif version 2.1... " >&6; }
12090 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12099 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12102 Motif version prior to 2.1.
12108 if ac_fn_c_try_compile
"$LINENO"; then :
12109 emacs_cv_motif_version_2_1
=yes
12111 emacs_cv_motif_version_2_1
=no
12113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12116 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12117 if test $emacs_cv_motif_version_2_1 = yes; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12119 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12120 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12123 ac_check_lib_save_LIBS
=$LIBS
12125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12134 char XpCreateContext ();
12138 return XpCreateContext ();
12143 if ac_fn_c_try_link
"$LINENO"; then :
12144 ac_cv_lib_Xp_XpCreateContext
=yes
12146 ac_cv_lib_Xp_XpCreateContext
=no
12148 rm -f core conftest.err conftest.
$ac_objext \
12149 conftest
$ac_exeext conftest.
$ac_ext
12150 LIBS
=$ac_check_lib_save_LIBS
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12153 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12154 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12160 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12161 if test "${emacs_cv_lesstif+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12164 # We put this in CFLAGS temporarily to precede other -I options
12165 # that might be in CFLAGS temporarily.
12166 # We put this in CPPFLAGS where it precedes the other -I options.
12167 OLD_CPPFLAGS
=$CPPFLAGS
12169 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12170 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12182 if ac_fn_c_try_compile
"$LINENO"; then :
12183 emacs_cv_lesstif
=yes
12185 emacs_cv_lesstif
=no
12187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12190 $as_echo "$emacs_cv_lesstif" >&6; }
12191 if test $emacs_cv_lesstif = yes; then
12192 # Make sure this -I option remains in CPPFLAGS after it is set
12193 # back to REAL_CPPFLAGS.
12194 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12195 # have those other -I options anyway. Ultimately, having this
12196 # directory ultimately in CPPFLAGS will be enough.
12197 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12198 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12201 CPPFLAGS
=$OLD_CPPFLAGS
12204 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12205 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12208 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12215 USE_TOOLKIT_SCROLL_BARS
=no
12216 if test "${with_toolkit_scroll_bars}" != "no"; then
12217 if test "${USE_X_TOOLKIT}" != "none"; then
12218 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12219 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12222 USE_TOOLKIT_SCROLL_BARS
=yes
12223 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12224 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12226 USE_TOOLKIT_SCROLL_BARS
=yes
12228 elif test "${HAVE_GTK}" = "yes"; then
12229 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12231 USE_TOOLKIT_SCROLL_BARS
=yes
12232 elif test "${HAVE_NS}" = "yes"; then
12233 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12235 USE_TOOLKIT_SCROLL_BARS
=yes
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 #include <X11/Xlib.h>
12243 #include <X11/Xresource.h>
12252 if ac_fn_c_try_compile
"$LINENO"; then :
12255 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12263 if test "${with_xim}" != "no"; then
12265 $as_echo "#define USE_XIM 1" >>confdefs.h
12270 if test "${HAVE_XIM}" != "no"; then
12271 late_CFLAGS
=$CFLAGS
12272 if test "$GCC" = yes; then
12273 CFLAGS
="$CFLAGS --pedantic-errors"
12275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <X11/Xlib.h>
12279 #include <X11/Xresource.h>
12288 XPointer *client_data;
12290 /* If we're not using GCC, it's probably not XFree86, and this is
12291 probably right, but we can't use something like --pedantic-errors. */
12292 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12293 char*, XIMProc, XPointer*);
12295 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12301 if ac_fn_c_try_compile
"$LINENO"; then :
12302 emacs_cv_arg6_star
=yes
12304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12305 if test "$emacs_cv_arg6_star" = yes; then
12306 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12309 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12312 CFLAGS
=$late_CFLAGS
12315 ### Start of font-backend (under any platform) section.
12316 # (nothing here yet -- this is a placeholder)
12317 ### End of font-backend (under any platform) section.
12319 ### Start of font-backend (under X11) section.
12320 if test "${HAVE_X11}" = "yes"; then
12324 # Extract the first word of "pkg-config", so it can be a program name with args.
12325 set dummy pkg-config
; ac_word
=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12331 case $PKG_CONFIG in
12333 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12337 for as_dir
in $PATH
12340 test -z "$as_dir" && as_dir
=.
12341 for ac_exec_ext
in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12355 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12356 if test -n "$PKG_CONFIG"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12358 $as_echo "$PKG_CONFIG" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12366 if test "$PKG_CONFIG" = "no" ; then
12369 PKG_CONFIG_MIN_VERSION
=0.9.0
12370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12372 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12374 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12380 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12381 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12383 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12386 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12387 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12389 $as_echo "$FONTCONFIG_LIBS" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 FONTCONFIG_CFLAGS
=""
12395 ## If we have a custom action on failure, don't print errors, but
12396 ## do set a variable so people can do so.
12397 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12409 if test $succeeded = yes; then
12416 ## Use -lXft if available, unless `--with-xft=no'.
12418 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12421 if test "x${with_xft}" != "xno"; then
12426 # Extract the first word of "pkg-config", so it can be a program name with args.
12427 set dummy pkg-config
; ac_word
=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12433 case $PKG_CONFIG in
12435 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12439 for as_dir
in $PATH
12442 test -z "$as_dir" && as_dir
=.
12443 for ac_exec_ext
in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12457 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12458 if test -n "$PKG_CONFIG"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12460 $as_echo "$PKG_CONFIG" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12468 if test "$PKG_CONFIG" = "no" ; then
12471 PKG_CONFIG_MIN_VERSION
=0.9.0
12472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12474 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12476 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12478 $as_echo "yes" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12482 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12483 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12485 $as_echo "$XFT_CFLAGS" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12488 $as_echo_n "checking XFT_LIBS... " >&6; }
12489 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12491 $as_echo "$XFT_LIBS" >&6; }
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12497 ## If we have a custom action on failure, don't print errors, but
12498 ## do set a variable so people can do so.
12499 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12511 if test $succeeded = yes; then
12517 ## Because xftfont.c uses XRenderQueryExtension, we also
12518 ## need to link to -lXrender.
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12521 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12522 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 ac_check_lib_save_LIBS
=$LIBS
12526 LIBS
="-lXrender $LIBS"
12527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12536 char XRenderQueryExtension ();
12540 return XRenderQueryExtension ();
12545 if ac_fn_c_try_link
"$LINENO"; then :
12546 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12548 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12550 rm -f core conftest.err conftest.
$ac_objext \
12551 conftest
$ac_exeext conftest.
$ac_ext
12552 LIBS
=$ac_check_lib_save_LIBS
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12555 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12556 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12560 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12561 OLD_CPPFLAGS
="$CPPFLAGS"
12562 OLD_CFLAGS
="$CFLAGS"
12564 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12565 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12566 XFT_LIBS
="-lXrender $XFT_LIBS"
12567 LIBS
="$XFT_LIBS $LIBS"
12568 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12569 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12571 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12572 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12575 ac_check_lib_save_LIBS
=$LIBS
12576 LIBS
="-lXft $XFT_LIBS $LIBS"
12577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12586 char XftFontOpen ();
12590 return XftFontOpen ();
12595 if ac_fn_c_try_link
"$LINENO"; then :
12596 ac_cv_lib_Xft_XftFontOpen
=yes
12598 ac_cv_lib_Xft_XftFontOpen
=no
12600 rm -f core conftest.err conftest.
$ac_objext \
12601 conftest
$ac_exeext conftest.
$ac_ext
12602 LIBS
=$ac_check_lib_save_LIBS
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12605 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12606 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12614 if test "${HAVE_XFT}" = "yes"; then
12616 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12619 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12621 CPPFLAGS
="$OLD_CPPFLAGS"
12622 CFLAGS
="$OLD_CFLAGS"
12624 fi # "${HAVE_XFT}" = "yes"
12625 fi # "$HAVE_XFT" != no
12626 fi # "x${with_xft}" != "xno"
12628 ## We used to allow building with FreeType and without Xft.
12629 ## However, the ftx font backend driver is not in good shape.
12630 if test "$HAVE_XFT" != "yes"; then
12637 # Extract the first word of "pkg-config", so it can be a program name with args.
12638 set dummy pkg-config
; ac_word
=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12644 case $PKG_CONFIG in
12646 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12650 for as_dir
in $PATH
12653 test -z "$as_dir" && as_dir
=.
12654 for ac_exec_ext
in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12668 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12669 if test -n "$PKG_CONFIG"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12671 $as_echo "$PKG_CONFIG" >&6; }
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12679 if test "$PKG_CONFIG" = "no" ; then
12682 PKG_CONFIG_MIN_VERSION
=0.9.0
12683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12685 $as_echo_n "checking for freetype2... " >&6; }
12687 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 $as_echo "yes" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12693 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12694 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12696 $as_echo "$FREETYPE_CFLAGS" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12699 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12700 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12702 $as_echo "$FREETYPE_LIBS" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12708 ## If we have a custom action on failure, don't print errors, but
12709 ## do set a variable so people can do so.
12710 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12722 if test $succeeded = yes; then
12729 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12733 if test "${HAVE_FREETYPE}" = "yes"; then
12735 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12737 if test "${with_libotf}" != "no"; then
12741 # Extract the first word of "pkg-config", so it can be a program name with args.
12742 set dummy pkg-config
; ac_word
=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12748 case $PKG_CONFIG in
12750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12754 for as_dir
in $PATH
12757 test -z "$as_dir" && as_dir
=.
12758 for ac_exec_ext
in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12773 if test -n "$PKG_CONFIG"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12775 $as_echo "$PKG_CONFIG" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12783 if test "$PKG_CONFIG" = "no" ; then
12786 PKG_CONFIG_MIN_VERSION
=0.9.0
12787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12789 $as_echo_n "checking for libotf... " >&6; }
12791 if $PKG_CONFIG --exists "libotf" 2>&5; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12797 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12798 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12800 $as_echo "$LIBOTF_CFLAGS" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12803 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12804 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12806 $as_echo "$LIBOTF_LIBS" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12812 ## If we have a custom action on failure, don't print errors, but
12813 ## do set a variable so people can do so.
12814 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12826 if test $succeeded = yes; then
12832 if test "$HAVE_LIBOTF" = "yes"; then
12834 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12837 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12838 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12841 ac_check_lib_save_LIBS
=$LIBS
12843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12852 char OTF_get_variation_glyphs ();
12856 return OTF_get_variation_glyphs ();
12861 if ac_fn_c_try_link
"$LINENO"; then :
12862 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12864 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12866 rm -f core conftest.err conftest.
$ac_objext \
12867 conftest
$ac_exeext conftest.
$ac_ext
12868 LIBS
=$ac_check_lib_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12871 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12872 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12873 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12875 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12878 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12880 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12888 if test "${HAVE_LIBOTF}" = yes; then
12889 if test "${with_m17n_flt}" != "no"; then
12893 # Extract the first word of "pkg-config", so it can be a program name with args.
12894 set dummy pkg-config
; ac_word
=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12900 case $PKG_CONFIG in
12902 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12906 for as_dir
in $PATH
12909 test -z "$as_dir" && as_dir
=.
12910 for ac_exec_ext
in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12924 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12925 if test -n "$PKG_CONFIG"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12927 $as_echo "$PKG_CONFIG" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12935 if test "$PKG_CONFIG" = "no" ; then
12938 PKG_CONFIG_MIN_VERSION
=0.9.0
12939 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12941 $as_echo_n "checking for m17n-flt... " >&6; }
12943 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12949 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12950 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12952 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12955 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12956 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12958 $as_echo "$M17N_FLT_LIBS" >&6; }
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12964 ## If we have a custom action on failure, don't print errors, but
12965 ## do set a variable so people can do so.
12966 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12978 if test $succeeded = yes; then
12984 if test "$HAVE_M17N_FLT" = "yes"; then
12986 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12998 ### End of font-backend (under X11) section.
13009 ### Use -lXpm if available, unless `--with-xpm=no'.
13012 if test "${HAVE_X11}" = "yes"; then
13013 if test "${with_xpm}" != "no"; then
13014 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13015 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13017 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13018 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13021 ac_check_lib_save_LIBS
=$LIBS
13022 LIBS
="-lXpm -lX11 $LIBS"
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char XpmReadFileToPixmap ();
13036 return XpmReadFileToPixmap ();
13041 if ac_fn_c_try_link
"$LINENO"; then :
13042 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13044 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13046 rm -f core conftest.err conftest.
$ac_objext \
13047 conftest
$ac_exeext conftest.
$ac_ext
13048 LIBS
=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13051 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13052 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13059 if test "${HAVE_XPM}" = "yes"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13061 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include "X11/xpm.h"
13065 #ifndef XpmReturnAllocPixels
13066 no_return_alloc_pixels
13070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13071 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13079 if test "${HAVE_XPM}" = "yes"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13081 $as_echo "yes" >&6; }
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13089 if test "${HAVE_XPM}" = "yes"; then
13091 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13098 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13101 if test "${HAVE_X11}" = "yes"; then
13102 if test "${with_jpeg}" != "no"; then
13103 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13104 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13106 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13107 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13110 ac_check_lib_save_LIBS
=$LIBS
13111 LIBS
="-ljpeg $LIBS"
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13121 char jpeg_destroy_compress ();
13125 return jpeg_destroy_compress ();
13130 if ac_fn_c_try_link
"$LINENO"; then :
13131 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13133 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13135 rm -f core conftest.err conftest.
$ac_objext \
13136 conftest
$ac_exeext conftest.
$ac_ext
13137 LIBS
=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13140 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13141 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13150 if test "${HAVE_JPEG}" = "yes"; then
13151 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <jpeglib.h>
13156 version=JPEG_LIB_VERSION
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13161 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13165 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13171 if test "${HAVE_JPEG}" = "yes"; then
13177 ### Use -lpng if available, unless `--with-png=no'.
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${with_png}" != "no"; then
13182 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13183 # in /usr/include/libpng.
13184 for ac_header
in png.h libpng
/png.h
13186 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13187 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13188 eval as_val
=\$
$as_ac_Header
13189 if test "x$as_val" = x
""yes; then :
13190 cat >>confdefs.h
<<_ACEOF
13191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13200 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13201 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13204 ac_check_lib_save_LIBS
=$LIBS
13205 LIBS
="-lpng -lz -lm $LIBS"
13206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13215 char png_get_channels ();
13219 return png_get_channels ();
13224 if ac_fn_c_try_link
"$LINENO"; then :
13225 ac_cv_lib_png_png_get_channels
=yes
13227 ac_cv_lib_png_png_get_channels
=no
13229 rm -f core conftest.err conftest.
$ac_objext \
13230 conftest
$ac_exeext conftest.
$ac_ext
13231 LIBS
=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13234 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13235 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13242 if test "${HAVE_PNG}" = "yes"; then
13244 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13246 LIBPNG
="-lpng -lz -lm"
13251 ### Use -ltiff if available, unless `--with-tiff=no'.
13254 if test "${HAVE_X11}" = "yes"; then
13255 if test "${with_tiff}" != "no"; then
13256 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13257 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13259 # At least one tiff package requires the jpeg library.
13260 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13262 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13263 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13266 ac_check_lib_save_LIBS
=$LIBS
13267 LIBS
="-ltiff $tifflibs $LIBS"
13268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13271 /* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13277 char TIFFGetVersion ();
13281 return TIFFGetVersion ();
13286 if ac_fn_c_try_link
"$LINENO"; then :
13287 ac_cv_lib_tiff_TIFFGetVersion
=yes
13289 ac_cv_lib_tiff_TIFFGetVersion
=no
13291 rm -f core conftest.err conftest.
$ac_objext \
13292 conftest
$ac_exeext conftest.
$ac_ext
13293 LIBS
=$ac_check_lib_save_LIBS
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13296 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13297 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13306 if test "${HAVE_TIFF}" = "yes"; then
13308 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13315 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13318 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13319 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13321 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13322 # Earlier versions can crash Emacs.
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13324 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13325 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13328 ac_check_lib_save_LIBS
=$LIBS
13330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13333 /* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13339 char EGifPutExtensionLast ();
13343 return EGifPutExtensionLast ();
13348 if ac_fn_c_try_link
"$LINENO"; then :
13349 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13351 ac_cv_lib_gif_EGifPutExtensionLast
=no
13353 rm -f core conftest.err conftest.
$ac_objext \
13354 conftest
$ac_exeext conftest.
$ac_ext
13355 LIBS
=$ac_check_lib_save_LIBS
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13358 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13359 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13369 if test "$HAVE_GIF" = yes; then
13371 elif test "$HAVE_GIF" = maybe
; then
13372 # If gif_lib.h but no libgif, try libungif.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13374 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13375 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13378 ac_check_lib_save_LIBS
=$LIBS
13379 LIBS
="-lungif $LIBS"
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13389 char EGifPutExtensionLast ();
13393 return EGifPutExtensionLast ();
13398 if ac_fn_c_try_link
"$LINENO"; then :
13399 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13401 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13403 rm -f core conftest.err conftest.
$ac_objext \
13404 conftest
$ac_exeext conftest.
$ac_ext
13405 LIBS
=$ac_check_lib_save_LIBS
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13408 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13409 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13415 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13418 if test "${HAVE_GIF}" = "yes"; then
13420 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13426 if test "${HAVE_X11}" = "yes"; then
13429 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13430 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13431 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13432 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13433 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13434 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13435 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13436 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13437 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13438 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13440 if test "X${MISSING}" != X
; then
13441 as_fn_error
"The following required libraries were not found:
13443 Maybe some development libraries/packages are missing?
13444 If you don't want to link with them give
13446 as options to configure" "$LINENO" 5
13450 ### Use -lgpm if available, unless `--with-gpm=no'.
13453 if test "${with_gpm}" != "no"; then
13454 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13455 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13457 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13458 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13461 ac_check_lib_save_LIBS
=$LIBS
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
13476 return Gpm_Open ();
13481 if ac_fn_c_try_link
"$LINENO"; then :
13482 ac_cv_lib_gpm_Gpm_Open
=yes
13484 ac_cv_lib_gpm_Gpm_Open
=no
13486 rm -f core conftest.err conftest.
$ac_objext \
13487 conftest
$ac_exeext conftest.
$ac_ext
13488 LIBS
=$ac_check_lib_save_LIBS
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13491 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13492 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13500 if test "${HAVE_GPM}" = "yes"; then
13502 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13509 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13510 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13512 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13519 ### Use NeXTstep API to implement GUI.
13520 if test "${HAVE_NS}" = "yes"; then
13522 $as_echo "#define HAVE_NS 1" >>confdefs.h
13524 if test "${NS_IMPL_COCOA}" = "yes"; then
13526 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13529 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13531 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13533 # See also .m.o rule in Makefile.in */
13534 # FIXME: are all these flags really needed? Document here why. */
13535 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13536 ## Extra CFLAGS applied to src/*.m files.
13537 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"
13539 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13541 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13544 # We also have mouse menus.
13550 ### Use session management (-lSM -lICE) if available
13553 if test "${HAVE_X11}" = "yes"; then
13554 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13555 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13557 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13558 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 ac_check_lib_save_LIBS
=$LIBS
13562 LIBS
="-lSM -lICE $LIBS"
13563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13572 char SmcOpenConnection ();
13576 return SmcOpenConnection ();
13581 if ac_fn_c_try_link
"$LINENO"; then :
13582 ac_cv_lib_SM_SmcOpenConnection
=yes
13584 ac_cv_lib_SM_SmcOpenConnection
=no
13586 rm -f core conftest.err conftest.
$ac_objext \
13587 conftest
$ac_exeext conftest.
$ac_ext
13588 LIBS
=$ac_check_lib_save_LIBS
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13591 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13592 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13600 if test "${HAVE_X_SM}" = "yes"; then
13602 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13604 LIBXSM
="-lSM -lICE"
13607 *) LIBS
="$LIBXSM $LIBS" ;;
13613 ### Use libxml (-lxml2) if available
13615 if test "${with_xml2}" != "no"; then
13616 ### I'm not sure what the version number should be, so I just guessed.
13620 # Extract the first word of "pkg-config", so it can be a program name with args.
13621 set dummy pkg-config
; ac_word
=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13627 case $PKG_CONFIG in
13629 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13633 for as_dir
in $PATH
13636 test -z "$as_dir" && as_dir
=.
13637 for ac_exec_ext
in '' $ac_executable_extensions; do
13638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13639 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13651 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13652 if test -n "$PKG_CONFIG"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13654 $as_echo "$PKG_CONFIG" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13662 if test "$PKG_CONFIG" = "no" ; then
13665 PKG_CONFIG_MIN_VERSION
=0.9.0
13666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13668 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13670 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 $as_echo "yes" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13676 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13677 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13679 $as_echo "$LIBXML2_CFLAGS" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13682 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13683 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13685 $as_echo "$LIBXML2_LIBS" >&6; }
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13691 ## If we have a custom action on failure, don't print errors, but
13692 ## do set a variable so people can do so.
13693 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13705 if test $succeeded = yes; then
13711 if test "${HAVE_LIBXML2}" = "yes"; then
13712 LIBS
="$LIBXML2_LIBS $LIBS"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13714 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13715 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13718 ac_check_lib_save_LIBS
=$LIBS
13719 LIBS
="-lxml2 $LIBS"
13720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13729 char htmlReadMemory ();
13733 return htmlReadMemory ();
13738 if ac_fn_c_try_link
"$LINENO"; then :
13739 ac_cv_lib_xml2_htmlReadMemory
=yes
13741 ac_cv_lib_xml2_htmlReadMemory
=no
13743 rm -f core conftest.err conftest.
$ac_objext \
13744 conftest
$ac_exeext conftest.
$ac_ext
13745 LIBS
=$ac_check_lib_save_LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13748 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13749 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13755 if test "${HAVE_LIBXML2}" = "yes"; then
13757 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13768 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13770 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13771 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13785 if ac_fn_c_try_link
"$LINENO"; then :
13786 emacs_cv_netdb_declares_h_errno
=yes
13788 emacs_cv_netdb_declares_h_errno
=no
13790 rm -f core conftest.err conftest.
$ac_objext \
13791 conftest
$ac_exeext conftest.
$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13794 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13795 if test $emacs_cv_netdb_declares_h_errno = yes; then
13797 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13801 # fmod, logb, and frexp are found in -lm on most systems.
13802 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13804 $as_echo_n "checking for sqrt in -lm... " >&6; }
13805 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13808 ac_check_lib_save_LIBS
=$LIBS
13810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13813 /* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13828 if ac_fn_c_try_link
"$LINENO"; then :
13829 ac_cv_lib_m_sqrt
=yes
13831 ac_cv_lib_m_sqrt
=no
13833 rm -f core conftest.err conftest.
$ac_objext \
13834 conftest
$ac_exeext conftest.
$ac_ext
13835 LIBS
=$ac_check_lib_save_LIBS
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13838 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13839 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13840 cat >>confdefs.h
<<_ACEOF
13841 #define HAVE_LIBM 1
13849 # Check for mail-locking functions in a "mail" library. Probably this should
13850 # have the same check as for liblockfile below.
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13852 $as_echo_n "checking for maillock in -lmail... " >&6; }
13853 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13854 $as_echo_n "(cached) " >&6
13856 ac_check_lib_save_LIBS
=$LIBS
13857 LIBS
="-lmail $LIBS"
13858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13871 return maillock ();
13876 if ac_fn_c_try_link
"$LINENO"; then :
13877 ac_cv_lib_mail_maillock
=yes
13879 ac_cv_lib_mail_maillock
=no
13881 rm -f core conftest.err conftest.
$ac_objext \
13882 conftest
$ac_exeext conftest.
$ac_ext
13883 LIBS
=$ac_check_lib_save_LIBS
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13886 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13887 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13893 if test $have_mail = yes; then
13895 LIBS
="$LIBS_MAIL $LIBS"
13897 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13903 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13904 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13907 ac_check_lib_save_LIBS
=$LIBS
13908 LIBS
="-llockfile $LIBS"
13909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13922 return maillock ();
13927 if ac_fn_c_try_link
"$LINENO"; then :
13928 ac_cv_lib_lockfile_maillock
=yes
13930 ac_cv_lib_lockfile_maillock
=no
13932 rm -f core conftest.err conftest.
$ac_objext \
13933 conftest
$ac_exeext conftest.
$ac_ext
13934 LIBS
=$ac_check_lib_save_LIBS
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13937 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13938 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13944 if test $have_lockfile = yes; then
13945 LIBS_MAIL
=-llockfile
13946 LIBS
="$LIBS_MAIL $LIBS"
13948 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13951 # If we have the shared liblockfile, assume we must use it for mail
13952 # locking (e.g. Debian). If we couldn't link against liblockfile
13953 # (no liblockfile.a installed), ensure that we don't need to.
13954 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13955 set dummy liblockfile.so
; ac_word
=$2
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 $as_echo_n "checking for $ac_word... " >&6; }
13958 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13961 if test -n "$liblockfile"; then
13962 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13965 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13966 for as_dir
in $as_dummy
13969 test -z "$as_dir" && as_dir
=.
13970 for ac_exec_ext
in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_liblockfile
="yes"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13983 liblockfile
=$ac_cv_prog_liblockfile
13984 if test -n "$liblockfile"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13986 $as_echo "$liblockfile" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13993 if test $ac_cv_prog_liblockfile = yes; then
13994 as_fn_error
"Shared liblockfile found but can't link against it.
13995 This probably means that movemail could lose mail.
13996 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13999 for ac_func
in touchlock
14001 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14002 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14003 cat >>confdefs.h
<<_ACEOF
14004 #define HAVE_TOUCHLOCK 1
14010 for ac_header
in maillock.h
14012 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14013 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14014 cat >>confdefs.h
<<_ACEOF
14015 #define HAVE_MAILLOCK_H 1
14024 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14025 ## interlock access to the mail spool. The alternative is a lock file named
14026 ## /usr/spool/mail/$USER.lock.
14029 aix4-2
) mail_lock
="lockf" ;;
14031 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14033 ## On GNU/Linux systems, both methods are used by various mail programs.
14034 ## I assume most people are using newer mailers that have heard of flock.
14035 ## Change this if you need to.
14036 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14037 ## configure gets the right answers, and that means *NOT* using flock.
14038 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14039 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14040 ## Debian maintainer hasn't provided a clean fix for Emacs.
14041 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14042 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14043 ## correct logic. -- fx
14044 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14045 ## liblockfile is a Free Software replacement for libmail, used on
14046 ## Debian systems and elsewhere. -rfr.
14049 if test $have_mail = yes ||
test $have_lockfile = yes; then
14050 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14056 case "$mail_lock" in
14058 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14062 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14065 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14070 for ac_func
in gethostname getdomainname \
14071 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14072 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14073 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14074 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14075 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14076 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14077 gai_strerror mkstemp getline getdelim mremap fsync sync \
14078 difftime mempcpy mblen mbrlen posix_memalign \
14079 cfmakeraw cfsetspeed copysign __executable_start
14081 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14083 eval as_val
=\$
$as_ac_var
14084 if test "x$as_val" = x
""yes; then :
14085 cat >>confdefs.h
<<_ACEOF
14086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14094 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14095 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14104 __builtin_unwind_init ();
14109 if ac_fn_c_try_link
"$LINENO"; then :
14110 emacs_cv_func___builtin_unwind_init
=yes
14112 emacs_cv_func___builtin_unwind_init
=no
14114 rm -f core conftest.err conftest.
$ac_objext \
14115 conftest
$ac_exeext conftest.
$ac_ext
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14118 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14119 if test $emacs_cv_func___builtin_unwind_init = yes; then
14121 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14125 for ac_header
in sys
/un.h
14127 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14128 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14129 cat >>confdefs.h
<<_ACEOF
14130 #define HAVE_SYS_UN_H 1
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14139 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14140 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <sys/types.h> /* for off_t */
14151 int (*fp) (FILE *, off_t, int) = fseeko;
14152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14157 if ac_fn_c_try_link
"$LINENO"; then :
14158 ac_cv_sys_largefile_source
=no
; break
14160 rm -f core conftest.err conftest.
$ac_objext \
14161 conftest
$ac_exeext conftest.
$ac_ext
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #define _LARGEFILE_SOURCE 1
14165 #include <sys/types.h> /* for off_t */
14170 int (*fp) (FILE *, off_t, int) = fseeko;
14171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14176 if ac_fn_c_try_link
"$LINENO"; then :
14177 ac_cv_sys_largefile_source
=1; break
14179 rm -f core conftest.err conftest.
$ac_objext \
14180 conftest
$ac_exeext conftest.
$ac_ext
14181 ac_cv_sys_largefile_source
=unknown
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14186 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14187 case $ac_cv_sys_largefile_source in #(
14190 cat >>confdefs.h
<<_ACEOF
14191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14197 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14198 # in glibc 2.1.3, but that breaks too many other things.
14199 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14200 if test $ac_cv_sys_largefile_source != unknown
; then
14202 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14208 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14209 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14212 # Use it with a single arg.
14213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 $ac_includes_default
14224 if ac_fn_c_try_compile
"$LINENO"; then :
14225 ac_cv_func_getpgrp_void
=no
14227 ac_cv_func_getpgrp_void
=yes
14229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14233 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14234 if test $ac_cv_func_getpgrp_void = yes; then
14236 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14242 for ac_func
in grantpt
14244 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14245 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14246 cat >>confdefs.h
<<_ACEOF
14247 #define HAVE_GRANTPT 1
14254 # PTY-related GNU extensions.
14255 for ac_func
in getpt
14257 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14258 if test "x$ac_cv_func_getpt" = x
""yes; then :
14259 cat >>confdefs.h
<<_ACEOF
14260 #define HAVE_GETPT 1
14267 # Check this now, so that we will NOT find the above functions in ncurses.
14268 # That is because we have not set up to link ncurses in lib-src.
14269 # It's better to believe a function is not available
14270 # than to expect to find it in ncurses.
14271 # Also we need tputs and friends to be able to build at all.
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14273 $as_echo_n "checking for library containing tputs... " >&6; }
14274 # Run a test program that contains a call to tputs, a call that is
14275 # never executed. This tests whether a pre-'main' dynamic linker
14276 # works with the library. It's too much trouble to actually call
14277 # tputs in the test program, due to portability hassles. When
14278 # cross-compiling, assume the test program will run if it links.
14280 # Maybe curses should be tried earlier?
14281 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14282 for tputs_library
in '' ncurses terminfo termcap curses
; do
14284 if test -z "$tputs_library"; then
14286 msg
='none required'
14288 LIBS_TERMCAP
=-l$tputs_library
14290 LIBS
="$LIBS_TERMCAP $LIBS"
14292 if test "$cross_compiling" = yes; then :
14293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 extern void tputs (const char *, int, int (*)(int));
14297 int main (int argc, char **argv)
14300 tputs (argv[0], 0, 0);
14305 if ac_fn_c_try_link
"$LINENO"; then :
14310 rm -f core conftest.err conftest.
$ac_objext \
14311 conftest
$ac_exeext conftest.
$ac_ext
14313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 extern void tputs (const char *, int, int (*)(int));
14317 int main (int argc, char **argv)
14320 tputs (argv[0], 0, 0);
14325 if ac_fn_c_try_run
"$LINENO"; then :
14330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14335 if test "X$msg" != Xno
; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14340 $as_echo "$msg" >&6; }
14341 if test "X$msg" = Xno
; then
14342 as_fn_error
"The required function \`tputs' was not found in any library.
14343 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14344 Please try installing whichever of these libraries is most appropriate
14345 for your system, together with its header files.
14346 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14348 # Must define this when any termcap library is found.
14350 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14352 ## FIXME This was the cpp logic, but I am not sure it is right.
14353 ## The above test has not necessarily found libncurses.
14354 HAVE_LIBNCURSES
=yes
14356 ## Use terminfo instead of termcap?
14357 ## Note only system files NOT using terminfo are:
14358 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14359 ## darwin|gnu without ncurses.
14362 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14363 ## hpux10-20: Use the system provided termcap(3) library.
14364 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14365 ## is necessary. Otherwise Emacs dumps core when run -nw.
14366 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14368 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14369 ## The ncurses library has been moved out of the System framework in
14370 ## Mac OS X 10.2. So if configure detects it, set the command-line
14371 ## option to use it.
14373 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14374 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14376 LIBS_TERMCAP
="-lncurses"
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14382 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14383 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <osreldate.h>
14392 #if __FreeBSD_version < 400000
14400 if ac_fn_c_try_link
"$LINENO"; then :
14401 emacs_cv_freebsd_terminfo
=yes
14403 emacs_cv_freebsd_terminfo
=no
14405 rm -f core conftest.err conftest.
$ac_objext \
14406 conftest
$ac_exeext conftest.
$ac_ext
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14411 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14413 if test $emacs_cv_freebsd_terminfo = yes; then
14415 LIBS_TERMCAP
="-lncurses"
14417 LIBS_TERMCAP
="-ltermcap"
14422 if test "x$LIBS_TERMCAP" = "x-lterminfo"; then
14425 LIBS_TERMCAP
="-ltermcap"
14432 ## hpux: Make sure we get select from libc rather than from libcurses
14433 ## because libcurses on HPUX 10.10 has a broken version of select.
14434 ## We used to use -lc -lcurses, but this may be cleaner.
14435 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14437 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14439 ## Must use system termcap, if we use any termcap. It does special things.
14440 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14443 TERMCAP_OBJ
=tparam.o
14444 if test $TERMINFO = yes; then
14446 $as_echo "#define TERMINFO 1" >>confdefs.h
14448 TERMCAP_OBJ
=terminfo.o
14454 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 #include <netinet/in.h>
14459 #include <arpa/nameser.h>
14460 #include <resolv.h>
14469 if ac_fn_c_try_link
"$LINENO"; then :
14474 rm -f core conftest.err conftest.
$ac_objext \
14475 conftest
$ac_exeext conftest.
$ac_ext
14476 if test "$have_res_init" = no
; then
14478 LIBS
="$LIBS -lresolv"
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14480 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <netinet/in.h>
14484 #include <arpa/nameser.h>
14485 #include <resolv.h>
14494 if ac_fn_c_try_link
"$LINENO"; then :
14499 rm -f core conftest.err conftest.
$ac_objext \
14500 conftest
$ac_exeext conftest.
$ac_ext
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14502 $as_echo "$have_res_init" >&6; }
14503 if test "$have_res_init" = yes ; then
14509 if test "$have_res_init" = yes; then
14511 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14515 # Do we need the Hesiod library to provide the support routines?
14517 if test "$with_hesiod" != no
; then
14518 # Don't set $LIBS here -- see comments above. FIXME which comments?
14519 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14520 if test "x$ac_cv_func_res_send" = x
""yes; then :
14523 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14524 if test "x$ac_cv_func___res_send" = x
""yes; then :
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14528 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14529 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14532 ac_check_lib_save_LIBS
=$LIBS
14533 LIBS
="-lresolv $LIBS"
14534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14547 return res_send ();
14552 if ac_fn_c_try_link
"$LINENO"; then :
14553 ac_cv_lib_resolv_res_send
=yes
14555 ac_cv_lib_resolv_res_send
=no
14557 rm -f core conftest.err conftest.
$ac_objext \
14558 conftest
$ac_exeext conftest.
$ac_ext
14559 LIBS
=$ac_check_lib_save_LIBS
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14562 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14563 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14567 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14568 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14571 ac_check_lib_save_LIBS
=$LIBS
14572 LIBS
="-lresolv $LIBS"
14573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14576 /* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14582 char __res_send ();
14586 return __res_send ();
14591 if ac_fn_c_try_link
"$LINENO"; then :
14592 ac_cv_lib_resolv___res_send
=yes
14594 ac_cv_lib_resolv___res_send
=no
14596 rm -f core conftest.err conftest.
$ac_objext \
14597 conftest
$ac_exeext conftest.
$ac_ext
14598 LIBS
=$ac_check_lib_save_LIBS
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14601 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14602 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14612 if test "$resolv" = yes ; then
14617 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14618 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14622 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14623 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14624 $as_echo_n "(cached) " >&6
14626 ac_check_lib_save_LIBS
=$LIBS
14627 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 /* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
14637 char hes_getmailhost ();
14641 return hes_getmailhost ();
14646 if ac_fn_c_try_link
"$LINENO"; then :
14647 ac_cv_lib_hesiod_hes_getmailhost
=yes
14649 ac_cv_lib_hesiod_hes_getmailhost
=no
14651 rm -f core conftest.err conftest.
$ac_objext \
14652 conftest
$ac_exeext conftest.
$ac_ext
14653 LIBS
=$ac_check_lib_save_LIBS
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14656 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14657 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14666 if test x
"$hesiod" = xyes
; then
14668 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14675 # Do we need libresolv (due to res_init or Hesiod)?
14676 if test "$resolv" = yes ; then
14678 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14686 # These tell us which Kerberos-related libraries to use.
14693 if test "${with_kerberos}" != no
; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14695 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14696 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14699 ac_check_lib_save_LIBS
=$LIBS
14700 LIBS
="-lcom_err $LIBS"
14701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14719 if ac_fn_c_try_link
"$LINENO"; then :
14720 ac_cv_lib_com_err_com_err
=yes
14722 ac_cv_lib_com_err_com_err
=no
14724 rm -f core conftest.err conftest.
$ac_objext \
14725 conftest
$ac_exeext conftest.
$ac_ext
14726 LIBS
=$ac_check_lib_save_LIBS
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14729 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14730 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14736 if test $have_com_err = yes; then
14737 COM_ERRLIB
=-lcom_err
14738 LIBS
="$COM_ERRLIB $LIBS"
14740 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14744 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14745 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14748 ac_check_lib_save_LIBS
=$LIBS
14749 LIBS
="-lcrypto $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. */
14759 char mit_des_cbc_encrypt ();
14763 return mit_des_cbc_encrypt ();
14768 if ac_fn_c_try_link
"$LINENO"; then :
14769 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14771 ac_cv_lib_crypto_mit_des_cbc_encrypt
=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_crypto_mit_des_cbc_encrypt" >&5
14778 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14779 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14785 if test $have_crypto = yes; then
14787 LIBS
="$CRYPTOLIB $LIBS"
14789 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14793 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14794 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14797 ac_check_lib_save_LIBS
=$LIBS
14798 LIBS
="-lk5crypto $LIBS"
14799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14808 char mit_des_cbc_encrypt ();
14812 return mit_des_cbc_encrypt ();
14817 if ac_fn_c_try_link
"$LINENO"; then :
14818 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14820 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14822 rm -f core conftest.err conftest.
$ac_objext \
14823 conftest
$ac_exeext conftest.
$ac_ext
14824 LIBS
=$ac_check_lib_save_LIBS
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14827 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14828 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14834 if test $have_k5crypto = yes; then
14835 CRYPTOLIB
=-lk5crypto
14836 LIBS
="$CRYPTOLIB $LIBS"
14838 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14842 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14843 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14846 ac_check_lib_save_LIBS
=$LIBS
14847 LIBS
="-lkrb5 $LIBS"
14848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14851 /* Override any GCC internal prototype to avoid an error.
14852 Use char because int might match the return type of a GCC
14853 builtin and then its argument prototype would still apply. */
14857 char krb5_init_context ();
14861 return krb5_init_context ();
14866 if ac_fn_c_try_link
"$LINENO"; then :
14867 ac_cv_lib_krb5_krb5_init_context
=yes
14869 ac_cv_lib_krb5_krb5_init_context
=no
14871 rm -f core conftest.err conftest.
$ac_objext \
14872 conftest
$ac_exeext conftest.
$ac_ext
14873 LIBS
=$ac_check_lib_save_LIBS
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14876 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14877 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14883 if test $have_krb5=yes; then
14885 LIBS
="$KRB5LIB $LIBS"
14887 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14890 if test "${with_kerberos5}" = no
; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14892 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14893 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14896 ac_check_lib_save_LIBS
=$LIBS
14897 LIBS
="-ldes425 $LIBS"
14898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply. */
14907 char des_cbc_encrypt ();
14911 return des_cbc_encrypt ();
14916 if ac_fn_c_try_link
"$LINENO"; then :
14917 ac_cv_lib_des425_des_cbc_encrypt
=yes
14919 ac_cv_lib_des425_des_cbc_encrypt
=no
14921 rm -f core conftest.err conftest.
$ac_objext \
14922 conftest
$ac_exeext conftest.
$ac_ext
14923 LIBS
=$ac_check_lib_save_LIBS
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14926 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14927 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14933 if test $have_des425 = yes; then
14935 LIBS
="$DESLIB $LIBS"
14937 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14941 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14942 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14943 $as_echo_n "(cached) " >&6
14945 ac_check_lib_save_LIBS
=$LIBS
14947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14956 char des_cbc_encrypt ();
14960 return des_cbc_encrypt ();
14965 if ac_fn_c_try_link
"$LINENO"; then :
14966 ac_cv_lib_des_des_cbc_encrypt
=yes
14968 ac_cv_lib_des_des_cbc_encrypt
=no
14970 rm -f core conftest.err conftest.
$ac_objext \
14971 conftest
$ac_exeext conftest.
$ac_ext
14972 LIBS
=$ac_check_lib_save_LIBS
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14975 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14976 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14982 if test $have_des = yes; then
14984 LIBS
="$DESLIB $LIBS"
14986 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14991 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14992 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14995 ac_check_lib_save_LIBS
=$LIBS
14996 LIBS
="-lkrb4 $LIBS"
14997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char krb_get_cred ();
15010 return krb_get_cred ();
15015 if ac_fn_c_try_link
"$LINENO"; then :
15016 ac_cv_lib_krb4_krb_get_cred
=yes
15018 ac_cv_lib_krb4_krb_get_cred
=no
15020 rm -f core conftest.err conftest.
$ac_objext \
15021 conftest
$ac_exeext conftest.
$ac_ext
15022 LIBS
=$ac_check_lib_save_LIBS
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15025 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15026 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15032 if test $have_krb4 = yes; then
15034 LIBS
="$KRB4LIB $LIBS"
15036 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15040 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15041 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15044 ac_check_lib_save_LIBS
=$LIBS
15046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15055 char krb_get_cred ();
15059 return krb_get_cred ();
15064 if ac_fn_c_try_link
"$LINENO"; then :
15065 ac_cv_lib_krb_krb_get_cred
=yes
15067 ac_cv_lib_krb_krb_get_cred
=no
15069 rm -f core conftest.err conftest.
$ac_objext \
15070 conftest
$ac_exeext conftest.
$ac_ext
15071 LIBS
=$ac_check_lib_save_LIBS
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15074 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15075 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15081 if test $have_krb = yes; then
15083 LIBS
="$KRB4LIB $LIBS"
15085 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15091 if test "${with_kerberos5}" != no
; then
15092 for ac_header
in krb5.h
15094 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15095 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15096 cat >>confdefs.h
<<_ACEOF
15097 #define HAVE_KRB5_H 1
15099 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15101 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15103 cat >>confdefs.h
<<_ACEOF
15104 #define HAVE_KRB5_ERROR_TEXT 1
15109 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15111 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15113 cat >>confdefs.h
<<_ACEOF
15114 #define HAVE_KRB5_ERROR_E_TEXT 1
15125 for ac_header
in des.h
15127 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15128 if test "x$ac_cv_header_des_h" = x
""yes; then :
15129 cat >>confdefs.h
<<_ACEOF
15130 #define HAVE_DES_H 1
15134 for ac_header
in kerberosIV
/des.h
15136 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15138 cat >>confdefs.h
<<_ACEOF
15139 #define HAVE_KERBEROSIV_DES_H 1
15143 for ac_header
in kerberos
/des.h
15145 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15146 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15147 cat >>confdefs.h
<<_ACEOF
15148 #define HAVE_KERBEROS_DES_H 1
15163 for ac_header
in krb.h
15165 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15166 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15167 cat >>confdefs.h
<<_ACEOF
15168 #define HAVE_KRB_H 1
15172 for ac_header
in kerberosIV
/krb.h
15174 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15175 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15176 cat >>confdefs.h
<<_ACEOF
15177 #define HAVE_KERBEROSIV_KRB_H 1
15181 for ac_header
in kerberos
/krb.h
15183 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15184 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15185 cat >>confdefs.h
<<_ACEOF
15186 #define HAVE_KERBEROS_KRB_H 1
15202 for ac_header
in com_err.h
15204 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15205 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15206 cat >>confdefs.h
<<_ACEOF
15207 #define HAVE_COM_ERR_H 1
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15223 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15224 if test "${emacs_cv_localtime_cache+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15227 if test x
$ac_cv_func_tzset = xyes
; then
15228 if test "$cross_compiling" = yes; then :
15229 # If we have tzset, assume the worst when cross-compiling.
15230 emacs_cv_localtime_cache
=yes
15232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15235 char TZ_GMT0[] = "TZ=GMT0";
15236 char TZ_PST8[] = "TZ=PST8";
15239 time_t now = time ((time_t *) 0);
15240 int hour_GMT0, hour_unset;
15241 if (putenv (TZ_GMT0) != 0)
15243 hour_GMT0 = localtime (&now)->tm_hour;
15245 hour_unset = localtime (&now)->tm_hour;
15246 if (putenv (TZ_PST8) != 0)
15248 if (localtime (&now)->tm_hour == hour_GMT0)
15251 if (localtime (&now)->tm_hour != hour_unset)
15256 if ac_fn_c_try_run
"$LINENO"; then :
15257 emacs_cv_localtime_cache
=no
15259 emacs_cv_localtime_cache
=yes
15261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15266 # If we lack tzset, report that localtime does not cache TZ,
15267 # since we can't invalidate the cache if we don't have tzset.
15268 emacs_cv_localtime_cache
=no
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15272 $as_echo "$emacs_cv_localtime_cache" >&6; }
15273 if test $emacs_cv_localtime_cache = yes; then
15275 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15279 if test "x$HAVE_TIMEVAL" = xyes
; then
15280 for ac_func
in gettimeofday
15282 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15283 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15284 cat >>confdefs.h
<<_ACEOF
15285 #define HAVE_GETTIMEOFDAY 1
15291 if test $ac_cv_func_gettimeofday = yes; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15293 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15294 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15300 #ifdef TIME_WITH_SYS_TIME
15301 #include <sys/time.h>
15304 #ifdef HAVE_SYS_TIME_H
15305 #include <sys/time.h>
15313 struct timeval time;
15314 gettimeofday (&time, 0);
15319 if ac_fn_c_try_compile
"$LINENO"; then :
15320 emacs_cv_gettimeofday_two_arguments
=yes
15322 emacs_cv_gettimeofday_two_arguments
=no
15324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15327 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15328 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15330 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15337 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15338 if test "x$ac_cv_func_socket" = x
""yes; then :
15344 if test $ok_so_far = yes; then
15345 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15346 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15354 if test $ok_so_far = yes; then
15355 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15356 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15364 if test $ok_so_far = yes; then
15366 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15370 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15372 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15377 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15378 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15380 $as_echo "yes" >&6; }
15382 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15389 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15390 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15394 cat >>confdefs.h
<<_ACEOF
15400 for ac_header
in vfork.h
15402 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15403 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15404 cat >>confdefs.h
<<_ACEOF
15405 #define HAVE_VFORK_H 1
15412 for ac_func
in fork vfork
15414 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15416 eval as_val
=\$
$as_ac_var
15417 if test "x$as_val" = x
""yes; then :
15418 cat >>confdefs.h
<<_ACEOF
15419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15425 if test "x$ac_cv_func_fork" = xyes
; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15427 $as_echo_n "checking for working fork... " >&6; }
15428 if test "${ac_cv_func_fork_works+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15431 if test "$cross_compiling" = yes; then :
15432 ac_cv_func_fork_works
=cross
15434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 $ac_includes_default
15441 /* By Ruediger Kuhlmann. */
15442 return fork () < 0;
15448 if ac_fn_c_try_run
"$LINENO"; then :
15449 ac_cv_func_fork_works
=yes
15451 ac_cv_func_fork_works
=no
15453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15459 $as_echo "$ac_cv_func_fork_works" >&6; }
15462 ac_cv_func_fork_works
=$ac_cv_func_fork
15464 if test "x$ac_cv_func_fork_works" = xcross
; then
15466 *-*-amigaos* |
*-*-msdosdjgpp*)
15467 # Override, as these systems have only a dummy fork() stub
15468 ac_cv_func_fork_works
=no
15471 ac_cv_func_fork_works
=yes
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15475 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15477 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15478 if test "x$ac_cv_func_vfork" = xyes
; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15480 $as_echo_n "checking for working vfork... " >&6; }
15481 if test "${ac_cv_func_vfork_works+set}" = set; then :
15482 $as_echo_n "(cached) " >&6
15484 if test "$cross_compiling" = yes; then :
15485 ac_cv_func_vfork_works
=cross
15487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 /* Thanks to Paul Eggert for this test. */
15490 $ac_includes_default
15491 #include <sys/wait.h>
15492 #ifdef HAVE_VFORK_H
15493 # include <vfork.h>
15495 /* On some sparc systems, changes by the child to local and incoming
15496 argument registers are propagated back to the parent. The compiler
15497 is told about this with #include <vfork.h>, but some compilers
15498 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15499 static variable whose address is put into a register that is
15500 clobbered by the vfork. */
15503 sparc_address_test (int arg)
15505 sparc_address_test (arg) int arg;
15508 static pid_t child;
15526 pid_t parent = getpid ();
15529 sparc_address_test (0);
15534 /* Here is another test for sparc vfork register problems. This
15535 test uses lots of local variables, at least as many local
15536 variables as main has allocated so far including compiler
15537 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15538 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15539 reuse the register of parent for one of the local variables,
15540 since it will think that parent can't possibly be used any more
15541 in this routine. Assigning to the local variable will thus
15542 munge parent in the parent process. */
15544 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15545 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15546 /* Convince the compiler that p..p7 are live; otherwise, it might
15547 use the same hardware register for all 8 local variables. */
15548 if (p != p1 || p != p2 || p != p3 || p != p4
15549 || p != p5 || p != p6 || p != p7)
15552 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15553 from child file descriptors. If the child closes a descriptor
15554 before it execs or exits, this munges the parent's descriptor
15555 as well. Test for this by closing stdout in the child. */
15556 _exit(close(fileno(stdout)) != 0);
15561 while (wait(&status) != child)
15564 /* Was there some problem with vforking? */
15567 /* Did the child fail? (This shouldn't happen.) */
15570 /* Did the vfork/compiler bug occur? */
15571 || parent != getpid()
15573 /* Did the file descriptor bug occur? */
15574 || fstat(fileno(stdout), &st) != 0
15579 if ac_fn_c_try_run
"$LINENO"; then :
15580 ac_cv_func_vfork_works
=yes
15582 ac_cv_func_vfork_works
=no
15584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15585 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15590 $as_echo "$ac_cv_func_vfork_works" >&6; }
15593 if test "x$ac_cv_func_fork_works" = xcross
; then
15594 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15596 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15599 if test "x$ac_cv_func_vfork_works" = xyes
; then
15601 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15605 $as_echo "#define vfork fork" >>confdefs.h
15608 if test "x$ac_cv_func_fork_works" = xyes
; then
15610 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15615 for ac_func
in snprintf
15617 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15618 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15619 cat >>confdefs.h
<<_ACEOF
15620 #define HAVE_SNPRINTF 1
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15628 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15629 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <langinfo.h>
15638 char* cs = nl_langinfo(CODESET);
15643 if ac_fn_c_try_link
"$LINENO"; then :
15644 emacs_cv_langinfo_codeset
=yes
15646 emacs_cv_langinfo_codeset
=no
15648 rm -f core conftest.err conftest.
$ac_objext \
15649 conftest
$ac_exeext conftest.
$ac_ext
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15653 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15654 if test $emacs_cv_langinfo_codeset = yes; then
15656 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15661 $as_echo_n "checking for mbstate_t... " >&6; }
15662 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15663 $as_echo_n "(cached) " >&6
15665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 $ac_includes_default
15668 # include <wchar.h>
15672 mbstate_t x; return sizeof x;
15677 if ac_fn_c_try_compile
"$LINENO"; then :
15678 ac_cv_type_mbstate_t
=yes
15680 ac_cv_type_mbstate_t
=no
15682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15685 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15686 if test $ac_cv_type_mbstate_t = yes; then
15688 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15692 $as_echo "#define mbstate_t int" >>confdefs.h
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15697 $as_echo_n "checking for C restricted array declarations... " >&6; }
15698 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15699 $as_echo_n "(cached) " >&6
15701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 void fred (int x[__restrict]);
15712 if ac_fn_c_try_compile
"$LINENO"; then :
15713 emacs_cv_c_restrict_arr
=yes
15715 emacs_cv_c_restrict_arr
=no
15717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15720 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15721 if test "$emacs_cv_c_restrict_arr" = yes; then
15723 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15728 # Set up the CFLAGS for real compilation, so we can substitute it.
15729 CFLAGS
="$REAL_CFLAGS"
15730 CPPFLAGS
="$REAL_CPPFLAGS"
15732 ## Hack to detect a buggy GCC version.
15733 if test "x$GCC" = xyes \
15734 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15735 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15736 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15737 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15740 version
=$PACKAGE_VERSION
15742 ### Specify what sort of things we'll be editing into Makefile and config.h.
15743 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15767 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15768 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15769 ## end of LIBX_BASE, but nothing ever set it.
15774 ## Used in lwlib/Makefile.in.
15776 if test -n "${machfile}"; then
15777 M_FILE
="\$(srcdir)/${machfile}"
15781 S_FILE
="\$(srcdir)/${opsysfile}"
15792 cat >>confdefs.h
<<_ACEOF
15793 #define EMACS_CONFIGURATION "${canonical}"
15797 cat >>confdefs.h
<<_ACEOF
15798 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15801 if test -n "$machfile"; then
15803 cat >>confdefs.h
<<_ACEOF
15804 #define config_machfile "${machfile}"
15809 cat >>confdefs.h
<<_ACEOF
15810 #define config_opsysfile "${opsysfile}"
15817 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15819 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15822 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15824 if test "$HAVE_XFT" = "yes"; then
15825 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15826 elif test "$HAVE_FREETYPE" = "yes"; then
15827 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15837 if test "${USE_X_TOOLKIT}" != "none" ; then
15838 WIDGET_OBJ
=widget.o
15840 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15842 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15844 $as_echo "#define USE_LUCID 1" >>confdefs.h
15846 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15848 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15853 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15854 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15858 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15859 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15860 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15864 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15865 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15868 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15874 case "$USE_X_TOOLKIT" in
15875 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15876 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15877 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15881 if test "$USE_X_TOOLKIT" = "none"; then
15882 LIBXT_OTHER
="\$(LIBXSM)"
15883 OLDXMENU_TARGET
="really-oldXMenu"
15885 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15886 OLDXMENU_TARGET
="really-lwlib"
15890 ## The X Menu stuff is present in the X10 distribution, but missing
15891 ## from X11. If we have X10, just use the installed library;
15892 ## otherwise, use our own copy.
15893 if test "${HAVE_X11}" = "yes" ; then
15895 $as_echo "#define HAVE_X11 1" >>confdefs.h
15898 if test "$USE_X_TOOLKIT" = "none"; then
15899 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15901 OLDXMENU
="\${lwlibdir}/liblw.a"
15903 LIBXMENU
="\$(OLDXMENU)"
15904 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15905 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15907 ## For a syntactically valid Makefile; not actually used for anything.
15908 ## See comments in src/Makefile.in.
15910 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15911 if test "${HAVE_X_WINDOWS}" = "yes"; then
15920 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15933 if test "${HAVE_MENUS}" = "yes" ; then
15935 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15939 if test "${GNU_MALLOC}" = "yes" ; then
15941 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15946 if test "${REL_ALLOC}" = "yes" ; then
15948 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15951 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15955 if test "$opsys" = "cygwin"; then
15956 CYGWIN_OBJ
="sheap.o"
15957 ## Cygwin differs because of its unexec().
15959 POST_ALLOC_OBJ
=lastfile.o
15962 PRE_ALLOC_OBJ
=lastfile.o
15969 # Configure gnulib here, now that we know LIBS.
15981 LIBC_FATAL_STDERR_
=1
15982 export LIBC_FATAL_STDERR_
15984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15985 # for constant arguments. Useless!
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15987 $as_echo_n "checking for working alloca.h... " >&6; }
15988 if test "${ac_cv_working_alloca_h+set}" = set; then :
15989 $as_echo_n "(cached) " >&6
15991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 #include <alloca.h>
15997 char *p = (char *) alloca (2 * sizeof (int));
16003 if ac_fn_c_try_link
"$LINENO"; then :
16004 ac_cv_working_alloca_h
=yes
16006 ac_cv_working_alloca_h
=no
16008 rm -f core conftest.err conftest.
$ac_objext \
16009 conftest
$ac_exeext conftest.
$ac_ext
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16012 $as_echo "$ac_cv_working_alloca_h" >&6; }
16013 if test $ac_cv_working_alloca_h = yes; then
16015 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16020 $as_echo_n "checking for alloca... " >&6; }
16021 if test "${ac_cv_func_alloca_works+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16027 # define alloca __builtin_alloca
16030 # include <malloc.h>
16031 # define alloca _alloca
16033 # ifdef HAVE_ALLOCA_H
16034 # include <alloca.h>
16039 # ifndef alloca /* predefined by HP cc +Olibcalls */
16050 char *p = (char *) alloca (1);
16056 if ac_fn_c_try_link
"$LINENO"; then :
16057 ac_cv_func_alloca_works
=yes
16059 ac_cv_func_alloca_works
=no
16061 rm -f core conftest.err conftest.
$ac_objext \
16062 conftest
$ac_exeext conftest.
$ac_ext
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16065 $as_echo "$ac_cv_func_alloca_works" >&6; }
16067 if test $ac_cv_func_alloca_works = yes; then
16069 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16073 # that cause trouble. Some versions do not even contain alloca or
16074 # contain a buggy version. If you still want to use their alloca,
16075 # use ar to extract alloca.o from them instead of compiling alloca.c.
16081 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16083 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16087 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16088 if test "${ac_cv_os_cray+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 #if defined CRAY && ! defined CRAY2
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "webecray" >/dev
/null
2>&1; then :
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16110 $as_echo "$ac_cv_os_cray" >&6; }
16111 if test $ac_cv_os_cray = yes; then
16112 for ac_func
in _getb67 GETB67 getb67
; do
16113 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16114 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16115 eval as_val
=\$
$as_ac_var
16116 if test "x$as_val" = x
""yes; then :
16118 cat >>confdefs.h
<<_ACEOF
16119 #define CRAY_STACKSEG_END $ac_func
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16129 $as_echo_n "checking stack direction for C alloca... " >&6; }
16130 if test "${ac_cv_c_stack_direction+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16133 if test "$cross_compiling" = yes; then :
16134 ac_cv_c_stack_direction
=0
16136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 $ac_includes_default
16140 find_stack_direction (int *addr, int depth)
16142 int dir, dummy = 0;
16145 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16146 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16147 return dir + dummy;
16151 main (int argc, char **argv)
16153 return find_stack_direction (0, argc + !argv + 20) < 0;
16156 if ac_fn_c_try_run
"$LINENO"; then :
16157 ac_cv_c_stack_direction
=1
16159 ac_cv_c_stack_direction
=-1
16161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16167 $as_echo "$ac_cv_c_stack_direction" >&6; }
16168 cat >>confdefs.h
<<_ACEOF
16169 #define STACK_DIRECTION $ac_cv_c_stack_direction
16178 for ac_func
in $ac_func_list
16180 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16182 eval as_val
=\$
$as_ac_var
16183 if test "x$as_val" = x
""yes; then :
16184 cat >>confdefs.h
<<_ACEOF
16185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16195 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16196 if test "${ac_cv_c_bigendian+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16199 ac_cv_c_bigendian
=unknown
16200 # See if we're dealing with a universal compiler.
16201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 #ifndef __APPLE_CC__
16204 not a universal capable compiler
16209 if ac_fn_c_try_compile
"$LINENO"; then :
16211 # Check for potential -arch flags. It is not universal unless
16212 # there are at least two -arch flags with different values.
16215 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16216 if test -n "$ac_prev"; then
16218 i?
86 | x86_64 | ppc | ppc64
)
16219 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16222 ac_cv_c_bigendian
=universal
16228 elif test "x$ac_word" = "x-arch"; then
16233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16234 if test $ac_cv_c_bigendian = unknown
; then
16235 # See if sys/param.h defines the BYTE_ORDER macro.
16236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238 #include <sys/types.h>
16239 #include <sys/param.h>
16244 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16245 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16247 bogus endian macros
16254 if ac_fn_c_try_compile
"$LINENO"; then :
16255 # It does; now see whether it defined to BIG_ENDIAN or not.
16256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 #include <sys/types.h>
16259 #include <sys/param.h>
16264 #if BYTE_ORDER != BIG_ENDIAN
16272 if ac_fn_c_try_compile
"$LINENO"; then :
16273 ac_cv_c_bigendian
=yes
16275 ac_cv_c_bigendian
=no
16277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16281 if test $ac_cv_c_bigendian = unknown
; then
16282 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <limits.h>
16290 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16291 bogus endian macros
16298 if ac_fn_c_try_compile
"$LINENO"; then :
16299 # It does; now see whether it defined to _BIG_ENDIAN or not.
16300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <limits.h>
16307 #ifndef _BIG_ENDIAN
16315 if ac_fn_c_try_compile
"$LINENO"; then :
16316 ac_cv_c_bigendian
=yes
16318 ac_cv_c_bigendian
=no
16320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16324 if test $ac_cv_c_bigendian = unknown
; then
16325 # Compile a test program.
16326 if test "$cross_compiling" = yes; then :
16327 # Try to guess by grepping values from an object file.
16328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 short int ascii_mm[] =
16331 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16332 short int ascii_ii[] =
16333 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16334 int use_ascii (int i) {
16335 return ascii_mm[i] + ascii_ii[i];
16337 short int ebcdic_ii[] =
16338 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16339 short int ebcdic_mm[] =
16340 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16341 int use_ebcdic (int i) {
16342 return ebcdic_mm[i] + ebcdic_ii[i];
16349 return use_ascii (foo) == use_ebcdic (foo);
16354 if ac_fn_c_try_compile
"$LINENO"; then :
16355 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16356 ac_cv_c_bigendian
=yes
16358 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16359 if test "$ac_cv_c_bigendian" = unknown
; then
16360 ac_cv_c_bigendian
=no
16362 # finding both strings is unlikely to happen, but who knows?
16363 ac_cv_c_bigendian
=unknown
16367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 $ac_includes_default
16376 /* Are we little or big endian? From Harbison&Steele. */
16380 char c[sizeof (long int)];
16383 return u.c[sizeof (long int) - 1] == 1;
16389 if ac_fn_c_try_run
"$LINENO"; then :
16390 ac_cv_c_bigendian
=no
16392 ac_cv_c_bigendian
=yes
16394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16401 $as_echo "$ac_cv_c_bigendian" >&6; }
16402 case $ac_cv_c_bigendian in #(
16404 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16410 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16414 as_fn_error
"unknown endianness
16415 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16420 $as_echo_n "checking for inline... " >&6; }
16421 if test "${ac_cv_c_inline+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16425 for ac_kw
in inline __inline__ __inline
; do
16426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 #ifndef __cplusplus
16430 static $ac_kw foo_t static_foo () {return 0; }
16431 $ac_kw foo_t foo () {return 0; }
16435 if ac_fn_c_try_compile
"$LINENO"; then :
16436 ac_cv_c_inline
=$ac_kw
16438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16439 test "$ac_cv_c_inline" != no
&& break
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16444 $as_echo "$ac_cv_c_inline" >&6; }
16446 case $ac_cv_c_inline in
16449 case $ac_cv_c_inline in
16451 *) ac_val
=$ac_cv_c_inline;;
16453 cat >>confdefs.h
<<_ACEOF
16454 #ifndef __cplusplus
16455 #define inline $ac_val
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16463 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16464 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 /* On HP-UX before 11.23, strtold returns a struct instead of
16470 long double. Reject implementations like that, by requiring
16471 compatibility with the C99 prototype. */
16472 #include <stdlib.h>
16473 static long double (*p) (char const *, char **) = strtold;
16475 test (char const *nptr, char **endptr)
16478 r = strtold (nptr, endptr);
16484 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16489 if ac_fn_c_try_link
"$LINENO"; then :
16490 gl_cv_func_c99_strtold
=yes
16492 gl_cv_func_c99_strtold
=no
16494 rm -f core conftest.err conftest.
$ac_objext \
16495 conftest
$ac_exeext conftest.
$ac_ext
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16498 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16499 if test $gl_cv_func_c99_strtold = yes; then
16501 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16513 GNULIB_EUIDACCESS
=0;
16514 GNULIB_FACCESSAT
=0;
16517 GNULIB_FDATASYNC
=0;
16519 GNULIB_FTRUNCATE
=0;
16521 GNULIB_GETDOMAINNAME
=0;
16522 GNULIB_GETDTABLESIZE
=0;
16523 GNULIB_GETGROUPS
=0;
16524 GNULIB_GETHOSTNAME
=0;
16526 GNULIB_GETLOGIN_R
=0;
16527 GNULIB_GETPAGESIZE
=0;
16528 GNULIB_GETUSERSHELL
=0;
16529 GNULIB_GROUP_MEMBER
=0;
16540 GNULIB_READLINKAT
=0;
16544 GNULIB_SYMLINKAT
=0;
16545 GNULIB_TTYNAME_R
=0;
16546 GNULIB_UNISTD_H_GETOPT
=0;
16547 GNULIB_UNISTD_H_NONBLOCKING
=0;
16548 GNULIB_UNISTD_H_SIGPIPE
=0;
16563 HAVE_GETDTABLESIZE
=1;
16565 HAVE_GETHOSTNAME
=1;
16567 HAVE_GETPAGESIZE
=1;
16568 HAVE_GROUP_MEMBER
=1;
16583 HAVE_DECL_ENVIRON
=1;
16584 HAVE_DECL_FCHDIR
=1;
16585 HAVE_DECL_FDATASYNC
=1;
16586 HAVE_DECL_GETDOMAINNAME
=1;
16587 HAVE_DECL_GETLOGIN_R
=1;
16588 HAVE_DECL_GETPAGESIZE
=1;
16589 HAVE_DECL_GETUSERSHELL
=1;
16590 HAVE_DECL_TTYNAME_R
=1;
16592 HAVE_SYS_PARAM_H
=0;
16597 REPLACE_FCHOWNAT
=0;
16599 REPLACE_GETDOMAINNAME
=0;
16600 REPLACE_GETLOGIN_R
=0;
16601 REPLACE_GETGROUPS
=0;
16602 REPLACE_GETPAGESIZE
=0;
16610 REPLACE_READLINK
=0;
16614 REPLACE_TTYNAME_R
=0;
16616 REPLACE_UNLINKAT
=0;
16619 UNISTD_H_HAVE_WINSOCK2_H
=0;
16620 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16624 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16625 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16626 $as_echo_n "(cached) " >&6
16628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16631 #include <sys/types.h>
16632 #include <sys/stat.h>
16636 struct stat s; s.st_dm_mode;
16641 if ac_fn_c_try_compile
"$LINENO"; then :
16642 ac_cv_struct_st_dm_mode
=yes
16644 ac_cv_struct_st_dm_mode
=no
16646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16649 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16651 if test $ac_cv_struct_st_dm_mode = yes; then
16653 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16658 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16659 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16665 cat >>confdefs.h
<<_ACEOF
16666 #define HAVE_DECL_STRMODE $ac_have_decl
16672 GNULIB_CALLOC_POSIX
=0;
16673 GNULIB_CANONICALIZE_FILE_NAME
=0;
16674 GNULIB_GETLOADAVG
=0;
16675 GNULIB_GETSUBOPT
=0;
16677 GNULIB_MALLOC_POSIX
=0;
16681 GNULIB_MKOSTEMPS
=0;
16687 GNULIB_REALLOC_POSIX
=0;
16694 GNULIB_SYSTEM_POSIX
=0;
16700 HAVE_CANONICALIZE_FILE_NAME
=1;
16701 HAVE_DECL_GETLOADAVG
=1;
16715 HAVE_DECL_SETENV
=1;
16719 HAVE_STRUCT_RANDOM_DATA
=1;
16720 HAVE_SYS_LOADAVG_H
=0;
16722 HAVE_DECL_UNSETENV
=1;
16724 REPLACE_CANONICALIZE_FILE_NAME
=0;
16730 REPLACE_REALPATH
=0;
16733 REPLACE_UNSETENV
=0;
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16739 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16740 if test "${gl_cv_have_include_next+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16743 rm -rf conftestd1a conftestd1b conftestd2
16744 mkdir conftestd1a conftestd1b conftestd2
16745 cat <<EOF > conftestd1a/conftest.h
16746 #define DEFINED_IN_CONFTESTD1
16747 #include_next <conftest.h>
16748 #ifdef DEFINED_IN_CONFTESTD2
16751 #error "include_next doesn't work"
16754 cat <<EOF > conftestd1b/conftest.h
16755 #define DEFINED_IN_CONFTESTD1
16757 #include_next <conftest.h>
16758 #ifdef DEFINED_IN_CONFTESTD2
16761 #error "include_next doesn't work"
16764 cat <<EOF > conftestd2/conftest.h
16765 #ifndef DEFINED_IN_CONFTESTD1
16766 #error "include_next test doesn't work"
16768 #define DEFINED_IN_CONFTESTD2
16770 gl_save_CPPFLAGS
="$CPPFLAGS"
16771 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 #include <conftest.h>
16776 if ac_fn_c_try_compile
"$LINENO"; then :
16777 gl_cv_have_include_next
=yes
16779 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 #include <conftest.h>
16784 if ac_fn_c_try_compile
"$LINENO"; then :
16785 gl_cv_have_include_next
=buggy
16787 gl_cv_have_include_next
=no
16789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16793 CPPFLAGS
="$gl_save_CPPFLAGS"
16794 rm -rf conftestd1a conftestd1b conftestd2
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16798 $as_echo "$gl_cv_have_include_next" >&6; }
16799 PRAGMA_SYSTEM_HEADER
=
16800 if test $gl_cv_have_include_next = yes; then
16801 INCLUDE_NEXT
=include_next
16802 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16803 if test -n "$GCC"; then
16804 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16807 if test $gl_cv_have_include_next = buggy
; then
16808 INCLUDE_NEXT
=include
16809 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16811 INCLUDE_NEXT
=include
16812 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16819 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16820 if test "${gl_cv_pragma_columns+set}" = set; then :
16821 $as_echo_n "(cached) " >&6
16823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16832 $EGREP "choke me" >/dev
/null
2>&1; then :
16833 gl_cv_pragma_columns
=yes
16835 gl_cv_pragma_columns
=no
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16842 $as_echo "$gl_cv_pragma_columns" >&6; }
16843 if test $gl_cv_pragma_columns = yes; then
16844 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16865 if test $gl_cv_have_include_next = yes; then
16866 gl_cv_next_getopt_h
='<'getopt.h
'>'
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16869 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16870 if test "${gl_cv_next_getopt_h+set}" = set; then :
16871 $as_echo_n "(cached) " >&6
16874 if test $ac_cv_header_getopt_h = yes; then
16877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879 #include <getopt.h>
16883 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16884 *) gl_absname_cpp
="$ac_cpp" ;;
16889 gl_dirsep_regex
='[/\\]'
16892 gl_dirsep_regex
='/'
16896 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
16897 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16902 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16903 sed -n "$gl_absolute_header_sed"`'"'
16905 gl_cv_next_getopt_h
='<'getopt.h
'>'
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16911 $as_echo "$gl_cv_next_getopt_h" >&6; }
16913 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16915 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16917 gl_next_as_first_directive
='<'getopt.h
'>'
16919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16920 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16922 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16927 if test $ac_cv_header_getopt_h = yes; then
16936 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16937 for ac_header
in getopt.h
16939 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16940 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16941 cat >>confdefs.h
<<_ACEOF
16942 #define HAVE_GETOPT_H 1
16946 gl_replace_getopt
=yes
16953 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16954 for ac_func
in getopt_long_only
16956 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16957 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16958 cat >>confdefs.h
<<_ACEOF
16959 #define HAVE_GETOPT_LONG_ONLY 1
16963 gl_replace_getopt
=yes
16969 if test -z "$gl_replace_getopt"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16971 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16972 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978 #include <unistd.h>
16982 int *p = &optreset; return optreset;
16987 if ac_fn_c_try_link
"$LINENO"; then :
16990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 #include <getopt.h>
16996 return !getopt_clip;
17001 if ac_fn_c_try_compile
"$LINENO"; then :
17006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17008 rm -f core conftest.err conftest.
$ac_objext \
17009 conftest
$ac_exeext conftest.
$ac_ext
17011 gl_save_CPPFLAGS
=$CPPFLAGS
17012 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17013 if test "$cross_compiling" = yes; then :
17015 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17016 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17017 *) gl_cv_func_getopt_posix
="guessing yes";;
17021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17024 #include <unistd.h>
17025 #include <stdlib.h>
17026 #include <string.h>
17032 static char program[] = "program";
17033 static char a[] = "-a";
17034 static char foo[] = "foo";
17035 static char bar[] = "bar";
17036 char *argv[] = { program, a, foo, bar, NULL };
17039 optind = OPTIND_MIN;
17042 c = getopt (4, argv, "ab");
17045 c = getopt (4, argv, "ab");
17048 if (!(optind == 2))
17051 /* Some internal state exists at this point. */
17053 static char program[] = "program";
17054 static char donald[] = "donald";
17055 static char p[] = "-p";
17056 static char billy[] = "billy";
17057 static char duck[] = "duck";
17058 static char a[] = "-a";
17059 static char bar[] = "bar";
17060 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17063 optind = OPTIND_MIN;
17066 c = getopt (7, argv, "+abp:q:");
17069 if (!(strcmp (argv[0], "program") == 0))
17071 if (!(strcmp (argv[1], "donald") == 0))
17073 if (!(strcmp (argv[2], "-p") == 0))
17075 if (!(strcmp (argv[3], "billy") == 0))
17077 if (!(strcmp (argv[4], "duck") == 0))
17079 if (!(strcmp (argv[5], "-a") == 0))
17081 if (!(strcmp (argv[6], "bar") == 0))
17083 if (!(optind == 1))
17086 /* Detect MacOS 10.5, AIX 7.1 bug. */
17088 static char program[] = "program";
17089 static char ab[] = "-ab";
17090 char *argv[3] = { program, ab, NULL };
17091 optind = OPTIND_MIN;
17093 if (getopt (2, argv, "ab:") != 'a')
17095 if (getopt (2, argv, "ab:") != '?')
17107 if ac_fn_c_try_run
"$LINENO"; then :
17108 gl_cv_func_getopt_posix
=yes
17110 gl_cv_func_getopt_posix
=no
17112 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17113 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17116 CPPFLAGS
=$gl_save_CPPFLAGS
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17120 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17121 case "$gl_cv_func_getopt_posix" in
17122 *no
) gl_replace_getopt
=yes ;;
17126 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17128 $as_echo_n "checking for working GNU getopt function... " >&6; }
17129 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17130 $as_echo_n "(cached) " >&6
17132 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17133 # optstring is necessary for programs like m4 that have POSIX-mandated
17134 # semantics for supporting options interspersed with files.
17135 # Also, since getopt_long is a GNU extension, we require optind=0.
17136 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17137 # so take care to revert to the correct (non-)export state.
17138 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17139 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17140 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17141 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17142 *) gl_had_POSIXLY_CORRECT
= ;;
17145 export POSIXLY_CORRECT
17146 if test "$cross_compiling" = yes; then :
17147 case $host_os:$ac_cv_have_decl_optreset in
17148 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17149 *:yes) gl_cv_func_getopt_gnu
=no
;;
17150 *) gl_cv_func_getopt_gnu
=yes;;
17154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156 #include <getopt.h>
17157 #include <stddef.h>
17158 #include <string.h>
17160 #include <stdlib.h>
17161 #if defined __MACH__ && defined __APPLE__
17162 /* Avoid a crash on MacOS X. */
17163 #include <mach/mach.h>
17164 #include <mach/mach_error.h>
17165 #include <mach/thread_status.h>
17166 #include <mach/exception.h>
17167 #include <mach/task.h>
17168 #include <pthread.h>
17169 /* The exception port on which our thread listens. */
17170 static mach_port_t our_exception_port;
17171 /* The main function of the thread listening for exceptions of type
17174 mach_exception_thread (void *arg)
17176 /* Buffer for a message to be received. */
17178 mach_msg_header_t head;
17179 mach_msg_body_t msgh_body;
17182 mach_msg_return_t retval;
17183 /* Wait for a message on the exception port. */
17184 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17185 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17186 if (retval != MACH_MSG_SUCCESS)
17191 nocrash_init (void)
17193 mach_port_t self = mach_task_self ();
17194 /* Allocate a port on which the thread shall listen for exceptions. */
17195 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17197 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17198 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17199 MACH_MSG_TYPE_MAKE_SEND)
17201 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17203 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17204 /* Create the thread listening on the exception port. */
17205 pthread_attr_t attr;
17207 if (pthread_attr_init (&attr) == 0
17208 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17209 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17210 pthread_attr_destroy (&attr);
17211 /* Replace the exception port info for these exceptions with our own.
17212 Note that we replace the exception port for the entire task, not only
17213 for a particular thread. This has the effect that when our exception
17214 port gets the message, the thread specific exception port has already
17215 been asked, and we don't need to bother about it.
17216 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17217 task_set_exception_ports (self, mask, our_exception_port,
17218 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17223 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17224 /* Avoid a crash on native Windows. */
17225 #define WIN32_LEAN_AND_MEAN
17226 #include <windows.h>
17227 #include <winerror.h>
17229 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17231 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17233 case EXCEPTION_ACCESS_VIOLATION:
17234 case EXCEPTION_IN_PAGE_ERROR:
17235 case EXCEPTION_STACK_OVERFLOW:
17236 case EXCEPTION_GUARD_PAGE:
17237 case EXCEPTION_PRIV_INSTRUCTION:
17238 case EXCEPTION_ILLEGAL_INSTRUCTION:
17239 case EXCEPTION_DATATYPE_MISALIGNMENT:
17240 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17241 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17244 return EXCEPTION_CONTINUE_SEARCH;
17247 nocrash_init (void)
17249 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17252 /* Avoid a crash on POSIX systems. */
17253 #include <signal.h>
17254 /* A POSIX signal handler. */
17256 exception_handler (int sig)
17261 nocrash_init (void)
17264 signal (SIGSEGV, exception_handler);
17267 signal (SIGBUS, exception_handler);
17281 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17282 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17283 OSF/1 5.1, Solaris 10. */
17285 static char conftest[] = "conftest";
17286 static char plus[] = "-+";
17287 char *argv[3] = { conftest, plus, NULL };
17289 if (getopt (2, argv, "+a") != '?')
17292 /* This code succeeds on glibc 2.8, mingw,
17293 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17294 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17296 static char program[] = "program";
17297 static char p[] = "-p";
17298 static char foo[] = "foo";
17299 static char bar[] = "bar";
17300 char *argv[] = { program, p, foo, bar, NULL };
17303 if (getopt (4, argv, "p::") != 'p')
17305 else if (optarg != NULL)
17307 else if (getopt (4, argv, "p::") != -1)
17309 else if (optind != 2)
17312 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17314 static char program[] = "program";
17315 static char foo[] = "foo";
17316 static char p[] = "-p";
17317 char *argv[] = { program, foo, p, NULL };
17319 if (getopt (3, argv, "-p") != 1)
17321 else if (getopt (3, argv, "-p") != 'p')
17324 /* This code fails on glibc 2.11. */
17326 static char program[] = "program";
17327 static char b[] = "-b";
17328 static char a[] = "-a";
17329 char *argv[] = { program, b, a, NULL };
17330 optind = opterr = 0;
17331 if (getopt (3, argv, "+:a:b") != 'b')
17333 else if (getopt (3, argv, "+:a:b") != ':')
17336 /* This code dumps core on glibc 2.14. */
17338 static char program[] = "program";
17339 static char w[] = "-W";
17340 static char dummy[] = "dummy";
17341 char *argv[] = { program, w, dummy, NULL };
17342 optind = opterr = 1;
17343 if (getopt (3, argv, "W;") != 'W')
17352 if ac_fn_c_try_run
"$LINENO"; then :
17353 gl_cv_func_getopt_gnu
=yes
17355 gl_cv_func_getopt_gnu
=no
17357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17361 case $gl_had_POSIXLY_CORRECT in
17363 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17364 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17369 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17370 if test "$gl_cv_func_getopt_gnu" = "no"; then
17371 gl_replace_getopt
=yes
17382 if test -n "$gl_replace_getopt"; then :
17389 if test $REPLACE_GETOPT = 1; then
17393 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17397 GNULIB_UNISTD_H_GETOPT
=1
17400 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17401 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17407 cat >>confdefs.h
<<_ACEOF
17408 #define HAVE_DECL_GETENV $ac_have_decl
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17413 $as_echo_n "checking for unsigned long long int... " >&6; }
17414 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17417 ac_cv_type_unsigned_long_long_int
=yes
17418 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17422 /* For now, do not test the preprocessor; as of 2007 there are too many
17423 implementations with broken preprocessors. Perhaps this can
17424 be revisited in 2012. In the meantime, code should not expect
17425 #if to work with literals wider than 32 bits. */
17426 /* Test literals. */
17427 long long int ll = 9223372036854775807ll;
17428 long long int nll = -9223372036854775807LL;
17429 unsigned long long int ull = 18446744073709551615ULL;
17430 /* Test constant expressions. */
17431 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17433 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17439 /* Test availability of runtime routines for shift and division. */
17440 long long int llmax = 9223372036854775807ll;
17441 unsigned long long int ullmax = 18446744073709551615ull;
17442 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17443 | (llmax / ll) | (llmax % ll)
17444 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17445 | (ullmax / ull) | (ullmax % ull));
17451 if ac_fn_c_try_link
"$LINENO"; then :
17454 ac_cv_type_unsigned_long_long_int
=no
17456 rm -f core conftest.err conftest.
$ac_objext \
17457 conftest
$ac_exeext conftest.
$ac_ext
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17461 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17462 if test $ac_cv_type_unsigned_long_long_int = yes; then
17464 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17471 $as_echo_n "checking for long long int... " >&6; }
17472 if test "${ac_cv_type_long_long_int+set}" = set; then :
17473 $as_echo_n "(cached) " >&6
17475 ac_cv_type_long_long_int
=yes
17476 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17477 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17478 if test $ac_cv_type_long_long_int = yes; then
17479 if test "$cross_compiling" = yes; then :
17482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484 #include <limits.h>
17487 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17488 # define LLONG_MAX (HALF - 1 + HALF)
17493 long long int n = 1;
17497 long long int m = n << i;
17500 if (LLONG_MAX / 2 < m)
17508 if ac_fn_c_try_run
"$LINENO"; then :
17511 ac_cv_type_long_long_int
=no
17513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17521 $as_echo "$ac_cv_type_long_long_int" >&6; }
17522 if test $ac_cv_type_long_long_int = yes; then
17524 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17533 gl_cv_c_multiarch
=no
17534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #ifndef __APPLE_CC__
17537 not a universal capable compiler
17542 if ac_fn_c_try_compile
"$LINENO"; then :
17546 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17547 if test -n "$prev"; then
17549 i?
86 | x86_64 | ppc | ppc64
)
17550 if test -z "$arch" ||
test "$arch" = "$word"; then
17553 gl_cv_c_multiarch
=yes
17559 if test "x$word" = "x-arch"; then
17566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17567 if test $gl_cv_c_multiarch = yes; then
17568 APPLE_UNIVERSAL_BUILD
=1
17570 APPLE_UNIVERSAL_BUILD
=0
17577 if test $ac_cv_type_long_long_int = yes; then
17578 HAVE_LONG_LONG_INT
=1
17580 HAVE_LONG_LONG_INT
=0
17584 if test $ac_cv_type_unsigned_long_long_int = yes; then
17585 HAVE_UNSIGNED_LONG_LONG_INT
=1
17587 HAVE_UNSIGNED_LONG_LONG_INT
=0
17592 if test $ac_cv_header_wchar_h = yes; then
17599 if test $ac_cv_header_inttypes_h = yes; then
17606 if test $ac_cv_header_sys_types_h = yes; then
17622 if test $gl_cv_have_include_next = yes; then
17623 gl_cv_next_stdint_h
='<'stdint.h
'>'
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17626 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17627 if test "${gl_cv_next_stdint_h+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17631 if test $ac_cv_header_stdint_h = yes; then
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17636 #include <stdint.h>
17640 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17641 *) gl_absname_cpp
="$ac_cpp" ;;
17646 gl_dirsep_regex
='[/\\]'
17649 gl_dirsep_regex
='/'
17653 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
17654 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17659 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17660 sed -n "$gl_absolute_header_sed"`'"'
17662 gl_cv_next_stdint_h
='<'stdint.h
'>'
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17668 $as_echo "$gl_cv_next_stdint_h" >&6; }
17670 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17672 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17674 gl_next_as_first_directive
='<'stdint.h
'>'
17676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17677 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17679 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17684 if test $ac_cv_header_stdint_h = yes; then
17691 if test $ac_cv_header_stdint_h = yes; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17693 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17694 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17695 $as_echo_n "(cached) " >&6
17697 gl_cv_header_working_stdint_h
=no
17698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17702 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17703 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17704 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17705 #include <stdint.h>
17706 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17707 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17708 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17712 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17713 included before <wchar.h>. */
17714 #include <stddef.h>
17715 #include <signal.h>
17717 # include <stdio.h>
17719 # include <wchar.h>
17724 int8_t a1 = INT8_MAX;
17725 int8_t a1min = INT8_MIN;
17728 int16_t a2 = INT16_MAX;
17729 int16_t a2min = INT16_MIN;
17732 int32_t a3 = INT32_MAX;
17733 int32_t a3min = INT32_MIN;
17736 int64_t a4 = INT64_MAX;
17737 int64_t a4min = INT64_MIN;
17740 uint8_t b1 = UINT8_MAX;
17742 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17745 uint16_t b2 = UINT16_MAX;
17748 uint32_t b3 = UINT32_MAX;
17751 uint64_t b4 = UINT64_MAX;
17753 int_least8_t c1 = INT8_C (0x7f);
17754 int_least8_t c1max = INT_LEAST8_MAX;
17755 int_least8_t c1min = INT_LEAST8_MIN;
17756 int_least16_t c2 = INT16_C (0x7fff);
17757 int_least16_t c2max = INT_LEAST16_MAX;
17758 int_least16_t c2min = INT_LEAST16_MIN;
17759 int_least32_t c3 = INT32_C (0x7fffffff);
17760 int_least32_t c3max = INT_LEAST32_MAX;
17761 int_least32_t c3min = INT_LEAST32_MIN;
17762 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17763 int_least64_t c4max = INT_LEAST64_MAX;
17764 int_least64_t c4min = INT_LEAST64_MIN;
17765 uint_least8_t d1 = UINT8_C (0xff);
17766 uint_least8_t d1max = UINT_LEAST8_MAX;
17767 uint_least16_t d2 = UINT16_C (0xffff);
17768 uint_least16_t d2max = UINT_LEAST16_MAX;
17769 uint_least32_t d3 = UINT32_C (0xffffffff);
17770 uint_least32_t d3max = UINT_LEAST32_MAX;
17771 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17772 uint_least64_t d4max = UINT_LEAST64_MAX;
17773 int_fast8_t e1 = INT_FAST8_MAX;
17774 int_fast8_t e1min = INT_FAST8_MIN;
17775 int_fast16_t e2 = INT_FAST16_MAX;
17776 int_fast16_t e2min = INT_FAST16_MIN;
17777 int_fast32_t e3 = INT_FAST32_MAX;
17778 int_fast32_t e3min = INT_FAST32_MIN;
17779 int_fast64_t e4 = INT_FAST64_MAX;
17780 int_fast64_t e4min = INT_FAST64_MIN;
17781 uint_fast8_t f1 = UINT_FAST8_MAX;
17782 uint_fast16_t f2 = UINT_FAST16_MAX;
17783 uint_fast32_t f3 = UINT_FAST32_MAX;
17784 uint_fast64_t f4 = UINT_FAST64_MAX;
17786 intptr_t g = INTPTR_MAX;
17787 intptr_t gmin = INTPTR_MIN;
17790 uintptr_t h = UINTPTR_MAX;
17792 intmax_t i = INTMAX_MAX;
17793 uintmax_t j = UINTMAX_MAX;
17795 #include <limits.h> /* for CHAR_BIT */
17796 #define TYPE_MINIMUM(t) \
17797 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17798 #define TYPE_MAXIMUM(t) \
17799 ((t) ((t) 0 < (t) -1 \
17801 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17804 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17805 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17807 /* Detect bug in FreeBSD 6.0 / ia64. */
17808 int check_SIG_ATOMIC:
17809 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17810 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17812 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17814 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17815 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17817 /* Detect bug in mingw. */
17819 WINT_MIN == TYPE_MINIMUM (wint_t)
17820 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17823 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17825 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17826 int check_UINT16_C:
17827 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17829 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17831 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17834 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17837 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17840 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17842 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17843 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17844 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17845 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17846 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17847 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17848 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17849 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17850 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17851 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17852 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17863 if ac_fn_c_try_compile
"$LINENO"; then :
17864 if test "$cross_compiling" = yes; then :
17865 gl_cv_header_working_stdint_h
=yes
17868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17872 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17873 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17874 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17875 #include <stdint.h>
17878 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17879 included before <wchar.h>. */
17880 #include <stddef.h>
17881 #include <signal.h>
17883 # include <stdio.h>
17885 # include <wchar.h>
17890 #include <string.h>
17891 #define MVAL(macro) MVAL1(macro)
17892 #define MVAL1(expression) #expression
17893 static const char *macro_values[] =
17927 for (mv = macro_values; *mv != NULL; mv++)
17929 const char *value = *mv;
17930 /* Test whether it looks like a cast expression. */
17931 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17932 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17933 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17934 || strncmp (value, "((int)"/*)*/, 6) == 0
17935 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17936 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17937 return mv - macro_values + 1;
17945 if ac_fn_c_try_run
"$LINENO"; then :
17946 gl_cv_header_working_stdint_h
=yes
17948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17958 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17960 if test "$gl_cv_header_working_stdint_h" = yes; then
17963 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17966 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17967 eval as_val
=\$
$as_ac_Header
17968 if test "x$as_val" = x
""yes; then :
17969 cat >>confdefs.h
<<_ACEOF
17970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17977 if test $ac_cv_header_sys_inttypes_h = yes; then
17978 HAVE_SYS_INTTYPES_H
=1
17980 HAVE_SYS_INTTYPES_H
=0
17983 if test $ac_cv_header_sys_bitypes_h = yes; then
17984 HAVE_SYS_BITYPES_H
=1
17986 HAVE_SYS_BITYPES_H
=0
17992 if test $APPLE_UNIVERSAL_BUILD = 0; then
17995 for gltype
in ptrdiff_t size_t
; do
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17997 $as_echo_n "checking for bit size of $gltype... " >&6; }
17998 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17999 $as_echo_n "(cached) " >&6
18001 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18002 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18003 included before <wchar.h>. */
18004 #include <stddef.h>
18005 #include <signal.h>
18007 # include <stdio.h>
18009 # include <wchar.h>
18012 #include <limits.h>"; then :
18018 eval gl_cv_bitsizeof_
${gltype}=\
$result
18021 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18023 $as_echo "$ac_res" >&6; }
18024 eval result
=\
$gl_cv_bitsizeof_${gltype}
18025 if test $result = unknown
; then
18028 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18029 cat >>confdefs.h
<<_ACEOF
18030 #define BITSIZEOF_${GLTYPE} $result
18033 eval BITSIZEOF_
${GLTYPE}=\
$result
18040 for gltype
in sig_atomic_t wchar_t wint_t
; do
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18042 $as_echo_n "checking for bit size of $gltype... " >&6; }
18043 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18044 $as_echo_n "(cached) " >&6
18046 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18047 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18048 included before <wchar.h>. */
18049 #include <stddef.h>
18050 #include <signal.h>
18052 # include <stdio.h>
18054 # include <wchar.h>
18057 #include <limits.h>"; then :
18063 eval gl_cv_bitsizeof_
${gltype}=\
$result
18066 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 eval result
=\
$gl_cv_bitsizeof_${gltype}
18070 if test $result = unknown
; then
18073 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18074 cat >>confdefs.h
<<_ACEOF
18075 #define BITSIZEOF_${GLTYPE} $result
18078 eval BITSIZEOF_
${GLTYPE}=\
$result
18084 for gltype
in sig_atomic_t wchar_t wint_t
; do
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18086 $as_echo_n "checking whether $gltype is signed... " >&6; }
18087 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18088 $as_echo_n "(cached) " >&6
18090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18093 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18094 included before <wchar.h>. */
18095 #include <stddef.h>
18096 #include <signal.h>
18098 # include <stdio.h>
18100 # include <wchar.h>
18103 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18112 if ac_fn_c_try_compile
"$LINENO"; then :
18117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18118 eval gl_cv_type_
${gltype}_signed
=\
$result
18121 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18123 $as_echo "$ac_res" >&6; }
18124 eval result
=\
$gl_cv_type_${gltype}_signed
18125 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18126 if test "$result" = yes; then
18127 cat >>confdefs.h
<<_ACEOF
18128 #define HAVE_SIGNED_${GLTYPE} 1
18131 eval HAVE_SIGNED_
${GLTYPE}=1
18133 eval HAVE_SIGNED_
${GLTYPE}=0
18138 gl_cv_type_ptrdiff_t_signed
=yes
18139 gl_cv_type_size_t_signed
=no
18140 if test $APPLE_UNIVERSAL_BUILD = 0; then
18143 for gltype
in ptrdiff_t size_t
; do
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18145 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18146 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18147 $as_echo_n "(cached) " >&6
18149 eval gl_cv_type_
${gltype}_suffix
=no
18150 eval result
=\
$gl_cv_type_${gltype}_signed
18151 if test "$result" = yes; then
18156 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18158 '') gltype1
='int';;
18159 l
) gltype1
='long int';;
18160 ll
) gltype1
='long long int';;
18161 i64
) gltype1
='__int64';;
18162 u
) gltype1
='unsigned int';;
18163 ul
) gltype1
='unsigned long int';;
18164 ull
) gltype1
='unsigned long long int';;
18165 ui64
)gltype1
='unsigned __int64';;
18167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18171 included before <wchar.h>. */
18172 #include <stddef.h>
18173 #include <signal.h>
18175 # include <stdio.h>
18177 # include <wchar.h>
18180 extern $gltype foo;
18181 extern $gltype1 foo;
18190 if ac_fn_c_try_compile
"$LINENO"; then :
18191 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18194 eval result
=\
$gl_cv_type_${gltype}_suffix
18195 test "$result" != no
&& break
18198 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18200 $as_echo "$ac_res" >&6; }
18201 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18202 eval result
=\
$gl_cv_type_${gltype}_suffix
18203 test "$result" = no
&& result
=
18204 eval ${GLTYPE}_SUFFIX
=\
$result
18205 cat >>confdefs.h
<<_ACEOF
18206 #define ${GLTYPE}_SUFFIX $result
18215 for gltype
in sig_atomic_t wchar_t wint_t
; do
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18217 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18218 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18219 $as_echo_n "(cached) " >&6
18221 eval gl_cv_type_
${gltype}_suffix
=no
18222 eval result
=\
$gl_cv_type_${gltype}_signed
18223 if test "$result" = yes; then
18228 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18230 '') gltype1
='int';;
18231 l
) gltype1
='long int';;
18232 ll
) gltype1
='long long int';;
18233 i64
) gltype1
='__int64';;
18234 u
) gltype1
='unsigned int';;
18235 ul
) gltype1
='unsigned long int';;
18236 ull
) gltype1
='unsigned long long int';;
18237 ui64
)gltype1
='unsigned __int64';;
18239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18242 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18243 included before <wchar.h>. */
18244 #include <stddef.h>
18245 #include <signal.h>
18247 # include <stdio.h>
18249 # include <wchar.h>
18252 extern $gltype foo;
18253 extern $gltype1 foo;
18262 if ac_fn_c_try_compile
"$LINENO"; then :
18263 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18266 eval result
=\
$gl_cv_type_${gltype}_suffix
18267 test "$result" != no
&& break
18270 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18272 $as_echo "$ac_res" >&6; }
18273 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18274 eval result
=\
$gl_cv_type_${gltype}_suffix
18275 test "$result" = no
&& result
=
18276 eval ${GLTYPE}_SUFFIX
=\
$result
18277 cat >>confdefs.h
<<_ACEOF
18278 #define ${GLTYPE}_SUFFIX $result
18285 if test $BITSIZEOF_WINT_T -lt 32; then
18286 BITSIZEOF_WINT_T
=32
18292 if test -n "$STDINT_H"; then
18293 GL_GENERATE_STDINT_H_TRUE
=
18294 GL_GENERATE_STDINT_H_FALSE
='#'
18296 GL_GENERATE_STDINT_H_TRUE
='#'
18297 GL_GENERATE_STDINT_H_FALSE
=
18306 GNULIB_STRTOIMAX
=0;
18307 GNULIB_STRTOUMAX
=0;
18308 HAVE_DECL_IMAXABS
=1;
18309 HAVE_DECL_IMAXDIV
=1;
18310 HAVE_DECL_STRTOIMAX
=1;
18311 HAVE_DECL_STRTOUMAX
=1;
18312 INT32_MAX_LT_INTMAX_MAX
=1;
18313 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18314 PRI_MACROS_BROKEN
=0;
18315 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18316 UINT32_MAX_LT_UINTMAX_MAX
=1;
18317 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18333 if test $gl_cv_have_include_next = yes; then
18334 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18337 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18338 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18342 if test $ac_cv_header_inttypes_h = yes; then
18345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347 #include <inttypes.h>
18351 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18352 *) gl_absname_cpp
="$ac_cpp" ;;
18357 gl_dirsep_regex
='[/\\]'
18360 gl_dirsep_regex
='/'
18364 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18365 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18370 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18371 sed -n "$gl_absolute_header_sed"`'"'
18373 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18379 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18381 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18383 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18385 gl_next_as_first_directive
='<'inttypes.h
'>'
18387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18388 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18390 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18399 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18418 GNULIB_UTIMENSAT
=0;
18432 REPLACE_FUTIMENS
=0;
18438 REPLACE_UTIMENSAT
=0;
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18444 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18445 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18446 $as_echo_n "(cached) " >&6
18448 rm -f conftest.sym conftest.
file
18449 echo >conftest.
file
18450 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18451 if test "$cross_compiling" = yes; then :
18452 # When cross-compiling, be pessimistic so we will end up using the
18453 # replacement version of lstat that checks for trailing slashes and
18454 # calls lstat a second time when necessary.
18455 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460 $ac_includes_default
18465 /* Linux will dereference the symlink and fail, as required by
18466 POSIX. That is better in the sense that it means we will not
18467 have to compile and use the lstat wrapper. */
18468 return lstat ("conftest.sym/", &sbuf) == 0;
18474 if ac_fn_c_try_run
"$LINENO"; then :
18475 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18477 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18484 # If the 'ln -s' command failed, then we probably don't even
18485 # have an lstat function.
18486 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18488 rm -f conftest.sym conftest.
file
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18492 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18493 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18495 cat >>confdefs.h
<<_ACEOF
18496 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18502 GNULIB_NANOSLEEP
=0;
18506 HAVE_DECL_LOCALTIME_R
=1;
18510 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18511 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18512 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18513 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18520 GNULIB_PTHREAD_SIGMASK
=0;
18522 GNULIB_SIGNAL_H_SIGPIPE
=0;
18523 GNULIB_SIGPROCMASK
=0;
18524 GNULIB_SIGACTION
=0;
18525 HAVE_POSIX_SIGNALBLOCKING
=1;
18526 HAVE_PTHREAD_SIGMASK
=1;
18531 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18533 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18535 HAVE_SIGHANDLER_T
=1;
18536 REPLACE_PTHREAD_SIGMASK
=0;
18542 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18543 #include <signal.h>
18544 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18545 #include <sys/types.h>
18548 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18550 cat >>confdefs.h
<<_ACEOF
18551 #define HAVE_SIGSET_T 1
18554 gl_cv_type_sigset_t
=yes
18556 gl_cv_type_sigset_t
=no
18559 if test $gl_cv_type_sigset_t != yes; then
18567 if test $ac_cv_header_sys_socket_h = no
; then
18568 for ac_header
in ws2tcpip.h
18570 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18571 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18572 cat >>confdefs.h
<<_ACEOF
18573 #define HAVE_WS2TCPIP_H 1
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18583 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18584 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18585 $as_echo_n "(cached) " >&6
18587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18590 #include <stdbool.h>
18592 "error: bool is not defined"
18595 "error: false is not defined"
18598 "error: false is not 0"
18601 "error: true is not defined"
18604 "error: true is not 1"
18606 #ifndef __bool_true_false_are_defined
18607 "error: __bool_true_false_are_defined is not defined"
18610 struct s { _Bool s: 1; _Bool t; } s;
18612 char a[true == 1 ? 1 : -1];
18613 char b[false == 0 ? 1 : -1];
18614 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18615 char d[(bool) 0.5 == true ? 1 : -1];
18616 /* See body of main program for 'e'. */
18617 char f[(_Bool) 0.0 == false ? 1 : -1];
18619 char h[sizeof (_Bool)];
18620 char i[sizeof s.t];
18621 enum { j = false, k = true, l = false * true, m = true * 256 };
18622 /* The following fails for
18623 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18625 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18626 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18627 /* Catch a bug in an HP-UX C compiler. See
18628 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18629 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18641 /* Refer to every declared value, to avoid compiler optimizations. */
18642 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18643 + !m + !n + !o + !p + !q + !pq);
18649 if ac_fn_c_try_compile
"$LINENO"; then :
18650 ac_cv_header_stdbool_h
=yes
18652 ac_cv_header_stdbool_h
=no
18654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18657 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18658 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18659 if test "x$ac_cv_type__Bool" = x
""yes; then :
18661 cat >>confdefs.h
<<_ACEOF
18662 #define HAVE__BOOL 1
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18675 $as_echo_n "checking for wchar_t... " >&6; }
18676 if test "${gt_cv_c_wchar_t+set}" = set; then :
18677 $as_echo_n "(cached) " >&6
18679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <stddef.h>
18682 wchar_t foo = (wchar_t)'\0';
18691 if ac_fn_c_try_compile
"$LINENO"; then :
18692 gt_cv_c_wchar_t
=yes
18696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18699 $as_echo "$gt_cv_c_wchar_t" >&6; }
18700 if test $gt_cv_c_wchar_t = yes; then
18702 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18715 GNULIB_FPRINTF_POSIX
=0;
18731 GNULIB_OBSTACK_PRINTF
=0;
18732 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18737 GNULIB_PRINTF_POSIX
=0;
18746 GNULIB_SPRINTF_POSIX
=0;
18747 GNULIB_STDIO_H_NONBLOCKING
=0;
18748 GNULIB_STDIO_H_SIGPIPE
=0;
18750 GNULIB_VASPRINTF
=0;
18755 GNULIB_VFPRINTF_POSIX
=0;
18757 GNULIB_VPRINTF_POSIX
=0;
18758 GNULIB_VSNPRINTF
=0;
18759 GNULIB_VSPRINTF_POSIX
=0;
18760 HAVE_DECL_FPURGE
=1;
18761 HAVE_DECL_FSEEKO
=1;
18762 HAVE_DECL_FTELLO
=1;
18763 HAVE_DECL_GETDELIM
=1;
18764 HAVE_DECL_GETLINE
=1;
18765 HAVE_DECL_OBSTACK_PRINTF
=1;
18766 HAVE_DECL_SNPRINTF
=1;
18767 HAVE_DECL_VSNPRINTF
=1;
18788 REPLACE_GETDELIM
=0;
18790 REPLACE_OBSTACK_PRINTF
=0;
18796 REPLACE_RENAMEAT
=0;
18797 REPLACE_SNPRINTF
=0;
18799 REPLACE_STDIO_READ_FUNCS
=0;
18800 REPLACE_STDIO_WRITE_FUNCS
=0;
18802 REPLACE_VASPRINTF
=0;
18803 REPLACE_VDPRINTF
=0;
18804 REPLACE_VFPRINTF
=0;
18806 REPLACE_VSNPRINTF
=0;
18807 REPLACE_VSPRINTF
=0;
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18810 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18811 if test "${ac_cv_struct_tm+set}" = set; then :
18812 $as_echo_n "(cached) " >&6
18814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816 #include <sys/types.h>
18823 int *p = &tm.tm_sec;
18829 if ac_fn_c_try_compile
"$LINENO"; then :
18830 ac_cv_struct_tm
=time.h
18832 ac_cv_struct_tm
=sys
/time.h
18834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18837 $as_echo "$ac_cv_struct_tm" >&6; }
18838 if test $ac_cv_struct_tm = sys
/time.h
; then
18840 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18844 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18845 #include <$ac_cv_struct_tm>
18848 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
18850 cat >>confdefs.h
<<_ACEOF
18851 #define HAVE_STRUCT_TM_TM_ZONE 1
18857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18859 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18862 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18864 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
18870 cat >>confdefs.h
<<_ACEOF
18871 #define HAVE_DECL_TZNAME $ac_have_decl
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18875 $as_echo_n "checking for tzname... " >&6; }
18876 if test "${ac_cv_var_tzname+set}" = set; then :
18877 $as_echo_n "(cached) " >&6
18879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18882 #if !HAVE_DECL_TZNAME
18883 extern char *tzname[];
18889 return tzname[0][0];
18894 if ac_fn_c_try_link
"$LINENO"; then :
18895 ac_cv_var_tzname
=yes
18897 ac_cv_var_tzname
=no
18899 rm -f core conftest.err conftest.
$ac_objext \
18900 conftest
$ac_exeext conftest.
$ac_ext
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18903 $as_echo "$ac_cv_var_tzname" >&6; }
18904 if test $ac_cv_var_tzname = yes; then
18906 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18912 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18914 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18916 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18925 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18926 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18932 cat >>confdefs.h
<<_ACEOF
18933 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18938 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18939 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18945 cat >>confdefs.h
<<_ACEOF
18946 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18952 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18953 if test "${ac_cv_header_stat_broken+set}" = set; then :
18954 $as_echo_n "(cached) " >&6
18956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958 #include <sys/types.h>
18959 #include <sys/stat.h>
18961 #if defined S_ISBLK && defined S_IFDIR
18962 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18965 #if defined S_ISBLK && defined S_IFCHR
18966 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18969 #if defined S_ISLNK && defined S_IFREG
18970 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18973 #if defined S_ISSOCK && defined S_IFREG
18974 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18978 if ac_fn_c_try_compile
"$LINENO"; then :
18979 ac_cv_header_stat_broken
=no
18981 ac_cv_header_stat_broken
=yes
18983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18986 $as_echo "$ac_cv_header_stat_broken" >&6; }
18987 if test $ac_cv_header_stat_broken = yes; then
18989 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18995 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18996 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19000 cat >>confdefs.h
<<_ACEOF
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19007 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19008 if test "${ac_cv_c_restrict+set}" = set; then :
19009 $as_echo_n "(cached) " >&6
19011 ac_cv_c_restrict
=no
19012 # The order here caters to the fact that C++ does not require restrict.
19013 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 typedef int * int_ptr;
19017 int foo (int_ptr $ac_kw ip) {
19024 int * $ac_kw t = s;
19031 if ac_fn_c_try_compile
"$LINENO"; then :
19032 ac_cv_c_restrict
=$ac_kw
19034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19035 test "$ac_cv_c_restrict" != no
&& break
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19040 $as_echo "$ac_cv_c_restrict" >&6; }
19042 case $ac_cv_c_restrict in
19044 no
) $as_echo "#define restrict /**/" >>confdefs.h
19046 *) cat >>confdefs.h
<<_ACEOF
19047 #define restrict $ac_cv_c_restrict
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19057 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19058 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h. */
19068 static struct timespec x; x.tv_sec = x.tv_nsec;
19073 if ac_fn_c_try_compile
"$LINENO"; then :
19074 gl_cv_sys_struct_timespec_in_time_h
=yes
19076 gl_cv_sys_struct_timespec_in_time_h
=no
19078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19081 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19083 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19084 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19085 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19086 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19087 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19090 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19091 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 #include <sys/time.h>
19101 static struct timespec x; x.tv_sec = x.tv_nsec;
19106 if ac_fn_c_try_compile
"$LINENO"; then :
19107 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19109 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19114 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19115 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19116 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19119 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19120 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19121 $as_echo_n "(cached) " >&6
19123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19125 #include <pthread.h>
19130 static struct timespec x; x.tv_sec = x.tv_nsec;
19135 if ac_fn_c_try_compile
"$LINENO"; then :
19136 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19138 gl_cv_sys_struct_timespec_in_pthread_h
=no
19140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19143 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19144 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19145 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19164 if test $gl_cv_have_include_next = yes; then
19165 gl_cv_next_time_h
='<'time.h
'>'
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19168 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19169 if test "${gl_cv_next_time_h+set}" = set; then :
19170 $as_echo_n "(cached) " >&6
19173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19179 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19180 *) gl_absname_cpp
="$ac_cpp" ;;
19185 gl_dirsep_regex
='[/\\]'
19188 gl_dirsep_regex
='/'
19192 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19193 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19198 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19199 sed -n "$gl_absolute_header_sed"`'"'
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19204 $as_echo "$gl_cv_next_time_h" >&6; }
19206 NEXT_TIME_H
=$gl_cv_next_time_h
19208 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19210 gl_next_as_first_directive
='<'time.h
'>'
19212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19213 gl_next_as_first_directive
=$gl_cv_next_time_h
19215 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19222 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19223 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19229 cat >>confdefs.h
<<_ACEOF
19230 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19237 GL_COND_LIBTOOL_TRUE
=
19238 GL_COND_LIBTOOL_FALSE
='#'
19240 GL_COND_LIBTOOL_TRUE
='#'
19241 GL_COND_LIBTOOL_FALSE
=
19244 gl_cond_libtool
=false
19257 gl_source_base
='lib'
19260 if test $ac_cv_func_alloca_works = no
; then
19264 # Define an additional variable used in the Makefile substitution.
19265 if test $ac_cv_working_alloca_h = yes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19267 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19268 if test "${gl_cv_rpl_alloca+set}" = set; then :
19269 $as_echo_n "(cached) " >&6
19272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19275 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19281 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19282 gl_cv_rpl_alloca
=yes
19284 gl_cv_rpl_alloca
=no
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19291 $as_echo "$gl_cv_rpl_alloca" >&6; }
19292 if test $gl_cv_rpl_alloca = yes; then
19294 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19304 if test -n "$ALLOCA_H"; then
19305 GL_GENERATE_ALLOCA_H_TRUE
=
19306 GL_GENERATE_ALLOCA_H_FALSE
='#'
19308 GL_GENERATE_ALLOCA_H_TRUE
='#'
19309 GL_GENERATE_ALLOCA_H_FALSE
=
19338 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19341 if test $HAVE_DUP2 = 1; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19343 $as_echo_n "checking whether dup2 works... " >&6; }
19344 if test "${gl_cv_func_dup2_works+set}" = set; then :
19345 $as_echo_n "(cached) " >&6
19347 if test "$cross_compiling" = yes; then :
19349 mingw
*) # on this platform, dup2 always returns 0 for success
19350 gl_cv_func_dup2_works
=no
;;
19351 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19352 gl_cv_func_dup2_works
=no
;;
19353 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19354 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19355 gl_cv_func_dup2_works
=no
;;
19356 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19357 gl_cv_func_dup2_works
=no
;;
19358 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19359 gl_cv_func_dup2_works
=no
;;
19360 *) gl_cv_func_dup2_works
=yes;;
19363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19366 #include <unistd.h>
19374 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19377 if (dup2 (1, 1) == 0)
19380 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19384 if (dup2 (0, 0) != -1)
19386 /* Many gnulib modules require POSIX conformance of EBADF. */
19387 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19396 if ac_fn_c_try_run
"$LINENO"; then :
19397 gl_cv_func_dup2_works
=yes
19399 gl_cv_func_dup2_works
=no
19401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19408 $as_echo "$gl_cv_func_dup2_works" >&6; }
19409 if test "$gl_cv_func_dup2_works" = no
; then
19415 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19424 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19445 # Persuade glibc <stdlib.h> to declare getloadavg().
19450 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19451 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19453 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19454 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19457 gl_func_getloadavg_done
=no
19459 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19460 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19461 # to get the right answer into the cache.
19462 # For kstat on solaris, we need to test for libelf and libkvm to force the
19463 # definition of SVR4 below.
19464 if test $gl_func_getloadavg_done = no
; then
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19466 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19467 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19470 ac_check_lib_save_LIBS
=$LIBS
19472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19485 return elf_begin ();
19490 if ac_fn_c_try_link
"$LINENO"; then :
19491 ac_cv_lib_elf_elf_begin
=yes
19493 ac_cv_lib_elf_elf_begin
=no
19495 rm -f core conftest.err conftest.
$ac_objext \
19496 conftest
$ac_exeext conftest.
$ac_ext
19497 LIBS
=$ac_check_lib_save_LIBS
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19500 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19501 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19506 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19507 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19510 ac_check_lib_save_LIBS
=$LIBS
19512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19525 return kvm_open ();
19530 if ac_fn_c_try_link
"$LINENO"; then :
19531 ac_cv_lib_kvm_kvm_open
=yes
19533 ac_cv_lib_kvm_kvm_open
=no
19535 rm -f core conftest.err conftest.
$ac_objext \
19536 conftest
$ac_exeext conftest.
$ac_ext
19537 LIBS
=$ac_check_lib_save_LIBS
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19540 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19541 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19545 # Check for the 4.4BSD definition of getloadavg.
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19547 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19548 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19551 ac_check_lib_save_LIBS
=$LIBS
19552 LIBS
="-lutil $LIBS"
19553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19556 /* Override any GCC internal prototype to avoid an error.
19557 Use char because int might match the return type of a GCC
19558 builtin and then its argument prototype would still apply. */
19562 char getloadavg ();
19566 return getloadavg ();
19571 if ac_fn_c_try_link
"$LINENO"; then :
19572 ac_cv_lib_util_getloadavg
=yes
19574 ac_cv_lib_util_getloadavg
=no
19576 rm -f core conftest.err conftest.
$ac_objext \
19577 conftest
$ac_exeext conftest.
$ac_ext
19578 LIBS
=$ac_check_lib_save_LIBS
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19581 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19582 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19583 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19588 if test $gl_func_getloadavg_done = no
; then
19589 # There is a commonly available library for RS/6000 AIX.
19590 # Since it is not a standard part of AIX, it might be installed locally.
19591 gl_getloadavg_LIBS
=$LIBS
19592 LIBS
="-L/usr/local/lib $LIBS"
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19594 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19595 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19596 $as_echo_n "(cached) " >&6
19598 ac_check_lib_save_LIBS
=$LIBS
19599 LIBS
="-lgetloadavg $LIBS"
19600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19609 char getloadavg ();
19613 return getloadavg ();
19618 if ac_fn_c_try_link
"$LINENO"; then :
19619 ac_cv_lib_getloadavg_getloadavg
=yes
19621 ac_cv_lib_getloadavg_getloadavg
=no
19623 rm -f core conftest.err conftest.
$ac_objext \
19624 conftest
$ac_exeext conftest.
$ac_ext
19625 LIBS
=$ac_check_lib_save_LIBS
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19628 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19629 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19630 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19632 LIBS
=$gl_getloadavg_LIBS
19637 # Set up the replacement function if necessary.
19638 if test $gl_func_getloadavg_done = no
; then
19641 # Solaris has libkstat which does not require root.
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19643 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19644 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19647 ac_check_lib_save_LIBS
=$LIBS
19648 LIBS
="-lkstat $LIBS"
19649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19658 char kstat_open ();
19662 return kstat_open ();
19667 if ac_fn_c_try_link
"$LINENO"; then :
19668 ac_cv_lib_kstat_kstat_open
=yes
19670 ac_cv_lib_kstat_kstat_open
=no
19672 rm -f core conftest.err conftest.
$ac_objext \
19673 conftest
$ac_exeext conftest.
$ac_ext
19674 LIBS
=$ac_check_lib_save_LIBS
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19677 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19678 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19679 cat >>confdefs.h
<<_ACEOF
19680 #define HAVE_LIBKSTAT 1
19683 LIBS
="-lkstat $LIBS"
19687 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19689 # AIX has libperfstat which does not require root
19690 if test $gl_func_getloadavg_done = no
; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19692 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19693 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19694 $as_echo_n "(cached) " >&6
19696 ac_check_lib_save_LIBS
=$LIBS
19697 LIBS
="-lperfstat $LIBS"
19698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19707 char perfstat_cpu_total ();
19711 return perfstat_cpu_total ();
19716 if ac_fn_c_try_link
"$LINENO"; then :
19717 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19719 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19721 rm -f core conftest.err conftest.
$ac_objext \
19722 conftest
$ac_exeext conftest.
$ac_ext
19723 LIBS
=$ac_check_lib_save_LIBS
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19726 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19727 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19728 cat >>confdefs.h
<<_ACEOF
19729 #define HAVE_LIBPERFSTAT 1
19732 LIBS
="-lperfstat $LIBS"
19736 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19739 if test $gl_func_getloadavg_done = no
; then
19740 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19741 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19742 gl_func_getloadavg_done
=yes
19744 $as_echo "#define DGUX 1" >>confdefs.h
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19747 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19748 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19751 ac_check_lib_save_LIBS
=$LIBS
19753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19762 char dg_sys_info ();
19766 return dg_sys_info ();
19771 if ac_fn_c_try_link
"$LINENO"; then :
19772 ac_cv_lib_dgc_dg_sys_info
=yes
19774 ac_cv_lib_dgc_dg_sys_info
=no
19776 rm -f core conftest.err conftest.
$ac_objext \
19777 conftest
$ac_exeext conftest.
$ac_ext
19778 LIBS
=$ac_check_lib_save_LIBS
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19781 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19782 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19783 cat >>confdefs.h
<<_ACEOF
19784 #define HAVE_LIBDGC 1
19799 if test "x$gl_save_LIBS" = x
; then
19800 GETLOADAVG_LIBS
=$LIBS
19802 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19807 # Test whether the system declares getloadavg. Solaris has the function
19808 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19809 for ac_header
in sys
/loadavg.h
19811 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19812 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19813 cat >>confdefs.h
<<_ACEOF
19814 #define HAVE_SYS_LOADAVG_H 1
19821 if test $ac_cv_header_sys_loadavg_h = yes; then
19822 HAVE_SYS_LOADAVG_H
=1
19824 HAVE_SYS_LOADAVG_H
=0
19826 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19827 # include <sys/loadavg.h>
19829 #include <stdlib.h>
19831 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19834 HAVE_DECL_GETLOADAVG
=0
19838 if test $HAVE_GETLOADAVG = 0; then
19847 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19850 # Figure out what our getloadavg.c needs.
19852 # On HPUX9, an unprivileged user can get load averages this way.
19853 if test $gl_func_getloadavg_done = no
; then
19854 for ac_func
in pstat_getdynamic
19856 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19857 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19858 cat >>confdefs.h
<<_ACEOF
19859 #define HAVE_PSTAT_GETDYNAMIC 1
19861 gl_func_getloadavg_done
=yes
19867 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19868 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19869 # Irix 4.0.5F has the header but not the library.
19870 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19871 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19872 gl_func_getloadavg_done
=yes
19874 $as_echo "#define SVR4 1" >>confdefs.h
19878 if test $gl_func_getloadavg_done = no
; then
19879 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19880 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19881 gl_func_getloadavg_done
=yes
19883 $as_echo "#define UMAX 1" >>confdefs.h
19886 $as_echo "#define UMAX4_3 1" >>confdefs.h
19893 if test $gl_func_getloadavg_done = no
; then
19894 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19895 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19896 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19903 if test $gl_func_getloadavg_done = no
; then
19904 for ac_header
in mach
/mach.h
19906 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19907 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19908 cat >>confdefs.h
<<_ACEOF
19909 #define HAVE_MACH_MACH_H 1
19918 for ac_header
in nlist.h
19920 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19921 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19922 cat >>confdefs.h
<<_ACEOF
19923 #define HAVE_NLIST_H 1
19925 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19927 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19929 cat >>confdefs.h
<<_ACEOF
19930 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19943 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19944 x.n_un.n_name = "";
19952 if ac_fn_c_try_link
"$LINENO"; then :
19954 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19957 rm -f core conftest.err conftest.
$ac_objext \
19958 conftest
$ac_exeext conftest.
$ac_ext
19970 GNULIB_GETLOADAVG
=1
19981 if test $REPLACE_GETOPT = 1; then
19990 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20000 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20014 if test -n "$gl_replace_getopt"; then :
20021 if test $REPLACE_GETOPT = 1; then
20025 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20029 GNULIB_UNISTD_H_GETOPT
=1
20032 if test $REPLACE_GETOPT = 1; then
20041 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20051 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20062 if test $ac_cv_func_lstat = yes; then
20064 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20071 if test $REPLACE_LSTAT = 1; then
20080 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20104 if test $APPLE_UNIVERSAL_BUILD = 1; then
20105 # A universal build on Apple MacOS X platforms.
20106 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20107 # But we need a configuration result that is valid in both modes.
20108 gl_cv_func_working_mktime
=no
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20111 $as_echo_n "checking for working mktime... " >&6; }
20112 if test "${gl_cv_func_working_mktime+set}" = set; then :
20113 $as_echo_n "(cached) " >&6
20115 if test "$cross_compiling" = yes; then :
20116 gl_cv_func_working_mktime
=no
20118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120 /* Test program from Paul Eggert and Tony Leneis. */
20121 #include <limits.h>
20122 #include <stdlib.h>
20125 #ifdef HAVE_UNISTD_H
20126 # include <unistd.h>
20130 # define alarm(X) /* empty */
20133 /* Work around redefinition to rpl_putenv by other config tests. */
20136 static time_t time_t_max;
20137 static time_t time_t_min;
20139 /* Values we'll use to set the TZ environment variable. */
20140 static char *tz_strings[] = {
20141 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20142 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20144 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20146 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20147 Based on a problem report from Andreas Jaeger. */
20149 spring_forward_gap ()
20151 /* glibc (up to about 1998-10-07) failed this test. */
20154 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20155 instead of "TZ=America/Vancouver" in order to detect the bug even
20156 on systems that don't support the Olson extension, or don't have the
20157 full zoneinfo tables installed. */
20158 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20167 return mktime (&tm) != (time_t) -1;
20171 mktime_test1 (time_t now)
20174 return ! (lt = localtime (&now)) || mktime (lt) == now;
20178 mktime_test (time_t now)
20180 return (mktime_test1 (now)
20181 && mktime_test1 ((time_t) (time_t_max - now))
20182 && mktime_test1 ((time_t) (time_t_min + now)));
20188 /* Based on code from Ariel Faigon. */
20198 return tm.tm_mon == 2 && tm.tm_mday == 31;
20202 bigtime_test (int j)
20206 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20207 now = mktime (&tm);
20208 if (now != (time_t) -1)
20210 struct tm *lt = localtime (&now);
20212 && lt->tm_year == tm.tm_year
20213 && lt->tm_mon == tm.tm_mon
20214 && lt->tm_mday == tm.tm_mday
20215 && lt->tm_hour == tm.tm_hour
20216 && lt->tm_min == tm.tm_min
20217 && lt->tm_sec == tm.tm_sec
20218 && lt->tm_yday == tm.tm_yday
20219 && lt->tm_wday == tm.tm_wday
20220 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20221 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20230 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20231 ignoring leap seconds. */
20232 unsigned long int answer = 2527315200UL;
20236 tm.tm_year = 2050 - 1900;
20239 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20242 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20243 instead of "TZ=America/Vancouver" in order to detect the bug even
20244 on systems that don't support the Olson extension, or don't have the
20245 full zoneinfo tables installed. */
20246 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20250 /* Check that the result is either a failure, or close enough
20251 to the correct answer that we can assume the discrepancy is
20252 due to leap seconds. */
20253 return (t == (time_t) -1
20254 || (0 < t && answer - 120 <= t && t <= answer + 120));
20263 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20264 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20266 /* This test makes some buggy mktime implementations loop.
20267 Give up after 60 seconds; a mktime slower than that
20268 isn't worth using anyway. */
20271 time_t_max = (! time_t_signed
20273 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20275 time_t_min = (! time_t_signed
20277 : time_t_signed_magnitude
20281 delta = time_t_max / 997; /* a suitable prime number */
20282 for (i = 0; i < N_STRINGS; i++)
20285 putenv (tz_strings[i]);
20287 for (t = 0; t <= time_t_max - delta; t += delta)
20288 if (! mktime_test (t))
20290 if (! (mktime_test ((time_t) 1)
20291 && mktime_test ((time_t) (60 * 60))
20292 && mktime_test ((time_t) (60 * 60 * 24))))
20295 for (j = 1; ; j <<= 1)
20296 if (! bigtime_test (j))
20298 else if (INT_MAX / 2 < j)
20300 if (! bigtime_test (INT_MAX))
20303 if (! irix_6_4_bug ())
20305 if (! spring_forward_gap ())
20307 if (! year_2050_test ())
20312 if ac_fn_c_try_run
"$LINENO"; then :
20313 gl_cv_func_working_mktime
=yes
20315 gl_cv_func_working_mktime
=no
20317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20324 $as_echo "$gl_cv_func_working_mktime" >&6; }
20326 if test $gl_cv_func_working_mktime = no
; then
20332 if test $REPLACE_MKTIME = 1; then
20341 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20361 LIB_PTHREAD_SIGMASK
=
20364 if test $ac_cv_func_pthread_sigmask = yes; then
20367 HAVE_PTHREAD_SIGMASK
=0
20368 REPLACE_PTHREAD_SIGMASK
=1
20374 if test $HAVE_PTHREAD_SIGMASK = 1; then
20377 if test -z "$LIB_PTHREAD_SIGMASK"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20379 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20380 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20384 if test "$cross_compiling" = yes; then :
20387 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20388 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20390 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h. */
20397 #include <pthread.h>
20398 #include <signal.h>
20399 #include <stddef.h>
20403 sigemptyset (&set);
20404 return pthread_sigmask (1729, &set, NULL) != 0;
20407 if ac_fn_c_try_run
"$LINENO"; then :
20408 gl_cv_func_pthread_sigmask_in_libc_works
=no
20410 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20419 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20420 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20422 REPLACE_PTHREAD_SIGMASK
=1
20424 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20431 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20432 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20436 gl_save_LIBS
="$LIBS"
20437 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20438 if test "$cross_compiling" = yes; then :
20441 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20443 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20450 #include <pthread.h>
20451 #include <signal.h>
20452 #include <stddef.h>
20456 sigemptyset (&set);
20457 if (pthread_sigmask (1729, &set, NULL) == -1)
20462 if ac_fn_c_try_run
"$LINENO"; then :
20463 gl_cv_func_pthread_sigmask_return_works
=yes
20465 gl_cv_func_pthread_sigmask_return_works
=no
20467 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20468 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20471 LIBS
="$gl_save_LIBS"
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20475 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20476 case "$gl_cv_func_pthread_sigmask_return_works" in
20478 REPLACE_PTHREAD_SIGMASK
=1
20480 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20486 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20487 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20493 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20495 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20497 gl_save_LIBS
="$LIBS"
20498 LIBS
="$LIBS $LIBMULTITHREAD"
20499 if test "$cross_compiling" = yes; then :
20502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20505 #include <pthread.h>
20506 #include <signal.h>
20508 #include <stdlib.h>
20509 #include <unistd.h>
20510 static volatile int sigint_occurred;
20512 sigint_handler (int sig)
20519 int pid = getpid ();
20521 signal (SIGINT, sigint_handler);
20522 sigemptyset (&set);
20523 sigaddset (&set, SIGINT);
20524 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20526 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20527 if (!(system (command) == 0))
20530 if (!(sigint_occurred == 0))
20532 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20534 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20539 if ac_fn_c_try_run
"$LINENO"; then :
20542 gl_cv_func_pthread_sigmask_unblock_works
=no
20544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20548 LIBS
="$gl_save_LIBS"
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20552 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20553 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20555 REPLACE_PTHREAD_SIGMASK
=1
20557 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20563 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20572 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20575 if test $HAVE_PTHREAD_SIGMASK = 1; then
20577 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20587 GNULIB_PTHREAD_SIGMASK
=1
20596 if test $ac_cv_func_readlink = no
; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20600 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20601 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606 #include <unistd.h>
20607 /* Cause compilation failure if original declaration has wrong type. */
20608 ssize_t readlink (const char *, char *, size_t);
20617 if ac_fn_c_try_compile
"$LINENO"; then :
20618 gl_cv_decl_readlink_works
=yes
20620 gl_cv_decl_readlink_works
=no
20622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20625 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20627 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20628 if test "${gl_cv_func_readlink_works+set}" = set; then :
20629 $as_echo_n "(cached) " >&6
20631 # We have readlink, so assume ln -s works.
20632 ln -s conftest.no-such conftest.link
20633 ln -s conftest.link conftest.lnk2
20634 if test "$cross_compiling" = yes; then :
20635 gl_cv_func_readlink_works
="guessing no"
20637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20638 /* end confdefs.h. */
20639 #include <unistd.h>
20645 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20650 if ac_fn_c_try_run
"$LINENO"; then :
20651 gl_cv_func_readlink_works
=yes
20653 gl_cv_func_readlink_works
=no
20655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20659 rm -f conftest.link conftest.lnk2
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20662 $as_echo "$gl_cv_func_readlink_works" >&6; }
20663 if test "$gl_cv_func_readlink_works" != yes; then
20665 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20668 elif test "$gl_cv_decl_readlink_works" != yes; then
20673 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20682 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20710 if test $gl_cv_have_include_next = yes; then
20711 gl_cv_next_signal_h
='<'signal.h
'>'
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20714 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20715 if test "${gl_cv_next_signal_h+set}" = set; then :
20716 $as_echo_n "(cached) " >&6
20719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721 #include <signal.h>
20725 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20726 *) gl_absname_cpp
="$ac_cpp" ;;
20731 gl_dirsep_regex
='[/\\]'
20734 gl_dirsep_regex
='/'
20738 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
20739 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20744 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20745 sed -n "$gl_absolute_header_sed"`'"'
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20750 $as_echo "$gl_cv_next_signal_h" >&6; }
20752 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20754 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20756 gl_next_as_first_directive
='<'signal.h
'>'
20758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20759 gl_next_as_first_directive
=$gl_cv_next_signal_h
20761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20767 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20768 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20769 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20770 #include <signal.h>
20773 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20776 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20785 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20786 #include <signal.h>
20789 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20792 HAVE_SIGHANDLER_T
=0
20798 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20799 /* <sys/types.h> is not needed according to POSIX, but the
20800 <sys/socket.h> in i386-unknown-freebsd4.10 and
20801 powerpc-apple-darwin5.5 required it. */
20802 #include <sys/types.h>
20803 #if HAVE_SYS_SOCKET_H
20804 # include <sys/socket.h>
20805 #elif HAVE_WS2TCPIP_H
20806 # include <ws2tcpip.h>
20810 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20814 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20815 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20818 # Systems have either "struct sockaddr *" or
20819 # "void *" as the second argument to getpeername
20820 gl_cv_socklen_t_equiv
=
20821 for arg2
in "struct sockaddr" void
; do
20822 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825 #include <sys/types.h>
20826 #include <sys/socket.h>
20828 int getpeername (int, $arg2 *, $t *);
20833 getpeername (0, 0, &len);
20838 if ac_fn_c_try_compile
"$LINENO"; then :
20839 gl_cv_socklen_t_equiv
="$t"
20841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20842 test "$gl_cv_socklen_t_equiv" != "" && break
20844 test "$gl_cv_socklen_t_equiv" != "" && break
20849 if test "$gl_cv_socklen_t_equiv" = ""; then
20850 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20853 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20855 cat >>confdefs.h
<<_ACEOF
20856 #define socklen_t $gl_cv_socklen_t_equiv
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20863 $as_echo_n "checking for ssize_t... " >&6; }
20864 if test "${gt_cv_ssize_t+set}" = set; then :
20865 $as_echo_n "(cached) " >&6
20867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869 #include <sys/types.h>
20873 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20879 if ac_fn_c_try_compile
"$LINENO"; then :
20884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20887 $as_echo "$gt_cv_ssize_t" >&6; }
20888 if test $gt_cv_ssize_t = no
; then
20890 $as_echo "#define ssize_t int" >>confdefs.h
20896 NEXT_STDARG_H
='<stdarg.h>'
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20898 $as_echo_n "checking for va_copy... " >&6; }
20899 if test "${gl_cv_func_va_copy+set}" = set; then :
20900 $as_echo_n "(cached) " >&6
20903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20904 /* end confdefs.h. */
20905 #include <stdarg.h>
20911 void (*func) (va_list, va_list) = va_copy;
20918 if ac_fn_c_try_compile
"$LINENO"; then :
20919 gl_cv_func_va_copy
=yes
20921 gl_cv_func_va_copy
=no
20923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20927 $as_echo "$gl_cv_func_va_copy" >&6; }
20928 if test $gl_cv_func_va_copy = no
; then
20929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931 #if defined _AIX && !defined __GNUC__
20936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20937 $EGREP "vaccine" >/dev
/null
2>&1; then :
20944 if test $gl_aixcc = yes; then
20954 if test $gl_cv_have_include_next = yes; then
20955 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20958 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20959 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20965 #include <stdarg.h>
20969 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20970 *) gl_absname_cpp
="$ac_cpp" ;;
20975 gl_dirsep_regex
='[/\\]'
20978 gl_dirsep_regex
='/'
20982 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
20983 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20988 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20989 sed -n "$gl_absolute_header_sed"`'"'
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20994 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20996 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21000 gl_next_as_first_directive
='<'stdarg.h
'>'
21002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21003 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
21005 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
21010 if test "$gl_cv_next_stdarg_h" = '""'; then
21011 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
21012 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
21016 saved_as_echo_n
="$as_echo_n"
21018 if test "${gl_cv_func___va_copy+set}" = set; then :
21019 $as_echo_n "(cached) " >&6
21022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21024 #include <stdarg.h>
21037 if ac_fn_c_try_compile
"$LINENO"; then :
21038 gl_cv_func___va_copy
=yes
21040 gl_cv_func___va_copy
=no
21042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21045 as_echo_n
="$saved_as_echo_n"
21047 if test $gl_cv_func___va_copy = yes; then
21049 $as_echo "#define va_copy __va_copy" >>confdefs.h
21054 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21060 if test -n "$STDARG_H"; then
21061 GL_GENERATE_STDARG_H_TRUE
=
21062 GL_GENERATE_STDARG_H_FALSE
='#'
21064 GL_GENERATE_STDARG_H_TRUE
='#'
21065 GL_GENERATE_STDARG_H_FALSE
=
21073 # Define two additional variables used in the Makefile substitution.
21075 if test "$ac_cv_header_stdbool_h" = yes; then
21078 STDBOOL_H
='stdbool.h'
21081 if test -n "$STDBOOL_H"; then
21082 GL_GENERATE_STDBOOL_H_TRUE
=
21083 GL_GENERATE_STDBOOL_H_FALSE
='#'
21085 GL_GENERATE_STDBOOL_H_TRUE
='#'
21086 GL_GENERATE_STDBOOL_H_FALSE
=
21090 if test "$ac_cv_type__Bool" = yes; then
21101 if test $gt_cv_c_wchar_t = no
; then
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21106 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21107 if test "${gl_cv_decl_null_works+set}" = set; then :
21108 $as_echo_n "(cached) " >&6
21110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <stddef.h>
21113 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21123 if ac_fn_c_try_compile
"$LINENO"; then :
21124 gl_cv_decl_null_works
=yes
21126 gl_cv_decl_null_works
=no
21128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21131 $as_echo "$gl_cv_decl_null_works" >&6; }
21132 if test $gl_cv_decl_null_works = no
; then
21137 if test -n "$STDDEF_H"; then
21138 GL_GENERATE_STDDEF_H_TRUE
=
21139 GL_GENERATE_STDDEF_H_FALSE
='#'
21141 GL_GENERATE_STDDEF_H_TRUE
='#'
21142 GL_GENERATE_STDDEF_H_FALSE
=
21145 if test -n "$STDDEF_H"; then
21154 if test $gl_cv_have_include_next = yes; then
21155 gl_cv_next_stddef_h
='<'stddef.h
'>'
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21158 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21159 if test "${gl_cv_next_stddef_h+set}" = set; then :
21160 $as_echo_n "(cached) " >&6
21163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21169 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21170 *) gl_absname_cpp
="$ac_cpp" ;;
21175 gl_dirsep_regex
='[/\\]'
21178 gl_dirsep_regex
='/'
21182 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21183 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21188 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21189 sed -n "$gl_absolute_header_sed"`'"'
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21194 $as_echo "$gl_cv_next_stddef_h" >&6; }
21196 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21198 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21200 gl_next_as_first_directive
='<'stddef.h
'>'
21202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21203 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21205 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21224 if test $gl_cv_have_include_next = yes; then
21225 gl_cv_next_stdio_h
='<'stdio.h
'>'
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21228 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21229 if test "${gl_cv_next_stdio_h+set}" = set; then :
21230 $as_echo_n "(cached) " >&6
21233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21234 /* end confdefs.h. */
21239 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21240 *) gl_absname_cpp
="$ac_cpp" ;;
21245 gl_dirsep_regex
='[/\\]'
21248 gl_dirsep_regex
='/'
21252 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21253 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21258 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21259 sed -n "$gl_absolute_header_sed"`'"'
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21264 $as_echo "$gl_cv_next_stdio_h" >&6; }
21266 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21268 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21270 gl_next_as_first_directive
='<'stdio.h
'>'
21272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21273 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21275 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21315 if test $gl_cv_have_include_next = yes; then
21316 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21319 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21320 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21321 $as_echo_n "(cached) " >&6
21324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h. */
21326 #include <stdlib.h>
21330 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21331 *) gl_absname_cpp
="$ac_cpp" ;;
21336 gl_dirsep_regex
='[/\\]'
21339 gl_dirsep_regex
='/'
21343 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21344 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21349 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21350 sed -n "$gl_absolute_header_sed"`'"'
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21355 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21357 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21359 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21361 gl_next_as_first_directive
='<'stdlib.h
'>'
21363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21364 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21366 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21376 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21384 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21393 if test "$ac_cv_have_decl_strtoimax" != yes; then
21394 HAVE_DECL_STRTOIMAX
=0
21397 if test $ac_cv_func_strtoimax = no
; then
21406 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21409 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21410 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21416 cat >>confdefs.h
<<_ACEOF
21417 #define HAVE_DECL_STRTOLL $ac_have_decl
21438 if test "$ac_cv_have_decl_strtoumax" != yes; then
21439 HAVE_DECL_STRTOUMAX
=0
21442 if test $ac_cv_func_strtoumax = no
; then
21451 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21454 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21455 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21461 cat >>confdefs.h
<<_ACEOF
21462 #define HAVE_DECL_STRTOULL $ac_have_decl
21481 if test $ac_cv_func_symlink = no
; then
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21485 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21486 if test "${gl_cv_func_symlink_works+set}" = set; then :
21487 $as_echo_n "(cached) " >&6
21489 if test "$cross_compiling" = yes; then :
21490 gl_cv_func_symlink_works
="guessing no"
21492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21494 #include <unistd.h>
21500 if (!symlink ("a", "conftest.link/"))
21502 if (symlink ("conftest.f", "conftest.lnk2"))
21504 else if (!symlink ("a", "conftest.lnk2/"))
21512 if ac_fn_c_try_run
"$LINENO"; then :
21513 gl_cv_func_symlink_works
=yes
21515 gl_cv_func_symlink_works
=no
21517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21521 rm -f conftest.f conftest.link conftest.lnk2
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21524 $as_echo "$gl_cv_func_symlink_works" >&6; }
21525 if test "$gl_cv_func_symlink_works" != yes; then
21530 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21539 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21569 if test $gl_cv_have_include_next = yes; then
21570 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21573 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21574 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21575 $as_echo_n "(cached) " >&6
21578 if test $ac_cv_header_sys_stat_h = yes; then
21581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <sys/stat.h>
21587 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21588 *) gl_absname_cpp
="$ac_cpp" ;;
21593 gl_dirsep_regex
='[/\\]'
21596 gl_dirsep_regex
='/'
21600 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21601 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21606 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21607 sed -n "$gl_absolute_header_sed"`'"'
21609 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21615 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21617 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21619 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21621 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21624 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21626 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21634 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21635 #include <sys/stat.h>
21637 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21641 $as_echo "#define nlink_t int" >>confdefs.h
21659 if test $ac_cv_have_decl_localtime_r = no
; then
21660 HAVE_DECL_LOCALTIME_R
=0
21664 if test $ac_cv_func_localtime_r = yes; then
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21667 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21668 if test "${gl_cv_time_r_posix+set}" = set; then :
21669 $as_echo_n "(cached) " >&6
21671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21672 /* end confdefs.h. */
21677 /* We don't need to append 'restrict's to the argument types,
21678 even though the POSIX signature has the 'restrict's,
21679 since C99 says they can't affect type compatibility. */
21680 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21682 /* Check the return type is a pointer.
21683 On HP-UX 10 it is 'int'. */
21684 *localtime_r (0, 0);
21690 if ac_fn_c_try_compile
"$LINENO"; then :
21691 gl_cv_time_r_posix
=yes
21693 gl_cv_time_r_posix
=no
21695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21699 $as_echo "$gl_cv_time_r_posix" >&6; }
21700 if test $gl_cv_time_r_posix = yes; then
21701 REPLACE_LOCALTIME_R
=0
21703 REPLACE_LOCALTIME_R
=1
21709 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21718 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21749 if test $gl_cv_have_include_next = yes; then
21750 gl_cv_next_unistd_h
='<'unistd.h
'>'
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21753 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21754 if test "${gl_cv_next_unistd_h+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21758 if test $ac_cv_header_unistd_h = yes; then
21761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21763 #include <unistd.h>
21767 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21768 *) gl_absname_cpp
="$ac_cpp" ;;
21773 gl_dirsep_regex
='[/\\]'
21776 gl_dirsep_regex
='/'
21780 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
21781 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21786 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21787 sed -n "$gl_absolute_header_sed"`'"'
21789 gl_cv_next_unistd_h
='<'unistd.h
'>'
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21795 $as_echo "$gl_cv_next_unistd_h" >&6; }
21797 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21799 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21801 gl_next_as_first_directive
='<'unistd.h
'>'
21803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21804 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21806 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21811 if test $ac_cv_header_unistd_h = yes; then
21822 gl_gnulib_enabled_dosname
=false
21823 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21824 gl_gnulib_enabled_pathmax
=false
21825 gl_gnulib_enabled_sigprocmask
=false
21826 gl_gnulib_enabled_stat
=false
21827 gl_gnulib_enabled_strtoll
=false
21828 gl_gnulib_enabled_strtoull
=false
21829 gl_gnulib_enabled_verify
=false
21830 func_gl_gnulib_m4code_dosname
()
21832 if ! $gl_gnulib_enabled_dosname; then
21833 gl_gnulib_enabled_dosname
=true
21836 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21838 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21841 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21844 func_gl_gnulib_m4code_pathmax
()
21846 if ! $gl_gnulib_enabled_pathmax; then
21850 gl_gnulib_enabled_pathmax
=true
21853 func_gl_gnulib_m4code_sigprocmask
()
21855 if ! $gl_gnulib_enabled_sigprocmask; then
21859 if test $gl_cv_type_sigset_t = yes; then
21860 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21861 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21862 gl_cv_func_sigprocmask
=1
21866 if test -z "$gl_cv_func_sigprocmask"; then
21867 HAVE_POSIX_SIGNALBLOCKING
=0
21870 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21879 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21890 GNULIB_SIGPROCMASK
=1
21896 gl_gnulib_enabled_sigprocmask
=true
21899 func_gl_gnulib_m4code_stat
()
21901 if ! $gl_gnulib_enabled_stat; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21906 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21907 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21908 $as_echo_n "(cached) " >&6
21910 if test "$cross_compiling" = yes; then :
21912 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21913 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21918 #include <sys/stat.h>
21923 struct stat st; return stat (".", &st) != stat ("./", &st);
21928 if ac_fn_c_try_run
"$LINENO"; then :
21929 gl_cv_func_stat_dir_slash
=yes
21931 gl_cv_func_stat_dir_slash
=no
21933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21939 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21941 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21942 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21946 # Assume that if we have lstat, we can also check symlinks.
21947 if test $ac_cv_func_lstat = yes; then
21948 ln -s conftest.tmp conftest.lnk
21950 if test "$cross_compiling" = yes; then :
21951 gl_cv_func_stat_file_slash
="guessing no"
21953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21955 #include <sys/stat.h>
21962 if (!stat ("conftest.tmp/", &st))
21965 if (!stat ("conftest.lnk/", &st))
21974 if ac_fn_c_try_run
"$LINENO"; then :
21975 gl_cv_func_stat_file_slash
=yes
21977 gl_cv_func_stat_file_slash
=no
21979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21983 rm -f conftest.tmp conftest.lnk
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21986 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21987 case $gl_cv_func_stat_dir_slash in
21988 *no
) REPLACE_STAT
=1
21990 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21993 case $gl_cv_func_stat_file_slash in
21994 *no
) REPLACE_STAT
=1
21996 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22000 if test $REPLACE_STAT = 1; then
22009 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22027 gl_gnulib_enabled_stat
=true
22028 if test $REPLACE_STAT = 1; then
22029 func_gl_gnulib_m4code_dosname
22031 if test $REPLACE_STAT = 1; then
22032 func_gl_gnulib_m4code_pathmax
22034 if test $REPLACE_STAT = 1; then
22035 func_gl_gnulib_m4code_verify
22039 func_gl_gnulib_m4code_strtoll
()
22041 if ! $gl_gnulib_enabled_strtoll; then
22045 if test "$ac_cv_type_long_long_int" = yes; then
22046 for ac_func
in strtoll
22048 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22049 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22050 cat >>confdefs.h
<<_ACEOF
22051 #define HAVE_STRTOLL 1
22057 if test $ac_cv_func_strtoll = no
; then
22062 if test $HAVE_STRTOLL = 0; then
22071 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22088 gl_gnulib_enabled_strtoll
=true
22091 func_gl_gnulib_m4code_strtoull
()
22093 if ! $gl_gnulib_enabled_strtoull; then
22097 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22098 for ac_func
in strtoull
22100 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22101 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22102 cat >>confdefs.h
<<_ACEOF
22103 #define HAVE_STRTOULL 1
22109 if test $ac_cv_func_strtoull = no
; then
22114 if test $HAVE_STRTOULL = 0; then
22123 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22140 gl_gnulib_enabled_strtoull
=true
22143 func_gl_gnulib_m4code_verify
()
22145 if ! $gl_gnulib_enabled_verify; then
22146 gl_gnulib_enabled_verify
=true
22149 if test $REPLACE_GETOPT = 1; then
22150 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22152 if test $REPLACE_LSTAT = 1; then
22153 func_gl_gnulib_m4code_dosname
22155 if test $REPLACE_LSTAT = 1; then
22156 func_gl_gnulib_m4code_stat
22158 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22159 func_gl_gnulib_m4code_sigprocmask
22161 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22162 func_gl_gnulib_m4code_stat
22164 if test $ac_cv_func_strtoimax = no
; then
22165 func_gl_gnulib_m4code_verify
22167 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22168 func_gl_gnulib_m4code_strtoll
22170 if test $ac_cv_func_strtoumax = no
; then
22171 func_gl_gnulib_m4code_verify
22173 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22174 func_gl_gnulib_m4code_strtoull
22177 if $gl_gnulib_enabled_dosname; then
22178 gl_GNULIB_ENABLED_dosname_TRUE
=
22179 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22181 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22182 gl_GNULIB_ENABLED_dosname_FALSE
=
22185 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22186 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22187 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22189 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22190 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22193 if $gl_gnulib_enabled_pathmax; then
22194 gl_GNULIB_ENABLED_pathmax_TRUE
=
22195 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22197 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22198 gl_GNULIB_ENABLED_pathmax_FALSE
=
22201 if $gl_gnulib_enabled_sigprocmask; then
22202 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22203 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22205 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22206 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22209 if $gl_gnulib_enabled_stat; then
22210 gl_GNULIB_ENABLED_stat_TRUE
=
22211 gl_GNULIB_ENABLED_stat_FALSE
='#'
22213 gl_GNULIB_ENABLED_stat_TRUE
='#'
22214 gl_GNULIB_ENABLED_stat_FALSE
=
22217 if $gl_gnulib_enabled_strtoll; then
22218 gl_GNULIB_ENABLED_strtoll_TRUE
=
22219 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22221 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22222 gl_GNULIB_ENABLED_strtoll_FALSE
=
22225 if $gl_gnulib_enabled_strtoull; then
22226 gl_GNULIB_ENABLED_strtoull_TRUE
=
22227 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22229 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22230 gl_GNULIB_ENABLED_strtoull_FALSE
=
22233 if $gl_gnulib_enabled_verify; then
22234 gl_GNULIB_ENABLED_verify_TRUE
=
22235 gl_GNULIB_ENABLED_verify_FALSE
='#'
22237 gl_GNULIB_ENABLED_verify_TRUE
='#'
22238 gl_GNULIB_ENABLED_verify_FALSE
=
22241 # End of code from modules
22262 gl_source_base
='tests'
22263 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
22265 gl_module_indicator_condition
=$gltests_WITNESS
22276 LIBGNU_LIBDEPS
="$gl_libdeps"
22278 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22283 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22286 ## The -headerpad option tells ld (see man page) to leave room at the
22287 ## end of the header for adding load commands. Needed for dumping.
22288 ## 0x690 is the total size of 30 segment load commands (at 56
22289 ## each); under Cocoa 31 commands are required.
22290 if test "$HAVE_NS" = "yes"; then
22291 libs_nsgui
="-framework AppKit"
22292 headerpad_extra
=6C8
22295 headerpad_extra
=690
22297 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22299 ## This is here because src/Makefile.in did some extra fiddling around
22300 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22301 ## #ifndef LD_SWITCH_SYSTEM
22302 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22303 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22304 ## not using gcc, darwin system not on an alpha (ie darwin, since
22305 ## darwin + alpha does not occur).
22306 ## Because this was done in src/Makefile.in, the resulting part of
22307 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22308 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22309 ## rather than LD_SWITCH_SYSTEM.
22310 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22311 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22314 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22315 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22316 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22317 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22318 ## had different values in configure (in ac_link) and src/Makefile.in.
22319 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22320 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22322 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22325 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22326 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22335 ## gnu: GNU needs its own crt0.
22336 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22338 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22339 ## library search parth, i.e. it won't search /usr/lib for libc and
22340 ## friends. Using -nostartfiles instead avoids this problem, and
22341 ## will also work on earlier NetBSD releases.
22342 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22344 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22345 ## MkLinux/LinuxPPC needs this.
22346 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22349 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22355 if test "x$ORDINARY_LINK" = "xyes"; then
22359 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22362 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22363 ## freebsd, gnu-* not on macppc|ibms390x.
22364 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22366 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22367 ## places that are difficult to figure out at make time. Fortunately,
22368 ## these same versions allow you to pass arbitrary flags on to the
22369 ## linker, so there is no reason not to use it as a linker.
22371 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22372 ## searching for libraries in its internal directories, so we have to
22373 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22374 LD_FIRSTFLAG
="-nostdlib"
22377 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22378 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22383 ## FIXME? The logic here is not precisely the same as that above.
22384 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22385 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22387 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22390 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22393 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22394 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22400 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22401 ## immediately undefine it again and redefine it to empty.
22402 ## Was the C_SWITCH_X_SITE part really necessary?
22403 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22409 ## Ask GCC where to find libgcc.a.
22410 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22415 ## If we're using X11/GNUstep, define some consequences.
22416 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22418 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22421 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22428 #### Report on what we decided to do.
22429 #### Report GTK as a toolkit, even if it doesn't use Xt.
22430 #### It makes printing result more understandable as using GTK sets
22431 #### toolkit_scroll_bars to yes by default.
22432 if test "${HAVE_GTK}" = "yes"; then
22437 if test -n "$machfile"; then
22438 and_machfile
=" and \`${machfile}'"
22442 Configured for \`${canonical}'.
22444 Where should the build process find the source code? ${srcdir}
22445 What operating system and machine description files should Emacs use?
22446 \`${opsysfile}'${and_machfile}
22447 What compiler should emacs be built with? ${CC} ${CFLAGS}
22448 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22449 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22450 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22451 What window system should Emacs use? ${window_system}
22452 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22454 if test -n "${x_includes}"; then
22455 echo " Where do we find X Windows header files? ${x_includes}"
22457 echo " Where do we find X Windows header files? Standard dirs"
22459 if test -n "${x_libraries}"; then
22460 echo " Where do we find X Windows libraries? ${x_libraries}"
22462 echo " Where do we find X Windows libraries? Standard dirs"
22465 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22466 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22467 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22468 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22469 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22470 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22471 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22472 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22474 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22475 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22476 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22477 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22478 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22479 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22480 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22482 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22483 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22484 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22485 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22487 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22490 if test -n "${EMACSDATA}"; then
22491 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22493 if test -n "${EMACSDOC}"; then
22494 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22497 if test $USE_XASSERTS = yes; then
22498 echo " Compiling with asserts turned on."
22499 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22504 if test "$HAVE_NS" = "yes"; then
22506 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22507 The installed application will go to nextstep/Emacs.app and can be
22508 run or moved from there."
22509 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22510 echo "The application will be fully self-contained."
22512 echo "The lisp resources for the application will be installed under ${prefix}.
22513 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22514 to run if these resources are not installed."
22520 # Remove any trailing slashes in these variables.
22521 test "${prefix}" != NONE
&&
22522 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22523 test "${exec_prefix}" != NONE
&&
22524 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22526 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"
22528 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"
22531 opt_makefile
=test
/automated
/Makefile
22533 if test -f $srcdir/${opt_makefile}.
in; then
22534 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22535 ac_config_files
="$ac_config_files test/automated/Makefile"
22539 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22543 ac_config_commands
="$ac_config_commands mkdirs"
22546 ac_config_commands
="$ac_config_commands epaths"
22549 ac_config_commands
="$ac_config_commands gdbinit"
22552 cat >confcache
<<\_ACEOF
22553 # This file is a shell script that caches the results of configure
22554 # tests run on this system so they can be shared between configure
22555 # scripts and configure runs, see configure's option --config-cache.
22556 # It is not useful on other systems. If it contains results you don't
22557 # want to keep, you may remove or edit it.
22559 # config.status only pays attention to the cache file if you give it
22560 # the --recheck option to rerun configure.
22562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22564 # following values.
22568 # The following way of writing the cache mishandles newlines in values,
22569 # but we know of no workaround that is simple, portable, and efficient.
22570 # So, we kill variables containing newlines.
22571 # Ultrix sh set writes to stderr and can't be redirected directly,
22572 # and sets the high bit in the cache file unless we assign to the vars.
22574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22575 eval ac_val
=\$
$ac_var
22579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22583 _ | IFS | as_nl
) ;; #(
22584 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22585 *) { eval $ac_var=; unset $ac_var;} ;;
22591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22592 *${as_nl}ac_space
=\
*)
22593 # `set' does not quote correctly, so add quotes: double-quote
22594 # substitution turns \\\\ into \\, and sed turns \\ into \.
22597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22600 # `set' quotes correctly as required by POSIX, so do not add quotes.
22601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22615 if test -w "$cache_file"; then
22616 test "x$cache_file" != "x/dev/null" &&
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22618 $as_echo "$as_me: updating cache $cache_file" >&6;}
22619 cat confcache
>$cache_file
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22628 # Let make expand exec_prefix.
22629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22631 DEFS
=-DHAVE_CONFIG_H
22635 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22636 # 1. Remove the extension, and $U if already installed.
22637 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22638 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22640 # will be set to the directory where LIBOBJS objects are built.
22641 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22642 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22644 LIBOBJS
=$ac_libobjs
22646 LTLIBOBJS
=$ac_ltlibobjs
22649 if test -n "$EXEEXT"; then
22651 am__EXEEXT_FALSE
='#'
22653 am__EXEEXT_TRUE
='#'
22657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22658 as_fn_error
"conditional \"AMDEP\" was never defined.
22659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22662 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22667 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22671 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22676 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22679 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22680 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22683 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22684 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22687 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22688 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22691 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22692 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22695 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22696 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22699 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22700 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22703 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22704 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22707 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22708 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22711 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22712 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22715 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22716 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22719 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22720 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22726 if test -n "$gl_LIBOBJS"; then
22727 # Remove the extension.
22728 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22729 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22730 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22731 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22734 gl_LIBOBJS
=$gl_libobjs
22736 gl_LTLIBOBJS
=$gl_ltlibobjs
22742 if test -n "$gltests_LIBOBJS"; then
22743 # Remove the extension.
22744 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22745 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22746 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22747 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22750 gltests_LIBOBJS
=$gltests_libobjs
22752 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22756 : ${CONFIG_STATUS=./config.status}
22758 ac_clean_files_save
=$ac_clean_files
22759 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22765 # Generated by $as_me.
22766 # Run this file to recreate the current configuration.
22767 # Compiler output produced by configure, useful for debugging
22768 # configure, is in config.log if it exists.
22771 ac_cs_recheck=false
22774 SHELL=\${CONFIG_SHELL-$SHELL}
22777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22778 ## -------------------- ##
22779 ## M4sh Initialization. ##
22780 ## -------------------- ##
22782 # Be more Bourne compatible
22783 DUALCASE
=1; export DUALCASE
# for MKS sh
22784 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22788 # is contrary to our usage. Disable this feature.
22789 alias -g '${1+"$@"}'='"$@"'
22790 setopt NO_GLOB_SUBST
22792 case `(set -o) 2>/dev/null` in #(
22804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22805 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22808 # Prefer a ksh shell builtin over an external printf program on Solaris,
22809 # but without wasting forks for bash or zsh.
22810 if test -z "$BASH_VERSION$ZSH_VERSION" \
22811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22812 as_echo='print
-r --'
22813 as_echo_n='print
-rn --'
22814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22815 as_echo='printf %s
\n'
22816 as_echo_n='printf %s
'
22818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22819 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22820 as_echo_n='/usr
/ucb
/echo -n'
22822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22823 as_echo_n_body='eval
22827 expr "X$arg" : "X\\(.*\\)$as_nl";
22828 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22830 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22832 export as_echo_n_body
22833 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22835 export as_echo_body
22836 as_echo='sh
-c $as_echo_body as_echo
'
22839 # The user is always right.
22840 if test "${PATH_SEPARATOR+set}" != set; then
22842 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22843 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22850 # We need space, tab and new line, in precisely that order. Quoting is
22851 # there to prevent editors from complaining about space-tab.
22852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22853 # splitting by setting IFS to empty value.)
22856 # Find who we are. Look in the path if we contain no directory separator.
22858 *[\\/]* ) as_myself=$0 ;;
22859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22860 for as_dir in $PATH
22863 test -z "$as_dir" && as_dir=.
22864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22870 # We did not find ourselves, most probably we were run as `sh COMMAND'
22871 # in which case we are not to be found in the path.
22872 if test "x$as_myself" = x
; then
22875 if test ! -f "$as_myself"; then
22876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22880 # Unset variables that we do not need and which cause bugs (e.g. in
22881 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22882 # suppresses any "Segmentation fault" message there. '((' could
22883 # trigger a bug in pdksh 5.2.14.
22884 for as_var
in BASH_ENV ENV MAIL MAILPATH
22885 do eval test x\
${$as_var+set} = xset \
22886 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22899 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22902 # as_fn_error ERROR [LINENO LOG_FD]
22903 # ---------------------------------
22904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22906 # script with status $?, using 1 if that was 0.
22909 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22911 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22912 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22914 $as_echo "$as_me: error: $1" >&2
22915 as_fn_exit
$as_status
22919 # as_fn_set_status STATUS
22920 # -----------------------
22921 # Set $? to STATUS, without forking.
22922 as_fn_set_status
()
22925 } # as_fn_set_status
22927 # as_fn_exit STATUS
22928 # -----------------
22929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22933 as_fn_set_status
$1
22939 # Portably unset VAR.
22942 { eval $1=; unset $1;}
22944 as_unset
=as_fn_unset
22945 # as_fn_append VAR VALUE
22946 # ----------------------
22947 # Append the text in VALUE to the end of the definition contained in VAR. Take
22948 # advantage of any shell optimizations that allow amortized linear growth over
22949 # repeated appends, instead of the typical quadratic growth present in naive
22951 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22952 eval 'as_fn_append ()
22963 # as_fn_arith ARG...
22964 # ------------------
22965 # Perform arithmetic evaluation on the ARGs, and store the result in the
22966 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22967 # must be portable across $(()) and expr.
22968 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22969 eval 'as_fn_arith ()
22976 as_val
=`expr "$@" || test $? -eq 1`
22981 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22982 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22988 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22989 as_basename
=basename
22994 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23000 as_me
=`$as_basename -- "$0" ||
23001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23002 X"$0" : 'X\(//\)$' \| \
23003 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23005 sed '/^.*\/\([^/][^/]*\)\/*$/{
23019 # Avoid depending upon Character Ranges.
23020 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23021 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23022 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23023 as_cr_digits
='0123456789'
23024 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23026 ECHO_C
= ECHO_N
= ECHO_T
=
23027 case `echo -n x` in #(((((
23029 case `echo 'xy\c'` in
23030 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23032 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23039 rm -f conf$$ conf$$.exe conf$$.
file
23040 if test -d conf$$.dir
; then
23041 rm -f conf$$.dir
/conf$$.
file
23044 mkdir conf$$.dir
2>/dev
/null
23046 if (echo >conf$$.
file) 2>/dev
/null
; then
23047 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23049 # ... but there are two gotchas:
23050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23052 # In both cases, we have to default to `cp -p'.
23053 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23055 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23063 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23064 rmdir conf$$.dir
2>/dev
/null
23069 # Create "$as_dir" as a directory, including parents if necessary.
23074 -*) as_dir
=.
/$as_dir;;
23076 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23080 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23081 *) as_qdir
=$as_dir;;
23083 as_dirs
="'$as_qdir' $as_dirs"
23084 as_dir
=`$as_dirname -- "$as_dir" ||
23085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23086 X"$as_dir" : 'X\(//\)[^/]' \| \
23087 X"$as_dir" : 'X\(//\)$' \| \
23088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23089 $as_echo X"$as_dir" |
23090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23094 /^X\(\/\/\)[^/].*/{
23107 test -d "$as_dir" && break
23109 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23110 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23114 if mkdir
-p .
2>/dev
/null
; then
23115 as_mkdir_p
='mkdir -p "$as_dir"'
23117 test -d .
/-p && rmdir .
/-p
23121 if test -x / >/dev
/null
2>&1; then
23122 as_test_x
='test -x'
23124 if ls -dL / >/dev
/null
2>&1; then
23131 if test -d "$1"; then
23137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23138 ???[sx]*):;;*)false;;esac;fi
23142 as_executable_p
=$as_test_x
23144 # Sed expression to map a string onto a valid CPP name.
23145 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23147 # Sed expression to map a string onto a valid variable name.
23148 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23152 ## ----------------------------------- ##
23153 ## Main body of $CONFIG_STATUS script. ##
23154 ## ----------------------------------- ##
23156 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23159 # Save the log message, to keep $0 and so on meaningful, and to
23160 # report actual input values of CONFIG_FILES etc. instead of their
23161 # values after options handling.
23163 This file was extended by emacs $as_me 24.2, which was
23164 generated by GNU Autoconf 2.65. Invocation command line was
23166 CONFIG_FILES = $CONFIG_FILES
23167 CONFIG_HEADERS = $CONFIG_HEADERS
23168 CONFIG_LINKS = $CONFIG_LINKS
23169 CONFIG_COMMANDS = $CONFIG_COMMANDS
23172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23177 case $ac_config_files in *"
23178 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23181 case $ac_config_headers in *"
23182 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23187 # Files that config.status was made for.
23188 config_files="$ac_config_files"
23189 config_headers="$ac_config_headers"
23190 config_commands="$ac_config_commands"
23194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23196 \`$as_me' instantiates files and other configuration actions
23197 from templates according to the current configuration. Unless the files
23198 and actions are specified as TAGs, all are instantiated by default.
23200 Usage: $0 [OPTION]... [TAG]...
23202 -h, --help print this help, then exit
23203 -V, --version print version number and configuration settings, then exit
23204 --config print configuration, then exit
23205 -q, --quiet, --silent
23206 do not print progress messages
23207 -d, --debug don't remove temporary files
23208 --recheck update $as_me by reconfiguring in the same conditions
23209 --file=FILE[:TEMPLATE]
23210 instantiate the configuration file FILE
23211 --header=FILE[:TEMPLATE]
23212 instantiate the configuration header FILE
23214 Configuration files:
23217 Configuration headers:
23220 Configuration commands:
23223 Report bugs to the package provider."
23226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23229 emacs config.status 24.2
23230 configured by $0, generated by GNU Autoconf 2.65,
23231 with options \\"\$ac_cs_config\\"
23233 Copyright (C) 2009 Free Software Foundation, Inc.
23234 This config.status script is free software; the Free Software Foundation
23235 gives unlimited permission to copy, distribute and modify it."
23242 test -n "\$AWK" || AWK=awk
23245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23246 # The default lists apply if the user does not specify any file.
23252 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23253 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23264 # Handling of the options.
23265 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23267 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23268 $as_echo "$ac_cs_version"; exit ;;
23269 --config |
--confi |
--conf |
--con |
--co |
--c )
23270 $as_echo "$ac_cs_config"; exit ;;
23271 --debug |
--debu |
--deb |
--de |
--d |
-d )
23273 --file |
--fil |
--fi |
--f )
23276 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23278 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23279 ac_need_defaults
=false
;;
23280 --header |
--heade |
--head |
--hea )
23283 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23285 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23286 ac_need_defaults
=false
;;
23288 # Conflict between --help and --header
23289 as_fn_error
"ambiguous option: \`$1'
23290 Try \`$0 --help' for more information.";;
23291 --help |
--hel |
-h )
23292 $as_echo "$ac_cs_usage"; exit ;;
23293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23294 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23297 # This is an error.
23298 -*) as_fn_error
"unrecognized option: \`$1'
23299 Try \`$0 --help' for more information." ;;
23301 *) as_fn_append ac_config_targets
" $1"
23302 ac_need_defaults
=false
;;
23308 ac_configure_extra_args
=
23310 if $ac_cs_silent; then
23312 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23317 if \$ac_cs_recheck; then
23318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23321 CONFIG_SHELL='$SHELL'
23322 export CONFIG_SHELL
23327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23332 ## Running $as_me. ##
23338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23343 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23349 # Handling of arguments.
23350 for ac_config_target
in $ac_config_targets
23352 case $ac_config_target in
23353 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23354 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23355 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23356 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23357 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23358 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23359 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23360 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23361 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23362 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23363 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23364 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23365 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23366 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23367 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23368 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23369 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23370 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23372 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23377 # If the user did not use the arguments to specify the items to instantiate,
23378 # then the envvar interface is used. Set only those that are not.
23379 # We use the long form for the default assignment because of an extremely
23380 # bizarre bug on SunOS 4.1.3.
23381 if $ac_need_defaults; then
23382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23387 # Have a temporary directory for convenience. Make it in the build tree
23388 # simply because there is no reason against having it here, and in addition,
23389 # creating and moving files from /tmp can sometimes cause problems.
23390 # Hook for its removal unless debugging.
23391 # Note that there is a small window in which the directory will not be cleaned:
23392 # after its creation but before its name has been assigned to `$tmp'.
23396 trap 'exit_status=$?
23397 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23399 trap 'as_fn_exit 1' 1 2 13 15
23401 # Create a (secure) tmp directory for tmp files.
23404 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23405 test -n "$tmp" && test -d "$tmp"
23408 tmp
=.
/conf$$
-$RANDOM
23409 (umask 077 && mkdir
"$tmp")
23410 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23412 # Set up the scripts for CONFIG_FILES section.
23413 # No need to generate them if there are no CONFIG_FILES.
23414 # This happens for instance with `./config.status config.h'.
23415 if test -n "$CONFIG_FILES"; then
23417 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23418 ac_cs_awk_getline
=:
23419 ac_cs_awk_pipe_init
=
23420 ac_cs_awk_read_file
='
23421 while ((getline aline < (F[key])) > 0)
23424 ac_cs_awk_pipe_fini
=
23426 ac_cs_awk_getline
=false
23427 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23428 ac_cs_awk_read_file
='
23430 print "cat " F[key] " &&"
23431 '$ac_cs_awk_pipe_init
23432 # The final `:' finishes the AND list.
23433 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23435 ac_cr
=`echo X | tr X '\015'`
23436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23437 # But we know of no other shell where ac_cr would be empty at this
23438 # point, so we can use a bashism as a fallback.
23439 if test "x$ac_cr" = x
; then
23440 eval ac_cr
=\$
\'\\r
\'
23442 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23446 ac_cs_awk_cr
=$ac_cr
23449 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23452 # Create commands to substitute file output variables.
23454 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23455 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23456 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23459 } >conf$
$files.sh
&&
23460 . .
/conf$
$files.sh ||
23461 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23462 rm -f conf$
$files.sh
23465 echo "cat >conf$$subs.awk <<_ACEOF" &&
23466 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23468 } >conf$$subs.sh ||
23469 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23470 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23472 for ac_last_try in false false false false false :; do
23473 . ./conf$$subs.sh ||
23474 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23476 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23477 if test $ac_delim_n = $ac_delim_num; then
23479 elif $ac_last_try; then
23480 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23482 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23485 rm -f conf$$subs.sh
23487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23488 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23492 s/^/S["/; s
/!.
*/"]=/
23502 s/\(.\{148\}\)..*/\1/
23504 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23509 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23516 s/\(.\{148\}\)..*/\1/
23518 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23522 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23527 ' <conf$$subs.awk | sed '
23532 ' >>$CONFIG_STATUS || ac_write_fail=1
23533 rm -f conf$$subs.awk
23534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23536 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23537 for (key in S) S_is_set[key] = 1
23539 \$ac_cs_awk_pipe_init
23543 nfields = split(line, field, "@
")
23545 len = length(field[1])
23546 for (i = 2; i < nfields; i++) {
23548 keylen = length(key)
23549 if (S_is_set[key]) {
23551 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23552 len += length(value) + length(field[++i])
23557 if (nfields == 3 && !substed) {
23559 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23560 \$ac_cs_awk_read_file
23566 \$ac_cs_awk_pipe_fini
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23571 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23574 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23575 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23578 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23580 # trailing colons and then remove the whole line if VPATH becomes empty
23581 # (actually we leave an empty line to preserve line numbers).
23582 if test "x
$srcdir" = x.; then
23583 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23584 s/:*\$(srcdir):*/:/
23585 s/:*\${srcdir}:*/:/
23587 s/^\([^=]*=[ ]*\):*/\1/
23593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23594 fi # test -n "$CONFIG_FILES"
23596 # Set up the scripts for CONFIG_HEADERS section.
23597 # No need to generate them if there are no CONFIG_HEADERS.
23598 # This happens for instance with `./config.status Makefile'.
23599 if test -n "$CONFIG_HEADERS"; then
23600 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23604 # Transform confdefs.h into an awk script `defines.awk', embedded as
23605 # here-document in config.status, that substitutes the proper values into
23606 # config.h.in to produce config.h.
23608 # Create a delimiter string that does not exist in confdefs.h, to ease
23609 # handling of long lines.
23611 for ac_last_try in false false :; do
23612 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23613 if test -z "$ac_t"; then
23615 elif $ac_last_try; then
23616 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23618 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23622 # For the awk script, D is an array of macro values keyed by name,
23623 # likewise P contains macro parameters if any. Preserve backslash
23624 # newline sequences.
23626 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23628 s/.\{148\}/&'"$ac_delim"'/g
23631 s/^[ ]*#[ ]*define[ ][ ]*/ /
23638 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23640 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23644 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23645 D["\
1"]=" \
3\\\\\\n
"\\/p
23647 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23652 s/.\{148\}/&'"$ac_delim"'/g
23657 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23660 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23662 ' <confdefs.h | sed '
23663 s/'"$ac_delim"'/"\\\
23664 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23667 for (key in D) D_is_set[key] = 1
23670 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23672 split(line, arg, " ")
23673 if (arg[1] == "#") {
23677 defundef
= substr
(arg
[1], 2)
23680 split(mac1
, mac2
, "(") #)
23682 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23683 if (D_is_set
[macro
]) {
23684 # Preserve the white space surrounding the "#".
23685 print prefix
"define", macro P
[macro
] D
[macro
]
23688 # Replace #undef with comments. This is necessary, for example,
23689 # in the case of _POSIX_SOURCE, which is predefined and required
23690 # on some systems where configure will not decide to define it.
23691 if (defundef
== "undef") {
23692 print
"/*", prefix defundef
, macro
, "*/"
23700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23701 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23702 fi # test -n "$CONFIG_HEADERS"
23705 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23710 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23712 case $ac_mode$ac_tag in
23714 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23715 :[FH
]-) ac_tag
=-:-;;
23716 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23733 -) ac_f
="$tmp/stdin";;
23734 *) # Look for the file first in the build tree, then in the source tree
23735 # (if the path is not absolute). The absolute path cannot be DOS-style,
23736 # because $ac_f cannot contain `:'.
23740 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23742 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23744 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23745 as_fn_append ac_file_inputs
" '$ac_f'"
23748 # Let's still pretend it is `configure' which instantiates (i.e., don't
23749 # use $as_me), people would be surprised to read:
23750 # /* config.h. Generated by config.status. */
23751 configure_input
='Generated from '`
23752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23754 if test x
"$ac_file" != x-
; then
23755 configure_input
="$ac_file. $configure_input"
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23757 $as_echo "$as_me: creating $ac_file" >&6;}
23759 # Neutralize special characters interpreted by sed in replacement strings.
23760 case $configure_input in #(
23761 *\
&* |
*\|
* |
*\\* )
23762 ac_sed_conf_input
=`$as_echo "$configure_input" |
23763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23764 *) ac_sed_conf_input
=$configure_input;;
23768 *:-:* |
*:-) cat >"$tmp/stdin" \
23769 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23774 ac_dir
=`$as_dirname -- "$ac_file" ||
23775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$ac_file" : 'X\(//\)[^/]' \| \
23777 X"$ac_file" : 'X\(//\)$' \| \
23778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23779 $as_echo X"$ac_file" |
23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23784 /^X\(\/\/\)[^/].*/{
23797 as_dir
="$ac_dir"; as_fn_mkdir_p
23801 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23803 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23804 # A ".." for each directory in $ac_dir_suffix.
23805 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23806 case $ac_top_builddir_sub in
23807 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23808 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23811 ac_abs_top_builddir
=$ac_pwd
23812 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23813 # for backward compatibility:
23814 ac_top_builddir
=$ac_top_build_prefix
23817 .
) # We are building in place.
23819 ac_top_srcdir
=$ac_top_builddir_sub
23820 ac_abs_top_srcdir
=$ac_pwd ;;
23821 [\\/]* | ?
:[\\/]* ) # Absolute name.
23822 ac_srcdir
=$srcdir$ac_dir_suffix;
23823 ac_top_srcdir
=$srcdir
23824 ac_abs_top_srcdir
=$srcdir ;;
23825 *) # Relative name.
23826 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23827 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23828 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23830 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23840 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23841 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23843 ac_MKDIR_P
=$MKDIR_P
23845 [\\/$
]* | ?
:[\\/]* ) ;;
23846 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23851 # If the template does not know about datarootdir, expand it.
23852 # FIXME: This hack should be removed a few years after 2.60.
23853 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23864 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23865 *datarootdir
*) ac_datarootdir_seen
=yes;;
23866 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23868 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23871 ac_datarootdir_hack='
23872 s&@datadir@&$datadir&g
23873 s&@docdir@&$docdir&g
23874 s&@infodir@&$infodir&g
23875 s&@localedir@&$localedir&g
23876 s&@mandir@&$mandir&g
23877 s&\\\${datarootdir}&$datarootdir&g' ;;
23881 # Neutralize VPATH when `$srcdir' = `.'.
23882 # Shell code in configure.ac might set extrasub.
23883 # FIXME: do we really want to maintain this feature?
23884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23885 ac_sed_extra="$ac_vpsub
23888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23890 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23891 s|@configure_input@|
$ac_sed_conf_input|
;t t
23892 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23893 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23894 s
&@srcdir@
&$ac_srcdir&;t t
23895 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23896 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23897 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23898 s
&@builddir@
&$ac_builddir&;t t
23899 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23900 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23901 s
&@INSTALL@
&$ac_INSTALL&;t t
23902 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23903 $ac_datarootdir_hack
23905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23906 if $ac_cs_awk_getline; then
23907 $AWK -f "$tmp/subs.
awk"
23909 $AWK -f "$tmp/subs.
awk" | $SHELL
23911 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23914 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23915 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23917 which seems to be undefined. Please make sure it is defined." >&5
23918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23919 which seems to be undefined. Please make sure it is defined." >&2;}
23923 -) cat "$tmp/out" && rm -f "$tmp/out";;
23924 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23926 || as_fn_error "could not create $ac_file" "$LINENO" 5
23932 if test x"$ac_file" != x-; then
23934 $as_echo "/* $configure_input */" \
23935 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23936 } >"$tmp/config.h" \
23937 || as_fn_error "could not create $ac_file" "$LINENO" 5
23938 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23940 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23943 mv "$tmp/config.h" "$ac_file" \
23944 || as_fn_error "could not create $ac_file" "$LINENO" 5
23947 $as_echo "/* $configure_input */" \
23948 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23949 || as_fn_error "could not create -" "$LINENO" 5
23951 # Compute "$ac_file"'s index
in $config_headers.
23954 for _am_header
in $config_headers :; do
23955 case $_am_header in
23956 $_am_arg |
$_am_arg:* )
23959 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23964 X"$_am_arg" : 'X\(//\)[^/]' \| \
23965 X"$_am_arg" : 'X\(//\)$' \| \
23966 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23967 $as_echo X"$_am_arg" |
23968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23972 /^X\(\/\/\)[^/].*/{
23984 s/.*/./; q'`/stamp-h
$_am_stamp_count
23987 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23988 $as_echo "$as_me: executing $ac_file commands" >&6;}
23993 case $ac_file$ac_mode in
23994 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23995 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23996 # are listed without --file. Let's play safe and only enable the eval
23997 # if we detect the quoting.
23998 case $CONFIG_FILES in
23999 *\'*) eval set x
"$CONFIG_FILES" ;;
24000 *) set x
$CONFIG_FILES ;;
24005 # Strip MF so we end up with the name of the file.
24006 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24007 # Check whether this is an Automake generated Makefile or not.
24008 # We used to match only the files named `Makefile.in', but
24009 # some people rename them; so instead we look at the file content.
24010 # Grep'ing the first line is not enough: some people post-process
24011 # each Makefile.in and add a new line on top of each file to say so.
24012 # Grep'ing the whole file is not good either: AIX grep has a line
24013 # limit of 2048, but all sed's we know have understand at least 4000.
24014 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24015 dirpart
=`$as_dirname -- "$mf" ||
24016 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24017 X"$mf" : 'X\(//\)[^/]' \| \
24018 X"$mf" : 'X\(//\)$' \| \
24019 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24025 /^X\(\/\/\)[^/].*/{
24041 # Extract the definition of DEPDIR, am__include, and am__quote
24042 # from the Makefile without running `make'.
24043 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24044 test -z "$DEPDIR" && continue
24045 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24046 test -z "am__include" && continue
24047 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24048 # When using ansi2knr, U may be empty or an underscore; expand it
24049 U
=`sed -n 's/^U = //p' < "$mf"`
24050 # Find all dependency output files, they are included files with
24051 # $(DEPDIR) in their names. We invoke sed twice because it is the
24052 # simplest approach to changing $(DEPDIR) to its actual value in the
24054 for file in `sed -n "
24055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24057 # Make sure the directory exists.
24058 test -f "$dirpart/$file" && continue
24059 fdir
=`$as_dirname -- "$file" ||
24060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24061 X"$file" : 'X\(//\)[^/]' \| \
24062 X"$file" : 'X\(//\)$' \| \
24063 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24064 $as_echo X"$file" |
24065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24069 /^X\(\/\/\)[^/].*/{
24082 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24083 # echo "creating $dirpart/$file"
24084 echo '# dummy' > "$dirpart/$file"
24090 for dir
in etc lisp
; do
24091 test -d ${dir} || mkdir
${dir}
24095 echo creating src
/epaths.h
24096 ${MAKE-make} epaths-force
24099 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24100 echo creating src
/.gdbinit
24101 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24111 ac_clean_files
=$ac_clean_files_save
24113 test $ac_write_fail = 0 ||
24114 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24117 # configure is writing to config.log, and then calls config.status.
24118 # config.status does its own redirection, appending to config.log.
24119 # Unfortunately, on DOS this fails, as config.log is still kept open
24120 # by configure, so config.status won't be able to write to it; its
24121 # output is simply discarded. So we exec the FD to /dev/null,
24122 # effectively closing config.log, so it can be properly (re)opened and
24123 # appended to by config.status. When coming back to configure, we
24124 # need to make the FD available again.
24125 if test "$no_create" != yes; then
24127 ac_config_status_args
=
24128 test "$silent" = yes &&
24129 ac_config_status_args
="$ac_config_status_args --quiet"
24131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24134 # would make configure fail if this is the last instruction.
24135 $ac_cs_success || as_fn_exit $?
24137 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24139 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}