2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.2.50'
553 PACKAGE_STRING
='emacs 24.2.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_pathmax_FALSE
622 gl_GNULIB_ENABLED_pathmax_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
631 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
634 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
635 TIME_H_DEFINES_STRUCT_TIMESPEC
636 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 WINDOWS_64_BIT_ST_SIZE
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 GL_GENERATE_STDALIGN_H_FALSE
763 GL_GENERATE_STDALIGN_H_TRUE
765 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
769 REPLACE_PTHREAD_SIGMASK
771 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
772 HAVE_STRUCT_SIGACTION_SA_SIGACTION
778 HAVE_POSIX_SIGNALBLOCKING
781 GNULIB_SIGNAL_H_SIGPIPE
783 GNULIB_PTHREAD_SIGMASK
785 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 HAVE_DECL_LOCALTIME_R
838 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
840 UINT64_MAX_EQ_ULONG_MAX
841 UINT32_MAX_LT_UINTMAX_MAX
844 INT64_MAX_EQ_LONG_MAX
845 INT32_MAX_LT_INTMAX_MAX
855 GL_GENERATE_STDINT_H_FALSE
856 GL_GENERATE_STDINT_H_TRUE
865 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_SIG_ATOMIC_T
871 APPLE_UNIVERSAL_BUILD
875 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
880 HAVE_UNSIGNED_LONG_LONG_INT
883 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
885 REPLACE_STRUCT_TIMEVAL
891 GNULIB_GL_UNISTD_H_GETOPT
894 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
898 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
913 REPLACE_CANONICALIZE_FILE_NAME
918 HAVE_STRUCT_RANDOM_DATA
940 HAVE_CANONICALIZE_FILE_NAME
970 GNULIB_CANONICALIZE_FILE_NAME
974 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
975 UNISTD_H_HAVE_WINSOCK2_H
996 REPLACE_GETDOMAINNAME
1007 HAVE_DECL_SETHOSTNAME
1008 HAVE_DECL_GETUSERSHELL
1009 HAVE_DECL_GETPAGESIZE
1010 HAVE_DECL_GETLOGIN_R
1011 HAVE_DECL_GETDOMAINNAME
1050 GNULIB_UNISTD_H_SIGPIPE
1051 GNULIB_UNISTD_H_NONBLOCKING
1077 GNULIB_GETDTABLESIZE
1078 GNULIB_GETDOMAINNAME
1095 GL_GENERATE_ALLOCA_H_FALSE
1096 GL_GENERATE_ALLOCA_H_TRUE
1099 GL_COND_LIBTOOL_FALSE
1100 GL_COND_LIBTOOL_TRUE
1131 x_default_search_path
1201 INSTALL_ARCH_INDEP_EXTRA
1203 LD_SWITCH_X_SITE_RPATH
1271 INSTALL_STRIP_PROGRAM
1313 program_transform_name
1324 ac_subst_files
='deps_frag
1328 enable_option_checking
1352 with_toolkit_scroll_bars
1364 with_pkg_config_prog
1368 enable_ns_self_contained
1369 enable_locallisppath
1371 enable_check_lisp_object_type
1374 enable_dependency_tracking
1377 enable_link_time_optimization
1380 ac_precious_vars
='build_alias
1392 # Initialize some variables set by options.
1394 ac_init_version
=false
1395 ac_unrecognized_opts
=
1396 ac_unrecognized_sep
=
1397 # The variables have the same names as the options, with
1398 # dashes changed to underlines.
1399 cache_file
=/dev
/null
1406 program_transform_name
=s
,x
,x
,
1414 # Installation directory options.
1415 # These are left unexpanded so users can "make install exec_prefix=/foo"
1416 # and all the variables that are supposed to be based on exec_prefix
1417 # by default will actually change.
1418 # Use braces instead of parens because sh, perl, etc. also accept them.
1419 # (The list follows the same order as the GNU Coding Standards.)
1420 bindir
='${exec_prefix}/bin'
1421 sbindir
='${exec_prefix}/sbin'
1422 libexecdir
='${exec_prefix}/libexec'
1423 datarootdir
='${prefix}/share'
1424 datadir
='${datarootdir}'
1425 sysconfdir
='${prefix}/etc'
1426 sharedstatedir
='${prefix}/com'
1427 localstatedir
='${prefix}/var'
1428 includedir
='${prefix}/include'
1429 oldincludedir
='/usr/include'
1430 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1431 infodir
='${datarootdir}/info'
1436 libdir
='${exec_prefix}/lib'
1437 localedir
='${datarootdir}/locale'
1438 mandir
='${datarootdir}/man'
1444 # If the previous option needs an argument, assign it.
1445 if test -n "$ac_prev"; then
1446 eval $ac_prev=\
$ac_option
1452 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1456 # Accept the important Cygnus configure options, so we can diagnose typos.
1458 case $ac_dashdash$ac_option in
1462 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1464 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1465 bindir
=$ac_optarg ;;
1467 -build |
--build |
--buil |
--bui |
--bu)
1468 ac_prev
=build_alias
;;
1469 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1470 build_alias
=$ac_optarg ;;
1472 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1473 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1474 ac_prev
=cache_file
;;
1475 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1476 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1477 cache_file
=$ac_optarg ;;
1479 --config-cache |
-C)
1480 cache_file
=config.cache
;;
1482 -datadir |
--datadir |
--datadi |
--datad)
1484 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1485 datadir
=$ac_optarg ;;
1487 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1488 |
--dataroo |
--dataro |
--datar)
1489 ac_prev
=datarootdir
;;
1490 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1491 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1492 datarootdir
=$ac_optarg ;;
1494 -disable-* |
--disable-*)
1495 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1496 # Reject names that are not valid shell variable names.
1497 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1498 as_fn_error
"invalid feature name: $ac_useropt"
1499 ac_useropt_orig
=$ac_useropt
1500 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501 case $ac_user_opts in
1503 "enable_
$ac_useropt"
1505 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1506 ac_unrecognized_sep
=', ';;
1508 eval enable_
$ac_useropt=no
;;
1510 -docdir |
--docdir |
--docdi |
--doc |
--do)
1512 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1513 docdir
=$ac_optarg ;;
1515 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1517 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1518 dvidir
=$ac_optarg ;;
1520 -enable-* |
--enable-*)
1521 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1524 as_fn_error
"invalid feature name: $ac_useropt"
1525 ac_useropt_orig
=$ac_useropt
1526 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1529 "enable_
$ac_useropt"
1531 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1532 ac_unrecognized_sep
=', ';;
1534 eval enable_
$ac_useropt=\
$ac_optarg ;;
1536 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1537 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1538 |
--exec |
--exe |
--ex)
1539 ac_prev
=exec_prefix
;;
1540 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1541 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1542 |
--exec=* |
--exe=* |
--ex=*)
1543 exec_prefix
=$ac_optarg ;;
1545 -gas |
--gas |
--ga |
--g)
1546 # Obsolete; use --with-gas.
1549 -help |
--help |
--hel |
--he |
-h)
1550 ac_init_help
=long
;;
1551 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1552 ac_init_help
=recursive
;;
1553 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1554 ac_init_help
=short
;;
1556 -host |
--host |
--hos |
--ho)
1557 ac_prev
=host_alias
;;
1558 -host=* |
--host=* |
--hos=* |
--ho=*)
1559 host_alias
=$ac_optarg ;;
1561 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1563 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1565 htmldir
=$ac_optarg ;;
1567 -includedir |
--includedir |
--includedi |
--included |
--include \
1568 |
--includ |
--inclu |
--incl |
--inc)
1569 ac_prev
=includedir
;;
1570 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1571 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1572 includedir
=$ac_optarg ;;
1574 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1576 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1577 infodir
=$ac_optarg ;;
1579 -libdir |
--libdir |
--libdi |
--libd)
1581 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1582 libdir
=$ac_optarg ;;
1584 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1585 |
--libexe |
--libex |
--libe)
1586 ac_prev
=libexecdir
;;
1587 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1588 |
--libexe=* |
--libex=* |
--libe=*)
1589 libexecdir
=$ac_optarg ;;
1591 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1592 ac_prev
=localedir
;;
1593 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1594 localedir
=$ac_optarg ;;
1596 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1597 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1598 ac_prev
=localstatedir
;;
1599 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1600 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1601 localstatedir
=$ac_optarg ;;
1603 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1605 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1606 mandir
=$ac_optarg ;;
1608 -nfp |
--nfp |
--nf)
1609 # Obsolete; use --without-fp.
1612 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1613 |
--no-cr |
--no-c |
-n)
1616 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1617 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1620 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1621 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1622 |
--oldin |
--oldi |
--old |
--ol |
--o)
1623 ac_prev
=oldincludedir
;;
1624 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1625 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1626 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1627 oldincludedir
=$ac_optarg ;;
1629 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1631 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1632 prefix
=$ac_optarg ;;
1634 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1635 |
--program-pre |
--program-pr |
--program-p)
1636 ac_prev
=program_prefix
;;
1637 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1638 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1639 program_prefix
=$ac_optarg ;;
1641 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1642 |
--program-suf |
--program-su |
--program-s)
1643 ac_prev
=program_suffix
;;
1644 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1645 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1646 program_suffix
=$ac_optarg ;;
1648 -program-transform-name |
--program-transform-name \
1649 |
--program-transform-nam |
--program-transform-na \
1650 |
--program-transform-n |
--program-transform- \
1651 |
--program-transform |
--program-transfor \
1652 |
--program-transfo |
--program-transf \
1653 |
--program-trans |
--program-tran \
1654 |
--progr-tra |
--program-tr |
--program-t)
1655 ac_prev
=program_transform_name
;;
1656 -program-transform-name=* |
--program-transform-name=* \
1657 |
--program-transform-nam=* |
--program-transform-na=* \
1658 |
--program-transform-n=* |
--program-transform-=* \
1659 |
--program-transform=* |
--program-transfor=* \
1660 |
--program-transfo=* |
--program-transf=* \
1661 |
--program-trans=* |
--program-tran=* \
1662 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1663 program_transform_name
=$ac_optarg ;;
1665 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1667 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1668 pdfdir
=$ac_optarg ;;
1670 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1672 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1675 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1676 |
-silent |
--silent |
--silen |
--sile |
--sil)
1679 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1681 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1683 sbindir
=$ac_optarg ;;
1685 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1686 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1687 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1689 ac_prev
=sharedstatedir
;;
1690 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1691 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1692 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1694 sharedstatedir
=$ac_optarg ;;
1696 -site |
--site |
--sit)
1698 -site=* |
--site=* |
--sit=*)
1701 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1703 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1704 srcdir
=$ac_optarg ;;
1706 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1707 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1708 ac_prev
=sysconfdir
;;
1709 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1710 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1711 sysconfdir
=$ac_optarg ;;
1713 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1714 ac_prev
=target_alias
;;
1715 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1716 target_alias
=$ac_optarg ;;
1718 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1721 -version |
--version |
--versio |
--versi |
--vers |
-V)
1722 ac_init_version
=: ;;
1725 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1728 as_fn_error
"invalid package name: $ac_useropt"
1729 ac_useropt_orig
=$ac_useropt
1730 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1735 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1736 ac_unrecognized_sep
=', ';;
1738 eval with_
$ac_useropt=\
$ac_optarg ;;
1740 -without-* |
--without-*)
1741 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1742 # Reject names that are not valid shell variable names.
1743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1744 as_fn_error
"invalid package name: $ac_useropt"
1745 ac_useropt_orig
=$ac_useropt
1746 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1747 case $ac_user_opts in
1751 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1752 ac_unrecognized_sep
=', ';;
1754 eval with_
$ac_useropt=no
;;
1757 # Obsolete; use --with-x.
1760 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1761 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1762 ac_prev
=x_includes
;;
1763 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1764 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1765 x_includes
=$ac_optarg ;;
1767 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1768 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1769 ac_prev
=x_libraries
;;
1770 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1771 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1772 x_libraries
=$ac_optarg ;;
1774 -*) as_fn_error
"unrecognized option: \`$ac_option'
1775 Try \`$0 --help' for more information."
1779 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1780 # Reject names that are not valid shell variable names.
1781 case $ac_envvar in #(
1782 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1783 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1785 eval $ac_envvar=\
$ac_optarg
1786 export $ac_envvar ;;
1789 # FIXME: should be removed in autoconf 3.0.
1790 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1791 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1792 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1793 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1799 if test -n "$ac_prev"; then
1800 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1801 as_fn_error
"missing argument to $ac_option"
1804 if test -n "$ac_unrecognized_opts"; then
1805 case $enable_option_checking in
1807 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1808 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1812 # Check all directory arguments for consistency.
1813 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1814 datadir sysconfdir sharedstatedir localstatedir includedir \
1815 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1816 libdir localedir mandir
1818 eval ac_val
=\$
$ac_var
1819 # Remove trailing slashes.
1822 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1823 eval $ac_var=\
$ac_val;;
1825 # Be sure to have absolute directory names.
1827 [\\/$
]* | ?
:[\\/]* ) continue;;
1828 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1830 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1833 # There might be people who depend on the old broken behavior: `$host'
1834 # used to hold the argument of --host etc.
1835 # FIXME: To remove some day.
1838 target
=$target_alias
1840 # FIXME: To remove some day.
1841 if test "x$host_alias" != x
; then
1842 if test "x$build_alias" = x
; then
1843 cross_compiling
=maybe
1844 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1845 If a cross compiler is detected then cross compile mode will be used." >&2
1846 elif test "x$build_alias" != "x$host_alias"; then
1852 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1854 test "$silent" = yes && exec 6>/dev
/null
1857 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1858 ac_ls_di
=`ls -di .` &&
1859 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1860 as_fn_error
"working directory cannot be determined"
1861 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1862 as_fn_error
"pwd does not report name of working directory"
1865 # Find the source files, if location was not specified.
1866 if test -z "$srcdir"; then
1867 ac_srcdir_defaulted
=yes
1868 # Try the directory containing this script, then the parent directory.
1869 ac_confdir
=`$as_dirname -- "$as_myself" ||
1870 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1871 X"$as_myself" : 'X\(//\)[^/]' \| \
1872 X"$as_myself" : 'X\(//\)$' \| \
1873 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1874 $as_echo X"$as_myself" |
1875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1893 if test ! -r "$srcdir/$ac_unique_file"; then
1897 ac_srcdir_defaulted
=no
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1900 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1901 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1903 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1905 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1907 # When building in place, set srcdir=.
1908 if test "$ac_abs_confdir" = "$ac_pwd"; then
1911 # Remove unnecessary trailing slashes from srcdir.
1912 # Double slashes in file names in object file debugging info
1913 # mess up M-x gdb in Emacs.
1915 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1917 for ac_var
in $ac_precious_vars; do
1918 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1919 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1920 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1921 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1925 # Report the --help message.
1927 if test "$ac_init_help" = "long"; then
1928 # Omit some internal or obsolete options to make the list less imposing.
1929 # This message is too long to be a string in the A/UX 3.1 sh.
1931 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1933 Usage: $0 [OPTION]... [VAR=VALUE]...
1935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1936 VAR=VALUE. See below for descriptions of some of the useful variables.
1938 Defaults for the options are specified in brackets.
1941 -h, --help display this help and exit
1942 --help=short display options specific to this package
1943 --help=recursive display the short help of all the included packages
1944 -V, --version display version information and exit
1945 -q, --quiet, --silent do not print \`checking...' messages
1946 --cache-file=FILE cache test results in FILE [disabled]
1947 -C, --config-cache alias for \`--cache-file=config.cache'
1948 -n, --no-create do not create output files
1949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1951 Installation directories:
1952 --prefix=PREFIX install architecture-independent files in PREFIX
1953 [$ac_default_prefix]
1954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1957 By default, \`make install' will install all the files in
1958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1960 for instance \`--prefix=\$HOME'.
1962 For better control, use the options below.
1964 Fine tuning of the installation directories:
1965 --bindir=DIR user executables [EPREFIX/bin]
1966 --sbindir=DIR system admin executables [EPREFIX/sbin]
1967 --libexecdir=DIR program executables [EPREFIX/libexec]
1968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1971 --libdir=DIR object code libraries [EPREFIX/lib]
1972 --includedir=DIR C header files [PREFIX/include]
1973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1974 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1975 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1976 --infodir=DIR info documentation [DATAROOTDIR/info]
1977 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1978 --mandir=DIR man documentation [DATAROOTDIR/man]
1979 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1980 --htmldir=DIR html documentation [DOCDIR]
1981 --dvidir=DIR dvi documentation [DOCDIR]
1982 --pdfdir=DIR pdf documentation [DOCDIR]
1983 --psdir=DIR ps documentation [DOCDIR]
1989 --program-prefix=PREFIX prepend PREFIX to installed program names
1990 --program-suffix=SUFFIX append SUFFIX to installed program names
1991 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1994 --x-includes=DIR X include files are
in DIR
1995 --x-libraries=DIR X library files are
in DIR
1998 --build=BUILD configure
for building on BUILD
[guessed
]
1999 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2003 if test -n "$ac_init_help"; then
2004 case $ac_init_help in
2005 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2010 --disable-option-checking ignore unrecognized
--enable/--with options
2011 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2012 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2013 --disable-ns-self-contained
2014 disable self contained build under NeXTstep
2015 --enable-locallisppath=PATH
2016 directories Emacs should search
for lisp files
2017 specific to this site
2018 --enable-checking[=LIST
]
2019 enable expensive run-time checks. With LIST
, enable
2020 only specific categories of checks. Categories are
:
2021 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2022 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2023 --enable-check-lisp-object-type
2024 enable compile
time checks
for the Lisp_Object data
2025 type. This is useful
for development
for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled
if GNU Make and
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support
for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2036 developers
, and may generate false alarms when used
2037 with older or non-GNU development tools.
2038 --enable-link-time-optimization
2039 build emacs with link-time optimization. This is
2040 supported only
for GCC since
4.5.0.
2043 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2044 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2045 --without-all omit almost all features and build small executable
2046 with minimal dependencies
2047 --without-pop don
't support POP mail retrieval with movemail
2048 --with-kerberos support Kerberos-authenticated POP
2049 --with-kerberos5 support Kerberos version 5 authenticated POP
2050 --with-hesiod support Hesiod to get the POP server host
2051 --with-mmdf support MMDF mailboxes
2052 --with-mail-unlink unlink, rather than empty, mail spool after reading
2053 --with-mailhost=HOSTNAME
2054 string giving default POP mail host
2055 --without-sound don't compile with sound support
2056 --without-sync-input process async input synchronously
2057 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2058 lucid or athena
, motif
, no
)
2059 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2060 --without-xpm don
't compile with XPM image support
2061 --without-jpeg don't compile with JPEG image support
2062 --without-tiff don
't compile with TIFF image support
2063 --without-gif don't compile with GIF image support
2064 --without-png don
't compile with PNG image support
2065 --without-rsvg don't compile with SVG image support
2066 --without-xml2 don
't compile with XML parsing support
2067 --without-imagemagick don't compile with ImageMagick image support
2068 --without-xft don
't use XFT for anti aliased fonts
2069 --without-libotf don't use libotf
for OpenType font support
2070 --without-m17n-flt don
't use m17n-flt for text shaping
2071 --without-toolkit-scroll-bars
2072 don't use Motif or Xaw3d scroll bars
2073 --without-xaw3d don
't use Xaw3d
2074 --without-xim don't use X11 XIM
2075 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2076 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2078 --without-dbus don't compile with D-Bus support
2079 --without-gconf don
't compile with GConf support
2080 --without-gsettings don't compile with GSettings support
2081 --without-selinux don
't compile with SELinux support
2082 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2083 --without-makeinfo don
't require makeinfo for building manuals
2084 --without-compress-info don't
compress the installed Info pages
2085 --with-pkg-config-prog=PATH
2086 path to pkg-config
for finding GTK and librsvg
2087 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2088 /usr
/lib
, or
/usr
/lib64 on some platforms.
2089 --with-gameuser=USER user
for shared game score files
2090 --with-gnustep-conf=PATH
2091 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2092 or
/etc
/GNUstep
/GNUstep.conf
2093 --with-x use the X Window System
2095 Some influential environment variables
:
2096 CC C compiler
command
2097 CFLAGS C compiler flags
2098 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2099 nonstandard directory
<lib dir
>
2100 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2101 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2102 you have headers
in a nonstandard directory
<include dir
>
2104 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2106 Use these variables to override the choices made by
`configure' or to help
2107 it to find libraries and programs with nonstandard names/locations.
2109 Report bugs to the package provider.
2114 if test "$ac_init_help" = "recursive"; then
2115 # If there are subdirs, report their specific --help.
2116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2117 test -d "$ac_dir" ||
2118 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2125 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2126 # A ".." for each directory in $ac_dir_suffix.
2127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2128 case $ac_top_builddir_sub in
2129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2133 ac_abs_top_builddir=$ac_pwd
2134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2135 # for backward compatibility:
2136 ac_top_builddir=$ac_top_build_prefix
2139 .) # We are building in place.
2141 ac_top_srcdir=$ac_top_builddir_sub
2142 ac_abs_top_srcdir=$ac_pwd ;;
2143 [\\/]* | ?:[\\/]* ) # Absolute name.
2144 ac_srcdir=$srcdir$ac_dir_suffix;
2145 ac_top_srcdir=$srcdir
2146 ac_abs_top_srcdir=$srcdir ;;
2148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2149 ac_top_srcdir=$ac_top_build_prefix$srcdir
2150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2154 cd "$ac_dir" || { ac_status=$?; continue; }
2155 # Check for guested configure.
2156 if test -f "$ac_srcdir/configure.gnu"; then
2158 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2159 elif test -f "$ac_srcdir/configure"; then
2161 $SHELL "$ac_srcdir/configure" --help=recursive
2163 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2165 cd "$ac_pwd" || { ac_status=$?; break; }
2169 test -n "$ac_init_help" && exit $ac_status
2170 if $ac_init_version; then
2172 emacs configure 24.2.50
2173 generated by GNU Autoconf 2.65
2175 Copyright (C) 2009 Free Software Foundation, Inc.
2176 This configure script is free software; the Free Software Foundation
2177 gives unlimited permission to copy, distribute and modify it.
2182 ## ------------------------ ##
2183 ## Autoconf initialization. ##
2184 ## ------------------------ ##
2186 # ac_fn_c_try_compile LINENO
2187 # --------------------------
2188 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_c_try_compile ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext
2193 if { { ac_try="$ac_compile"
2195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2196 *) ac_try_echo
=$ac_try;;
2198 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_compile") 2>conftest.err
2202 if test -s conftest.err
; then
2203 grep -v '^ *+' conftest.err
>conftest.er1
2204 cat conftest.er1
>&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest.
$ac_objext; then :
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.
$ac_ext >&5
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2220 as_fn_set_status
$ac_retval
2222 } # ac_fn_c_try_compile
2224 # ac_fn_c_try_cpp LINENO
2225 # ----------------------
2226 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2229 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2230 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2239 if test -s conftest.err; then
2240 grep -v '^ *+' conftest.err >conftest.er1
2241 cat conftest.er1 >&5
2242 mv -f conftest.er1 conftest.err
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; } >/dev/null && {
2246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2247 test ! -s conftest.err
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257 as_fn_set_status $ac_retval
2261 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2262 # -------------------------------------------------------
2263 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2264 # the include files in INCLUDES and setting the cache variable VAR
2266 ac_fn_c_check_header_mongrel ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2279 # Is the header compilable?
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2281 $as_echo_n "checking $2 usability... " >&6; }
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 ac_header_compiler=yes
2290 ac_header_compiler=no
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2294 $as_echo "$ac_header_compiler" >&6; }
2296 # Is the header present?
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2298 $as_echo_n "checking $2 presence... " >&6; }
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 if ac_fn_c_try_cpp "$LINENO"; then :
2304 ac_header_preproc=yes
2306 ac_header_preproc=no
2308 rm -f conftest.err conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2310 $as_echo "$ac_header_preproc" >&6; }
2312 # So? What about this header?
2313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2316 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2322 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2324 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2326 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2328 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2330 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2338 eval "$3=\$ac_header_compiler"
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 } # ac_fn_c_check_header_mongrel
2348 # ac_fn_c_try_run LINENO
2349 # ----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2351 # that executables *can* be run.
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 if { { ac_try="$ac_link"
2357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2358 *) ac_try_echo
=$ac_try;;
2360 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>&5
2364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2366 { { case "(($ac_try" in
2367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_try") 2>&5
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; }; }; then :
2378 $as_echo "$as_me: program exited with status $ac_status" >&5
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 ac_retval=$ac_status
2384 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 as_fn_set_status $ac_retval
2390 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2391 # -------------------------------------------------------
2392 # Tests whether HEADER exists and can be compiled using the include files in
2393 # INCLUDES, setting the cache variable VAR accordingly.
2394 ac_fn_c_check_header_compile ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2419 } # ac_fn_c_check_header_compile
2421 # ac_fn_c_try_link LINENO
2422 # -----------------------
2423 # Try to link conftest.$ac_ext, and return whether this succeeded.
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { { ac_try="$ac_link"
2430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2431 *) ac_try_echo
=$ac_try;;
2433 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_link") 2>conftest.err
2437 if test -s conftest.err
; then
2438 grep -v '^ *+' conftest.err
>conftest.er1
2439 cat conftest.er1
>&5
2440 mv -f conftest.er1 conftest.err
2442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 test $ac_status = 0; } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest
$ac_exeext && {
2447 test "$cross_compiling" = yes ||
2448 $as_test_x conftest
$ac_exeext
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.
$ac_ext >&5
2457 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2458 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2459 # interfere with the next link command; also delete a directory that is
2460 # left behind by Apple's compiler. We do this before executing the actions.
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2463 as_fn_set_status
$ac_retval
2465 } # ac_fn_c_try_link
2467 # ac_fn_c_check_decl LINENO SYMBOL VAR
2468 # ------------------------------------
2469 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2470 ac_fn_c_check_decl
()
2472 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2474 $as_echo_n "checking whether $2 is declared... " >&6; }
2475 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2492 if ac_fn_c_try_compile
"$LINENO"; then :
2497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501 $as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2504 } # ac_fn_c_check_decl
2506 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2507 # ----------------------------------------------
2508 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2509 ac_fn_c_check_header_preproc
()
2511 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515 $as_echo_n "(cached) " >&6
2517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2521 if ac_fn_c_try_cpp
"$LINENO"; then :
2526 rm -f conftest.err conftest.
$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2533 } # ac_fn_c_check_header_preproc
2535 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2536 # ----------------------------------------------------
2537 # Tries to find if the field MEMBER exists in type AGGR, after including
2538 # INCLUDES, setting cache variable VAR accordingly.
2539 ac_fn_c_check_member
()
2541 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2543 $as_echo_n "checking for $2.$3... " >&6; }
2544 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2545 $as_echo_n "(cached) " >&6
2547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2560 if ac_fn_c_try_compile
"$LINENO"; then :
2563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2570 if (sizeof ac_aggr.$3)
2576 if ac_fn_c_try_compile
"$LINENO"; then :
2581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2590 } # ac_fn_c_check_member
2592 # ac_fn_c_check_func LINENO FUNC VAR
2593 # ----------------------------------
2594 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2595 ac_fn_c_check_func
()
2597 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599 $as_echo_n "checking for $2... " >&6; }
2600 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2601 $as_echo_n "(cached) " >&6
2603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2605 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2607 #define $2 innocuous_$2
2609 /* System header to define __stub macros and hopefully few prototypes,
2610 which can conflict with char $2 (); below.
2611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2612 <limits.h> exists even on freestanding compilers. */
2615 # include <limits.h>
2617 # include <assert.h>
2622 /* Override any GCC internal prototype to avoid an error.
2623 Use char because int might match the return type of a GCC
2624 builtin and then its argument prototype would still apply. */
2629 /* The GNU C library defines this for functions which it implements
2630 to always fail with ENOSYS. Some functions are actually named
2631 something starting with __ and the normal name is an alias. */
2632 #if defined __stub_$2 || defined __stub___$2
2644 if ac_fn_c_try_link
"$LINENO"; then :
2649 rm -f core conftest.err conftest.
$ac_objext \
2650 conftest
$ac_exeext conftest.
$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2657 } # ac_fn_c_check_func
2659 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2660 # -------------------------------------------
2661 # Tests whether TYPE exists after having included INCLUDES, setting cache
2662 # variable VAR accordingly.
2663 ac_fn_c_check_type
()
2665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669 $as_echo_n "(cached) " >&6
2672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2684 if ac_fn_c_try_compile
"$LINENO"; then :
2685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2697 if ac_fn_c_try_compile
"$LINENO"; then :
2702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2709 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2711 } # ac_fn_c_check_type
2713 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2714 # --------------------------------------------
2715 # Tries to find the compile-time value of EXPR in a program that includes
2716 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2718 ac_fn_c_compute_int
()
2720 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2721 if test "$cross_compiling" = yes; then
2722 # Depending upon the size, compute the lo and hi bounds.
2723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2729 static int test_array [1 - 2 * !(($2) >= 0)];
2736 if ac_fn_c_try_compile
"$LINENO"; then :
2739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2745 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2752 if ac_fn_c_try_compile
"$LINENO"; then :
2753 ac_hi
=$ac_mid; break
2755 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2756 if test $ac_lo -le $ac_mid; then
2760 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2771 static int test_array [1 - 2 * !(($2) < 0)];
2778 if ac_fn_c_try_compile
"$LINENO"; then :
2781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2787 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2794 if ac_fn_c_try_compile
"$LINENO"; then :
2795 ac_lo
=$ac_mid; break
2797 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2798 if test $ac_mid -le $ac_hi; then
2802 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2812 # Binary search between lo and hi bounds.
2813 while test "x$ac_lo" != "x$ac_hi"; do
2814 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2821 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2828 if ac_fn_c_try_compile
"$LINENO"; then :
2831 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2836 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2843 static long int longval () { return $2; }
2844 static unsigned long int ulongval () { return $2; }
2851 FILE *f = fopen ("conftest.val", "w");
2856 long int i = longval ();
2859 fprintf (f, "%ld", i);
2863 unsigned long int i = ulongval ();
2866 fprintf (f, "%lu", i);
2868 /* Do not output a trailing newline, as this causes \r\n confusion
2869 on some platforms. */
2870 return ferror (f) || fclose (f) != 0;
2876 if ac_fn_c_try_run
"$LINENO"; then :
2877 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2886 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2887 as_fn_set_status
$ac_retval
2889 } # ac_fn_c_compute_int
2890 cat >config.log
<<_ACEOF
2891 This file contains any messages produced by compilers while
2892 running configure, to aid debugging if configure makes a mistake.
2894 It was created by emacs $as_me 24.2.50, which was
2895 generated by GNU Autoconf 2.65. Invocation command line was
2907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir
=.
2931 $as_echo "PATH: $as_dir"
2947 # Keep a trace of the command line.
2948 # Strip out --no-create and --no-recursion so they do not pile up.
2949 # Strip out --silent because we don't want to record it for future runs.
2950 # Also quote any args containing shell meta-characters.
2951 # Make two passes to allow for proper duplicate-argument suppression.
2955 ac_must_keep_next
=false
2961 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2962 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2963 |
-silent |
--silent |
--silen |
--sile |
--sil)
2966 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2969 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2971 as_fn_append ac_configure_args1
" '$ac_arg'"
2972 if test $ac_must_keep_next = true
; then
2973 ac_must_keep_next
=false
# Got value, back to normal.
2976 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2977 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2978 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2979 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2980 case "$ac_configure_args0 " in
2981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2984 -* ) ac_must_keep_next
=true
;;
2987 as_fn_append ac_configure_args
" '$ac_arg'"
2992 { ac_configure_args0
=; unset ac_configure_args0
;}
2993 { ac_configure_args1
=; unset ac_configure_args1
;}
2995 # When interrupted or exit'd, cleanup temporary files, and complete
2996 # config.log. We remove comments because anyway the quotes in there
2997 # would cause problems or look ugly.
2998 # WARNING: Use '\'' to represent an apostrophe within the trap.
2999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3000 trap 'exit_status=$?
3001 # Save into config.log some information that might help in debugging.
3006 ## ---------------- ##
3007 ## Cache variables. ##
3008 ## ---------------- ##
3011 # The following way of writing the cache mishandles newlines in values,
3013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3014 eval ac_val=\$$ac_var
3018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3022 _ | IFS | as_nl) ;; #(
3023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3024 *) { eval $ac_var=; unset $ac_var;} ;;
3029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3030 *${as_nl}ac_space=\ *)
3032 "s/'\''/'\''\\\\'\'''\''/g;
3033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3044 ## ----------------- ##
3045 ## Output variables. ##
3046 ## ----------------- ##
3049 for ac_var in $ac_subst_vars
3051 eval ac_val=\$$ac_var
3053 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055 $as_echo "$ac_var='\''$ac_val'\''"
3059 if test -n "$ac_subst_files"; then
3061 ## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##
3066 for ac_var
in $ac_subst_files
3068 eval ac_val
=\$
$ac_var
3070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3072 $as_echo "$ac_var='\''$ac_val'\''"
3077 if test -s confdefs.h; then
3087 test "$ac_signal" != 0 &&
3088 $as_echo "$as_me: caught signal $ac_signal"
3089 $as_echo "$as_me: exit $exit_status"
3091 rm -f core *.core core.conftest.* &&
3092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3095 for ac_signal
in 1 2 13 15; do
3096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3101 rm -f -r conftest
* confdefs.h
3103 $as_echo "/* confdefs.h */" > confdefs.h
3105 # Predefined preprocessor variables.
3107 cat >>confdefs.h
<<_ACEOF
3108 #define PACKAGE_NAME "$PACKAGE_NAME"
3111 cat >>confdefs.h
<<_ACEOF
3112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3115 cat >>confdefs.h
<<_ACEOF
3116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3119 cat >>confdefs.h
<<_ACEOF
3120 #define PACKAGE_STRING "$PACKAGE_STRING"
3123 cat >>confdefs.h
<<_ACEOF
3124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3127 cat >>confdefs.h
<<_ACEOF
3128 #define PACKAGE_URL "$PACKAGE_URL"
3132 # Let the site file select an alternate cache file if it wants to.
3133 # Prefer an explicitly selected file to automatically selected ones.
3136 if test -n "$CONFIG_SITE"; then
3137 ac_site_file1
=$CONFIG_SITE
3138 elif test "x$prefix" != xNONE
; then
3139 ac_site_file1
=$prefix/share
/config.site
3140 ac_site_file2
=$prefix/etc
/config.site
3142 ac_site_file1
=$ac_default_prefix/share
/config.site
3143 ac_site_file2
=$ac_default_prefix/etc
/config.site
3145 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3147 test "x$ac_site_file" = xNONE
&& continue
3148 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3150 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3151 sed 's/^/| /' "$ac_site_file" >&5
3156 if test -r "$cache_file"; then
3157 # Some versions of bash will fail to source /dev/null (special files
3158 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3159 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3161 $as_echo "$as_me: loading cache $cache_file" >&6;}
3163 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3164 *) .
"./$cache_file";;
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3169 $as_echo "$as_me: creating cache $cache_file" >&6;}
3173 as_fn_append ac_header_list
" linux/version.h"
3174 as_fn_append ac_header_list
" sys/systeminfo.h"
3175 as_fn_append ac_header_list
" stdio_ext.h"
3176 as_fn_append ac_header_list
" fcntl.h"
3177 as_fn_append ac_header_list
" coff.h"
3178 as_fn_append ac_header_list
" pty.h"
3179 as_fn_append ac_header_list
" sys/vlimit.h"
3180 as_fn_append ac_header_list
" sys/resource.h"
3181 as_fn_append ac_header_list
" sys/utsname.h"
3182 as_fn_append ac_header_list
" pwd.h"
3183 as_fn_append ac_header_list
" utmp.h"
3184 as_fn_append ac_header_list
" dirent.h"
3185 as_fn_append ac_header_list
" util.h"
3186 as_fn_append ac_header_list
" sys/socket.h"
3187 as_fn_append ac_header_list
" stdlib.h"
3188 as_fn_append ac_header_list
" unistd.h"
3189 as_fn_append ac_header_list
" sys/param.h"
3190 as_fn_append ac_header_list
" pthread.h"
3191 as_fn_append ac_header_list
" malloc/malloc.h"
3192 as_fn_append ac_header_list
" maillock.h"
3193 as_fn_append ac_header_list
" sys/un.h"
3194 as_fn_append ac_func_list
" tzset"
3195 as_fn_append ac_func_list
" readlinkat"
3196 gl_getopt_required
=GNU
3197 as_fn_append ac_header_list
" getopt.h"
3198 as_fn_append ac_func_list
" gettimeofday"
3199 as_fn_append ac_func_list
" nanotime"
3200 as_fn_append ac_header_list
" sys/time.h"
3201 as_fn_append ac_header_list
" wchar.h"
3202 as_fn_append ac_header_list
" stdint.h"
3203 as_fn_append ac_header_list
" inttypes.h"
3204 as_fn_append ac_func_list
" lstat"
3205 as_fn_append ac_func_list
" alarm"
3206 as_fn_append ac_header_list
" sys/select.h"
3207 as_fn_append ac_func_list
" pselect"
3208 as_fn_append ac_func_list
" pthread_sigmask"
3209 as_fn_append ac_func_list
" readlink"
3210 as_fn_append ac_func_list
" strtoimax"
3211 as_fn_append ac_func_list
" strtoumax"
3212 as_fn_append ac_func_list
" symlink"
3213 as_fn_append ac_header_list
" sys/stat.h"
3214 as_fn_append ac_func_list
" localtime_r"
3215 as_fn_append ac_header_list
" utime.h"
3216 as_fn_append ac_func_list
" futimes"
3217 as_fn_append ac_func_list
" futimesat"
3218 as_fn_append ac_func_list
" futimens"
3219 as_fn_append ac_func_list
" utimensat"
3220 as_fn_append ac_func_list
" lutimes"
3221 # Check that the precious variables saved in the cache have kept the same
3223 ac_cache_corrupted
=false
3224 for ac_var
in $ac_precious_vars; do
3225 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3226 eval ac_new_set
=\
$ac_env_${ac_var}_set
3227 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3228 eval ac_new_val
=\
$ac_env_${ac_var}_value
3229 case $ac_old_set,$ac_new_set in
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3233 ac_cache_corrupted
=: ;;
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3237 ac_cache_corrupted
=: ;;
3240 if test "x$ac_old_val" != "x$ac_new_val"; then
3241 # differences in whitespace do not lead to failure.
3242 ac_old_val_w
=`echo x $ac_old_val`
3243 ac_new_val_w
=`echo x $ac_new_val`
3244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3247 ac_cache_corrupted
=:
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3251 eval $ac_var=\
$ac_old_val
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3259 # Pass precious variables to config.status.
3260 if test "$ac_new_set" = set; then
3262 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3263 *) ac_arg
=$ac_var=$ac_new_val ;;
3265 case " $ac_configure_args " in
3266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3267 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3271 if $ac_cache_corrupted; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3276 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3278 ## -------------------- ##
3279 ## Main body of script. ##
3280 ## -------------------- ##
3283 ac_cpp
='$CPP $CPPFLAGS'
3284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3289 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3293 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3294 for ac_t
in install-sh
install.sh shtool
; do
3295 if test -f "$ac_dir/$ac_t"; then
3297 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3302 if test -z "$ac_aux_dir"; then
3303 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3306 # These three variables are undocumented and unsupported,
3307 # and are intended to be withdrawn in a future Autoconf release.
3308 # They can cause serious problems if a builder's source tree is in a directory
3309 # whose full name contains unusual characters.
3310 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3311 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3312 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3315 am__api_version
='1.11'
3317 # Find a good install program. We prefer a C program (faster),
3318 # so one script is as good as another. But avoid the broken or
3319 # incompatible versions:
3320 # SysV /etc/install, /usr/sbin/install
3321 # SunOS /usr/etc/install
3322 # IRIX /sbin/install
3324 # AmigaOS /C/install, which installs bootblocks on floppy discs
3325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3328 # OS/2's system install, which has a completely different semantic
3329 # ./install, which can be erroneously created by make from ./install.sh.
3330 # Reject install programs that cannot install multiple files.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3332 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3333 if test -z "$INSTALL"; then
3334 if test "${ac_cv_path_install+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 # Account for people who put trailing slashes in PATH elements.
3343 case $as_dir/ in #((
3344 .
/ | .
// |
/[cC
]/* | \
3345 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3346 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3349 # OSF1 and SCO ODT 3.0 have their own names for install.
3350 # Don't use installbsd from OSF since it installs stuff as root
3352 for ac_prog
in ginstall scoinst
install; do
3353 for ac_exec_ext
in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3355 if test $ac_prog = install &&
3356 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3357 # AIX install. It has an incompatible calling convention.
3359 elif test $ac_prog = install &&
3360 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3361 # program-specific install script used by HP pwplus--don't use.
3364 rm -rf conftest.one conftest.two conftest.dir
3365 echo one
> conftest.one
3366 echo two
> conftest.two
3368 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3369 test -s conftest.one
&& test -s conftest.two
&&
3370 test -s conftest.dir
/conftest.one
&&
3371 test -s conftest.dir
/conftest.two
3373 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3386 rm -rf conftest.one conftest.two conftest.dir
3389 if test "${ac_cv_path_install+set}" = set; then
3390 INSTALL
=$ac_cv_path_install
3392 # As a last resort, use the slow shell script. Don't cache a
3393 # value for INSTALL within a source directory, because that will
3394 # break other packages using the cache if that directory is
3395 # removed, or if the value is a relative name.
3396 INSTALL
=$ac_install_sh
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3400 $as_echo "$INSTALL" >&6; }
3402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3403 # It thinks the first close brace ends the variable substitution.
3404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3408 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3411 $as_echo_n "checking whether build environment is sane... " >&6; }
3414 echo timestamp
> conftest.
file
3415 # Reject unsafe characters in $srcdir or the absolute working directory
3416 # name. Accept space and tab only in the latter.
3420 *[\\\"\
#\$\&\'\`$am_lf]*)
3421 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3424 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3425 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3428 # Do `set' in a subshell so we don't clobber the current shell's
3429 # arguments. Must try -L first in case configure is actually a
3430 # symlink; some systems play weird games with the mod time of symlinks
3431 # (eg FreeBSD returns the mod time of the symlink's containing
3434 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3435 if test "$*" = "X"; then
3437 set X
`ls -t "$srcdir/configure" conftest.file`
3440 if test "$*" != "X $srcdir/configure conftest.file" \
3441 && test "$*" != "X conftest.file $srcdir/configure"; then
3443 # If neither matched, then we have a broken ls. This can happen
3444 # if, for instance, CONFIG_SHELL is bash and it inherits a
3445 # broken ls alias from the environment. This has actually
3446 # happened. Such a system could not be considered "sane".
3447 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3448 alias in your environment" "$LINENO" 5
3451 test "$2" = conftest.
file
3457 as_fn_error
"newly created file is older than distributed files!
3458 Check your system clock" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461 $as_echo "yes" >&6; }
3462 test "$program_prefix" != NONE
&&
3463 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3464 # Use a double $ so make ignores it.
3465 test "$program_suffix" != NONE
&&
3466 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3467 # Double any \ or $.
3468 # By default was `s,x,x', remove it if useless.
3469 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3470 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3472 # expand $ac_aux_dir to an absolute path
3473 am_aux_dir
=`cd $ac_aux_dir && pwd`
3475 if test x
"${MISSING+set}" != xset
; then
3478 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3480 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3483 # Use eval to expand $SHELL
3484 if eval "$MISSING --run true"; then
3485 am_missing_run
="$MISSING --run "
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3489 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3492 if test x
"${install_sh}" != xset
; then
3495 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3497 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3501 # Installed binaries are usually stripped using `strip' when the user
3502 # run `make install-strip'. However `strip' might not be the right
3503 # tool to use in cross-compilation environments, therefore Automake
3504 # will honor the `STRIP' environment variable to overrule this program.
3505 if test "$cross_compiling" != no
; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3508 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_STRIP+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$STRIP"; then
3515 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir
=.
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 STRIP
=$ac_cv_prog_STRIP
3535 if test -n "$STRIP"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3537 $as_echo "$STRIP" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3545 if test -z "$ac_cv_prog_STRIP"; then
3547 # Extract the first word of "strip", so it can be a program name with args.
3548 set dummy strip
; ac_word
=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_STRIP"; then
3555 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_ac_ct_STRIP
="strip"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3575 if test -n "$ac_ct_STRIP"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3577 $as_echo "$ac_ct_STRIP" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3583 if test "x$ac_ct_STRIP" = x
; then
3586 case $cross_compiling:$ac_tool_warned in
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned
=yes ;;
3595 STRIP
="$ac_cv_prog_STRIP"
3599 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3602 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3603 if test -z "$MKDIR_P"; then
3604 if test "${ac_cv_path_mkdir+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3608 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3611 test -z "$as_dir" && as_dir
=.
3612 for ac_prog
in mkdir gmkdir
; do
3613 for ac_exec_ext
in '' $ac_executable_extensions; do
3614 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3615 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3616 'mkdir (GNU coreutils) '* | \
3617 'mkdir (coreutils) '* | \
3618 'mkdir (fileutils) '4.1*)
3619 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3629 test -d .
/--version && rmdir .
/--version
3630 if test "${ac_cv_path_mkdir+set}" = set; then
3631 MKDIR_P
="$ac_cv_path_mkdir -p"
3633 # As a last resort, use the slow shell script. Don't cache a
3634 # value for MKDIR_P within a source directory, because that will
3635 # break other packages using the cache if that directory is
3636 # removed, or if the value is a relative name.
3637 MKDIR_P
="$ac_install_sh -d"
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3641 $as_echo "$MKDIR_P" >&6; }
3646 [\\/$
]* | ?
:[\\/]*) ;;
3647 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3650 for ac_prog
in gawk mawk nawk
awk
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy
$ac_prog; ac_word
=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_AWK+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3659 if test -n "$AWK"; then
3660 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir
=.
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_AWK
="$ac_prog"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 if test -n "$AWK"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3682 $as_echo "$AWK" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3689 test -n "$AWK" && break
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3693 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3695 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3696 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3697 $as_echo_n "(cached) " >&6
3699 cat >conftest.
make <<\_ACEOF
3702 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3705 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3707 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3709 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3713 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3715 $as_echo "yes" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 SET_MAKE
="MAKE=${MAKE-make}"
3723 rm -rf .tst
2>/dev
/null
3724 mkdir .tst
2>/dev
/null
3725 if test -d .tst
; then
3730 rmdir .tst
2>/dev
/null
3732 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3734 # is not polluted with repeated "-I."
3735 am__isrc
=' -I$(srcdir)'
3736 # test to see if srcdir already configured
3737 if test -f $srcdir/config.status
; then
3738 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3742 # test whether we have cygpath
3743 if test -z "$CYGPATH_W"; then
3744 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3745 CYGPATH_W
='cygpath -w'
3752 # Define the identity of the package.
3757 cat >>confdefs.h
<<_ACEOF
3758 #define PACKAGE "$PACKAGE"
3762 cat >>confdefs.h
<<_ACEOF
3763 #define VERSION "$VERSION"
3766 # Some tools Automake needs.
3768 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3771 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3774 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3777 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3780 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3782 # We need awk for the "check" target. The system "awk" is bad on
3784 # Always define AMTAR for backward compatibility.
3786 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3788 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3797 lispdir
='${datadir}/emacs/${version}/lisp'
3798 leimdir
='${datadir}/emacs/${version}/leim'
3799 standardlisppath
='${lispdir}:${leimdir}'
3800 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3801 '${datadir}/emacs/site-lisp'
3802 lisppath
='${locallisppath}:${standardlisppath}'
3803 etcdir
='${datadir}/emacs/${version}/etc'
3804 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3805 docdir
='${datadir}/emacs/${version}/etc'
3806 gamedir
='${localstatedir}/games/emacs'
3809 # Check whether --with-all was given.
3810 if test "${with_all+set}" = set; then :
3811 withval
=$with_all; with_features
=$withval
3820 # Check whether --with-pop was given.
3821 if test "${with_pop+set}" = set; then :
3824 with_pop
=$with_features
3827 if test "$with_pop" = yes; then
3828 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3833 # Check whether --with-kerberos was given.
3834 if test "${with_kerberos+set}" = set; then :
3835 withval
=$with_kerberos;
3840 if test "$with_kerberos" != no
; then
3841 $as_echo "#define KERBEROS 1" >>confdefs.h
3846 # Check whether --with-kerberos5 was given.
3847 if test "${with_kerberos5+set}" = set; then :
3848 withval
=$with_kerberos5;
3853 if test "${with_kerberos5}" != no
; then
3854 if test "${with_kerberos}" = no
; then
3856 $as_echo "#define KERBEROS 1" >>confdefs.h
3860 $as_echo "#define KERBEROS5 1" >>confdefs.h
3865 # Check whether --with-hesiod was given.
3866 if test "${with_hesiod+set}" = set; then :
3867 withval
=$with_hesiod;
3872 if test "$with_hesiod" != no
; then
3874 $as_echo "#define HESIOD 1" >>confdefs.h
3879 # Check whether --with-mmdf was given.
3880 if test "${with_mmdf+set}" = set; then :
3886 if test "$with_mmdf" != no
; then
3888 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3893 # Check whether --with-mail-unlink was given.
3894 if test "${with_mail_unlink+set}" = set; then :
3895 withval
=$with_mail_unlink;
3900 if test "$with_mail_unlink" != no
; then
3902 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3907 # Check whether --with-mailhost was given.
3908 if test "${with_mailhost+set}" = set; then :
3909 withval
=$with_mailhost;
3910 cat >>confdefs.h
<<_ACEOF
3911 #define MAILHOST "$withval"
3918 # Check whether --with-sound was given.
3919 if test "${with_sound+set}" = set; then :
3920 withval
=$with_sound;
3922 with_sound
=$with_features
3927 # Check whether --with-sync-input was given.
3928 if test "${with_sync_input+set}" = set; then :
3929 withval
=$with_sync_input;
3931 with_sync_input
=$with_features
3934 if test "$with_sync_input" = yes; then
3936 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3941 # Check whether --with-x-toolkit was given.
3942 if test "${with_x_toolkit+set}" = set; then :
3943 withval
=$with_x_toolkit; case "${withval}" in
3944 y | ye |
yes ) val
=gtk
;;
3946 l | lu | luc | luci | lucid
) val
=lucid
;;
3947 a |
at | ath | athe | athen | athena
) val
=athena
;;
3948 m | mo | mot | moti | motif
) val
=motif
;;
3949 g | gt | gtk
) val
=gtk
;;
3952 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3954 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3963 # Check whether --with-wide-int was given.
3964 if test "${with_wide_int+set}" = set; then :
3965 withval
=$with_wide_int;
3970 if test "$with_wide_int" = yes; then
3972 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3977 # Check whether --with-xpm was given.
3978 if test "${with_xpm+set}" = set; then :
3981 with_xpm
=$with_features
3985 # Check whether --with-jpeg was given.
3986 if test "${with_jpeg+set}" = set; then :
3989 with_jpeg
=$with_features
3993 # Check whether --with-tiff was given.
3994 if test "${with_tiff+set}" = set; then :
3997 with_tiff
=$with_features
4001 # Check whether --with-gif was given.
4002 if test "${with_gif+set}" = set; then :
4005 with_gif
=$with_features
4009 # Check whether --with-png was given.
4010 if test "${with_png+set}" = set; then :
4013 with_png
=$with_features
4017 # Check whether --with-rsvg was given.
4018 if test "${with_rsvg+set}" = set; then :
4021 with_rsvg
=$with_features
4025 # Check whether --with-xml2 was given.
4026 if test "${with_xml2+set}" = set; then :
4029 with_xml2
=$with_features
4033 # Check whether --with-imagemagick was given.
4034 if test "${with_imagemagick+set}" = set; then :
4035 withval
=$with_imagemagick;
4037 with_imagemagick
=$with_features
4042 # Check whether --with-xft was given.
4043 if test "${with_xft+set}" = set; then :
4046 with_xft
=$with_features
4050 # Check whether --with-libotf was given.
4051 if test "${with_libotf+set}" = set; then :
4052 withval
=$with_libotf;
4054 with_libotf
=$with_features
4058 # Check whether --with-m17n-flt was given.
4059 if test "${with_m17n_flt+set}" = set; then :
4060 withval
=$with_m17n_flt;
4062 with_m17n_flt
=$with_features
4067 # Check whether --with-toolkit-scroll-bars was given.
4068 if test "${with_toolkit_scroll_bars+set}" = set; then :
4069 withval
=$with_toolkit_scroll_bars;
4071 with_toolkit_scroll_bars
=$with_features
4075 # Check whether --with-xaw3d was given.
4076 if test "${with_xaw3d+set}" = set; then :
4077 withval
=$with_xaw3d;
4079 with_xaw3d
=$with_features
4083 # Check whether --with-xim was given.
4084 if test "${with_xim+set}" = set; then :
4087 with_xim
=$with_features
4091 # Check whether --with-ns was given.
4092 if test "${with_ns+set}" = set; then :
4100 # Check whether --with-gpm was given.
4101 if test "${with_gpm+set}" = set; then :
4104 with_gpm
=$with_features
4108 # Check whether --with-dbus was given.
4109 if test "${with_dbus+set}" = set; then :
4112 with_dbus
=$with_features
4116 # Check whether --with-gconf was given.
4117 if test "${with_gconf+set}" = set; then :
4118 withval
=$with_gconf;
4120 with_gconf
=$with_features
4124 # Check whether --with-gsettings was given.
4125 if test "${with_gsettings+set}" = set; then :
4126 withval
=$with_gsettings;
4128 with_gsettings
=$with_features
4132 # Check whether --with-selinux was given.
4133 if test "${with_selinux+set}" = set; then :
4134 withval
=$with_selinux;
4136 with_selinux
=$with_features
4140 # Check whether --with-gnutls was given.
4141 if test "${with_gnutls+set}" = set; then :
4142 withval
=$with_gnutls;
4144 with_gnutls
=$with_features
4148 ## For the times when you want to build Emacs but don't have
4149 ## a suitable makeinfo, and can live without the manuals.
4151 # Check whether --with-makeinfo was given.
4152 if test "${with_makeinfo+set}" = set; then :
4153 withval
=$with_makeinfo;
4155 with_makeinfo
=$with_features
4159 ## Makefile.in needs the cache file name.
4162 ## This is an option because I do not know if all info/man support
4163 ## compressed files, nor how to test if they do so.
4165 # Check whether --with-compress-info was given.
4166 if test "${with_compress_info+set}" = set; then :
4167 withval
=$with_compress_info;
4169 with_compress_info
=$with_features
4172 if test $with_compress_info = yes; then
4180 # Check whether --with-pkg-config-prog was given.
4181 if test "${with_pkg_config_prog+set}" = set; then :
4182 withval
=$with_pkg_config_prog;
4185 if test "X${with_pkg_config_prog}" != X
; then
4186 if test "${with_pkg_config_prog}" != yes; then
4187 PKG_CONFIG
="${with_pkg_config_prog}"
4193 # Check whether --with-crt-dir was given.
4194 if test "${with_crt_dir+set}" = set; then :
4195 withval
=$with_crt_dir;
4198 CRT_DIR
="${with_crt_dir}"
4201 # Check whether --with-gameuser was given.
4202 if test "${with_gameuser+set}" = set; then :
4203 withval
=$with_gameuser;
4206 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4207 && gameuser
="${with_gameuser}"
4208 test "X$gameuser" = X
&& gameuser
=games
4211 # Check whether --with-gnustep-conf was given.
4212 if test "${with_gnustep_conf+set}" = set; then :
4213 withval
=$with_gnustep_conf;
4216 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4217 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4218 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4219 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4221 # Check whether --enable-ns-self-contained was given.
4222 if test "${enable_ns_self_contained+set}" = set; then :
4223 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4225 EN_NS_SELF_CONTAINED
=yes
4229 # Check whether --enable-locallisppath was given.
4230 if test "${enable_locallisppath+set}" = set; then :
4231 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4233 elif test "${enableval}" != "yes"; then
4234 locallisppath
=${enableval}
4239 # Check whether --enable-checking was given.
4240 if test "${enable_checking+set}" = set; then :
4241 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4244 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4245 for check
in $ac_checking_flags
4248 # these set all the flags to specific states
4249 yes) ac_enable_checking
=1 ;;
4250 no
) ac_enable_checking
= ;
4251 ac_gc_check_stringbytes
= ;
4252 ac_gc_check_string_overrun
= ;
4253 ac_gc_check_string_free_list
= ;
4254 ac_xmalloc_overrun
= ;
4255 ac_gc_check_cons_list
= ;
4257 all
) ac_enable_checking
=1 ;
4258 ac_gc_check_stringbytes
=1 ;
4259 ac_gc_check_string_overrun
=1 ;
4260 ac_gc_check_string_free_list
=1 ;
4261 ac_xmalloc_overrun
=1 ;
4262 ac_gc_check_cons_list
=1 ;
4263 ac_glyphs_debug
=1 ;;
4264 # these enable particular checks
4265 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4266 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4267 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4268 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4269 conslist
) ac_gc_check_cons_list
=1 ;;
4270 glyphs
) ac_glyphs_debug
=1 ;;
4271 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4276 if test x
$ac_enable_checking != x
; then
4278 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4281 if test x
$ac_gc_check_stringbytes != x
; then
4283 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4286 if test x
$ac_gc_check_string_overrun != x
; then
4288 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4291 if test x
$ac_gc_check_string_free_list != x
; then
4293 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4296 if test x
$ac_xmalloc_overrun != x
; then
4298 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4301 if test x
$ac_gc_check_cons_list != x
; then
4303 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4306 if test x
$ac_glyphs_debug != x
; then
4308 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4312 # Check whether --enable-check-lisp-object-type was given.
4313 if test "${enable_check_lisp_object_type+set}" = set; then :
4314 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4316 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4323 # Check whether --enable-profiling was given.
4324 if test "${enable_profiling+set}" = set; then :
4325 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4328 if test x
$ac_enable_profiling != x
; then
4329 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4335 # Check whether --enable-autodepend was given.
4336 if test "${enable_autodepend+set}" = set; then :
4337 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4339 ac_enable_autodepend
=yes
4343 #### Make srcdir absolute, if it isn't already. It's important to
4344 #### avoid running the path through pwd unnecessarily, since pwd can
4345 #### give you automounter prefixes, which can go away. We do all this
4346 #### so Emacs can find its files when run uninstalled.
4347 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4352 ## We may be able to use the $PWD environment variable to make this
4353 ## absolute. But sometimes PWD is inaccurate.
4354 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4355 ## but that tested only for a well-formed and valid PWD,
4356 ## it did not object when PWD was well-formed and valid but just wrong.
4357 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4361 srcdir
="`(cd ${srcdir}; pwd)`"
4364 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4367 ### Canonicalize the configuration name.
4369 # Make sure we can run config.sub.
4370 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4371 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4374 $as_echo_n "checking build system type... " >&6; }
4375 if test "${ac_cv_build+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4378 ac_build_alias
=$build_alias
4379 test "x$ac_build_alias" = x
&&
4380 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4381 test "x$ac_build_alias" = x
&&
4382 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4383 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4384 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4388 $as_echo "$ac_cv_build" >&6; }
4389 case $ac_cv_build in
4391 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4394 ac_save_IFS
=$IFS; IFS
='-'
4400 # Remember, the first character of IFS is used to create $*,
4401 # except with old shells:
4404 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4408 $as_echo_n "checking host system type... " >&6; }
4409 if test "${ac_cv_host+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4412 if test "x$host_alias" = x
; then
4413 ac_cv_host
=$ac_cv_build
4415 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4416 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4421 $as_echo "$ac_cv_host" >&6; }
4424 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4427 ac_save_IFS
=$IFS; IFS
='-'
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4437 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4441 configuration
=${host_alias-${build_alias-$host}}
4445 ### If you add support for a new configuration, add code to this
4446 ### switch statement to recognize your configuration name and select
4447 ### the appropriate operating system file.
4449 ### You would hope that you could choose an s/*.h
4450 ### file based on the operating system portion. However, it turns out
4451 ### that each s/*.h file is pretty manufacturer-specific.
4452 ### So we basically have to have a special case for each
4453 ### configuration name.
4455 ### As far as handling version numbers on operating systems is
4456 ### concerned, make sure things will fail in a fixable way. If
4457 ### /etc/MACHINES doesn't say anything about version numbers, be
4458 ### prepared to handle anything reasonably. If version numbers
4459 ### matter, be sure /etc/MACHINES says something about it.
4461 opsys
='' unported
=no
4462 case "${canonical}" in
4464 ## GNU/Linux and similar ports
4474 ## FreeBSD kernel + glibc based userland
4489 ## Apple Darwin / Mac OS X
4491 case "${canonical}" in
4498 ## Use fink packages if available.
4499 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4500 ## if test -d /sw/include && test -d /sw/lib; then
4501 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4502 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4506 ## HP 9000 series 700 and 800, running HP/UX
4507 hppa
*-hp-hpux10.2
* )
4510 hppa
*-hp-hpux1[1-9]* )
4512 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4516 rs6000-ibm-aix4.
[23]* )
4519 powerpc-ibm-aix4.
[23]* )
4522 rs6000-ibm-aix
[56]* )
4525 powerpc-ibm-aix
[56]* )
4529 ## Silicon Graphics machines
4533 # Without defining _LANGUAGE_C, things get masked out in the headers
4534 # so that, for instance, grepping for `free' in stdlib.h fails and
4535 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4536 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4541 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4542 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4543 case "${canonical}" in
4545 amd64-
*-*|x86_64-
*-*) ;;
4549 case "${canonical}" in
4550 *-sunos5.6
* |
*-solaris2.6
* )
4554 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4556 emacs_check_sunpro_c
=yes
4558 *-sunos5* |
*-solaris* )
4560 emacs_check_sunpro_c
=yes
4563 ## Watch out for a compiler that we know will not work.
4564 case "${canonical}" in
4565 *-solaris* |
*-sunos5* )
4566 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4567 ## /usr/ucb/cc doesn't work;
4568 ## we should find some other compiler that does work.
4576 ## Intel 386 machines where we don't care about the manufacturer.
4578 case "${canonical}" in
4579 *-cygwin ) opsys
=cygwin
;;
4580 *-darwin* ) opsys
=darwin
;;
4581 *-sysv4.2uw
* ) opsys
=unixware
;;
4582 *-sysv5uw* ) opsys
=unixware
;;
4583 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4584 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4593 ### If the code above didn't choose an operating system, just choose
4594 ### an operating system based on the configuration name. You really
4595 ### only want to use this when you have no idea what the right
4596 ### operating system is; if you know what operating systems a machine
4597 ### runs, it's cleaner to make it explicit in the case statement
4599 if test x
"${opsys}" = x
; then
4600 case "${canonical}" in
4601 *-gnu* ) opsys
=gnu
;;
4610 if test $unported = yes; then
4611 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4612 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4616 #### Choose a compiler.
4619 ac_cpp
='$CPP $CPPFLAGS'
4620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4625 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_CC+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$CC"; then
4632 ac_cv_prog_CC
="$CC" # Let the user override the test.
4634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir
=.
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 if test -n "$CC"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654 $as_echo "$CC" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4662 if test -z "$ac_cv_prog_CC"; then
4664 # Extract the first word of "gcc", so it can be a program name with args.
4665 set dummy gcc
; ac_word
=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_ac_ct_CC
="gcc"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4692 if test -n "$ac_ct_CC"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4694 $as_echo "$ac_ct_CC" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 if test "x$ac_ct_CC" = x
; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned
=yes ;;
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4718 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC
="$CC" # Let the user override the test.
4727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir
=.
4732 for ac_exec_ext
in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4747 $as_echo "$CC" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4756 if test -z "$CC"; then
4757 # Extract the first word of "cc", so it can be a program name with args.
4758 set dummy cc
; ac_word
=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_CC+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$CC"; then
4765 ac_cv_prog_CC
="$CC" # Let the user override the test.
4768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir
=.
4773 for ac_exec_ext
in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4776 ac_prog_rejected
=yes
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 if test $ac_prog_rejected = yes; then
4788 # We found a bogon in the path, so make sure we never use it.
4789 set dummy
$ac_cv_prog_CC
4791 if test $# != 0; then
4792 # We chose a different compiler from the bogus one.
4793 # However, it has the same basename, so the bogon will be chosen
4794 # first if we set CC to just the basename; use the full file name.
4796 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4802 if test -n "$CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4804 $as_echo "$CC" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog
in cl.exe
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC
="$CC" # Let the user override the test.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 test -n "$CC" && break
4856 if test -z "$CC"; then
4858 for ac_prog
in cl.exe
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy
$ac_prog; ac_word
=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir
=.
4875 for ac_exec_ext
in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC
="$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4890 $as_echo "$ac_ct_CC" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 test -n "$ac_ct_CC" && break
4900 if test "x$ac_ct_CC" = x
; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned
=yes ;;
4916 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4918 as_fn_error
"no acceptable C compiler found in \$PATH
4919 See \`config.log' for more details." "$LINENO" 5; }
4921 # Provide some information about the compiler.
4922 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4925 for ac_option
in --version -v -V -qversion; do
4926 { { ac_try
="$ac_compiler $ac_option >&5"
4928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4932 $as_echo "$ac_try_echo"; } >&5
4933 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4935 if test -s conftest.err; then
4937 ... rest of stderr output deleted ...
4938 10q' conftest.err >conftest.er1
4939 cat conftest.er1 >&5
4941 rm -f conftest.er1 conftest.err
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4957 ac_clean_files_save=$ac_clean_files
4958 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4959 # Try to create an executable without -o first, disregard a.out.
4960 # It will help us diagnose broken compilers, and finding out an intuition
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4963 $as_echo_n "checking whether the C compiler works... " >&6; }
4964 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4966 # The possible output files:
4967 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4970 for ac_file in $ac_files
4973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4979 if { { ac_try="$ac_link_default"
4981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4982 *) ac_try_echo
=$ac_try;;
4984 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_link_default") 2>&5
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then :
4990 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4991 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4992 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4993 # so that the user can short-circuit this test for compilers unknown to
4995 for ac_file
in $ac_files ''
4997 test -f "$ac_file" ||
continue
4999 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5002 # We found the default executable, but exeext='' is most
5006 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5008 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5010 # We set ac_cv_exeext here because the later test for it is not
5011 # safe: cross compilers may not add the suffix if given an `-o'
5012 # argument, so we may need to know it at that point already.
5013 # Even if this section looks crufty: it has the advantage of
5020 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5025 if test -z "$ac_file"; then :
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.
$ac_ext >&5
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 { as_fn_set_status
77
5034 as_fn_error
"C compiler cannot create executables
5035 See \`config.log' for more details." "$LINENO" 5; }; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038 $as_echo "yes" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5041 $as_echo_n "checking for C compiler default output file name... " >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5043 $as_echo "$ac_file" >&6; }
5044 ac_exeext
=$ac_cv_exeext
5046 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5047 ac_clean_files
=$ac_clean_files_save
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5049 $as_echo_n "checking for suffix of executables... " >&6; }
5050 if { { ac_try
="$ac_link"
5052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5056 $as_echo "$ac_try_echo"; } >&5
5057 (eval "$ac_link") 2>&5
5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5060 test $ac_status = 0; }; then :
5061 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5062 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5063 # work properly (i.e., refer to `conftest.exe'), while it won't with
5065 for ac_file
in conftest.exe conftest conftest.
*; do
5066 test -f "$ac_file" ||
continue
5068 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5069 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5077 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5078 See \`config.log' for more details." "$LINENO" 5; }
5080 rm -f conftest conftest
$ac_cv_exeext
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5082 $as_echo "$ac_cv_exeext" >&6; }
5084 rm -f conftest.
$ac_ext
5085 EXEEXT
=$ac_cv_exeext
5087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5093 FILE *f = fopen ("conftest.out", "w");
5094 return ferror (f) || fclose (f) != 0;
5100 ac_clean_files
="$ac_clean_files conftest.out"
5101 # Check that the compiler produces executables we can run. If not, either
5102 # the compiler is broken, or we cross compile.
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5104 $as_echo_n "checking whether we are cross compiling... " >&6; }
5105 if test "$cross_compiling" != yes; then
5106 { { ac_try
="$ac_link"
5108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5112 $as_echo "$ac_try_echo"; } >&5
5113 (eval "$ac_link") 2>&5
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117 if { ac_try='./conftest$ac_cv_exeext'
5118 { { case "(($ac_try" in
5119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5120 *) ac_try_echo
=$ac_try;;
5122 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_try") 2>&5
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }; }; then
5130 if test "$cross_compiling" = maybe
; then
5133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5135 as_fn_error
"cannot run C compiled programs.
5136 If you meant to cross compile, use \`--host'.
5137 See \`config.log' for more details." "$LINENO" 5; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5142 $as_echo "$cross_compiling" >&6; }
5144 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5145 ac_clean_files
=$ac_clean_files_save
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5147 $as_echo_n "checking for suffix of object files... " >&6; }
5148 if test "${ac_cv_objext+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5162 rm -f conftest.o conftest.obj
5163 if { { ac_try
="$ac_compile"
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169 $as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_compile") 2>&5
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; }; then :
5174 for ac_file in conftest.o conftest.obj conftest.*; do
5175 test -f "$ac_file" || continue;
5177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5183 $as_echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5188 as_fn_error "cannot compute suffix of object files
: cannot compile
5189 See \
`config.log' for more details." "$LINENO" 5; }
5191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5194 $as_echo "$ac_cv_objext" >&6; }
5195 OBJEXT=$ac_cv_objext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5199 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5216 if ac_fn_c_try_compile "$LINENO"; then :
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5227 if test $ac_compiler_gnu = yes; then
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5236 if test "${ac_cv_prog_cc_g+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5254 if ac_fn_c_try_compile "$LINENO"; then :
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5269 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_c_werror_flag=$ac_save_c_werror_flag
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5285 if ac_fn_c_try_compile "$LINENO"; then :
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 ac_c_werror_flag=$ac_save_c_werror_flag
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5296 $as_echo "$ac_cv_prog_cc_g" >&6; }
5297 if test "$ac_test_CFLAGS" = set; then
5298 CFLAGS=$ac_save_CFLAGS
5299 elif test $ac_cv_prog_cc_g = yes; then
5300 if test "$GCC" = yes; then
5306 if test "$GCC" = yes; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5314 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5317 ac_cv_prog_cc_c89=no
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 #include <sys/stat.h>
5325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5326 struct buf { int x; };
5327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5328 static char *e (p, i)
5334 static char *f (char * (*g) (char **, int), char **p, ...)
5339 s = g (p, va_arg (v,int));
5344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5345 function prototypes and stuff, but not '\xHH' hex character constants.
5346 These don't provoke an error unfortunately, instead are silently treated
5347 as 'x'. The following induces an error, until -std is added to get
5348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5349 array size at least. It's necessary to write '\x00'==0 to get something
5350 that's true only with -std. */
5351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5354 inside strings and character constants. */
5356 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5358 int test (int i, double x);
5359 struct s1 {int (*f) (int a);};
5360 struct s2 {int (*f) (double a);};
5361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5372 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5373 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5375 CC="$ac_save_CC $ac_arg"
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_prog_cc_c89=$ac_arg
5379 rm -f core conftest.err conftest.$ac_objext
5380 test "x$ac_cv_prog_cc_c89" != "xno" && break
5382 rm -f conftest.$ac_ext
5387 case "x$ac_cv_prog_cc_c89" in
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5390 $as_echo "none needed" >&6; } ;;
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5393 $as_echo "unsupported" >&6; } ;;
5395 CC="$CC $ac_cv_prog_cc_c89"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5397 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5399 if test "x$ac_cv_prog_cc_c89" != xno; then :
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 DEPDIR="${am__leading_dot}deps"
5410 ac_config_commands="$ac_config_commands depfiles"
5413 am_make=${MAKE-make}
5414 cat > confinc << 'END'
5416 @echo this is the am__doit target
5419 # If we don't find an include directive, just comment out the code.
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5421 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5425 # First try GNU make style include.
5426 echo "include confinc" > confmf
5427 # Ignore all kinds of additional output from `make'.
5428 case `$am_make -s -f confmf 2> /dev/null` in #(
5429 *the\ am__doit\ target*)
5435 # Now try BSD make style include.
5436 if test "$am__include" = "#"; then
5437 echo '.include
"confinc"' > confmf
5438 case `$am_make -s -f confmf 2> /dev/null` in #(
5439 *the\ am__doit\ target*)
5440 am__include=.include
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5449 $as_echo "$_am_result" >&6; }
5450 rm -f confinc confmf
5452 # Check whether --enable-dependency-tracking was given.
5453 if test "${enable_dependency_tracking+set}" = set; then :
5454 enableval=$enable_dependency_tracking;
5457 if test "x$enable_dependency_tracking" != xno; then
5458 am_depcomp="$ac_aux_dir/depcomp"
5461 if test "x$enable_dependency_tracking" != xno
; then
5471 depcc
="$CC" am_compiler_list
=
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5474 $as_echo_n "checking dependency style of $depcc... " >&6; }
5475 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479 # We make a subdir and do the tests there. Otherwise we can end up
5480 # making bogus files that we don't know about and never remove. For
5481 # instance it was reported that on HP-UX the gcc test will end up
5482 # making a dummy file named `D' -- because `-MD' means `put the output
5485 # Copy depcomp to subdir because otherwise we won't find it if we're
5486 # using a relative directory.
5487 cp "$am_depcomp" conftest.dir
5489 # We will build objects and dependencies in a subdirectory because
5490 # it helps to detect inapplicable dependency modes. For instance
5491 # both Tru64's cc and ICC support -MD to output dependencies as a
5492 # side effect of compilation, but ICC will put the dependencies in
5493 # the current directory while Tru64 will put them in the object
5497 am_cv_CC_dependencies_compiler_type
=none
5498 if test "$am_compiler_list" = ""; then
5499 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5502 case " $depcc " in #(
5503 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5506 for depmode
in $am_compiler_list; do
5507 # Setup a source with many dependencies, because some compilers
5508 # like to wrap large dependency lists on column 80 (with \), and
5509 # we should not choose a depcomp mode which is confused by this.
5511 # We need to recreate these files for each test, as the compiler may
5512 # overwrite some of them when testing with obscure command lines.
5513 # This happens at least with the AIX C compiler.
5515 for i
in 1 2 3 4 5 6; do
5516 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5518 # Solaris 8's {/usr,}/bin/sh.
5519 touch sub
/conftst
$i.h
5521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5524 # mode. It turns out that the SunPro C++ compiler does not properly
5525 # handle `-M -o', and we need to detect this. Also, some Intel
5526 # versions had trouble with output in subdirs
5527 am__obj
=sub
/conftest.
${OBJEXT-o}
5528 am__minus_obj
="-o $am__obj"
5531 # This depmode causes a compiler race in universal mode.
5532 test "$am__universal" = false ||
continue
5535 # after this tag, mechanisms are not by side-effect, so they'll
5536 # only be used when explicitly requested
5537 if test "x$enable_dependency_tracking" = xyes
; then
5543 msvisualcpp | msvcmsys
)
5544 # This compiler won't grok `-c -o', but also, the minuso test has
5545 # not run yet. These depmodes are late enough in the game, and
5546 # so weak that their functioning should not be impacted.
5547 am__obj
=conftest.
${OBJEXT-o}
5552 if depmode
=$depmode \
5553 source=sub
/conftest.c object
=$am__obj \
5554 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5555 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5556 >/dev
/null
2>conftest.err
&&
5557 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5558 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5559 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5560 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5561 # icc doesn't choke on unknown options, it will just issue warnings
5562 # or remarks (even with -Werror). So we grep stderr for any message
5563 # that says an option was ignored or not supported.
5564 # When given -MP, icc 7.0 and 7.1 complain thusly:
5565 # icc: Command line warning: ignoring option '-M'; no argument required
5566 # The diagnosis changed in icc 8.0:
5567 # icc: Command line remark: option '-MP' not supported
5568 if (grep 'ignoring option' conftest.err ||
5569 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5570 am_cv_CC_dependencies_compiler_type
=$depmode
5579 am_cv_CC_dependencies_compiler_type
=none
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5584 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5585 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5588 test "x$enable_dependency_tracking" != xno \
5589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5591 am__fastdepCC_FALSE
='#'
5593 am__fastdepCC_TRUE
='#'
5594 am__fastdepCC_FALSE
=
5598 if test "x$CC" != xcc
; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5600 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5603 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5605 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5606 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5607 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5608 $as_echo_n "(cached) " >&6
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5621 # Make sure it works both with $CC and with simple cc.
5622 # We do the test twice because some compilers refuse to overwrite an
5623 # existing .o file with -o, though they will create one.
5624 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5626 if { { case "(($ac_try" in
5627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632 (eval "$ac_try") 2>&5
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; } &&
5636 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5638 *) ac_try_echo
=$ac_try;;
5640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5641 $as_echo "$ac_try_echo"; } >&5
5642 (eval "$ac_try") 2>&5
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; };
5647 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5648 if test "x$CC" != xcc
; then
5649 # Test first that cc exists at all.
5650 if { ac_try
='cc -c conftest.$ac_ext >&5'
5651 { { case "(($ac_try" in
5652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; }; then
5661 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663 if { { case "(($ac_try" in
5664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5665 *) ac_try_echo
=$ac_try;;
5667 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669 (eval "$ac_try") 2>&5
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; } &&
5673 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; };
5687 # cc exists but doesn't like -o.
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5693 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5695 rm -f core conftest*
5698 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5705 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5709 # FIXME: we rely on the cache variable name because
5710 # there is no other way.
5712 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5713 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5714 if test "$am_t" != yes; then
5715 # Losing compiler, so override with the script.
5716 # FIXME: It is wrong to rewrite CC.
5717 # But if we don't then we get into trouble of one sort or another.
5718 # A longer-term fix would be to have automake use am__CC in this case,
5719 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5720 CC="$am_aux_dir/compile $CC"
5725 if test x$GCC = xyes; then
5726 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5728 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5731 # Initialize gnulib right after choosing the compiler.
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5740 # On Suns, sometimes $CPP names a directory.
5741 if test -n "$CPP" && test -d "$CPP"; then
5744 if test -z "$CPP"; then
5745 if test "${ac_cv_prog_CPP+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5748 # Double quotes because CPP needs to be expanded
5749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5752 for ac_c_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5763 # include <limits.h>
5765 # include <assert.h>
5769 if ac_fn_c_try_cpp "$LINENO"; then :
5772 # Broken: fails on valid input.
5775 rm -f conftest.err conftest.$ac_ext
5777 # OK, works on sane cases. Now check whether nonexistent headers
5778 # can be detected and how.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5784 # Broken: success on invalid input.
5787 # Passes both tests.
5791 rm -f conftest.err conftest.$ac_ext
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.
$ac_ext
5796 if $ac_preproc_ok; then :
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5809 $as_echo "$CPP" >&6; }
5811 for ac_c_preproc_warn_flag
in '' yes
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5822 # include <limits.h>
5824 # include <assert.h>
5828 if ac_fn_c_try_cpp
"$LINENO"; then :
5831 # Broken: fails on valid input.
5834 rm -f conftest.err conftest.
$ac_ext
5836 # OK, works on sane cases. Now check whether nonexistent headers
5837 # can be detected and how.
5838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <ac_nonexistent.h>
5842 if ac_fn_c_try_cpp
"$LINENO"; then :
5843 # Broken: success on invalid input.
5846 # Passes both tests.
5850 rm -f conftest.err conftest.
$ac_ext
5853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5854 rm -f conftest.err conftest.
$ac_ext
5855 if $ac_preproc_ok; then :
5858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5860 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." "$LINENO" 5; }
5865 ac_cpp
='$CPP $CPPFLAGS'
5866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5872 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5876 if test -z "$GREP"; then
5877 ac_path_GREP_found
=false
5878 # Loop through the user's path and test for each of PROGNAME-LIST
5879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5880 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5883 test -z "$as_dir" && as_dir
=.
5884 for ac_prog
in grep ggrep
; do
5885 for ac_exec_ext
in '' $ac_executable_extensions; do
5886 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5887 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5888 # Check for GNU ac_path_GREP and select it if it is found.
5889 # Check for GNU $ac_path_GREP
5890 case `"$ac_path_GREP" --version 2>&1` in
5892 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5895 $as_echo_n 0123456789 >"conftest.in"
5898 cat "conftest.in" "conftest.in" >"conftest.tmp"
5899 mv "conftest.tmp" "conftest.in"
5900 cp "conftest.in" "conftest.nl"
5901 $as_echo 'GREP' >> "conftest.nl"
5902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5903 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5904 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5906 # Best one so far, save it but keep looking for a better one
5907 ac_cv_path_GREP
="$ac_path_GREP"
5908 ac_path_GREP_max
=$ac_count
5910 # 10*(2^10) chars as input seems more than enough
5911 test $ac_count -gt 10 && break
5913 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5916 $ac_path_GREP_found && break 3
5921 if test -z "$ac_cv_path_GREP"; then
5922 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5925 ac_cv_path_GREP
=$GREP
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5930 $as_echo "$ac_cv_path_GREP" >&6; }
5931 GREP
="$ac_cv_path_GREP"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5935 $as_echo_n "checking for egrep... " >&6; }
5936 if test "${ac_cv_path_EGREP+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5939 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5940 then ac_cv_path_EGREP
="$GREP -E"
5942 if test -z "$EGREP"; then
5943 ac_path_EGREP_found
=false
5944 # Loop through the user's path and test for each of PROGNAME-LIST
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5946 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5949 test -z "$as_dir" && as_dir
=.
5950 for ac_prog
in egrep; do
5951 for ac_exec_ext
in '' $ac_executable_extensions; do
5952 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5954 # Check for GNU ac_path_EGREP and select it if it is found.
5955 # Check for GNU $ac_path_EGREP
5956 case `"$ac_path_EGREP" --version 2>&1` in
5958 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5961 $as_echo_n 0123456789 >"conftest.in"
5964 cat "conftest.in" "conftest.in" >"conftest.tmp"
5965 mv "conftest.tmp" "conftest.in"
5966 cp "conftest.in" "conftest.nl"
5967 $as_echo 'EGREP' >> "conftest.nl"
5968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5969 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5970 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5972 # Best one so far, save it but keep looking for a better one
5973 ac_cv_path_EGREP
="$ac_path_EGREP"
5974 ac_path_EGREP_max
=$ac_count
5976 # 10*(2^10) chars as input seems more than enough
5977 test $ac_count -gt 10 && break
5979 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5982 $ac_path_EGREP_found && break 3
5987 if test -z "$ac_cv_path_EGREP"; then
5988 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5991 ac_cv_path_EGREP
=$EGREP
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5997 $as_echo "$ac_cv_path_EGREP" >&6; }
5998 EGREP
="$ac_cv_path_EGREP"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6004 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6005 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6019 gl_cv_c_amsterdam_compiler
=yes
6021 gl_cv_c_amsterdam_compiler
=no
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6028 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6029 if test -z "$AR"; then
6030 if test $gl_cv_c_amsterdam_compiler = yes; then
6032 if test -z "$ARFLAGS"; then
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR
="$AR" # Let the user override the test.
6047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir
=.
6052 for ac_exec_ext
in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 if test -n "$AR"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067 $as_echo "$AR" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6075 if test -z "$ac_cv_prog_AR"; then
6077 # Extract the first word of "ar", so it can be a program name with args.
6078 set dummy
ar; ac_word
=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir
=.
6092 for ac_exec_ext
in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_AR
="ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6113 if test "x$ac_ct_AR" = x
; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned
=yes ;;
6128 if test -z "$ARFLAGS"; then
6133 if test -z "$ARFLAGS"; then
6139 if test -z "$RANLIB"; then
6140 if test $gl_cv_c_amsterdam_compiler = yes; then
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6151 if test -n "$RANLIB"; then
6152 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir
=.
6159 for ac_exec_ext
in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 RANLIB
=$ac_cv_prog_RANLIB
6172 if test -n "$RANLIB"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6174 $as_echo "$RANLIB" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6182 if test -z "$ac_cv_prog_RANLIB"; then
6183 ac_ct_RANLIB
=$RANLIB
6184 # Extract the first word of "ranlib", so it can be a program name with args.
6185 set dummy ranlib
; ac_word
=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$ac_ct_RANLIB"; then
6192 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir
=.
6199 for ac_exec_ext
in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6212 if test -n "$ac_ct_RANLIB"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6214 $as_echo "$ac_ct_RANLIB" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6220 if test "x$ac_ct_RANLIB" = x
; then
6223 case $cross_compiling:$ac_tool_warned in
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned
=yes ;;
6229 RANLIB
=$ac_ct_RANLIB
6232 RANLIB
="$ac_cv_prog_RANLIB"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if test "${ac_cv_header_stdc+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6260 ac_cv_header_stdc
=yes
6262 ac_cv_header_stdc
=no
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev
/null
2>&1; then :
6277 ac_cv_header_stdc
=no
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev
/null
2>&1; then :
6294 ac_cv_header_stdc
=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6332 if ac_fn_c_try_run
"$LINENO"; then :
6335 ac_cv_header_stdc
=no
6337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6352 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6353 inttypes.h stdint.h unistd.h
6355 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6358 eval as_val
=\$
$as_ac_Header
6359 if test "x$as_val" = x
""yes; then :
6360 cat >>confdefs.h
<<_ACEOF
6361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6373 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6380 if test "$MINIX" = yes; then
6382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6388 $as_echo "#define _MINIX 1" >>confdefs.h
6395 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6402 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6403 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 # define __EXTENSIONS__ 1
6410 $ac_includes_default
6419 if ac_fn_c_try_compile
"$LINENO"; then :
6420 ac_cv_safe_to_define___extensions__
=yes
6422 ac_cv_safe_to_define___extensions__
=no
6424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6427 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6428 test $ac_cv_safe_to_define___extensions__ = yes &&
6429 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6431 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6448 # Check whether --enable-largefile was given.
6449 if test "${enable_largefile+set}" = set; then :
6450 enableval
=$enable_largefile;
6453 if test "$enable_largefile" != no
; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6456 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6457 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 ac_cv_sys_largefile_CC
=no
6461 if test "$GCC" != yes; then
6464 # IRIX 6.2 and later do not support large files by default,
6465 # so use the C compiler's -n32 option if that helps.
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6469 /* Check that off_t can represent 2**63 - 1 correctly.
6470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6471 since some C++ compilers masquerading as C compilers
6472 incorrectly reject 9223372036854775807. */
6473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6475 && LARGE_OFF_T % 2147483647 == 1)
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6488 rm -f core conftest.err conftest.
$ac_objext
6490 if ac_fn_c_try_compile
"$LINENO"; then :
6491 ac_cv_sys_largefile_CC
=' -n32'; break
6493 rm -f core conftest.err conftest.
$ac_objext
6497 rm -f conftest.
$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6501 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6502 if test "$ac_cv_sys_largefile_CC" != no
; then
6503 CC
=$CC$ac_cv_sys_largefile_CC
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6507 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6508 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <sys/types.h>
6515 /* Check that off_t can represent 2**63 - 1 correctly.
6516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6517 since some C++ compilers masquerading as C compilers
6518 incorrectly reject 9223372036854775807. */
6519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6521 && LARGE_OFF_T % 2147483647 == 1)
6531 if ac_fn_c_try_compile
"$LINENO"; then :
6532 ac_cv_sys_file_offset_bits
=no
; break
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #define _FILE_OFFSET_BITS 64
6538 #include <sys/types.h>
6539 /* Check that off_t can represent 2**63 - 1 correctly.
6540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6541 since some C++ compilers masquerading as C compilers
6542 incorrectly reject 9223372036854775807. */
6543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6545 && LARGE_OFF_T % 2147483647 == 1)
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 ac_cv_sys_file_offset_bits
=64; break
6558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 ac_cv_sys_file_offset_bits
=unknown
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6564 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6565 case $ac_cv_sys_file_offset_bits in #(
6568 cat >>confdefs.h
<<_ACEOF
6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6574 if test $ac_cv_sys_file_offset_bits = unknown
; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6576 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6577 if test "${ac_cv_sys_large_files+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6584 /* Check that off_t can represent 2**63 - 1 correctly.
6585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6586 since some C++ compilers masquerading as C compilers
6587 incorrectly reject 9223372036854775807. */
6588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6590 && LARGE_OFF_T % 2147483647 == 1)
6600 if ac_fn_c_try_compile
"$LINENO"; then :
6601 ac_cv_sys_large_files
=no
; break
6603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #define _LARGE_FILES 1
6607 #include <sys/types.h>
6608 /* Check that off_t can represent 2**63 - 1 correctly.
6609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6610 since some C++ compilers masquerading as C compilers
6611 incorrectly reject 9223372036854775807. */
6612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6614 && LARGE_OFF_T % 2147483647 == 1)
6624 if ac_fn_c_try_compile
"$LINENO"; then :
6625 ac_cv_sys_large_files
=1; break
6627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6628 ac_cv_sys_large_files
=unknown
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6633 $as_echo "$ac_cv_sys_large_files" >&6; }
6634 case $ac_cv_sys_large_files in #(
6637 cat >>confdefs.h
<<_ACEOF
6638 #define _LARGE_FILES $ac_cv_sys_large_files
6648 case $ac_cv_prog_cc_stdc in #(
6650 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6653 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6654 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6657 ac_cv_prog_cc_c99
=no
6659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6662 #include <stdbool.h>
6667 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6668 #define debug(...) fprintf (stderr, __VA_ARGS__)
6669 #define showlist(...) puts (#__VA_ARGS__)
6670 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6672 test_varargs_macros (void)
6677 debug ("X = %d\n", x);
6678 showlist (The first, second, and third items.);
6679 report (x>y, "x is %d but y is %d", x, y);
6682 // Check long long types.
6683 #define BIG64 18446744073709551615ull
6684 #define BIG32 4294967295ul
6685 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6687 your preprocessor is broken;
6691 your preprocessor is broken;
6693 static long long int bignum = -9223372036854775807LL;
6694 static unsigned long long int ubignum = BIG64;
6696 struct incomplete_array
6704 const wchar_t *name;
6708 typedef const char *ccp;
6711 test_restrict (ccp restrict text)
6713 // See if C++-style comments work.
6714 // Iterate through items via the restricted pointer.
6715 // Also check for declarations in for loops.
6716 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6721 // Check varargs and va_copy.
6723 test_varargs (const char *format, ...)
6726 va_start (args, format);
6728 va_copy (args_copy, args);
6739 str = va_arg (args_copy, const char *);
6742 number = va_arg (args_copy, int);
6745 fnumber = va_arg (args_copy, double);
6760 _Bool success = false;
6763 if (test_restrict ("String literal") == 0)
6765 char *restrict newvar = "Another string";
6768 test_varargs ("s, d' f .", "string", 65, 34.234);
6769 test_varargs_macros ();
6771 // Check flexible array members.
6772 struct incomplete_array *ia =
6773 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6775 for (int i = 0; i < ia->datasize; ++i)
6776 ia->data[i] = i * 1.234;
6778 // Check named initializers.
6779 struct named_init ni = {
6781 .name = L"Test wide string",
6782 .average = 543.34343,
6787 int dynamic_array[ni.number];
6788 dynamic_array[ni.number - 1] = 543;
6790 // work around unused variable warnings
6791 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6792 || dynamic_array[ni.number - 1] != 543);
6798 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6800 CC
="$ac_save_CC $ac_arg"
6801 if ac_fn_c_try_compile
"$LINENO"; then :
6802 ac_cv_prog_cc_c99
=$ac_arg
6804 rm -f core conftest.err conftest.
$ac_objext
6805 test "x$ac_cv_prog_cc_c99" != "xno" && break
6807 rm -f conftest.
$ac_ext
6812 case "x$ac_cv_prog_cc_c99" in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6815 $as_echo "none needed" >&6; } ;;
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6818 $as_echo "unsupported" >&6; } ;;
6820 CC
="$CC $ac_cv_prog_cc_c99"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6822 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6824 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6825 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6829 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6832 ac_cv_prog_cc_c89
=no
6834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6838 #include <sys/types.h>
6839 #include <sys/stat.h>
6840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6841 struct buf { int x; };
6842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6843 static char *e (p, i)
6849 static char *f (char * (*g) (char **, int), char **p, ...)
6854 s = g (p, va_arg (v,int));
6859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6860 function prototypes and stuff, but not '\xHH' hex character constants.
6861 These don't provoke an error unfortunately, instead are silently treated
6862 as 'x'. The following induces an error, until -std is added to get
6863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6864 array size at least. It's necessary to write '\x00'==0 to get something
6865 that's true only with -std. */
6866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6869 inside strings and character constants. */
6871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6873 int test (int i, double x);
6874 struct s1 {int (*f) (int a);};
6875 struct s2 {int (*f) (double a);};
6876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6887 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6890 CC
="$ac_save_CC $ac_arg"
6891 if ac_fn_c_try_compile
"$LINENO"; then :
6892 ac_cv_prog_cc_c89
=$ac_arg
6894 rm -f core conftest.err conftest.
$ac_objext
6895 test "x$ac_cv_prog_cc_c89" != "xno" && break
6897 rm -f conftest.
$ac_ext
6902 case "x$ac_cv_prog_cc_c89" in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6905 $as_echo "none needed" >&6; } ;;
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6908 $as_echo "unsupported" >&6; } ;;
6910 CC
="$CC $ac_cv_prog_cc_c89"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6914 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6915 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6917 ac_cv_prog_cc_stdc
=no
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6924 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6925 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6929 case $ac_cv_prog_cc_stdc in #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6932 $as_echo "unsupported" >&6; } ;; #(
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6935 $as_echo "none needed" >&6; } ;; #(
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6938 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6943 # Code from module alloca-opt:
6944 # Code from module allocator:
6945 # Code from module c-ctype:
6946 # Code from module c-strcase:
6947 # Code from module careadlinkat:
6948 # Code from module clock-time:
6949 # Code from module crypto/md5:
6950 # Code from module crypto/sha1:
6951 # Code from module crypto/sha256:
6952 # Code from module crypto/sha512:
6953 # Code from module dosname:
6954 # Code from module dtoastr:
6955 # Code from module dtotimespec:
6956 # Code from module dup2:
6957 # Code from module environ:
6958 # Code from module extensions:
6960 # Code from module extern-inline:
6961 # Code from module filemode:
6962 # Code from module getloadavg:
6963 # Code from module getopt-gnu:
6964 # Code from module getopt-posix:
6965 # Code from module gettext-h:
6966 # Code from module gettime:
6967 # Code from module gettimeofday:
6968 # Code from module ignore-value:
6969 # Code from module include_next:
6970 # Code from module intprops:
6971 # Code from module inttypes-incomplete:
6972 # Code from module largefile:
6974 # Code from module lstat:
6975 # Code from module manywarnings:
6976 # Code from module mktime:
6977 # Code from module multiarch:
6978 # Code from module nocrash:
6979 # Code from module pathmax:
6980 # Code from module pselect:
6981 # Code from module pthread_sigmask:
6982 # Code from module readlink:
6983 # Code from module signal-h:
6984 # Code from module snippet/_Noreturn:
6985 # Code from module snippet/arg-nonnull:
6986 # Code from module snippet/c++defs:
6987 # Code from module snippet/warn-on-use:
6988 # Code from module socklen:
6989 # Code from module ssize_t:
6990 # Code from module stat:
6991 # Code from module stat-time:
6992 # Code from module stdalign:
6993 # Code from module stdarg:
6997 # Code from module stdbool:
6998 # Code from module stddef:
6999 # Code from module stdint:
7000 # Code from module stdio:
7001 # Code from module stdlib:
7002 # Code from module strftime:
7003 # Code from module strtoimax:
7004 # Code from module strtoll:
7005 # Code from module strtoull:
7006 # Code from module strtoumax:
7007 # Code from module symlink:
7008 # Code from module sys_select:
7009 # Code from module sys_stat:
7010 # Code from module sys_time:
7011 # Code from module time:
7012 # Code from module time_r:
7013 # Code from module timespec:
7014 # Code from module timespec-add:
7015 # Code from module timespec-sub:
7016 # Code from module u64:
7017 # Code from module unistd:
7018 # Code from module utimens:
7019 # Code from module verify:
7020 # Code from module warnings:
7023 # Check whether --enable-gcc-warnings was given.
7024 if test "${enable_gcc_warnings+set}" = set; then :
7025 enableval
=$enable_gcc_warnings; case $enableval in
7027 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7029 gl_gcc_warnings
=$enableval
7036 # Check whether --enable-link-time-optimization was given.
7037 if test "${enable_link_time_optimization+set}" = set; then :
7038 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7040 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7042 if test x
$GCC = xyes
; then
7043 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7044 if test x
$CPUS != x
; then
7050 CFLAGS
="$CFLAGS $LTO"
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7062 if ac_fn_c_try_compile
"$LINENO"; then :
7063 ac_lto_supported
=yes
7067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 CFLAGS
="$old_CFLAGS"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7071 $as_echo "$ac_lto_supported" >&6; }
7072 if test "$ac_lto_supported" = "yes"; then
7073 CFLAGS
="$CFLAGS $LTO"
7079 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7080 # ------------------------------------------------
7081 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7082 # Otherwise, run RUN-IF-NOT-FOUND.
7085 # When compiling with GCC, prefer -isystem to -I when including system
7086 # include files, to avoid generating useless diagnostics for the files.
7087 if test "$gl_gcc_warnings" != yes; then
7092 # This, $nw, is the list of warnings we disable.
7095 case $with_x_toolkit in
7096 lucid | athena | motif
)
7097 # Old toolkits mishandle 'const'.
7098 nw
="$nw -Wwrite-strings"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7102 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7103 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7107 gl_save_compiler_FLAGS
="$CFLAGS"
7108 as_fn_append CFLAGS
" -Werror"
7109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7120 if ac_fn_c_try_compile
"$LINENO"; then :
7121 gl_cv_warn_c__Werror
=yes
7123 gl_cv_warn_c__Werror
=no
7125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 CFLAGS
="$gl_save_compiler_FLAGS"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7130 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7131 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7132 as_fn_append WERROR_CFLAGS
" -Werror"
7140 nw
="$nw -Waggregate-return" # anachronistic
7141 nw
="$nw -Wlong-long" # C90 is anachronistic
7142 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7143 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7144 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7145 nw
="$nw -Wcast-qual" # Too many warnings for now
7146 nw
="$nw -Wconversion" # Too many warnings for now
7147 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7148 nw
="$nw -Wsign-conversion" # Too many warnings for now
7149 nw
="$nw -Woverlength-strings" # Not a problem these days
7150 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7151 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7152 nw
="$nw -Wpadded" # Our structs are not padded
7153 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7154 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7155 nw
="$nw -Wformat-nonliteral" # we do this a lot
7156 nw
="$nw -Wvla" # warnings in gettext.h
7157 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7158 nw
="$nw -Wswitch-enum" # Too many warnings for now
7159 nw
="$nw -Wswitch-default" # Too many warnings for now
7160 nw
="$nw -Wfloat-equal" # warns about high-quality code
7161 nw
="$nw -Winline" # OK to ignore 'inline'
7162 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7163 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7165 # Emacs doesn't care about shadowing; see
7166 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7169 # The following lines should be removable at some point.
7170 nw
="$nw -Wstack-protector"
7171 nw
="$nw -Wstrict-overflow"
7172 nw
="$nw -Wsuggest-attribute=pure"
7176 if test -n "$GCC"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7179 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7180 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7181 $as_echo_n "(cached) " >&6
7184 gl_save_CFLAGS
="$CFLAGS"
7185 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7197 if ac_fn_c_try_compile
"$LINENO"; then :
7198 gl_cv_cc_nomfi_supported
=yes
7200 gl_cv_cc_nomfi_supported
=no
7202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7203 CFLAGS
="$gl_save_CFLAGS"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7207 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7209 if test "$gl_cv_cc_nomfi_supported" = yes; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7211 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7212 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7216 gl_save_CFLAGS
="$CFLAGS"
7217 CFLAGS
="$CFLAGS -W -Werror"
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7222 typedef struct { int a; int b; } s_t;
7234 if ac_fn_c_try_compile
"$LINENO"; then :
7235 gl_cv_cc_nomfi_needed
=no
7237 gl_cv_cc_nomfi_needed
=yes
7239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 CFLAGS
="$gl_save_CFLAGS"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7245 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7250 for gl_manywarn_item
in \
7254 -Wformat-nonliteral \
7257 -Wmissing-include-dirs \
7267 -Wtraditional-conversion \
7268 -Wdeclaration-after-statement \
7271 -Wunsafe-loop-optimizations \
7273 -Wbad-function-cast \
7281 -Waggregate-return \
7282 -Wstrict-prototypes \
7283 -Wold-style-definition \
7284 -Wmissing-prototypes \
7285 -Wmissing-declarations \
7286 -Wmissing-noreturn \
7287 -Wmissing-format-attribute \
7292 -Wunreachable-code \
7297 -Wvolatile-register-var \
7298 -Wdisabled-optimization \
7300 -Woverlength-strings \
7301 -Wbuiltin-macro-redefined \
7303 -Wpacked-bitfield-compat \
7306 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7308 # The following are not documented in the manual but are included in
7309 # output from gcc --help=warnings.
7310 for gl_manywarn_item
in \
7312 -Wcoverage-mismatch \
7315 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7317 # More warnings from gcc 4.6.2 --help=warnings.
7318 for gl_manywarn_item
in \
7322 -Wdeprecated-declarations \
7324 -Wdouble-promotion \
7327 -Wformat-contains-nul \
7328 -Wformat-extra-args \
7329 -Wformat-zero-length \
7334 -Wpointer-to-int-cast \
7336 -Wsuggest-attribute=const \
7337 -Wsuggest-attribute=noreturn \
7338 -Wsuggest-attribute=pure \
7341 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7344 # Disable the missing-field-initializers warning if needed
7345 if test "$gl_cv_cc_nomfi_needed" = yes; then
7346 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7357 *" $gl_warn_item "*)
7360 gl_warn_set
="$gl_warn_set $gl_warn_item"
7367 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7369 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7370 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7371 $as_echo_n "(cached) " >&6
7374 gl_save_compiler_FLAGS
="$CFLAGS"
7375 as_fn_append CFLAGS
" $w"
7376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7387 if ac_fn_c_try_compile
"$LINENO"; then :
7388 eval "$as_gl_Warn=yes"
7390 eval "$as_gl_Warn=no"
7392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 CFLAGS
="$gl_save_compiler_FLAGS"
7396 eval ac_res
=\$
$as_gl_Warn
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7398 $as_echo "$ac_res" >&6; }
7399 eval as_val
=\$
$as_gl_Warn
7400 if test "x$as_val" = x
""yes; then :
7401 as_fn_append WARN_CFLAGS
" $w"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7407 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7408 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7412 gl_save_compiler_FLAGS
="$CFLAGS"
7413 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7425 if ac_fn_c_try_compile
"$LINENO"; then :
7426 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7428 gl_cv_warn_c__Wno_missing_field_initializers
=no
7430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 CFLAGS
="$gl_save_compiler_FLAGS"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7435 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7436 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7437 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7442 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7443 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7447 gl_save_compiler_FLAGS
="$CFLAGS"
7448 as_fn_append CFLAGS
" -Wno-sign-compare"
7449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7460 if ac_fn_c_try_compile
"$LINENO"; then :
7461 gl_cv_warn_c__Wno_sign_compare
=yes
7463 gl_cv_warn_c__Wno_sign_compare
=no
7465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7466 CFLAGS
="$gl_save_compiler_FLAGS"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7470 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7471 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7472 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7475 # Too many warnings for now
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7477 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7478 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7482 gl_save_compiler_FLAGS
="$CFLAGS"
7483 as_fn_append CFLAGS
" -Wno-type-limits"
7484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7495 if ac_fn_c_try_compile
"$LINENO"; then :
7496 gl_cv_warn_c__Wno_type_limits
=yes
7498 gl_cv_warn_c__Wno_type_limits
=no
7500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7501 CFLAGS
="$gl_save_compiler_FLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7505 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7506 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7507 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7510 # Too many warnings for now
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7512 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7513 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7517 gl_save_compiler_FLAGS
="$CFLAGS"
7518 as_fn_append CFLAGS
" -Wno-switch"
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_compile
"$LINENO"; then :
7531 gl_cv_warn_c__Wno_switch
=yes
7533 gl_cv_warn_c__Wno_switch
=no
7535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7536 CFLAGS
="$gl_save_compiler_FLAGS"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7540 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7541 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7542 as_fn_append WARN_CFLAGS
" -Wno-switch"
7545 # Too many warnings for now
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7547 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7548 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7552 gl_save_compiler_FLAGS
="$CFLAGS"
7553 as_fn_append CFLAGS
" -Wno-unused-parameter"
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 if ac_fn_c_try_compile
"$LINENO"; then :
7566 gl_cv_warn_c__Wno_unused_parameter
=yes
7568 gl_cv_warn_c__Wno_unused_parameter
=no
7570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7571 CFLAGS
="$gl_save_compiler_FLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7575 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7576 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7577 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7580 # Too many warnings for now
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7582 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7583 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7587 gl_save_compiler_FLAGS
="$CFLAGS"
7588 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7600 if ac_fn_c_try_compile
"$LINENO"; then :
7601 gl_cv_warn_c__Wno_format_nonliteral
=yes
7603 gl_cv_warn_c__Wno_format_nonliteral
=no
7605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7606 CFLAGS
="$gl_save_compiler_FLAGS"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7610 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7611 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7612 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7617 # In spite of excluding -Wlogical-op above, it is enabled, as of
7618 # gcc 4.5.0 20090517.
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7620 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7621 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7625 gl_save_compiler_FLAGS
="$CFLAGS"
7626 as_fn_append CFLAGS
" -Wno-logical-op"
7627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7638 if ac_fn_c_try_compile
"$LINENO"; then :
7639 gl_cv_warn_c__Wno_logical_op
=yes
7641 gl_cv_warn_c__Wno_logical_op
=no
7643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7644 CFLAGS
="$gl_save_compiler_FLAGS"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7648 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7649 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7650 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7656 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7657 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7661 gl_save_compiler_FLAGS
="$CFLAGS"
7662 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7675 gl_cv_warn_c__fdiagnostics_show_option
=yes
7677 gl_cv_warn_c__fdiagnostics_show_option
=no
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 CFLAGS
="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7684 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7685 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7686 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7691 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7692 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7696 gl_save_compiler_FLAGS
="$CFLAGS"
7697 as_fn_append CFLAGS
" -funit-at-a-time"
7698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7709 if ac_fn_c_try_compile
"$LINENO"; then :
7710 gl_cv_warn_c__funit_at_a_time
=yes
7712 gl_cv_warn_c__funit_at_a_time
=no
7714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 CFLAGS
="$gl_save_compiler_FLAGS"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7719 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7720 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7721 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7727 $as_echo "#define lint 1" >>confdefs.h
7730 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7733 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7736 # We use a slightly smaller set of warning options for lib/.
7737 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7739 nw
="$nw -Wunused-macros"
7743 set x
$WARN_CFLAGS; shift
7747 *" $gl_warn_item "*)
7750 gl_warn_set
="$gl_warn_set $gl_warn_item"
7754 GNULIB_WARN_CFLAGS
=$gl_warn_set
7762 # Extract the first word of "install-info", so it can be a program name with args.
7763 set dummy install-info
; ac_word
=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7769 case $INSTALL_INFO in
7771 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7775 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7793 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7794 if test -n "$INSTALL_INFO"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7796 $as_echo "$INSTALL_INFO" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 # Extract the first word of "gzip", so it can be a program name with args.
7804 set dummy
gzip; ac_word
=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7812 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir
=.
7820 for ac_exec_ext
in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7834 if test -n "$GZIP_PROG"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7836 $as_echo "$GZIP_PROG" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7844 if test $opsys = gnu-linux
; then
7845 # Extract the first word of "paxctl", so it can be a program name with args.
7846 set dummy paxctl
; ac_word
=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7854 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7861 test -z "$as_dir" && as_dir
=.
7862 for ac_exec_ext
in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 PAXCTL
=$ac_cv_path_PAXCTL
7876 if test -n "$PAXCTL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7878 $as_echo "$PAXCTL" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7885 if test "X$PAXCTL" != X
; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7887 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 if ac_fn_c_try_link
"$LINENO"; then :
7900 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901 $as_echo "yes" >&6; }
7902 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }; PAXCTL
=""; fi
7905 rm -f core conftest.err conftest.
$ac_objext \
7906 conftest
$ac_exeext conftest.
$ac_ext
7910 ## Need makeinfo >= 4.7 (?) to build the manuals.
7911 # Extract the first word of "makeinfo", so it can be a program name with args.
7912 set dummy makeinfo
; ac_word
=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7920 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir
=.
7928 for ac_exec_ext
in '' $ac_executable_extensions; do
7929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7930 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7942 MAKEINFO
=$ac_cv_path_MAKEINFO
7943 if test -n "$MAKEINFO"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7945 $as_echo "$MAKEINFO" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7952 if test "$MAKEINFO" != "no" && \
7953 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7957 ## Makeinfo is unusual. For a released Emacs, the manuals are
7958 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7959 ## therefore in the category of "special tools" not normally required, which
7960 ## configure does not have to check for (eg autoconf itself).
7961 ## In a Bazaar checkout on the other hand, the manuals are not included.
7962 ## So makeinfo is a requirement to build from Bazaar, and configure
7963 ## should test for it as it does for any other build requirement.
7964 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7965 ## with pre-built manuals, from a Bazaar checkout.
7968 if test "$MAKEINFO" = "no"; then
7970 if test "x${with_makeinfo}" = "xno"; then
7972 elif test ! -e $srcdir/info
/emacs
; then
7973 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7974 source tree does not seem to have pre-built manuals in the \`info' directory.
7975 Either install a suitable version of makeinfo, or re-run configure
7976 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7982 INFO_OPTS
=--no-split
7987 if test x
$GCC = xyes
; then
7988 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7989 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7991 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7992 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7996 late_LDFLAGS
=$LDFLAGS
7997 if test x
$GCC = xyes
; then
7998 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8000 LDFLAGS
="$LDFLAGS -znocombreloc"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8004 $as_echo_n "checking for -znocombreloc... " >&6; }
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8016 if ac_fn_c_try_link
"$LINENO"; then :
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8018 $as_echo "yes" >&6; }
8020 LDFLAGS
=$late_LDFLAGS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8024 rm -f core conftest.err conftest.
$ac_objext \
8025 conftest
$ac_exeext conftest.
$ac_ext
8028 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8030 your-opsys-here
) CANNOT_DUMP
=yes ;;
8033 test "$CANNOT_DUMP" = "yes" && \
8035 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8041 UNEXEC_OBJ
=unexelf.o
8043 # MSDOS uses unexcoff.o
8044 # MSWindows uses unexw32.o
8046 UNEXEC_OBJ
=unexaix.o
8052 UNEXEC_OBJ
=unexmacosx.o
8055 UNEXEC_OBJ
=unexhp9k800.o
8058 # Use the Solaris dldump() function, called from unexsol.c, to dump
8059 # emacs, instead of the generic ELF dump code found in unexelf.c.
8060 # The resulting binary has a complete symbol table, and is better
8061 # for debugging and other observability tools (debuggers, pstack, etc).
8063 # If you encounter a problem using dldump(), please consider sending
8064 # a message to the OpenSolaris tools-linking mailing list:
8065 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8067 # It is likely that dldump() works with older Solaris too, but this has
8068 # not been tested, so for now this change is for Solaris 10 or newer.
8069 UNEXEC_OBJ
=unexsol.o
8076 ## Let `ld' find image libs and similar things in /usr/local/lib.
8077 ## The system compiler, GCC, has apparently been modified to not
8078 ## look there, contrary to what a stock GCC would do.
8079 ### It's not our place to do this. See bug#10313#17.
8080 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8085 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8086 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8090 ### It's not our place to do this. See bug#10313#17.
8091 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8096 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8097 ## otherwise Emacs dumps core on elf systems.
8098 LD_SWITCH_SYSTEM
="-Z"
8103 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8105 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8106 ## which has not been defined yet. When this was handled with cpp,
8107 ## it was expanded to null when configure sourced the s/*.h file.
8108 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8109 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8110 ## (or somesuch), but because it is supposed to go at the _front_
8111 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8112 ## Compare with the gnu-linux case below, which added to the end
8113 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8114 ## LD_SWITCH_SYSTEM_TEMACS.
8117 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8124 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8125 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8129 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8130 ## With ELF, make sure that all common symbols get allocated to in the
8131 ## data section. Otherwise, the dump of temacs may miss variables in
8132 ## the shared library that have been initialized. For example, with
8133 ## GNU libc, __malloc_initialized would normally be resolved to the
8134 ## shared library's .bss section, which is fatal.
8135 if test "x$GCC" = "xyes"; then
8136 C_SWITCH_MACHINE
="-fno-common"
8138 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8141 UNEXEC_OBJ
=unexalpha.o
8150 ## Some programs in src produce warnings saying certain subprograms
8151 ## are too complex and need a MAXMEM value greater than 2000 for
8152 ## additional optimization. --nils@exp-math.uni-essen.de
8153 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8154 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8155 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8156 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8162 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8163 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8165 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8167 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8169 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8171 ## Motif needs -lgen.
8172 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8177 ### Make sure subsequent tests use flags consistent with the build flags.
8179 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8180 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8182 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8185 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8187 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8194 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8199 START_FILES
='pre-crt0.o'
8202 ## Adding -lm confuses the dynamic linker, so omit it.
8204 START_FILES
='pre-crt0.o'
8207 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8208 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8209 SYSTEM_TYPE
=berkeley-unix
8211 gnu-linux | gnu-kfreebsd
)
8212 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8213 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8215 hpux10-20 | hpux11
)
8217 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8220 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8221 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8222 SYSTEM_TYPE
=berkeley-unix
8226 SYSTEM_TYPE
=usg-unix-v
8234 cat >>confdefs.h
<<_ACEOF
8235 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8241 for file in x
$LIB_STANDARD $START_FILES; do
8243 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8247 if test "x$crt_files" != x
; then
8249 ## If user specified a crt-dir, use that unconditionally.
8252 if test "X$CRT_DIR" = "X"; then
8254 CRT_DIR
=/usr
/lib
# default
8256 case "$canonical" in
8257 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8258 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8259 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8260 ## For anything else (eg /usr/lib32), it is up the user to specify
8261 ## the location (bug#5655).
8262 ## Test for crtn.o, not just the directory, because sometimes the
8263 ## directory exists but does not have the relevant files (bug#1287).
8264 ## FIXME better to test for binary compatibility somehow.
8265 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8268 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8272 hpux10-20
) CRT_DIR
=/lib
;;
8275 test "x${GCC}" = xyes
&& crt_gcc
=yes
8281 for file in $crt_files; do
8283 ## If we're using gcc, try to determine it automatically by asking
8284 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8285 ## system-dependent default from above.]
8286 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8288 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8291 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8292 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8293 X"$crt_file" : 'X\(//\)[^/]' \| \
8294 X"$crt_file" : 'X\(//\)$' \| \
8295 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8296 $as_echo X"$crt_file" |
8297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8320 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8323 test "x$crt_missing" = x || \
8324 as_fn_error
"Required file(s) not found:$crt_missing
8325 Try using the --with-crt-dir option." "$LINENO" 5
8327 fi # crt_files != ""
8333 if test -f $CRT_DIR/crti.o
; then
8335 test -f $CRT_DIR/crtn.o || \
8336 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8338 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8339 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8345 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8346 pre_PKG_CONFIG_LIBS
=$LIBS
8348 # Extract the first word of "pkg-config", so it can be a program name with args.
8349 set dummy pkg-config
; ac_word
=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8357 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir
=.
8365 for ac_exec_ext
in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8379 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8380 if test -n "$PKG_CONFIG"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8382 $as_echo "$PKG_CONFIG" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8393 if test "${with_sound}" != "no"; then
8394 # Sound support for GNU/Linux and the free BSDs.
8395 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8397 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8398 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8399 eval as_val
=\$
$as_ac_Header
8400 if test "x$as_val" = x
""yes; then :
8401 cat >>confdefs.h
<<_ACEOF
8402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 have_sound_header
=yes
8409 # Emulation library used on NetBSD.
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8411 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8412 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8415 ac_check_lib_save_LIBS
=$LIBS
8416 LIBS
="-lossaudio $LIBS"
8417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8420 /* Override any GCC internal prototype to avoid an error.
8421 Use char because int might match the return type of a GCC
8422 builtin and then its argument prototype would still apply. */
8430 return _oss_ioctl ();
8435 if ac_fn_c_try_link
"$LINENO"; then :
8436 ac_cv_lib_ossaudio__oss_ioctl
=yes
8438 ac_cv_lib_ossaudio__oss_ioctl
=no
8440 rm -f core conftest.err conftest.
$ac_objext \
8441 conftest
$ac_exeext conftest.
$ac_ext
8442 LIBS
=$ac_check_lib_save_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8445 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8446 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8455 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8459 if test "$PKG_CONFIG" = "no" ; then
8462 PKG_CONFIG_MIN_VERSION
=0.9.0
8463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8465 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8467 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8468 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8469 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8476 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8477 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8479 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8486 ## If we have a custom action on failure, don't print errors, but
8487 ## do set a variable so people can do so.
8488 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8500 if test $succeeded = yes; then
8506 if test $HAVE_ALSA = yes; then
8507 SAVE_CFLAGS
="$CFLAGS"
8509 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8510 LIBS
="$ALSA_LIBS $LIBS"
8511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <asoundlib.h>
8517 snd_lib_error_set_handler (0);
8522 if ac_fn_c_try_compile
"$LINENO"; then :
8523 emacs_alsa_normal
=yes
8525 emacs_alsa_normal
=no
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8528 if test "$emacs_alsa_normal" != yes; then
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <alsa/asoundlib.h>
8535 snd_lib_error_set_handler (0);
8540 if ac_fn_c_try_compile
"$LINENO"; then :
8541 emacs_alsa_subdir
=yes
8543 emacs_alsa_subdir
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8546 if test "$emacs_alsa_subdir" != yes; then
8547 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8549 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8552 CFLAGS
="$SAVE_CFLAGS"
8554 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8555 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8557 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8561 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8563 gnu-linux|freebsd|netbsd
)
8565 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8577 for ac_header
in $ac_header_list
8579 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8580 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8582 eval as_val
=\$
$as_ac_Header
8583 if test "x$as_val" = x
""yes; then :
8584 cat >>confdefs.h
<<_ACEOF
8585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8621 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/personality.h>
8628 personality (PER_LINUX32)
8633 if ac_fn_c_try_compile
"$LINENO"; then :
8634 emacs_cv_personality_linux32
=yes
8636 emacs_cv_personality_linux32
=no
8638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8640 $as_echo "$emacs_cv_personality_linux32" >&6; }
8642 if test $emacs_cv_personality_linux32 = yes; then
8644 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8648 for ac_header
in term.h
8650 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8651 if test "x$ac_cv_header_term_h" = x
""yes; then :
8652 cat >>confdefs.h
<<_ACEOF
8653 #define HAVE_TERM_H 1
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8661 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8662 if test "${ac_cv_header_time+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 #include <sys/time.h>
8674 if ((struct tm *) 0)
8680 if ac_fn_c_try_compile
"$LINENO"; then :
8681 ac_cv_header_time
=yes
8683 ac_cv_header_time
=no
8685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8688 $as_echo "$ac_cv_header_time" >&6; }
8689 if test $ac_cv_header_time = yes; then
8691 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8695 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8696 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8702 cat >>confdefs.h
<<_ACEOF
8703 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8706 if test $ac_cv_have_decl_sys_siglist != yes; then
8707 # For Tru64, at least:
8708 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8709 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8715 cat >>confdefs.h
<<_ACEOF
8716 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8719 if test $ac_cv_have_decl___sys_siglist = yes; then
8721 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8726 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8727 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <sys/types.h>
8733 #include <sys/wait.h>
8735 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8738 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8751 if ac_fn_c_try_compile
"$LINENO"; then :
8752 ac_cv_header_sys_wait_h
=yes
8754 ac_cv_header_sys_wait_h
=no
8756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8759 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8760 if test $ac_cv_header_sys_wait_h = yes; then
8762 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8768 $as_echo_n "checking for speed_t... " >&6; }
8769 if test "${emacs_cv_speed_t+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 #include <termios.h>
8783 if ac_fn_c_try_compile
"$LINENO"; then :
8784 emacs_cv_speed_t
=yes
8788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8791 $as_echo "$emacs_cv_speed_t" >&6; }
8792 if test $emacs_cv_speed_t = yes; then
8794 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8799 $as_echo_n "checking for struct exception... " >&6; }
8800 if test "${emacs_cv_struct_exception+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8814 if ac_fn_c_try_compile
"$LINENO"; then :
8815 emacs_cv_struct_exception
=yes
8817 emacs_cv_struct_exception
=no
8819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8822 $as_echo "$emacs_cv_struct_exception" >&6; }
8823 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8824 if test $emacs_cv_struct_exception != yes ||
test $opsys = darwin
; then
8826 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8833 for ac_header
in net
/if.h
8835 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8836 #if HAVE_SYS_SOCKET_H
8837 #include <sys/socket.h>
8840 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8841 cat >>confdefs.h
<<_ACEOF
8842 #define HAVE_NET_IF_H 1
8849 for ac_header
in ifaddrs.h
8851 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8852 #if HAVE_SYS_SOCKET_H
8853 #include <sys/socket.h>
8856 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8857 cat >>confdefs.h
<<_ACEOF
8858 #define HAVE_IFADDRS_H 1
8865 for ac_header
in net
/if_dl.h
8867 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8868 #if HAVE_SYS_SOCKET_H
8869 #include <sys/socket.h>
8872 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8873 cat >>confdefs.h
<<_ACEOF
8874 #define HAVE_NET_IF_DL_H 1
8882 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8883 #if HAVE_SYS_SOCKET_H
8884 #include <sys/socket.h>
8890 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8892 cat >>confdefs.h
<<_ACEOF
8893 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8898 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8899 #if HAVE_SYS_SOCKET_H
8900 #include <sys/socket.h>
8906 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8908 cat >>confdefs.h
<<_ACEOF
8909 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8914 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8922 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8924 cat >>confdefs.h
<<_ACEOF
8925 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8930 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8931 #if HAVE_SYS_SOCKET_H
8932 #include <sys/socket.h>
8938 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8940 cat >>confdefs.h
<<_ACEOF
8941 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8946 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8947 #if HAVE_SYS_SOCKET_H
8948 #include <sys/socket.h>
8954 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8956 cat >>confdefs.h
<<_ACEOF
8957 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8962 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8963 #if HAVE_SYS_SOCKET_H
8964 #include <sys/socket.h>
8970 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8972 cat >>confdefs.h
<<_ACEOF
8973 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8985 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8987 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8989 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8990 if test "x$testval" != x
; then
8993 ac_enable_autodepend
=no
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8996 $as_echo "$HAVE_GNU_MAKE" >&6; }
8997 if test $HAVE_GNU_MAKE = yes; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8999 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9000 SAVE_CFLAGS
="$CFLAGS"
9001 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9013 if ac_fn_c_try_compile
"$LINENO"; then :
9016 ac_enable_autodepend
=no
9018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9019 CFLAGS
="$SAVE_CFLAGS"
9020 test -f deps.d || ac_enable_autodepend
=no
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9023 $as_echo "$ac_enable_autodepend" >&6; }
9025 if test $ac_enable_autodepend = yes; then
9026 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9027 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9028 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9029 deps_frag
=autodeps.mk
9032 deps_frag
=$srcdir/src
/$deps_frag
9038 lisp_frag
=$srcdir/src
/lisp.mk
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9043 $as_echo_n "checking for long file names... " >&6; }
9044 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9047 ac_cv_sys_long_file_names
=yes
9048 # Test for long file names in all the places we know might matter:
9049 # . the current directory, where building will happen
9050 # $prefix/lib where we will be installing things
9051 # $exec_prefix/lib likewise
9052 # $TMPDIR if set, where it might want to write temporary files
9053 # /tmp where it might want to write temporary files
9056 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9057 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9058 # in the usual case where exec_prefix is '${prefix}'.
9060 . |
/* | ?
:[\\/]*) ;; #(
9063 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9064 ac_xdir
=$ac_dir/cf$$
9065 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9066 ac_tf1
=$ac_xdir/conftest9012345
9067 ac_tf2
=$ac_xdir/conftest9012346
9068 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9069 ac_cv_sys_long_file_names
=no
9070 rm -f -r "$ac_xdir" 2>/dev
/null
9071 test $ac_cv_sys_long_file_names = no
&& break
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9075 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9076 if test $ac_cv_sys_long_file_names = yes; then
9078 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9083 #### Choose a window system.
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9086 $as_echo_n "checking for X... " >&6; }
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then :
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno
; then
9096 # The user explicitly disabled X.
9099 case $x_includes,$x_libraries in #(
9100 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9101 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes
=no ac_x_libraries
=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir
; then
9109 cat >Imakefile
<<'_ACEOF'
9111 @echo incroot='${INCROOT}'
9113 @echo usrlibdir='${USRLIBDIR}'
9115 @echo libdir='${LIBDIR}'
9117 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var
in incroot usrlibdir libdir
; do
9120 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension
in a so sl dylib la dll
; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir
=$ac_im_libdir; break
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr
/include
) ac_x_includes
= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9136 case $ac_im_usrlibdir in
9137 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9142 rm -f -r conftest.dir
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9160 /usr/local/X11/include
9161 /usr/local/X11R7/include
9162 /usr/local/X11R6/include
9163 /usr/local/X11R5/include
9164 /usr/local/X11R4/include
9166 /usr/local/include/X11
9167 /usr/local/include/X11R7
9168 /usr/local/include/X11R6
9169 /usr/local/include/X11R5
9170 /usr/local/include/X11R4
9174 /usr/XFree86/include/X11
9178 /usr/unsupported/include
9180 /usr/local/x11r5/include
9181 /usr/lpp/Xamples/include
9183 /usr/openwin/include
9184 /usr/openwin/share/include'
9186 if test "$ac_x_includes" = no
; then
9187 # Guess where to find include files, by looking for Xlib.h.
9188 # First, try using that file with no special directory specified.
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9193 if ac_fn_c_try_cpp
"$LINENO"; then :
9194 # We can compile using X headers with no special include directory.
9197 for ac_dir
in $ac_x_header_dirs; do
9198 if test -r "$ac_dir/X11/Xlib.h"; then
9199 ac_x_includes
=$ac_dir
9204 rm -f conftest.err conftest.
$ac_ext
9205 fi # $ac_x_includes = no
9207 if test "$ac_x_libraries" = no
; then
9208 # Check for the libraries.
9209 # See if we find them without any special options.
9210 # Don't add to $LIBS permanently.
9213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <X11/Xlib.h>
9224 if ac_fn_c_try_link
"$LINENO"; then :
9226 # We can link X programs with no special library path.
9230 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9232 # Don't even attempt the hair of trying to link an X program!
9233 for ac_extension
in a so sl dylib la dll
; do
9234 if test -r "$ac_dir/libX11.$ac_extension"; then
9235 ac_x_libraries
=$ac_dir
9241 rm -f core conftest.err conftest.
$ac_objext \
9242 conftest
$ac_exeext conftest.
$ac_ext
9243 fi # $ac_x_libraries = no
9245 case $ac_x_includes,$ac_x_libraries in #(
9247 # Didn't find X, or a directory has "'" in its name.
9248 ac_cv_have_x
="have_x=no";; #(
9250 # Record where we found X for the cache.
9251 ac_cv_have_x
="have_x=yes\
9252 ac_x_includes='$ac_x_includes'\
9253 ac_x_libraries='$ac_x_libraries'"
9259 eval "$ac_cv_have_x"
9262 if test "$have_x" != yes; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9264 $as_echo "$have_x" >&6; }
9267 # If each of the values was on the command line, it overrides each guess.
9268 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9269 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9270 # Update the cache value to reflect the command line values.
9271 ac_cv_have_x
="have_x=yes\
9272 ac_x_includes='$x_includes'\
9273 ac_x_libraries='$x_libraries'"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9275 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9278 if test "$no_x" = yes; then
9284 LD_SWITCH_X_SITE_RPATH
=
9285 if test "${x_libraries}" != NONE
; then
9286 if test -n "${x_libraries}"; then
9287 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9288 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9290 x_default_search_path
=""
9291 x_search_path
=${x_libraries}
9292 if test -z "${x_search_path}"; then
9293 x_search_path
=/usr
/lib
9295 for x_library
in `echo ${x_search_path}: | \
9296 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9298 ${x_library}/X11/%L/%T/%N%C%S:\
9299 ${x_library}/X11/%l/%T/%N%C%S:\
9300 ${x_library}/X11/%T/%N%C%S:\
9301 ${x_library}/X11/%L/%T/%N%S:\
9302 ${x_library}/X11/%l/%T/%N%S:\
9303 ${x_library}/X11/%T/%N%S"
9304 if test x
"${x_default_search_path}" = x
; then
9305 x_default_search_path
=${x_search_path}
9307 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9313 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9314 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9317 if test x
"${x_includes}" = x
; then
9318 bitmapdir
=/usr
/include
/X11
/bitmaps
9320 # accumulate include directories that have X11 bitmap subdirectories
9322 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9323 if test -d "${bmd}/X11/bitmaps"; then
9324 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9326 if test -d "${bmd}/bitmaps"; then
9327 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9330 if test ${bmd_acc} != "dummyval"; then
9331 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9338 tmp_CPPFLAGS
="$CPPFLAGS"
9339 tmp_CFLAGS
="$CFLAGS"
9340 CPPFLAGS
="$CPPFLAGS -x objective-c"
9341 CFLAGS
="$CFLAGS -x objective-c"
9342 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9344 if test "${with_ns}" != no
; then
9345 if test "${opsys}" = darwin
; then
9347 ns_appdir
=`pwd`/nextstep
/Emacs.app
9348 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9349 ns_appresdir
=${ns_appdir}/Contents
/Resources
9350 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9351 elif test -f $GNUSTEP_CONFIG_FILE; then
9353 ns_appdir
=`pwd`/nextstep
/Emacs.app
9354 ns_appbindir
=${ns_appdir}
9355 ns_appresdir
=${ns_appdir}/Resources
9356 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9357 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9358 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9359 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9360 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9361 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9362 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9363 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9364 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9365 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9366 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9367 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9372 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9373 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #include <GNUstepBase/GSConfig.h>
9382 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9391 if ac_fn_c_try_compile
"$LINENO"; then :
9392 emacs_cv_objc_exceptions
=yes
9394 emacs_cv_objc_exceptions
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9399 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9400 if test $emacs_cv_objc_exceptions = yes; then
9402 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9404 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9408 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9410 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9411 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9414 as_fn_error
"\`--with-ns' was specified, but the include
9415 files are missing or cannot be compiled." "$LINENO" 5
9419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #include <Foundation/NSObjCRuntime.h>
9430 if ac_fn_c_try_compile
"$LINENO"; then :
9431 ns_have_nsinteger
=yes
9433 ns_have_nsinteger
=no
9435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9436 if test $ns_have_nsinteger = yes; then
9438 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9444 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9445 ns_self_contained
=no
9449 if test "${HAVE_NS}" = yes; then
9450 if test "$with_toolkit_scroll_bars" = "no"; then
9451 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9454 window_system
=nextstep
9456 # set up packaging dirs
9457 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9458 ns_self_contained
=yes
9459 prefix
=${ns_appresdir}
9460 exec_prefix
=${ns_appbindir}
9461 libexecdir
="\${ns_appbindir}/libexec"
9462 archlibdir
="\${ns_appbindir}/libexec"
9463 docdir
="\${ns_appresdir}/etc"
9464 etcdir
="\${ns_appresdir}/etc"
9465 infodir
="\${ns_appresdir}/info"
9466 mandir
="\${ns_appresdir}/man"
9467 lispdir
="\${ns_appresdir}/lisp"
9468 leimdir
="\${ns_appresdir}/leim"
9469 INSTALL_ARCH_INDEP_EXTRA
=
9471 ns_frag
=$srcdir/src
/ns.mk
9472 NS_OBJ
="fontset.o fringe.o image.o"
9473 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9475 CFLAGS
="$tmp_CFLAGS"
9476 CPPFLAGS
="$tmp_CPPFLAGS"
9484 case "${window_system}" in
9488 case "${with_x_toolkit}" in
9489 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9490 motif
) USE_X_TOOLKIT
=MOTIF
;;
9492 USE_X_TOOLKIT
=none
;;
9493 gtk3
) with_gtk3
=yes
9494 USE_X_TOOLKIT
=none
;;
9495 no
) USE_X_TOOLKIT
=none
;;
9496 * ) USE_X_TOOLKIT
=maybe
;;
9506 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9507 # Extract the first word of "X", so it can be a program name with args.
9508 set dummy X
; ac_word
=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9514 if test -n "$HAVE_XSERVER"; then
9515 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9521 test -z "$as_dir" && as_dir
=.
9522 for ac_exec_ext
in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_prog_HAVE_XSERVER
="true"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9535 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9536 if test -n "$HAVE_XSERVER"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9538 $as_echo "$HAVE_XSERVER" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9545 if test "$HAVE_XSERVER" = true ||
9546 test -n "$DISPLAY" ||
9547 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9548 as_fn_error
"You seem to be running X, but no X development libraries
9549 were found. You should install the relevant development files for X
9550 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9551 sure you have development files for image handling, i.e.
9552 tiff, gif, jpeg, png and xpm.
9553 If you are sure you want Emacs compiled without X window support, pass
9555 to configure." "$LINENO" 5
9559 ### If we're using X11, we should use the X menu package.
9562 yes ) HAVE_MENUS
=yes ;;
9565 # Does the opsystem file prohibit the use of the GNU malloc?
9566 # Assume not, until told otherwise.
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9570 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9571 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9577 static void hook (void) {}
9581 malloc_set_state (malloc_get_state ());
9582 __after_morecore_hook = hook;
9583 __malloc_initialize_hook = hook;
9588 if ac_fn_c_try_link
"$LINENO"; then :
9589 emacs_cv_var_doug_lea_malloc
=yes
9591 emacs_cv_var_doug_lea_malloc
=no
9593 rm -f core conftest.err conftest.
$ac_objext \
9594 conftest
$ac_exeext conftest.
$ac_ext
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9597 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9598 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9603 ## darwin ld insists on the use of malloc routines in the System framework.
9604 darwin|sol2-10
) system_malloc
=yes ;;
9607 if test "${system_malloc}" = "yes"; then
9609 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9613 (The GNU allocators don't work with this system configuration.)"
9617 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9618 VMLIMIT_OBJ
=vm-limit.o
9623 if test "$doug_lea_malloc" = "yes" ; then
9624 if test "$GNU_MALLOC" = yes ; then
9626 (Using Doug Lea's new malloc from the GNU C Library.)"
9629 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9632 ## Use mmap directly for allocating larger buffers.
9633 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9634 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9635 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9637 gnu
*) REL_ALLOC
=no
;;
9641 if test x
"${REL_ALLOC}" = x
; then
9642 REL_ALLOC
=${GNU_MALLOC}
9645 use_mmap_for_buffers
=no
9647 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9657 for ac_func
in getpagesize
9659 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9660 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9661 cat >>confdefs.h
<<_ACEOF
9662 #define HAVE_GETPAGESIZE 1
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9669 $as_echo_n "checking for working mmap... " >&6; }
9670 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 if test "$cross_compiling" = yes; then :
9674 ac_cv_func_mmap_fixed_mapped
=no
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 /* malloc might have been renamed as rpl_malloc. */
9682 /* Thanks to Mike Haertel and Jim Avera for this test.
9683 Here is a matrix of mmap possibilities:
9684 mmap private not fixed
9685 mmap private fixed at somewhere currently unmapped
9686 mmap private fixed at somewhere already mapped
9687 mmap shared not fixed
9688 mmap shared fixed at somewhere currently unmapped
9689 mmap shared fixed at somewhere already mapped
9690 For private mappings, we should verify that changes cannot be read()
9691 back from the file, nor mmap's back from the file at a different
9692 address. (There have been systems where private was not correctly
9693 implemented like the infamous i386 svr4.0, and systems where the
9694 VM page cache was not coherent with the file system buffer cache
9695 like early versions of FreeBSD and possibly contemporary NetBSD.)
9696 For shared mappings, we should conversely verify that changes get
9697 propagated back to all the places they're supposed to be.
9699 Grep wants private fixed already mapped.
9700 The main things grep needs to know about mmap are:
9701 * does it exist and is it safe to write into the mmap'd area
9702 * how to use it (BSD variants) */
9705 #include <sys/mman.h>
9707 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9711 /* This mess was copied from the GNU getpagesize.h. */
9712 #ifndef HAVE_GETPAGESIZE
9713 # ifdef _SC_PAGESIZE
9714 # define getpagesize() sysconf(_SC_PAGESIZE)
9715 # else /* no _SC_PAGESIZE */
9716 # ifdef HAVE_SYS_PARAM_H
9717 # include <sys/param.h>
9718 # ifdef EXEC_PAGESIZE
9719 # define getpagesize() EXEC_PAGESIZE
9720 # else /* no EXEC_PAGESIZE */
9722 # define getpagesize() NBPG * CLSIZE
9725 # endif /* no CLSIZE */
9726 # else /* no NBPG */
9728 # define getpagesize() NBPC
9729 # else /* no NBPC */
9731 # define getpagesize() PAGESIZE
9732 # endif /* PAGESIZE */
9733 # endif /* no NBPC */
9734 # endif /* no NBPG */
9735 # endif /* no EXEC_PAGESIZE */
9736 # else /* no HAVE_SYS_PARAM_H */
9737 # define getpagesize() 8192 /* punt totally */
9738 # endif /* no HAVE_SYS_PARAM_H */
9739 # endif /* no _SC_PAGESIZE */
9741 #endif /* no HAVE_GETPAGESIZE */
9746 char *data, *data2, *data3;
9751 pagesize = getpagesize ();
9753 /* First, make a file with some known garbage in it. */
9754 data = (char *) malloc (pagesize);
9757 for (i = 0; i < pagesize; ++i)
9758 *(data + i) = rand ();
9760 fd = creat ("conftest.mmap", 0600);
9763 if (write (fd, data, pagesize) != pagesize)
9767 /* Next, check that the tail of a page is zero-filled. File must have
9768 non-zero length, otherwise we risk SIGBUS for entire page. */
9769 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9773 if (write (fd2, cdata2, 1) != 1)
9775 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9776 if (data2 == MAP_FAILED)
9778 for (i = 0; i < pagesize; ++i)
9782 if (munmap (data2, pagesize))
9785 /* Next, try to mmap the file at a fixed address which already has
9786 something else allocated at it. If we can, also make sure that
9787 we see the same garbage. */
9788 fd = open ("conftest.mmap", O_RDWR);
9791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9794 for (i = 0; i < pagesize; ++i)
9795 if (*(data + i) != *(data2 + i))
9798 /* Finally, make sure that changes to the mapped area do not
9799 percolate back to the file as seen by read(). (This is a bug on
9800 some variants of i386 svr4.0.) */
9801 for (i = 0; i < pagesize; ++i)
9802 *(data2 + i) = *(data2 + i) + 1;
9803 data3 = (char *) malloc (pagesize);
9806 if (read (fd, data3, pagesize) != pagesize)
9808 for (i = 0; i < pagesize; ++i)
9809 if (*(data + i) != *(data3 + i))
9815 if ac_fn_c_try_run
"$LINENO"; then :
9816 ac_cv_func_mmap_fixed_mapped
=yes
9818 ac_cv_func_mmap_fixed_mapped
=no
9820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9826 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9829 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9832 rm -f conftest.mmap conftest.txt
9834 if test $use_mmap_for_buffers = yes; then
9836 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9841 LIBS
="$LIBS_SYSTEM $LIBS"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9844 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9845 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9848 ac_check_lib_save_LIBS
=$LIBS
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9863 return dnet_ntoa ();
9868 if ac_fn_c_try_link
"$LINENO"; then :
9869 ac_cv_lib_dnet_dnet_ntoa
=yes
9871 ac_cv_lib_dnet_dnet_ntoa
=no
9873 rm -f core conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9875 LIBS
=$ac_check_lib_save_LIBS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9878 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9879 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9880 cat >>confdefs.h
<<_ACEOF
9881 #define HAVE_LIBDNET 1
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9890 $as_echo_n "checking for main in -lXbsd... " >&6; }
9891 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_check_lib_save_LIBS
=$LIBS
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9908 if ac_fn_c_try_link
"$LINENO"; then :
9909 ac_cv_lib_Xbsd_main
=yes
9911 ac_cv_lib_Xbsd_main
=no
9913 rm -f core conftest.err conftest.
$ac_objext \
9914 conftest
$ac_exeext conftest.
$ac_ext
9915 LIBS
=$ac_check_lib_save_LIBS
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9918 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9919 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9920 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9928 if test "$ac_cv_header_pthread_h"; then
9929 if test "$GMALLOC_OBJ" = gmalloc.o
; then
9930 emacs_pthread_function
=pthread_atfork
9932 emacs_pthread_function
=pthread_self
9934 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9936 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9937 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9938 $as_echo_n "(cached) " >&6
9940 ac_check_lib_save_LIBS
=$LIBS
9941 LIBS
="-lpthread $LIBS"
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9951 char $emacs_pthread_function ();
9955 return $emacs_pthread_function ();
9960 if ac_fn_c_try_link
"$LINENO"; then :
9961 eval "$as_ac_Lib=yes"
9963 eval "$as_ac_Lib=no"
9965 rm -f core conftest.err conftest.
$ac_objext \
9966 conftest
$ac_exeext conftest.
$ac_ext
9967 LIBS
=$ac_check_lib_save_LIBS
9969 eval ac_res
=\$
$as_ac_Lib
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9971 $as_echo "$ac_res" >&6; }
9972 eval as_val
=\$
$as_ac_Lib
9973 if test "x$as_val" = x
""yes; then :
9978 if test "$HAVE_PTHREAD" = yes; then
9979 case "${canonical}" in
9981 *) LIB_PTHREAD
="-lpthread"
9982 LIBS
="$LIB_PTHREAD $LIBS" ;;
9985 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9991 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9992 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9995 ac_check_lib_save_LIBS
=$LIBS
9996 LIBS
="-lpthreads $LIBS"
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10010 return cma_open ();
10015 if ac_fn_c_try_link
"$LINENO"; then :
10016 ac_cv_lib_pthreads_cma_open
=yes
10018 ac_cv_lib_pthreads_cma_open
=no
10020 rm -f core conftest.err conftest.
$ac_objext \
10021 conftest
$ac_exeext conftest.
$ac_ext
10022 LIBS
=$ac_check_lib_save_LIBS
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10025 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10026 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10027 cat >>confdefs.h
<<_ACEOF
10028 #define HAVE_LIBPTHREADS 1
10031 LIBS
="-lpthreads $LIBS"
10036 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10037 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10038 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10039 ## added to LIBS in configure would never contain the pthreads part,
10040 ## but the value used in Makefiles might. FIXME?
10042 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10043 ## be harmless on older versions of X where it happens to exist.
10044 test "$opsys" = "aix4-2" && \
10045 test $ac_cv_lib_pthreads_cma_open = yes && \
10046 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10052 $as_echo_n "checking for -bbigtoc option... " >&6; }
10053 if test "${gdb_cv_bigtoc+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10058 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10059 *) gdb_cv_bigtoc
=-bbigtoc ;;
10062 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10074 if ac_fn_c_try_link
"$LINENO"; then :
10079 rm -f core conftest.err conftest.
$ac_objext \
10080 conftest
$ac_exeext conftest.
$ac_ext
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10084 $as_echo "$gdb_cv_bigtoc" >&6; }
10088 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10089 # used for the tests that follow. We set them back to REAL_CFLAGS and
10090 # REAL_CPPFLAGS later on.
10092 REAL_CFLAGS
="$CFLAGS"
10093 REAL_CPPFLAGS
="$CPPFLAGS"
10095 if test "${HAVE_X11}" = "yes"; then
10096 DEFS
="$C_SWITCH_X_SITE $DEFS"
10097 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10099 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10100 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10102 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10103 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10104 # but it's more convenient here to set LD_RUN_PATH since this
10105 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10106 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10107 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10111 if test "${opsys}" = "gnu-linux"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10113 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10120 XOpenDisplay ("foo");
10125 if ac_fn_c_try_link
"$LINENO"; then :
10126 xgnu_linux_first_failure
=no
10128 xgnu_linux_first_failure
=yes
10130 rm -f core conftest.err conftest.
$ac_objext \
10131 conftest
$ac_exeext conftest.
$ac_ext
10132 if test "${xgnu_linux_first_failure}" = "yes"; then
10133 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10134 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10135 OLD_CPPFLAGS
="$CPPFLAGS"
10137 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10138 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10139 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10140 LIBS
="$LIBS -b i486-linuxaout"
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10147 XOpenDisplay ("foo");
10152 if ac_fn_c_try_link
"$LINENO"; then :
10153 xgnu_linux_second_failure
=no
10155 xgnu_linux_second_failure
=yes
10157 rm -f core conftest.err conftest.
$ac_objext \
10158 conftest
$ac_exeext conftest.
$ac_ext
10159 if test "${xgnu_linux_second_failure}" = "yes"; then
10160 # If we get the same failure with -b, there is no use adding -b.
10161 # So take it out. This plays safe.
10162 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10163 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10164 CPPFLAGS
="$OLD_CPPFLAGS"
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10178 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10179 # header files included from there.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10181 $as_echo_n "checking for Xkb... " >&6; }
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 #include <X11/Xlib.h>
10185 #include <X11/XKBlib.h>
10189 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10194 if ac_fn_c_try_link
"$LINENO"; then :
10199 rm -f core conftest.err conftest.
$ac_objext \
10200 conftest
$ac_exeext conftest.
$ac_ext
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10202 $as_echo "$emacs_xkb" >&6; }
10203 if test $emacs_xkb = yes; then
10205 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10209 for ac_func
in XrmSetDatabase XScreenResourceString \
10210 XScreenNumberOfScreen
10212 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10213 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10214 eval as_val
=\$
$as_ac_var
10215 if test "x$as_val" = x
""yes; then :
10216 cat >>confdefs.h
<<_ACEOF
10217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225 if test "${window_system}" = "x11"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10227 $as_echo_n "checking X11 version 6... " >&6; }
10228 if test "${emacs_cv_x11_version_6+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 #include <X11/Xlib.h>
10237 #if XlibSpecificationRelease < 6
10245 if ac_fn_c_try_link
"$LINENO"; then :
10246 emacs_cv_x11_version_6
=yes
10248 emacs_cv_x11_version_6
=no
10250 rm -f core conftest.err conftest.
$ac_objext \
10251 conftest
$ac_exeext conftest.
$ac_ext
10254 if test $emacs_cv_x11_version_6 = yes; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10256 $as_echo "6 or newer" >&6; }
10258 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10261 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10263 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10268 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10274 $as_echo "before 6" >&6; }
10279 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10281 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10282 if test "${with_rsvg}" != "no"; then
10283 RSVG_REQUIRED
=2.11.0
10284 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10289 if test "$PKG_CONFIG" = "no" ; then
10292 PKG_CONFIG_MIN_VERSION
=0.9.0
10293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10295 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10297 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10298 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10299 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10306 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10307 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10309 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10316 ## If we have a custom action on failure, don't print errors, but
10317 ## do set a variable so people can do so.
10318 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10325 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10326 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10330 if test $succeeded = yes; then
10339 if test $HAVE_RSVG = yes; then
10341 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10343 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10344 LIBS
="$RSVG_LIBS $LIBS"
10349 HAVE_IMAGEMAGICK
=no
10350 if test "${HAVE_X11}" = "yes"; then
10351 if test "${with_imagemagick}" != "no"; then
10352 ## 6.2.8 is the earliest version known to work, but earlier versions
10353 ## might work - let us know if you find one.
10354 ## 6.0.7 does not work. See bug#7955.
10355 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10359 if test "$PKG_CONFIG" = "no" ; then
10362 PKG_CONFIG_MIN_VERSION
=0.9.0
10363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10365 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10367 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10368 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10369 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10376 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10377 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10379 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 IMAGEMAGICK_CFLAGS
=""
10385 IMAGEMAGICK_LIBS
=""
10386 ## If we have a custom action on failure, don't print errors, but
10387 ## do set a variable so people can do so.
10388 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10400 if test $succeeded = yes; then
10401 HAVE_IMAGEMAGICK
=yes
10409 if test $HAVE_IMAGEMAGICK = yes; then
10411 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10413 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10414 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10415 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10417 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10418 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10419 eval as_val
=\$
$as_ac_var
10420 if test "x$as_val" = x
""yes; then :
10421 cat >>confdefs.h
<<_ACEOF
10422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10435 if test "${with_gtk3}" = "yes"; then
10438 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10443 if test "$PKG_CONFIG" = "no" ; then
10446 PKG_CONFIG_MIN_VERSION
=0.9.0
10447 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10449 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10451 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10452 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10453 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10460 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10461 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10463 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10470 ## If we have a custom action on failure, don't print errors, but
10471 ## do set a variable so people can do so.
10472 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10484 if test $succeeded = yes; then
10490 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10491 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10494 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10496 GTK_OBJ
=emacsgtkfixed.o
10499 if test "$pkg_check_gtk" != "yes"; then
10501 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10504 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10509 if test "$PKG_CONFIG" = "no" ; then
10512 PKG_CONFIG_MIN_VERSION
=0.9.0
10513 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10515 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10517 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10518 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10519 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10526 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10527 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10529 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10536 ## If we have a custom action on failure, don't print errors, but
10537 ## do set a variable so people can do so.
10538 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10550 if test $succeeded = yes; then
10556 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10557 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10562 if test x
"$pkg_check_gtk" = xyes
; then
10566 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10567 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10568 LIBS
="$GTK_LIBS $LIBS"
10570 for ac_func
in gtk_main
10572 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10573 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10574 cat >>confdefs.h
<<_ACEOF
10575 #define HAVE_GTK_MAIN 1
10581 if test "${GTK_COMPILES}" != "yes"; then
10582 if test "$USE_X_TOOLKIT" != "maybe"; then
10583 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10588 $as_echo "#define USE_GTK 1" >>confdefs.h
10590 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10592 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10596 closing open displays. This is no problem if you just use
10597 one display, but if you use more than one and close one of them
10598 Emacs may crash." >&5
10599 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10600 closing open displays. This is no problem if you just use
10601 one display, but if you use more than one and close one of them
10602 Emacs may crash." >&2;}
10611 if test "${HAVE_GTK}" = "yes"; then
10613 if test "$with_toolkit_scroll_bars" != no
; then
10614 with_toolkit_scroll_bars
=yes
10617 HAVE_GTK_FILE_SELECTION
=no
10618 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10619 #include <gtk/gtk.h>
10621 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10622 HAVE_GTK_FILE_SELECTION
=yes
10624 HAVE_GTK_FILE_SELECTION
=no
10627 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10628 for ac_func
in gtk_file_selection_new
10630 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10631 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10632 cat >>confdefs.h
<<_ACEOF
10633 #define HAVE_GTK_FILE_SELECTION_NEW 1
10642 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10643 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10644 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10645 gtk_orientable_set_orientation \
10646 gtk_window_set_has_resize_grip
10648 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10649 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10650 eval as_val
=\$
$as_ac_var
10651 if test "x$as_val" = x
""yes; then :
10652 cat >>confdefs.h
<<_ACEOF
10653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10663 if test "${with_dbus}" = "yes"; then
10667 if test "$PKG_CONFIG" = "no" ; then
10670 PKG_CONFIG_MIN_VERSION
=0.9.0
10671 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10673 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10675 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10676 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10677 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10684 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10685 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10687 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10694 ## If we have a custom action on failure, don't print errors, but
10695 ## do set a variable so people can do so.
10696 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10703 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10704 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10708 if test $succeeded = yes; then
10714 if test "$HAVE_DBUS" = yes; then
10715 LIBS
="$LIBS $DBUS_LIBS"
10717 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10719 for ac_func
in dbus_watch_get_unix_fd \
10720 dbus_type_is_valid \
10721 dbus_validate_bus_name \
10722 dbus_validate_path \
10723 dbus_validate_interface \
10724 dbus_validate_member
10726 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10727 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10728 eval as_val
=\$
$as_ac_var
10729 if test "x$as_val" = x
""yes; then :
10730 cat >>confdefs.h
<<_ACEOF
10731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10737 DBUS_OBJ
=dbusbind.o
10743 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10747 if test "$PKG_CONFIG" = "no" ; then
10750 PKG_CONFIG_MIN_VERSION
=0.9.0
10751 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10753 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10755 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10756 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10757 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10764 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10765 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10767 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 GSETTINGS_CFLAGS
=""
10774 ## If we have a custom action on failure, don't print errors, but
10775 ## do set a variable so people can do so.
10776 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10788 if test $succeeded = yes; then
10794 if test "$HAVE_GSETTINGS" = "yes"; then
10796 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10798 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10799 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10804 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10808 if test "$PKG_CONFIG" = "no" ; then
10811 PKG_CONFIG_MIN_VERSION
=0.9.0
10812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10814 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10816 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10817 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10818 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10825 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10826 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10828 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10849 if test $succeeded = yes; then
10855 if test "$HAVE_GCONF" = yes; then
10857 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10859 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10860 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10864 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10865 SAVE_CFLAGS
="$CFLAGS"
10867 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
10868 LIBS
="$SETTINGS_LIBS $LIBS"
10869 for ac_func
in g_type_init
10871 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10872 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10873 cat >>confdefs.h
<<_ACEOF
10874 #define HAVE_G_TYPE_INIT 1
10880 CFLAGS
="$SAVE_CFLAGS"
10889 if test "${with_selinux}" = "yes"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10891 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10892 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 ac_check_lib_save_LIBS
=$LIBS
10896 LIBS
="-lselinux $LIBS"
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10906 char lgetfilecon ();
10910 return lgetfilecon ();
10915 if ac_fn_c_try_link
"$LINENO"; then :
10916 ac_cv_lib_selinux_lgetfilecon
=yes
10918 ac_cv_lib_selinux_lgetfilecon
=no
10920 rm -f core conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10922 LIBS
=$ac_check_lib_save_LIBS
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10925 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10926 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10927 HAVE_LIBSELINUX
=yes
10932 if test "$HAVE_LIBSELINUX" = yes; then
10934 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10936 LIBSELINUX_LIBS
=-lselinux
10942 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
10943 if test "${with_gnutls}" = "yes" ; then
10947 if test "$PKG_CONFIG" = "no" ; then
10950 PKG_CONFIG_MIN_VERSION
=0.9.0
10951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10953 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10955 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10956 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10957 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10964 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10965 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10967 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 LIBGNUTLS_CFLAGS
=""
10974 ## If we have a custom action on failure, don't print errors, but
10975 ## do set a variable so people can do so.
10976 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10988 if test $succeeded = yes; then
10994 if test "${HAVE_GNUTLS}" = "yes"; then
10996 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11000 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11001 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11002 for ac_func
in gnutls_certificate_set_verify_function
11004 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11005 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11006 cat >>confdefs.h
<<_ACEOF
11007 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11009 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11014 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11016 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11026 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11027 if test "$with_xaw3d" != no
; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11029 $as_echo_n "checking for xaw3d... " >&6; }
11030 if test "${emacs_cv_xaw3d+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 #include <X11/Intrinsic.h>
11037 #include <X11/Xaw3d/Simple.h>
11046 if ac_fn_c_try_link
"$LINENO"; then :
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11048 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11049 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11050 $as_echo_n "(cached) " >&6
11052 ac_check_lib_save_LIBS
=$LIBS
11053 LIBS
="-lXaw3d $LIBS"
11054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11063 char XawScrollbarSetThumb ();
11067 return XawScrollbarSetThumb ();
11072 if ac_fn_c_try_link
"$LINENO"; then :
11073 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11075 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11077 rm -f core conftest.err conftest.
$ac_objext \
11078 conftest
$ac_exeext conftest.
$ac_ext
11079 LIBS
=$ac_check_lib_save_LIBS
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11082 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11083 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11092 rm -f core conftest.err conftest.
$ac_objext \
11093 conftest
$ac_exeext conftest.
$ac_ext
11099 if test $emacs_cv_xaw3d = yes; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11101 $as_echo "yes; using Lucid toolkit" >&6; }
11102 USE_X_TOOLKIT
=LUCID
11106 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11112 $as_echo_n "checking for libXaw... " >&6; }
11113 if test "${emacs_cv_xaw+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 #include <X11/Intrinsic.h>
11120 #include <X11/Xaw/Simple.h>
11129 if ac_fn_c_try_link
"$LINENO"; then :
11134 rm -f core conftest.err conftest.
$ac_objext \
11135 conftest
$ac_exeext conftest.
$ac_ext
11138 if test $emacs_cv_xaw = yes; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11140 $as_echo "yes; using Lucid toolkit" >&6; }
11141 USE_X_TOOLKIT
=LUCID
11143 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11144 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11146 as_fn_error
"No X toolkit could be found.
11147 If you are sure you want Emacs compiled without an X toolkit, pass
11148 --with-x-toolkit=no
11149 to configure. Otherwise, install the development libraries for the toolkit
11150 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11155 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11158 if test "${USE_X_TOOLKIT}" != "none"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11160 $as_echo_n "checking X11 toolkit version... " >&6; }
11161 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 #include <X11/Intrinsic.h>
11170 #if XtSpecificationRelease < 6
11178 if ac_fn_c_try_link
"$LINENO"; then :
11179 emacs_cv_x11_toolkit_version_6
=yes
11181 emacs_cv_x11_toolkit_version_6
=no
11183 rm -f core conftest.err conftest.
$ac_objext \
11184 conftest
$ac_exeext conftest.
$ac_ext
11187 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11188 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11190 $as_echo "6 or newer" >&6; }
11192 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11194 LIBXTR6
="-lSM -lICE"
11196 ## Use libw.a along with X11R6 Xt.
11197 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11201 $as_echo "before 6" >&6; }
11205 if test x
$HAVE_X11XTR6 = xyes
; then
11206 LIBS
="-lXt -lSM -lICE $LIBS"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11211 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11212 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11215 ac_check_lib_save_LIBS
=$LIBS
11217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11226 char XmuConvertStandardSelection ();
11230 return XmuConvertStandardSelection ();
11235 if ac_fn_c_try_link
"$LINENO"; then :
11236 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11238 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11240 rm -f core conftest.err conftest.
$ac_objext \
11241 conftest
$ac_exeext conftest.
$ac_ext
11242 LIBS
=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11245 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11246 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11247 cat >>confdefs.h
<<_ACEOF
11248 #define HAVE_LIBXMU 1
11255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11261 ## These systems don't supply Xmu.
11263 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11268 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11269 if test "${HAVE_X11}" = "yes"; then
11270 if test "${USE_X_TOOLKIT}" != "none"; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11272 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11273 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS
=$LIBS
11277 LIBS
="-lXext $LIBS"
11278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11287 char XShapeQueryExtension ();
11291 return XShapeQueryExtension ();
11296 if ac_fn_c_try_link
"$LINENO"; then :
11297 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11299 ac_cv_lib_Xext_XShapeQueryExtension
=no
11301 rm -f core conftest.err conftest.
$ac_objext \
11302 conftest
$ac_exeext conftest.
$ac_ext
11303 LIBS
=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11306 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11307 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11308 cat >>confdefs.h
<<_ACEOF
11309 #define HAVE_LIBXEXT 1
11312 LIBS
="-lXext $LIBS"
11320 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11321 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11322 if test -d /usr
/include
/openmotif
; then
11323 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11324 emacs_cv_openmotif
=yes
11325 case "$canonical" in
11326 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11327 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11330 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11333 emacs_cv_openmotif
=no
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11336 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11337 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11346 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11349 Motif version prior to 2.1.
11355 if ac_fn_c_try_compile
"$LINENO"; then :
11356 emacs_cv_motif_version_2_1
=yes
11358 emacs_cv_motif_version_2_1
=no
11360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11363 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11364 if test $emacs_cv_motif_version_2_1 = yes; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11366 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11367 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11370 ac_check_lib_save_LIBS
=$LIBS
11372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11381 char XpCreateContext ();
11385 return XpCreateContext ();
11390 if ac_fn_c_try_link
"$LINENO"; then :
11391 ac_cv_lib_Xp_XpCreateContext
=yes
11393 ac_cv_lib_Xp_XpCreateContext
=no
11395 rm -f core conftest.err conftest.
$ac_objext \
11396 conftest
$ac_exeext conftest.
$ac_ext
11397 LIBS
=$ac_check_lib_save_LIBS
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11400 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11401 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11405 if test x
$emacs_cv_openmotif = xyes
; then
11406 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11410 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11411 if test "${emacs_cv_lesstif+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11414 # We put this in CFLAGS temporarily to precede other -I options
11415 # that might be in CFLAGS temporarily.
11416 # We put this in CPPFLAGS where it precedes the other -I options.
11417 OLD_CPPFLAGS
=$CPPFLAGS
11419 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11420 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11432 if ac_fn_c_try_compile
"$LINENO"; then :
11433 emacs_cv_lesstif
=yes
11435 emacs_cv_lesstif
=no
11437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11440 $as_echo "$emacs_cv_lesstif" >&6; }
11441 if test $emacs_cv_lesstif = yes; then
11442 # Make sure this -I option remains in CPPFLAGS after it is set
11443 # back to REAL_CPPFLAGS.
11444 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11445 # have those other -I options anyway. Ultimately, having this
11446 # directory ultimately in CPPFLAGS will be enough.
11447 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11448 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11451 CPPFLAGS
=$OLD_CPPFLAGS
11454 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11455 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11458 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11465 USE_TOOLKIT_SCROLL_BARS
=no
11466 if test "${with_toolkit_scroll_bars}" != "no"; then
11467 if test "${USE_X_TOOLKIT}" != "none"; then
11468 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11469 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11472 USE_TOOLKIT_SCROLL_BARS
=yes
11473 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11474 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11476 USE_TOOLKIT_SCROLL_BARS
=yes
11478 elif test "${HAVE_GTK}" = "yes"; then
11479 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11481 USE_TOOLKIT_SCROLL_BARS
=yes
11482 elif test "${HAVE_NS}" = "yes"; then
11483 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11485 USE_TOOLKIT_SCROLL_BARS
=yes
11489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11492 #include <X11/Xlib.h>
11493 #include <X11/Xresource.h>
11502 if ac_fn_c_try_compile
"$LINENO"; then :
11505 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11513 if test "${with_xim}" != "no"; then
11515 $as_echo "#define USE_XIM 1" >>confdefs.h
11520 if test "${HAVE_XIM}" != "no"; then
11521 late_CFLAGS
=$CFLAGS
11522 if test "$GCC" = yes; then
11523 CFLAGS
="$CFLAGS --pedantic-errors"
11525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11528 #include <X11/Xlib.h>
11529 #include <X11/Xresource.h>
11538 XPointer *client_data;
11540 /* If we're not using GCC, it's probably not XFree86, and this is
11541 probably right, but we can't use something like --pedantic-errors. */
11542 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11543 char*, XIMProc, XPointer*);
11545 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11551 if ac_fn_c_try_compile
"$LINENO"; then :
11552 emacs_cv_arg6_star
=yes
11554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11555 if test "$emacs_cv_arg6_star" = yes; then
11556 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11559 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11562 CFLAGS
=$late_CFLAGS
11565 ### Start of font-backend (under any platform) section.
11566 # (nothing here yet -- this is a placeholder)
11567 ### End of font-backend (under any platform) section.
11569 ### Start of font-backend (under X11) section.
11570 if test "${HAVE_X11}" = "yes"; then
11574 if test "$PKG_CONFIG" = "no" ; then
11577 PKG_CONFIG_MIN_VERSION
=0.9.0
11578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11580 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11582 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11583 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11584 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11591 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11592 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11594 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 FONTCONFIG_CFLAGS
=""
11601 ## If we have a custom action on failure, don't print errors, but
11602 ## do set a variable so people can do so.
11603 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11615 if test $succeeded = yes; then
11622 ## Use -lXft if available, unless `--with-xft=no'.
11624 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11627 if test "x${with_xft}" != "xno"; then
11632 if test "$PKG_CONFIG" = "no" ; then
11635 PKG_CONFIG_MIN_VERSION
=0.9.0
11636 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11638 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11640 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11641 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11642 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11649 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11650 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11652 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11659 ## If we have a custom action on failure, don't print errors, but
11660 ## do set a variable so people can do so.
11661 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11668 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11669 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11673 if test $succeeded = yes; then
11679 ## Because xftfont.c uses XRenderQueryExtension, we also
11680 ## need to link to -lXrender.
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11683 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11684 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11687 ac_check_lib_save_LIBS
=$LIBS
11688 LIBS
="-lXrender $LIBS"
11689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11698 char XRenderQueryExtension ();
11702 return XRenderQueryExtension ();
11707 if ac_fn_c_try_link
"$LINENO"; then :
11708 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11710 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11712 rm -f core conftest.err conftest.
$ac_objext \
11713 conftest
$ac_exeext conftest.
$ac_ext
11714 LIBS
=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11717 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11718 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11722 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11723 OLD_CPPFLAGS
="$CPPFLAGS"
11724 OLD_CFLAGS
="$CFLAGS"
11726 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11727 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11728 XFT_LIBS
="-lXrender $XFT_LIBS"
11729 LIBS
="$XFT_LIBS $LIBS"
11730 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11731 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11733 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11734 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11737 ac_check_lib_save_LIBS
=$LIBS
11738 LIBS
="-lXft $XFT_LIBS $LIBS"
11739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11748 char XftFontOpen ();
11752 return XftFontOpen ();
11757 if ac_fn_c_try_link
"$LINENO"; then :
11758 ac_cv_lib_Xft_XftFontOpen
=yes
11760 ac_cv_lib_Xft_XftFontOpen
=no
11762 rm -f core conftest.err conftest.
$ac_objext \
11763 conftest
$ac_exeext conftest.
$ac_ext
11764 LIBS
=$ac_check_lib_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11767 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11768 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11776 if test "${HAVE_XFT}" = "yes"; then
11778 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11781 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11783 CPPFLAGS
="$OLD_CPPFLAGS"
11784 CFLAGS
="$OLD_CFLAGS"
11786 fi # "${HAVE_XFT}" = "yes"
11787 fi # "$HAVE_XFT" != no
11788 fi # "x${with_xft}" != "xno"
11790 ## We used to allow building with FreeType and without Xft.
11791 ## However, the ftx font backend driver is not in good shape.
11792 if test "$HAVE_XFT" != "yes"; then
11799 if test "$PKG_CONFIG" = "no" ; then
11802 PKG_CONFIG_MIN_VERSION
=0.9.0
11803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11805 $as_echo_n "checking for freetype2... " >&6; }
11807 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11808 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11809 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11816 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11817 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11819 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11826 ## If we have a custom action on failure, don't print errors, but
11827 ## do set a variable so people can do so.
11828 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11835 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11836 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11840 if test $succeeded = yes; then
11847 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11851 if test "${HAVE_FREETYPE}" = "yes"; then
11853 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11855 if test "${with_libotf}" != "no"; then
11859 if test "$PKG_CONFIG" = "no" ; then
11862 PKG_CONFIG_MIN_VERSION
=0.9.0
11863 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11865 $as_echo_n "checking for libotf... " >&6; }
11867 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11868 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11869 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11876 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11877 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11879 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11886 ## If we have a custom action on failure, don't print errors, but
11887 ## do set a variable so people can do so.
11888 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11900 if test $succeeded = yes; then
11906 if test "$HAVE_LIBOTF" = "yes"; then
11908 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11911 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11912 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS
=$LIBS
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11926 char OTF_get_variation_glyphs ();
11930 return OTF_get_variation_glyphs ();
11935 if ac_fn_c_try_link
"$LINENO"; then :
11936 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11938 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11940 rm -f core conftest.err conftest.
$ac_objext \
11941 conftest
$ac_exeext conftest.
$ac_ext
11942 LIBS
=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11945 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11946 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11947 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11949 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11952 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11954 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11962 if test "${HAVE_LIBOTF}" = yes; then
11963 if test "${with_m17n_flt}" != "no"; then
11967 if test "$PKG_CONFIG" = "no" ; then
11970 PKG_CONFIG_MIN_VERSION
=0.9.0
11971 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11973 $as_echo_n "checking for m17n-flt... " >&6; }
11975 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11976 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11977 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11984 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11985 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11987 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11994 ## If we have a custom action on failure, don't print errors, but
11995 ## do set a variable so people can do so.
11996 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12008 if test $succeeded = yes; then
12014 if test "$HAVE_M17N_FLT" = "yes"; then
12016 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12028 ### End of font-backend (under X11) section.
12039 ### Use -lXpm if available, unless `--with-xpm=no'.
12042 if test "${HAVE_X11}" = "yes"; then
12043 if test "${with_xpm}" != "no"; then
12044 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12045 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12047 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12048 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12051 ac_check_lib_save_LIBS
=$LIBS
12052 LIBS
="-lXpm -lX11 $LIBS"
12053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12062 char XpmReadFileToPixmap ();
12066 return XpmReadFileToPixmap ();
12071 if ac_fn_c_try_link
"$LINENO"; then :
12072 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12074 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12076 rm -f core conftest.err conftest.
$ac_objext \
12077 conftest
$ac_exeext conftest.
$ac_ext
12078 LIBS
=$ac_check_lib_save_LIBS
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12081 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12082 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12089 if test "${HAVE_XPM}" = "yes"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12091 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 #include "X11/xpm.h"
12095 #ifndef XpmReturnAllocPixels
12096 no_return_alloc_pixels
12100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12109 if test "${HAVE_XPM}" = "yes"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12111 $as_echo "yes" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12119 if test "${HAVE_XPM}" = "yes"; then
12121 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12128 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12131 if test "${HAVE_X11}" = "yes"; then
12132 if test "${with_jpeg}" != "no"; then
12133 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12134 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12136 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12137 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12140 ac_check_lib_save_LIBS
=$LIBS
12141 LIBS
="-ljpeg $LIBS"
12142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12151 char jpeg_destroy_compress ();
12155 return jpeg_destroy_compress ();
12160 if ac_fn_c_try_link
"$LINENO"; then :
12161 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12163 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12165 rm -f core conftest.err conftest.
$ac_objext \
12166 conftest
$ac_exeext conftest.
$ac_ext
12167 LIBS
=$ac_check_lib_save_LIBS
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12170 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12171 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12180 if test "${HAVE_JPEG}" = "yes"; then
12181 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12185 #include <jpeglib.h>
12186 version=JPEG_LIB_VERSION
12189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12191 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12195 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12201 if test "${HAVE_JPEG}" = "yes"; then
12207 ### Use -lpng if available, unless `--with-png=no'.
12210 if test "${HAVE_X11}" = "yes"; then
12211 if test "${with_png}" != "no"; then
12212 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12213 # in /usr/include/libpng.
12214 for ac_header
in png.h libpng
/png.h
12216 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12218 eval as_val
=\$
$as_ac_Header
12219 if test "x$as_val" = x
""yes; then :
12220 cat >>confdefs.h
<<_ACEOF
12221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12230 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12231 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12234 ac_check_lib_save_LIBS
=$LIBS
12235 LIBS
="-lpng -lz -lm $LIBS"
12236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char png_get_channels ();
12249 return png_get_channels ();
12254 if ac_fn_c_try_link
"$LINENO"; then :
12255 ac_cv_lib_png_png_get_channels
=yes
12257 ac_cv_lib_png_png_get_channels
=no
12259 rm -f core conftest.err conftest.
$ac_objext \
12260 conftest
$ac_exeext conftest.
$ac_ext
12261 LIBS
=$ac_check_lib_save_LIBS
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12264 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12265 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12272 if test "${HAVE_PNG}" = "yes"; then
12274 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12276 LIBPNG
="-lpng -lz -lm"
12278 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12279 # include <libpng/png.h>
12285 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12289 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12297 ### Use -ltiff if available, unless `--with-tiff=no'.
12300 if test "${HAVE_X11}" = "yes"; then
12301 if test "${with_tiff}" != "no"; then
12302 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12303 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12305 # At least one tiff package requires the jpeg library.
12306 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12308 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12309 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12312 ac_check_lib_save_LIBS
=$LIBS
12313 LIBS
="-ltiff $tifflibs $LIBS"
12314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12317 /* Override any GCC internal prototype to avoid an error.
12318 Use char because int might match the return type of a GCC
12319 builtin and then its argument prototype would still apply. */
12323 char TIFFGetVersion ();
12327 return TIFFGetVersion ();
12332 if ac_fn_c_try_link
"$LINENO"; then :
12333 ac_cv_lib_tiff_TIFFGetVersion
=yes
12335 ac_cv_lib_tiff_TIFFGetVersion
=no
12337 rm -f core conftest.err conftest.
$ac_objext \
12338 conftest
$ac_exeext conftest.
$ac_ext
12339 LIBS
=$ac_check_lib_save_LIBS
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12342 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12343 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12352 if test "${HAVE_TIFF}" = "yes"; then
12354 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12361 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12364 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12365 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12366 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12367 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12368 # Earlier versions can crash Emacs.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12370 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12371 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 ac_check_lib_save_LIBS
=$LIBS
12376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12385 char EGifPutExtensionLast ();
12389 return EGifPutExtensionLast ();
12394 if ac_fn_c_try_link
"$LINENO"; then :
12395 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12397 ac_cv_lib_gif_EGifPutExtensionLast
=no
12399 rm -f core conftest.err conftest.
$ac_objext \
12400 conftest
$ac_exeext conftest.
$ac_ext
12401 LIBS
=$ac_check_lib_save_LIBS
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12404 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12405 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12415 if test "$HAVE_GIF" = yes; then
12417 elif test "$HAVE_GIF" = maybe
; then
12418 # If gif_lib.h but no libgif, try libungif.
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12420 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12421 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 ac_check_lib_save_LIBS
=$LIBS
12425 LIBS
="-lungif $LIBS"
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12429 /* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
12435 char EGifPutExtensionLast ();
12439 return EGifPutExtensionLast ();
12444 if ac_fn_c_try_link
"$LINENO"; then :
12445 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12447 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12449 rm -f core conftest.err conftest.
$ac_objext \
12450 conftest
$ac_exeext conftest.
$ac_ext
12451 LIBS
=$ac_check_lib_save_LIBS
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12454 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12455 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12461 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12464 if test "${HAVE_GIF}" = "yes"; then
12466 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12472 if test "${HAVE_X11}" = "yes"; then
12475 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12476 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12477 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12478 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12479 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12480 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12481 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12482 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12483 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12484 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12486 if test "X${MISSING}" != X
; then
12487 as_fn_error
"The following required libraries were not found:
12489 Maybe some development libraries/packages are missing?
12490 If you don't want to link with them give
12492 as options to configure" "$LINENO" 5
12496 ### Use -lgpm if available, unless `--with-gpm=no'.
12499 if test "${with_gpm}" != "no"; then
12500 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12501 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12503 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12504 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12507 ac_check_lib_save_LIBS
=$LIBS
12509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12522 return Gpm_Open ();
12527 if ac_fn_c_try_link
"$LINENO"; then :
12528 ac_cv_lib_gpm_Gpm_Open
=yes
12530 ac_cv_lib_gpm_Gpm_Open
=no
12532 rm -f core conftest.err conftest.
$ac_objext \
12533 conftest
$ac_exeext conftest.
$ac_ext
12534 LIBS
=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12537 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12538 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12546 if test "${HAVE_GPM}" = "yes"; then
12548 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12560 ### Use NeXTstep API to implement GUI.
12561 if test "${HAVE_NS}" = "yes"; then
12563 $as_echo "#define HAVE_NS 1" >>confdefs.h
12565 if test "${NS_IMPL_COCOA}" = "yes"; then
12567 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12570 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12572 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12574 # See also .m.o rule in Makefile.in */
12575 # FIXME: are all these flags really needed? Document here why. */
12576 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12577 ## Extra CFLAGS applied to src/*.m files.
12578 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"
12580 # We also have mouse menus.
12586 ### Use session management (-lSM -lICE) if available
12589 if test "${HAVE_X11}" = "yes"; then
12590 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12591 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12593 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12594 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12597 ac_check_lib_save_LIBS
=$LIBS
12598 LIBS
="-lSM -lICE $LIBS"
12599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12608 char SmcOpenConnection ();
12612 return SmcOpenConnection ();
12617 if ac_fn_c_try_link
"$LINENO"; then :
12618 ac_cv_lib_SM_SmcOpenConnection
=yes
12620 ac_cv_lib_SM_SmcOpenConnection
=no
12622 rm -f core conftest.err conftest.
$ac_objext \
12623 conftest
$ac_exeext conftest.
$ac_ext
12624 LIBS
=$ac_check_lib_save_LIBS
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12627 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12628 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12636 if test "${HAVE_X_SM}" = "yes"; then
12638 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12640 LIBXSM
="-lSM -lICE"
12643 *) LIBS
="$LIBXSM $LIBS" ;;
12649 ### Use libxml (-lxml2) if available
12651 if test "${with_xml2}" != "no"; then
12652 ### I'm not sure what the version number should be, so I just guessed.
12656 if test "$PKG_CONFIG" = "no" ; then
12659 PKG_CONFIG_MIN_VERSION
=0.9.0
12660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12662 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12664 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12665 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12666 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12673 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12674 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12676 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12683 ## If we have a custom action on failure, don't print errors, but
12684 ## do set a variable so people can do so.
12685 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12692 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12693 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12697 if test $succeeded = yes; then
12703 if test "${HAVE_LIBXML2}" = "yes"; then
12704 LIBS
="$LIBXML2_LIBS $LIBS"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12706 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12707 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12710 ac_check_lib_save_LIBS
=$LIBS
12711 LIBS
="-lxml2 $LIBS"
12712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12721 char htmlReadMemory ();
12725 return htmlReadMemory ();
12730 if ac_fn_c_try_link
"$LINENO"; then :
12731 ac_cv_lib_xml2_htmlReadMemory
=yes
12733 ac_cv_lib_xml2_htmlReadMemory
=no
12735 rm -f core conftest.err conftest.
$ac_objext \
12736 conftest
$ac_exeext conftest.
$ac_ext
12737 LIBS
=$ac_check_lib_save_LIBS
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12740 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12741 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12747 if test "${HAVE_LIBXML2}" = "yes"; then
12749 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12760 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12762 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12763 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12777 if ac_fn_c_try_link
"$LINENO"; then :
12778 emacs_cv_netdb_declares_h_errno
=yes
12780 emacs_cv_netdb_declares_h_errno
=no
12782 rm -f core conftest.err conftest.
$ac_objext \
12783 conftest
$ac_exeext conftest.
$ac_ext
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12786 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12787 if test $emacs_cv_netdb_declares_h_errno = yes; then
12789 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12793 # fmod, logb, and frexp are found in -lm on most systems.
12794 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12796 $as_echo_n "checking for sqrt in -lm... " >&6; }
12797 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_check_lib_save_LIBS
=$LIBS
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12820 if ac_fn_c_try_link
"$LINENO"; then :
12821 ac_cv_lib_m_sqrt
=yes
12823 ac_cv_lib_m_sqrt
=no
12825 rm -f core conftest.err conftest.
$ac_objext \
12826 conftest
$ac_exeext conftest.
$ac_ext
12827 LIBS
=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12830 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12831 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12832 cat >>confdefs.h
<<_ACEOF
12833 #define HAVE_LIBM 1
12841 # Check for mail-locking functions in a "mail" library. Probably this should
12842 # have the same check as for liblockfile below.
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12844 $as_echo_n "checking for maillock in -lmail... " >&6; }
12845 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_check_lib_save_LIBS
=$LIBS
12849 LIBS
="-lmail $LIBS"
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12863 return maillock ();
12868 if ac_fn_c_try_link
"$LINENO"; then :
12869 ac_cv_lib_mail_maillock
=yes
12871 ac_cv_lib_mail_maillock
=no
12873 rm -f core conftest.err conftest.
$ac_objext \
12874 conftest
$ac_exeext conftest.
$ac_ext
12875 LIBS
=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12878 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12879 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12885 if test $have_mail = yes; then
12887 LIBS
="$LIBS_MAIL $LIBS"
12889 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12895 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12896 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12900 LIBS
="-llockfile $LIBS"
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12914 return maillock ();
12919 if ac_fn_c_try_link
"$LINENO"; then :
12920 ac_cv_lib_lockfile_maillock
=yes
12922 ac_cv_lib_lockfile_maillock
=no
12924 rm -f core conftest.err conftest.
$ac_objext \
12925 conftest
$ac_exeext conftest.
$ac_ext
12926 LIBS
=$ac_check_lib_save_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12929 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12930 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12936 if test $have_lockfile = yes; then
12937 LIBS_MAIL
=-llockfile
12938 LIBS
="$LIBS_MAIL $LIBS"
12940 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12943 # If we have the shared liblockfile, assume we must use it for mail
12944 # locking (e.g. Debian). If we couldn't link against liblockfile
12945 # (no liblockfile.a installed), ensure that we don't need to.
12946 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12947 set dummy liblockfile.so
; ac_word
=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12953 if test -n "$liblockfile"; then
12954 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12957 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12958 for as_dir
in $as_dummy
12961 test -z "$as_dir" && as_dir
=.
12962 for ac_exec_ext
in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12964 ac_cv_prog_liblockfile
="yes"
12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12975 liblockfile
=$ac_cv_prog_liblockfile
12976 if test -n "$liblockfile"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12978 $as_echo "$liblockfile" >&6; }
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12985 if test $ac_cv_prog_liblockfile = yes; then
12986 as_fn_error
"Shared liblockfile found but can't link against it.
12987 This probably means that movemail could lose mail.
12988 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12996 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12997 ## interlock access to the mail spool. The alternative is a lock file named
12998 ## /usr/spool/mail/$USER.lock.
13001 aix4-2
) mail_lock
="lockf" ;;
13003 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13005 ## On GNU/Linux systems, both methods are used by various mail programs.
13006 ## I assume most people are using newer mailers that have heard of flock.
13007 ## Change this if you need to.
13008 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13009 ## configure gets the right answers, and that means *NOT* using flock.
13010 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13011 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13012 ## Debian maintainer hasn't provided a clean fix for Emacs.
13013 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13014 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13015 ## correct logic. -- fx
13016 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13017 ## liblockfile is a Free Software replacement for libmail, used on
13018 ## Debian systems and elsewhere. -rfr.
13021 if test $have_mail = yes ||
test $have_lockfile = yes; then
13022 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13028 case "$mail_lock" in
13030 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13034 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13037 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13042 for ac_func
in gethostname \
13043 closedir getrusage get_current_dir_name \
13044 lrand48 logb frexp fmod cbrt setsid \
13045 fpathconf
select euidaccess getpagesize setlocale \
13046 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13047 __fpending strsignal setitimer \
13048 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13049 gai_strerror mkstemp getline getdelim fsync sync \
13050 difftime posix_memalign \
13051 getpwent endpwent getgrent endgrent \
13053 cfmakeraw cfsetspeed copysign __executable_start
13055 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13057 eval as_val
=\$
$as_ac_var
13058 if test "x$as_val" = x
""yes; then :
13059 cat >>confdefs.h
<<_ACEOF
13060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13067 if test $opsys = unixware
; then
13069 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13072 for ac_func
in getwd
13074 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13075 if test "x$ac_cv_func_getwd" = x
""yes; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define HAVE_GETWD 1
13085 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13086 ## has a broken `rint' in some library versions including math library
13087 ## version number A.09.05.
13088 ## You can fix the math library by installing patch number PHSS_4630.
13089 ## But we can fix it more reliably for Emacs by just not using rint.
13090 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13093 *) for ac_func
in random rint
13095 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13096 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13097 eval as_val
=\$
$as_ac_var
13098 if test "x$as_val" = x
""yes; then :
13099 cat >>confdefs.h
<<_ACEOF
13100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13109 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13110 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13111 $as_echo_n "(cached) " >&6
13113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13119 __builtin_unwind_init ();
13124 if ac_fn_c_try_link
"$LINENO"; then :
13125 emacs_cv_func___builtin_unwind_init
=yes
13127 emacs_cv_func___builtin_unwind_init
=no
13129 rm -f core conftest.err conftest.
$ac_objext \
13130 conftest
$ac_exeext conftest.
$ac_ext
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13133 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13134 if test $emacs_cv_func___builtin_unwind_init = yes; then
13136 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13145 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13146 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 #include <sys/types.h> /* for off_t */
13157 int (*fp) (FILE *, off_t, int) = fseeko;
13158 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13163 if ac_fn_c_try_link
"$LINENO"; then :
13164 ac_cv_sys_largefile_source
=no
; break
13166 rm -f core conftest.err conftest.
$ac_objext \
13167 conftest
$ac_exeext conftest.
$ac_ext
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 #define _LARGEFILE_SOURCE 1
13171 #include <sys/types.h> /* for off_t */
13176 int (*fp) (FILE *, off_t, int) = fseeko;
13177 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13182 if ac_fn_c_try_link
"$LINENO"; then :
13183 ac_cv_sys_largefile_source
=1; break
13185 rm -f core conftest.err conftest.
$ac_objext \
13186 conftest
$ac_exeext conftest.
$ac_ext
13187 ac_cv_sys_largefile_source
=unknown
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13192 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13193 case $ac_cv_sys_largefile_source in #(
13196 cat >>confdefs.h
<<_ACEOF
13197 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13203 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13204 # in glibc 2.1.3, but that breaks too many other things.
13205 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13206 if test $ac_cv_sys_largefile_source != unknown
; then
13208 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13214 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13215 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 # Use it with a single arg.
13219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 $ac_includes_default
13230 if ac_fn_c_try_compile
"$LINENO"; then :
13231 ac_cv_func_getpgrp_void
=no
13233 ac_cv_func_getpgrp_void
=yes
13235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13239 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13240 if test $ac_cv_func_getpgrp_void = yes; then
13242 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13248 for ac_func
in grantpt
13250 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13251 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13252 cat >>confdefs.h
<<_ACEOF
13253 #define HAVE_GRANTPT 1
13260 # PTY-related GNU extensions.
13261 for ac_func
in getpt posix_openpt
13263 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13264 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13265 eval as_val
=\$
$as_ac_var
13266 if test "x$as_val" = x
""yes; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13275 # Check this now, so that we will NOT find the above functions in ncurses.
13276 # That is because we have not set up to link ncurses in lib-src.
13277 # It's better to believe a function is not available
13278 # than to expect to find it in ncurses.
13279 # Also we need tputs and friends to be able to build at all.
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13281 $as_echo_n "checking for library containing tputs... " >&6; }
13282 # Run a test program that contains a call to tputs, a call that is
13283 # never executed. This tests whether a pre-'main' dynamic linker
13284 # works with the library. It's too much trouble to actually call
13285 # tputs in the test program, due to portability hassles. When
13286 # cross-compiling, assume the test program will run if it links.
13288 # Maybe curses should be tried earlier?
13289 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13290 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13292 if test -z "$tputs_library"; then
13294 msg
='none required'
13296 LIBS_TERMCAP
=-l$tputs_library
13298 LIBS
="$LIBS_TERMCAP $LIBS"
13300 if test "$cross_compiling" = yes; then :
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13304 extern void tputs (const char *, int, int (*)(int));
13305 int main (int argc, char **argv)
13308 tputs (argv[0], 0, 0);
13313 if ac_fn_c_try_link
"$LINENO"; then :
13318 rm -f core conftest.err conftest.
$ac_objext \
13319 conftest
$ac_exeext conftest.
$ac_ext
13321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13324 extern void tputs (const char *, int, int (*)(int));
13325 int main (int argc, char **argv)
13328 tputs (argv[0], 0, 0);
13333 if ac_fn_c_try_run
"$LINENO"; then :
13338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13343 if test "X$msg" != Xno
; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13348 $as_echo "$msg" >&6; }
13349 if test "X$msg" = Xno
; then
13350 as_fn_error
"The required function \`tputs' was not found in any library.
13351 The following libraries were tried (in order):
13352 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13353 Please try installing whichever of these libraries is most appropriate
13354 for your system, together with its header files.
13355 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13358 ## Use termcap instead of terminfo?
13359 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13361 ## FIXME? In the cases below where we unconditionally set
13362 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13363 ## if that was found above to have tputs.
13364 ## Should we use the gnu* logic everywhere?
13366 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13367 ## The ncurses library has been moved out of the System framework in
13368 ## Mac OS X 10.2. So if configure detects it, set the command-line
13369 ## option to use it.
13370 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13372 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13376 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13377 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <osreldate.h>
13386 #if __FreeBSD_version < 400000
13394 if ac_fn_c_try_link
"$LINENO"; then :
13395 emacs_cv_freebsd_terminfo
=yes
13397 emacs_cv_freebsd_terminfo
=no
13399 rm -f core conftest.err conftest.
$ac_objext \
13400 conftest
$ac_exeext conftest.
$ac_ext
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13405 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13407 if test $emacs_cv_freebsd_terminfo = yes; then
13408 LIBS_TERMCAP
="-lncurses"
13411 LIBS_TERMCAP
="-ltermcap"
13416 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13418 LIBS_TERMCAP
="-ltermcap"
13422 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13424 ## hpux: Make sure we get select from libc rather than from libcurses
13425 ## because libcurses on HPUX 10.10 has a broken version of select.
13426 ## We used to use -lc -lcurses, but this may be cleaner.
13427 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13428 # set that way, now it uses the default). Isn't this a contradiction?
13429 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13433 TERMCAP_OBJ
=tparam.o
13434 if test $TERMINFO = yes; then
13436 $as_echo "#define TERMINFO 1" >>confdefs.h
13438 TERMCAP_OBJ
=terminfo.o
13444 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13445 # On Darwin, res_init appears not to be useful: see bug#562 and
13446 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13449 if test $opsys != darwin
; then
13451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13453 #include <netinet/in.h>
13454 #include <arpa/nameser.h>
13455 #include <resolv.h>
13464 if ac_fn_c_try_link
"$LINENO"; then :
13469 rm -f core conftest.err conftest.
$ac_objext \
13470 conftest
$ac_exeext conftest.
$ac_ext
13471 if test "$have_res_init" = no
; then
13473 LIBS
="$LIBS -lresolv"
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13475 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 #include <netinet/in.h>
13479 #include <arpa/nameser.h>
13480 #include <resolv.h>
13489 if ac_fn_c_try_link
"$LINENO"; then :
13494 rm -f core conftest.err conftest.
$ac_objext \
13495 conftest
$ac_exeext conftest.
$ac_ext
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13497 $as_echo "$have_res_init" >&6; }
13498 if test "$have_res_init" = yes ; then
13504 if test "$have_res_init" = yes; then
13506 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13510 # Do we need the Hesiod library to provide the support routines?
13512 if test "$with_hesiod" != no
; then
13513 # Don't set $LIBS here -- see comments above. FIXME which comments?
13514 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13515 if test "x$ac_cv_func_res_send" = x
""yes; then :
13518 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13519 if test "x$ac_cv_func___res_send" = x
""yes; then :
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13523 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13524 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13527 ac_check_lib_save_LIBS
=$LIBS
13528 LIBS
="-lresolv $LIBS"
13529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13542 return res_send ();
13547 if ac_fn_c_try_link
"$LINENO"; then :
13548 ac_cv_lib_resolv_res_send
=yes
13550 ac_cv_lib_resolv_res_send
=no
13552 rm -f core conftest.err conftest.
$ac_objext \
13553 conftest
$ac_exeext conftest.
$ac_ext
13554 LIBS
=$ac_check_lib_save_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13557 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13558 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13562 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13563 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13566 ac_check_lib_save_LIBS
=$LIBS
13567 LIBS
="-lresolv $LIBS"
13568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13577 char __res_send ();
13581 return __res_send ();
13586 if ac_fn_c_try_link
"$LINENO"; then :
13587 ac_cv_lib_resolv___res_send
=yes
13589 ac_cv_lib_resolv___res_send
=no
13591 rm -f core conftest.err conftest.
$ac_objext \
13592 conftest
$ac_exeext conftest.
$ac_ext
13593 LIBS
=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13596 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13597 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13607 if test "$resolv" = yes ; then
13612 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13613 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13617 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13618 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 ac_check_lib_save_LIBS
=$LIBS
13622 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13632 char hes_getmailhost ();
13636 return hes_getmailhost ();
13641 if ac_fn_c_try_link
"$LINENO"; then :
13642 ac_cv_lib_hesiod_hes_getmailhost
=yes
13644 ac_cv_lib_hesiod_hes_getmailhost
=no
13646 rm -f core conftest.err conftest.
$ac_objext \
13647 conftest
$ac_exeext conftest.
$ac_ext
13648 LIBS
=$ac_check_lib_save_LIBS
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13651 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13652 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13661 if test x
"$hesiod" = xyes
; then
13663 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13670 # Do we need libresolv (due to res_init or Hesiod)?
13671 if test "$resolv" = yes && test $opsys != darwin
; then
13673 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13681 # These tell us which Kerberos-related libraries to use.
13688 if test "${with_kerberos}" != no
; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13690 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13691 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13692 $as_echo_n "(cached) " >&6
13694 ac_check_lib_save_LIBS
=$LIBS
13695 LIBS
="-lcom_err $LIBS"
13696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13714 if ac_fn_c_try_link
"$LINENO"; then :
13715 ac_cv_lib_com_err_com_err
=yes
13717 ac_cv_lib_com_err_com_err
=no
13719 rm -f core conftest.err conftest.
$ac_objext \
13720 conftest
$ac_exeext conftest.
$ac_ext
13721 LIBS
=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13724 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13725 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13731 if test $have_com_err = yes; then
13732 COM_ERRLIB
=-lcom_err
13733 LIBS
="$COM_ERRLIB $LIBS"
13735 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13739 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13740 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13743 ac_check_lib_save_LIBS
=$LIBS
13744 LIBS
="-lcrypto $LIBS"
13745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13754 char mit_des_cbc_encrypt ();
13758 return mit_des_cbc_encrypt ();
13763 if ac_fn_c_try_link
"$LINENO"; then :
13764 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13766 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13768 rm -f core conftest.err conftest.
$ac_objext \
13769 conftest
$ac_exeext conftest.
$ac_ext
13770 LIBS
=$ac_check_lib_save_LIBS
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13773 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13774 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13780 if test $have_crypto = yes; then
13782 LIBS
="$CRYPTOLIB $LIBS"
13784 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13788 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13789 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13792 ac_check_lib_save_LIBS
=$LIBS
13793 LIBS
="-lk5crypto $LIBS"
13794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13797 /* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13803 char mit_des_cbc_encrypt ();
13807 return mit_des_cbc_encrypt ();
13812 if ac_fn_c_try_link
"$LINENO"; then :
13813 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13815 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13817 rm -f core conftest.err conftest.
$ac_objext \
13818 conftest
$ac_exeext conftest.
$ac_ext
13819 LIBS
=$ac_check_lib_save_LIBS
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13822 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13823 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13829 if test $have_k5crypto = yes; then
13830 CRYPTOLIB
=-lk5crypto
13831 LIBS
="$CRYPTOLIB $LIBS"
13833 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13837 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13838 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13839 $as_echo_n "(cached) " >&6
13841 ac_check_lib_save_LIBS
=$LIBS
13842 LIBS
="-lkrb5 $LIBS"
13843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13852 char krb5_init_context ();
13856 return krb5_init_context ();
13861 if ac_fn_c_try_link
"$LINENO"; then :
13862 ac_cv_lib_krb5_krb5_init_context
=yes
13864 ac_cv_lib_krb5_krb5_init_context
=no
13866 rm -f core conftest.err conftest.
$ac_objext \
13867 conftest
$ac_exeext conftest.
$ac_ext
13868 LIBS
=$ac_check_lib_save_LIBS
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13871 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13872 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13878 if test $have_krb5=yes; then
13880 LIBS
="$KRB5LIB $LIBS"
13882 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13885 if test "${with_kerberos5}" = no
; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13887 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13888 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13891 ac_check_lib_save_LIBS
=$LIBS
13892 LIBS
="-ldes425 $LIBS"
13893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13902 char des_cbc_encrypt ();
13906 return des_cbc_encrypt ();
13911 if ac_fn_c_try_link
"$LINENO"; then :
13912 ac_cv_lib_des425_des_cbc_encrypt
=yes
13914 ac_cv_lib_des425_des_cbc_encrypt
=no
13916 rm -f core conftest.err conftest.
$ac_objext \
13917 conftest
$ac_exeext conftest.
$ac_ext
13918 LIBS
=$ac_check_lib_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13921 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13922 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13928 if test $have_des425 = yes; then
13930 LIBS
="$DESLIB $LIBS"
13932 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13936 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13937 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13940 ac_check_lib_save_LIBS
=$LIBS
13942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13951 char des_cbc_encrypt ();
13955 return des_cbc_encrypt ();
13960 if ac_fn_c_try_link
"$LINENO"; then :
13961 ac_cv_lib_des_des_cbc_encrypt
=yes
13963 ac_cv_lib_des_des_cbc_encrypt
=no
13965 rm -f core conftest.err conftest.
$ac_objext \
13966 conftest
$ac_exeext conftest.
$ac_ext
13967 LIBS
=$ac_check_lib_save_LIBS
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13970 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13971 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13977 if test $have_des = yes; then
13979 LIBS
="$DESLIB $LIBS"
13981 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13986 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13987 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13990 ac_check_lib_save_LIBS
=$LIBS
13991 LIBS
="-lkrb4 $LIBS"
13992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13995 /* Override any GCC internal prototype to avoid an error.
13996 Use char because int might match the return type of a GCC
13997 builtin and then its argument prototype would still apply. */
14001 char krb_get_cred ();
14005 return krb_get_cred ();
14010 if ac_fn_c_try_link
"$LINENO"; then :
14011 ac_cv_lib_krb4_krb_get_cred
=yes
14013 ac_cv_lib_krb4_krb_get_cred
=no
14015 rm -f core conftest.err conftest.
$ac_objext \
14016 conftest
$ac_exeext conftest.
$ac_ext
14017 LIBS
=$ac_check_lib_save_LIBS
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14020 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14021 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14027 if test $have_krb4 = yes; then
14029 LIBS
="$KRB4LIB $LIBS"
14031 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14035 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14036 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14039 ac_check_lib_save_LIBS
=$LIBS
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14050 char krb_get_cred ();
14054 return krb_get_cred ();
14059 if ac_fn_c_try_link
"$LINENO"; then :
14060 ac_cv_lib_krb_krb_get_cred
=yes
14062 ac_cv_lib_krb_krb_get_cred
=no
14064 rm -f core conftest.err conftest.
$ac_objext \
14065 conftest
$ac_exeext conftest.
$ac_ext
14066 LIBS
=$ac_check_lib_save_LIBS
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14069 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14070 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14076 if test $have_krb = yes; then
14078 LIBS
="$KRB4LIB $LIBS"
14080 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14086 if test "${with_kerberos5}" != no
; then
14087 for ac_header
in krb5.h
14089 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14090 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14091 cat >>confdefs.h
<<_ACEOF
14092 #define HAVE_KRB5_H 1
14094 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14096 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14098 cat >>confdefs.h
<<_ACEOF
14099 #define HAVE_KRB5_ERROR_TEXT 1
14104 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14106 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14108 cat >>confdefs.h
<<_ACEOF
14109 #define HAVE_KRB5_ERROR_E_TEXT 1
14120 for ac_header
in des.h
14122 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14123 if test "x$ac_cv_header_des_h" = x
""yes; then :
14124 cat >>confdefs.h
<<_ACEOF
14125 #define HAVE_DES_H 1
14129 for ac_header
in kerberosIV
/des.h
14131 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14132 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14133 cat >>confdefs.h
<<_ACEOF
14134 #define HAVE_KERBEROSIV_DES_H 1
14138 for ac_header
in kerberos
/des.h
14140 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14141 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14142 cat >>confdefs.h
<<_ACEOF
14143 #define HAVE_KERBEROS_DES_H 1
14158 for ac_header
in krb.h
14160 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14161 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14162 cat >>confdefs.h
<<_ACEOF
14163 #define HAVE_KRB_H 1
14167 for ac_header
in kerberosIV
/krb.h
14169 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14170 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14171 cat >>confdefs.h
<<_ACEOF
14172 #define HAVE_KERBEROSIV_KRB_H 1
14176 for ac_header
in kerberos
/krb.h
14178 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14179 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14180 cat >>confdefs.h
<<_ACEOF
14181 #define HAVE_KERBEROS_KRB_H 1
14197 for ac_header
in com_err.h
14199 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14200 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14201 cat >>confdefs.h
<<_ACEOF
14202 #define HAVE_COM_ERR_H 1
14220 for ac_func
in $ac_func_list
14222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14223 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14224 eval as_val
=\$
$as_ac_var
14225 if test "x$as_val" = x
""yes; then :
14226 cat >>confdefs.h
<<_ACEOF
14227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14237 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14238 if test "${emacs_cv_localtime_cache+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14241 if test x
$ac_cv_func_tzset = xyes
; then
14242 if test "$cross_compiling" = yes; then :
14243 # If we have tzset, assume the worst when cross-compiling.
14244 emacs_cv_localtime_cache
=yes
14246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14249 char TZ_GMT0[] = "TZ=GMT0";
14250 char TZ_PST8[] = "TZ=PST8";
14253 time_t now = time ((time_t *) 0);
14254 int hour_GMT0, hour_unset;
14255 if (putenv (TZ_GMT0) != 0)
14257 hour_GMT0 = localtime (&now)->tm_hour;
14259 hour_unset = localtime (&now)->tm_hour;
14260 if (putenv (TZ_PST8) != 0)
14262 if (localtime (&now)->tm_hour == hour_GMT0)
14265 if (localtime (&now)->tm_hour != hour_unset)
14270 if ac_fn_c_try_run
"$LINENO"; then :
14271 emacs_cv_localtime_cache
=no
14273 emacs_cv_localtime_cache
=yes
14275 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14276 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14280 # If we lack tzset, report that localtime does not cache TZ,
14281 # since we can't invalidate the cache if we don't have tzset.
14282 emacs_cv_localtime_cache
=no
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14286 $as_echo "$emacs_cv_localtime_cache" >&6; }
14287 if test $emacs_cv_localtime_cache = yes; then
14289 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14294 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14295 if test "x$ac_cv_func_socket" = x
""yes; then :
14301 if test $ok_so_far = yes; then
14302 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14311 if test $ok_so_far = yes; then
14312 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14313 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14321 if test $ok_so_far = yes; then
14323 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14327 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14329 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14334 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14335 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14339 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14346 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14347 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14351 cat >>confdefs.h
<<_ACEOF
14357 for ac_header
in vfork.h
14359 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14360 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14361 cat >>confdefs.h
<<_ACEOF
14362 #define HAVE_VFORK_H 1
14369 for ac_func
in fork vfork
14371 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14372 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14373 eval as_val
=\$
$as_ac_var
14374 if test "x$as_val" = x
""yes; then :
14375 cat >>confdefs.h
<<_ACEOF
14376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14382 if test "x$ac_cv_func_fork" = xyes
; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14384 $as_echo_n "checking for working fork... " >&6; }
14385 if test "${ac_cv_func_fork_works+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14388 if test "$cross_compiling" = yes; then :
14389 ac_cv_func_fork_works
=cross
14391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 $ac_includes_default
14398 /* By Ruediger Kuhlmann. */
14399 return fork () < 0;
14405 if ac_fn_c_try_run
"$LINENO"; then :
14406 ac_cv_func_fork_works
=yes
14408 ac_cv_func_fork_works
=no
14410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14416 $as_echo "$ac_cv_func_fork_works" >&6; }
14419 ac_cv_func_fork_works
=$ac_cv_func_fork
14421 if test "x$ac_cv_func_fork_works" = xcross
; then
14423 *-*-amigaos* |
*-*-msdosdjgpp*)
14424 # Override, as these systems have only a dummy fork() stub
14425 ac_cv_func_fork_works
=no
14428 ac_cv_func_fork_works
=yes
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14432 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14434 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14435 if test "x$ac_cv_func_vfork" = xyes
; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14437 $as_echo_n "checking for working vfork... " >&6; }
14438 if test "${ac_cv_func_vfork_works+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14441 if test "$cross_compiling" = yes; then :
14442 ac_cv_func_vfork_works
=cross
14444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 /* Thanks to Paul Eggert for this test. */
14447 $ac_includes_default
14448 #include <sys/wait.h>
14449 #ifdef HAVE_VFORK_H
14450 # include <vfork.h>
14452 /* On some sparc systems, changes by the child to local and incoming
14453 argument registers are propagated back to the parent. The compiler
14454 is told about this with #include <vfork.h>, but some compilers
14455 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14456 static variable whose address is put into a register that is
14457 clobbered by the vfork. */
14460 sparc_address_test (int arg)
14462 sparc_address_test (arg) int arg;
14465 static pid_t child;
14483 pid_t parent = getpid ();
14486 sparc_address_test (0);
14491 /* Here is another test for sparc vfork register problems. This
14492 test uses lots of local variables, at least as many local
14493 variables as main has allocated so far including compiler
14494 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14495 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14496 reuse the register of parent for one of the local variables,
14497 since it will think that parent can't possibly be used any more
14498 in this routine. Assigning to the local variable will thus
14499 munge parent in the parent process. */
14501 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14502 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14503 /* Convince the compiler that p..p7 are live; otherwise, it might
14504 use the same hardware register for all 8 local variables. */
14505 if (p != p1 || p != p2 || p != p3 || p != p4
14506 || p != p5 || p != p6 || p != p7)
14509 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14510 from child file descriptors. If the child closes a descriptor
14511 before it execs or exits, this munges the parent's descriptor
14512 as well. Test for this by closing stdout in the child. */
14513 _exit(close(fileno(stdout)) != 0);
14518 while (wait(&status) != child)
14521 /* Was there some problem with vforking? */
14524 /* Did the child fail? (This shouldn't happen.) */
14527 /* Did the vfork/compiler bug occur? */
14528 || parent != getpid()
14530 /* Did the file descriptor bug occur? */
14531 || fstat(fileno(stdout), &st) != 0
14536 if ac_fn_c_try_run
"$LINENO"; then :
14537 ac_cv_func_vfork_works
=yes
14539 ac_cv_func_vfork_works
=no
14541 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14542 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14547 $as_echo "$ac_cv_func_vfork_works" >&6; }
14550 if test "x$ac_cv_func_fork_works" = xcross
; then
14551 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14553 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14556 if test "x$ac_cv_func_vfork_works" = xyes
; then
14558 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14562 $as_echo "#define vfork fork" >>confdefs.h
14565 if test "x$ac_cv_func_fork_works" = xyes
; then
14567 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14572 for ac_func
in snprintf
14574 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14575 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14576 cat >>confdefs.h
<<_ACEOF
14577 #define HAVE_SNPRINTF 1
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14585 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14586 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14587 $as_echo_n "(cached) " >&6
14589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 #include <langinfo.h>
14595 char* cs = nl_langinfo(CODESET);
14600 if ac_fn_c_try_link
"$LINENO"; then :
14601 emacs_cv_langinfo_codeset
=yes
14603 emacs_cv_langinfo_codeset
=no
14605 rm -f core conftest.err conftest.
$ac_objext \
14606 conftest
$ac_exeext conftest.
$ac_ext
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14610 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14611 if test $emacs_cv_langinfo_codeset = yes; then
14613 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14618 $as_echo_n "checking for mbstate_t... " >&6; }
14619 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14620 $as_echo_n "(cached) " >&6
14622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 # include <wchar.h>
14629 mbstate_t x; return sizeof x;
14634 if ac_fn_c_try_compile
"$LINENO"; then :
14635 ac_cv_type_mbstate_t
=yes
14637 ac_cv_type_mbstate_t
=no
14639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14642 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14643 if test $ac_cv_type_mbstate_t = yes; then
14645 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14649 $as_echo "#define mbstate_t int" >>confdefs.h
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14654 $as_echo_n "checking for C restricted array declarations... " >&6; }
14655 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 void fred (int x[__restrict]);
14669 if ac_fn_c_try_compile
"$LINENO"; then :
14670 emacs_cv_c_restrict_arr
=yes
14672 emacs_cv_c_restrict_arr
=no
14674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14677 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14678 if test "$emacs_cv_c_restrict_arr" = yes; then
14680 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14686 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14690 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14697 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14699 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14703 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14709 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14713 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14717 $as_echo "#define subprocesses 1" >>confdefs.h
14721 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14726 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14732 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14736 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14740 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14748 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14749 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14755 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14762 darwin | gnu | hpux
* |
*bsd
)
14764 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14768 irix6-5 | sol2
* | unixware
)
14770 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14777 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14779 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14785 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14788 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14791 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14794 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14798 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14804 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14810 $as_echo "#define NO_ABORT 1" >>confdefs.h
14818 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14824 darwin | freebsd | netbsd | openbsd
)
14826 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14832 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14833 *) sound_device
="/dev/dsp" ;;
14837 cat >>confdefs.h
<<_ACEOF
14838 #define DEFAULT_SOUND_DEVICE "$sound_device"
14844 darwin | gnu-linux | gnu-kfreebsd
)
14846 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14853 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14855 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14869 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14871 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14873 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14878 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14880 $as_echo "#define PTY_OPEN do { int dummy; SIGMASKTYPE mask; mask = sigblock (sigmask (SIGCHLD)); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; sigsetmask (mask); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
14882 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14884 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14889 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14891 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14893 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
14895 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14897 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14902 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14906 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
14907 if test "x$ac_cv_func_grantpt" = xyes
; then
14909 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
14911 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14913 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname; sigblock (sigmask (SIGCHLD)); if (grantpt (fd) == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname(fd))) { sigunblock (sigmask (SIGCHLD)); close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); sigunblock (sigmask (SIGCHLD)); }" >>confdefs.h
14915 if test "x$ac_cv_func_posix_openpt" = xyes
; then
14916 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
14918 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14920 elif test "x$ac_cv_func_getpt" = xyes
; then
14921 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
14923 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14926 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14930 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14936 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14938 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
14940 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
14945 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
14947 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
14949 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
14951 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14953 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14958 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock (sigmask (SIGCLD)); if (grantpt (fd) == -1) { emacs_close (fd); return -1; } sigunblock (sigmask (SIGCLD)); if (unlockpt (fd) == -1) { emacs_close (fd); return -1; } if (!(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
14963 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock(sigmask(SIGCLD)); if (grantpt(fd) == -1) fatal(\"could not grant slave pty\"); sigunblock(sigmask(SIGCLD)); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
14971 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
14973 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14976 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
14985 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
14986 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
14990 gnu-linux | gnu-kfreebsd
)
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
14993 $as_echo_n "checking for signals via characters... " >&6; }
14994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14997 #include <linux/version.h>
14998 #if LINUX_VERSION_CODE < 0x20400
14999 # error "Linux version too old"
15010 if ac_fn_c_try_cpp
"$LINENO"; then :
15011 emacs_signals_via_chars
=yes
15013 emacs_signals_via_chars
=no
15015 rm -f conftest.err conftest.
$ac_ext
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15018 $as_echo "$emacs_signals_via_chars" >&6; }
15019 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15028 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15032 #include <features.h>
15033 #ifndef __GNU_LIBRARY__
15034 # error "this is not the GNU C library"
15045 if ac_fn_c_try_cpp
"$LINENO"; then :
15050 rm -f conftest.err conftest.
$ac_ext
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15052 $as_echo "$emacs_glibc" >&6; }
15054 if test $emacs_glibc = yes; then
15056 emacs_pending_output
=unknown
15059 gnu | gnu-linux | gnu-kfreebsd
)
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15061 $as_echo_n "checking for style of pending output formalism... " >&6; }
15062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15066 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15067 # error "stdio definitions not found"
15078 if ac_fn_c_try_cpp
"$LINENO"; then :
15079 emacs_pending_output
=new
15081 rm -f conftest.err conftest.
$ac_ext
15083 if test $emacs_pending_output = unknown
; then
15085 gnu-linux | gnu-kfreebsd
)
15086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15091 # error "not using uclibc"
15102 if ac_fn_c_try_cpp
"$LINENO"; then :
15103 emacs_pending_output
=uclibc
15105 emacs_pending_output
=old
15107 rm -f conftest.err conftest.
$ac_ext
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15113 $as_echo "$emacs_pending_output" >&6; }
15115 case $emacs_pending_output in
15117 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15121 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15125 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15131 if test $emacs_pending_output = unknown
; then
15132 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15138 cygwin | darwin | freebsd | netbsd | openbsd
)
15139 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15144 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15149 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15150 test x
$ac_cv_func___fpending = xyes
; then
15151 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15154 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15157 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15169 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15174 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15176 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15180 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15182 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15192 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15195 gnu | freebsd | netbsd | openbsd
)
15197 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15199 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15203 gnu-linux | gnu-kfreebsd
)
15204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15219 if ac_fn_c_try_cpp
"$LINENO"; then :
15220 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15223 rm -f conftest.err conftest.
$ac_ext
15225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15240 if ac_fn_c_try_cpp
"$LINENO"; then :
15242 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15245 rm -f conftest.err conftest.
$ac_ext
15250 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15255 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15267 aix4-2 | hpux
* | unixware
)
15268 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15272 gnu-linux | gnu-kfreebsd
)
15273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15277 || defined __alpha__ || defined __mips__ || defined __s390__ \
15278 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15279 || defined __ia64__ || defined __sh__
15282 # error "setjmp not known to work on this arch"
15293 if ac_fn_c_try_cpp
"$LINENO"; then :
15294 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15297 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15300 rm -f conftest.err conftest.
$ac_ext
15305 if test x
$GCC = xyes
; then
15306 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15310 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15311 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15320 $as_echo "#define _setjmp setjmp" >>confdefs.h
15323 $as_echo "#define _longjmp longjmp" >>confdefs.h
15326 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15335 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15341 $as_echo "#define SIGNAL_H_AHB 1" >>confdefs.h
15357 $as_echo "#define USG /**/" >>confdefs.h
15359 $as_echo "#define USG5 /**/" >>confdefs.h
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15365 # error "_AIX not defined"
15376 if ac_fn_c_try_cpp
"$LINENO"; then :
15380 $as_echo "#define _AIX /**/" >>confdefs.h
15383 rm -f conftest.err conftest.
$ac_ext
15388 $as_echo "#define CYGWIN 1" >>confdefs.h
15393 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15395 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15398 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15403 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15406 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15410 gnu | netbsd | openbsd
)
15411 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15417 # error "BSD_SYSTEM not defined"
15428 if ac_fn_c_try_cpp
"$LINENO"; then :
15431 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15434 rm -f conftest.err conftest.
$ac_ext
15437 gnu-linux | gnu-kfreebsd
)
15438 $as_echo "#define USG /**/" >>confdefs.h
15441 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15446 $as_echo "#define USG /**/" >>confdefs.h
15448 $as_echo "#define USG5 /**/" >>confdefs.h
15451 $as_echo "#define HPUX /**/" >>confdefs.h
15456 $as_echo "#define USG /**/" >>confdefs.h
15458 $as_echo "#define USG5 /**/" >>confdefs.h
15460 $as_echo "#define USG5_4 /**/" >>confdefs.h
15463 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15468 $as_echo "#define USG /**/" >>confdefs.h
15470 $as_echo "#define USG5 /**/" >>confdefs.h
15472 $as_echo "#define USG5_4 /**/" >>confdefs.h
15475 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15480 $as_echo "#define USG /**/" >>confdefs.h
15482 $as_echo "#define USG5 /**/" >>confdefs.h
15484 $as_echo "#define USG5_4 /**/" >>confdefs.h
15493 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15499 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15502 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15508 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15511 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15517 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15522 # Set up the CFLAGS for real compilation, so we can substitute it.
15523 CFLAGS
="$REAL_CFLAGS"
15524 CPPFLAGS
="$REAL_CPPFLAGS"
15526 ## Hack to detect a buggy GCC version.
15527 if test "x$GCC" = xyes \
15528 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15529 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15530 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15531 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15534 version
=$PACKAGE_VERSION
15536 ### Specify what sort of things we'll be editing into Makefile and config.h.
15537 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15563 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15564 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15565 ## end of LIBX_BASE, but nothing ever set it.
15570 ## Used in lwlib/Makefile.in.
15580 cat >>confdefs.h
<<_ACEOF
15581 #define EMACS_CONFIGURATION "${canonical}"
15585 cat >>confdefs.h
<<_ACEOF
15586 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15594 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15596 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15599 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15601 if test "$HAVE_XFT" = "yes"; then
15602 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15603 elif test "$HAVE_FREETYPE" = "yes"; then
15604 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15614 if test "${USE_X_TOOLKIT}" != "none" ; then
15615 WIDGET_OBJ
=widget.o
15617 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15619 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15621 $as_echo "#define USE_LUCID 1" >>confdefs.h
15623 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15625 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15630 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15631 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15635 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15636 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15637 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15641 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15642 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15645 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15651 case "$USE_X_TOOLKIT" in
15652 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15653 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15654 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15658 if test "$USE_X_TOOLKIT" = "none"; then
15659 LIBXT_OTHER
="\$(LIBXSM)"
15660 OLDXMENU_TARGET
="really-oldXMenu"
15662 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15663 OLDXMENU_TARGET
="really-lwlib"
15667 ## The X Menu stuff is present in the X10 distribution, but missing
15668 ## from X11. If we have X10, just use the installed library;
15669 ## otherwise, use our own copy.
15670 if test "${HAVE_X11}" = "yes" ; then
15672 $as_echo "#define HAVE_X11 1" >>confdefs.h
15675 if test "$USE_X_TOOLKIT" = "none"; then
15676 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15678 OLDXMENU
="\${lwlibdir}/liblw.a"
15680 LIBXMENU
="\$(OLDXMENU)"
15681 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15682 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15684 ## For a syntactically valid Makefile; not actually used for anything.
15685 ## See comments in src/Makefile.in.
15687 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15688 if test "${HAVE_X_WINDOWS}" = "yes"; then
15697 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15710 if test "${HAVE_MENUS}" = "yes" ; then
15712 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15716 if test "${GNU_MALLOC}" = "yes" ; then
15718 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15723 if test "${REL_ALLOC}" = "yes" ; then
15725 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15728 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15732 if test "$opsys" = "cygwin"; then
15733 CYGWIN_OBJ
="sheap.o"
15734 ## Cygwin differs because of its unexec().
15736 POST_ALLOC_OBJ
=lastfile.o
15739 PRE_ALLOC_OBJ
=lastfile.o
15746 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15747 # it temporarily reverts them to their pre-pkg-config values,
15748 # because gnulib needs to work with both src (which uses the
15749 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15750 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15751 # and it therefore needs to run in an environment where LIBS does not
15752 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15753 # for some package unrelated to lib-src.
15754 SAVE_CFLAGS
=$CFLAGS
15756 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
15757 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15769 LIBC_FATAL_STDERR_
=1
15770 export LIBC_FATAL_STDERR_
15772 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15773 # for constant arguments. Useless!
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15775 $as_echo_n "checking for working alloca.h... " >&6; }
15776 if test "${ac_cv_working_alloca_h+set}" = set; then :
15777 $as_echo_n "(cached) " >&6
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <alloca.h>
15785 char *p = (char *) alloca (2 * sizeof (int));
15791 if ac_fn_c_try_link
"$LINENO"; then :
15792 ac_cv_working_alloca_h
=yes
15794 ac_cv_working_alloca_h
=no
15796 rm -f core conftest.err conftest.
$ac_objext \
15797 conftest
$ac_exeext conftest.
$ac_ext
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15800 $as_echo "$ac_cv_working_alloca_h" >&6; }
15801 if test $ac_cv_working_alloca_h = yes; then
15803 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15808 $as_echo_n "checking for alloca... " >&6; }
15809 if test "${ac_cv_func_alloca_works+set}" = set; then :
15810 $as_echo_n "(cached) " >&6
15812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15815 # define alloca __builtin_alloca
15818 # include <malloc.h>
15819 # define alloca _alloca
15821 # ifdef HAVE_ALLOCA_H
15822 # include <alloca.h>
15827 # ifndef alloca /* predefined by HP cc +Olibcalls */
15838 char *p = (char *) alloca (1);
15844 if ac_fn_c_try_link
"$LINENO"; then :
15845 ac_cv_func_alloca_works
=yes
15847 ac_cv_func_alloca_works
=no
15849 rm -f core conftest.err conftest.
$ac_objext \
15850 conftest
$ac_exeext conftest.
$ac_ext
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15853 $as_echo "$ac_cv_func_alloca_works" >&6; }
15855 if test $ac_cv_func_alloca_works = yes; then
15857 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15860 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15861 # that cause trouble. Some versions do not even contain alloca or
15862 # contain a buggy version. If you still want to use their alloca,
15863 # use ar to extract alloca.o from them instead of compiling alloca.c.
15869 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15871 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15875 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15876 if test "${ac_cv_os_cray+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881 #if defined CRAY && ! defined CRAY2
15888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15889 $EGREP "webecray" >/dev
/null
2>&1; then :
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15898 $as_echo "$ac_cv_os_cray" >&6; }
15899 if test $ac_cv_os_cray = yes; then
15900 for ac_func
in _getb67 GETB67 getb67
; do
15901 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15902 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15903 eval as_val
=\$
$as_ac_var
15904 if test "x$as_val" = x
""yes; then :
15906 cat >>confdefs.h
<<_ACEOF
15907 #define CRAY_STACKSEG_END $ac_func
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15917 $as_echo_n "checking stack direction for C alloca... " >&6; }
15918 if test "${ac_cv_c_stack_direction+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15921 if test "$cross_compiling" = yes; then :
15922 ac_cv_c_stack_direction
=0
15924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 $ac_includes_default
15928 find_stack_direction (int *addr, int depth)
15930 int dir, dummy = 0;
15933 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15934 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15935 return dir + dummy;
15939 main (int argc, char **argv)
15941 return find_stack_direction (0, argc + !argv + 20) < 0;
15944 if ac_fn_c_try_run
"$LINENO"; then :
15945 ac_cv_c_stack_direction
=1
15947 ac_cv_c_stack_direction
=-1
15949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15955 $as_echo "$ac_cv_c_stack_direction" >&6; }
15956 cat >>confdefs.h
<<_ACEOF
15957 #define STACK_DIRECTION $ac_cv_c_stack_direction
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15967 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15968 if test "${ac_cv_c_bigendian+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 ac_cv_c_bigendian
=unknown
15972 # See if we're dealing with a universal compiler.
15973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975 #ifndef __APPLE_CC__
15976 not a universal capable compiler
15981 if ac_fn_c_try_compile
"$LINENO"; then :
15983 # Check for potential -arch flags. It is not universal unless
15984 # there are at least two -arch flags with different values.
15987 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15988 if test -n "$ac_prev"; then
15990 i?
86 | x86_64 | ppc | ppc64
)
15991 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15994 ac_cv_c_bigendian
=universal
16000 elif test "x$ac_word" = "x-arch"; then
16005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16006 if test $ac_cv_c_bigendian = unknown
; then
16007 # See if sys/param.h defines the BYTE_ORDER macro.
16008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 #include <sys/types.h>
16011 #include <sys/param.h>
16016 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16017 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16019 bogus endian macros
16026 if ac_fn_c_try_compile
"$LINENO"; then :
16027 # It does; now see whether it defined to BIG_ENDIAN or not.
16028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 #include <sys/types.h>
16031 #include <sys/param.h>
16036 #if BYTE_ORDER != BIG_ENDIAN
16044 if ac_fn_c_try_compile
"$LINENO"; then :
16045 ac_cv_c_bigendian
=yes
16047 ac_cv_c_bigendian
=no
16049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16053 if test $ac_cv_c_bigendian = unknown
; then
16054 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <limits.h>
16062 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16063 bogus endian macros
16070 if ac_fn_c_try_compile
"$LINENO"; then :
16071 # It does; now see whether it defined to _BIG_ENDIAN or not.
16072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 #include <limits.h>
16079 #ifndef _BIG_ENDIAN
16087 if ac_fn_c_try_compile
"$LINENO"; then :
16088 ac_cv_c_bigendian
=yes
16090 ac_cv_c_bigendian
=no
16092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16096 if test $ac_cv_c_bigendian = unknown
; then
16097 # Compile a test program.
16098 if test "$cross_compiling" = yes; then :
16099 # Try to guess by grepping values from an object file.
16100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 short int ascii_mm[] =
16103 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16104 short int ascii_ii[] =
16105 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16106 int use_ascii (int i) {
16107 return ascii_mm[i] + ascii_ii[i];
16109 short int ebcdic_ii[] =
16110 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16111 short int ebcdic_mm[] =
16112 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16113 int use_ebcdic (int i) {
16114 return ebcdic_mm[i] + ebcdic_ii[i];
16121 return use_ascii (foo) == use_ebcdic (foo);
16126 if ac_fn_c_try_compile
"$LINENO"; then :
16127 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16128 ac_cv_c_bigendian
=yes
16130 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16131 if test "$ac_cv_c_bigendian" = unknown
; then
16132 ac_cv_c_bigendian
=no
16134 # finding both strings is unlikely to happen, but who knows?
16135 ac_cv_c_bigendian
=unknown
16139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 $ac_includes_default
16148 /* Are we little or big endian? From Harbison&Steele. */
16152 char c[sizeof (long int)];
16155 return u.c[sizeof (long int) - 1] == 1;
16161 if ac_fn_c_try_run
"$LINENO"; then :
16162 ac_cv_c_bigendian
=no
16164 ac_cv_c_bigendian
=yes
16166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16173 $as_echo "$ac_cv_c_bigendian" >&6; }
16174 case $ac_cv_c_bigendian in #(
16176 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16182 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16186 as_fn_error
"unknown endianness
16187 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16192 $as_echo_n "checking for inline... " >&6; }
16193 if test "${ac_cv_c_inline+set}" = set; then :
16194 $as_echo_n "(cached) " >&6
16197 for ac_kw
in inline __inline__ __inline
; do
16198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 #ifndef __cplusplus
16202 static $ac_kw foo_t static_foo () {return 0; }
16203 $ac_kw foo_t foo () {return 0; }
16207 if ac_fn_c_try_compile
"$LINENO"; then :
16208 ac_cv_c_inline
=$ac_kw
16210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16211 test "$ac_cv_c_inline" != no
&& break
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16216 $as_echo "$ac_cv_c_inline" >&6; }
16218 case $ac_cv_c_inline in
16221 case $ac_cv_c_inline in
16223 *) ac_val
=$ac_cv_c_inline;;
16225 cat >>confdefs.h
<<_ACEOF
16226 #ifndef __cplusplus
16227 #define inline $ac_val
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16235 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16236 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16237 $as_echo_n "(cached) " >&6
16239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 /* On HP-UX before 11.23, strtold returns a struct instead of
16242 long double. Reject implementations like that, by requiring
16243 compatibility with the C99 prototype. */
16244 #include <stdlib.h>
16245 static long double (*p) (char const *, char **) = strtold;
16247 test (char const *nptr, char **endptr)
16250 r = strtold (nptr, endptr);
16256 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16261 if ac_fn_c_try_link
"$LINENO"; then :
16262 gl_cv_func_c99_strtold
=yes
16264 gl_cv_func_c99_strtold
=no
16266 rm -f core conftest.err conftest.
$ac_objext \
16267 conftest
$ac_exeext conftest.
$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16270 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16271 if test $gl_cv_func_c99_strtold = yes; then
16273 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16285 GNULIB_EUIDACCESS
=0;
16286 GNULIB_FACCESSAT
=0;
16289 GNULIB_FDATASYNC
=0;
16291 GNULIB_FTRUNCATE
=0;
16293 GNULIB_GETDOMAINNAME
=0;
16294 GNULIB_GETDTABLESIZE
=0;
16295 GNULIB_GETGROUPS
=0;
16296 GNULIB_GETHOSTNAME
=0;
16298 GNULIB_GETLOGIN_R
=0;
16299 GNULIB_GETPAGESIZE
=0;
16300 GNULIB_GETUSERSHELL
=0;
16301 GNULIB_GROUP_MEMBER
=0;
16313 GNULIB_READLINKAT
=0;
16315 GNULIB_SETHOSTNAME
=0;
16318 GNULIB_SYMLINKAT
=0;
16319 GNULIB_TTYNAME_R
=0;
16320 GNULIB_UNISTD_H_NONBLOCKING
=0;
16321 GNULIB_UNISTD_H_SIGPIPE
=0;
16336 HAVE_GETDTABLESIZE
=1;
16338 HAVE_GETHOSTNAME
=1;
16340 HAVE_GETPAGESIZE
=1;
16341 HAVE_GROUP_MEMBER
=1;
16351 HAVE_SETHOSTNAME
=1;
16357 HAVE_DECL_ENVIRON
=1;
16358 HAVE_DECL_FCHDIR
=1;
16359 HAVE_DECL_FDATASYNC
=1;
16360 HAVE_DECL_GETDOMAINNAME
=1;
16361 HAVE_DECL_GETLOGIN_R
=1;
16362 HAVE_DECL_GETPAGESIZE
=1;
16363 HAVE_DECL_GETUSERSHELL
=1;
16364 HAVE_DECL_SETHOSTNAME
=1;
16365 HAVE_DECL_TTYNAME_R
=1;
16367 HAVE_SYS_PARAM_H
=0;
16372 REPLACE_FCHOWNAT
=0;
16373 REPLACE_FTRUNCATE
=0;
16375 REPLACE_GETDOMAINNAME
=0;
16376 REPLACE_GETLOGIN_R
=0;
16377 REPLACE_GETGROUPS
=0;
16378 REPLACE_GETPAGESIZE
=0;
16387 REPLACE_READLINK
=0;
16391 REPLACE_TTYNAME_R
=0;
16393 REPLACE_UNLINKAT
=0;
16396 UNISTD_H_HAVE_WINSOCK2_H
=0;
16397 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16408 $as_echo_n "checking if environ is properly declared... " >&6; }
16409 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16416 #include <unistd.h>
16418 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16419 #include <stdlib.h>
16421 extern struct { int foo; } environ;
16430 if ac_fn_c_try_compile
"$LINENO"; then :
16431 gt_cv_var_environ_declaration
=no
16433 gt_cv_var_environ_declaration
=yes
16435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16439 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16440 if test $gt_cv_var_environ_declaration = yes; then
16442 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16447 if test $gt_cv_var_environ_declaration != yes; then
16448 HAVE_DECL_ENVIRON
=0
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16456 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16457 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16458 $as_echo_n "(cached) " >&6
16460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h. */
16463 #include <sys/types.h>
16464 #include <sys/stat.h>
16468 struct stat s; s.st_dm_mode;
16473 if ac_fn_c_try_compile
"$LINENO"; then :
16474 ac_cv_struct_st_dm_mode
=yes
16476 ac_cv_struct_st_dm_mode
=no
16478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16481 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16483 if test $ac_cv_struct_st_dm_mode = yes; then
16485 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16490 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16491 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16497 cat >>confdefs.h
<<_ACEOF
16498 #define HAVE_DECL_STRMODE $ac_have_decl
16504 GNULIB_CALLOC_POSIX
=0;
16505 GNULIB_CANONICALIZE_FILE_NAME
=0;
16506 GNULIB_GETLOADAVG
=0;
16507 GNULIB_GETSUBOPT
=0;
16509 GNULIB_MALLOC_POSIX
=0;
16513 GNULIB_MKOSTEMPS
=0;
16516 GNULIB_POSIX_OPENPT
=0;
16518 GNULIB_PTSNAME_R
=0;
16522 GNULIB_REALLOC_POSIX
=0;
16529 GNULIB_SYSTEM_POSIX
=0;
16535 HAVE_CANONICALIZE_FILE_NAME
=1;
16536 HAVE_DECL_GETLOADAVG
=1;
16544 HAVE_POSIX_OPENPT
=1;
16553 HAVE_DECL_SETENV
=1;
16557 HAVE_STRUCT_RANDOM_DATA
=1;
16558 HAVE_SYS_LOADAVG_H
=0;
16560 HAVE_DECL_UNSETENV
=1;
16562 REPLACE_CANONICALIZE_FILE_NAME
=0;
16566 REPLACE_PTSNAME_R
=0;
16568 REPLACE_RANDOM_R
=0;
16570 REPLACE_REALPATH
=0;
16573 REPLACE_UNSETENV
=0;
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16579 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16580 if test "${gl_cv_have_include_next+set}" = set; then :
16581 $as_echo_n "(cached) " >&6
16583 rm -rf conftestd1a conftestd1b conftestd2
16584 mkdir conftestd1a conftestd1b conftestd2
16585 cat <<EOF > conftestd1a/conftest.h
16586 #define DEFINED_IN_CONFTESTD1
16587 #include_next <conftest.h>
16588 #ifdef DEFINED_IN_CONFTESTD2
16591 #error "include_next doesn't work"
16594 cat <<EOF > conftestd1b/conftest.h
16595 #define DEFINED_IN_CONFTESTD1
16597 #include_next <conftest.h>
16598 #ifdef DEFINED_IN_CONFTESTD2
16601 #error "include_next doesn't work"
16604 cat <<EOF > conftestd2/conftest.h
16605 #ifndef DEFINED_IN_CONFTESTD1
16606 #error "include_next test doesn't work"
16608 #define DEFINED_IN_CONFTESTD2
16610 gl_save_CPPFLAGS
="$CPPFLAGS"
16611 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16613 /* end confdefs.h. */
16614 #include <conftest.h>
16616 if ac_fn_c_try_compile
"$LINENO"; then :
16617 gl_cv_have_include_next
=yes
16619 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 #include <conftest.h>
16624 if ac_fn_c_try_compile
"$LINENO"; then :
16625 gl_cv_have_include_next
=buggy
16627 gl_cv_have_include_next
=no
16629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16633 CPPFLAGS
="$gl_save_CPPFLAGS"
16634 rm -rf conftestd1a conftestd1b conftestd2
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16638 $as_echo "$gl_cv_have_include_next" >&6; }
16639 PRAGMA_SYSTEM_HEADER
=
16640 if test $gl_cv_have_include_next = yes; then
16641 INCLUDE_NEXT
=include_next
16642 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16643 if test -n "$GCC"; then
16644 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16647 if test $gl_cv_have_include_next = buggy
; then
16648 INCLUDE_NEXT
=include
16649 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16651 INCLUDE_NEXT
=include
16652 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16659 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16660 if test "${gl_cv_pragma_columns+set}" = set; then :
16661 $as_echo_n "(cached) " >&6
16663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16672 $EGREP "choke me" >/dev
/null
2>&1; then :
16673 gl_cv_pragma_columns
=yes
16675 gl_cv_pragma_columns
=no
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16682 $as_echo "$gl_cv_pragma_columns" >&6; }
16683 if test $gl_cv_pragma_columns = yes; then
16684 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16705 if test $gl_cv_have_include_next = yes; then
16706 gl_cv_next_getopt_h
='<'getopt.h
'>'
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16709 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16710 if test "${gl_cv_next_getopt_h+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16714 if test $ac_cv_header_getopt_h = yes; then
16717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719 #include <getopt.h>
16723 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16724 *) gl_absname_cpp
="$ac_cpp" ;;
16729 gl_dirsep_regex
='[/\\]'
16732 gl_dirsep_regex
='\/'
16735 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16737 gl_header_literal_regex
=`echo 'getopt.h' \
16738 | sed -e "$gl_make_literal_regex_sed"`
16739 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16740 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16745 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16746 sed -n "$gl_absolute_header_sed"`'"'
16748 gl_cv_next_getopt_h
='<'getopt.h
'>'
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16754 $as_echo "$gl_cv_next_getopt_h" >&6; }
16756 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16758 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16760 gl_next_as_first_directive
='<'getopt.h
'>'
16762 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16763 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16765 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16770 if test $ac_cv_header_getopt_h = yes; then
16779 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16780 for ac_header
in getopt.h
16782 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16783 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16784 cat >>confdefs.h
<<_ACEOF
16785 #define HAVE_GETOPT_H 1
16789 gl_replace_getopt
=yes
16796 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16797 for ac_func
in getopt_long_only
16799 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16800 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16801 cat >>confdefs.h
<<_ACEOF
16802 #define HAVE_GETOPT_LONG_ONLY 1
16806 gl_replace_getopt
=yes
16812 if test -z "$gl_replace_getopt"; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16814 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16815 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16816 $as_echo_n "(cached) " >&6
16819 if test $cross_compiling = no
; then
16820 if test "$cross_compiling" = yes; then :
16821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16823 as_fn_error
"cannot run test program while cross compiling
16824 See \`config.log' for more details." "$LINENO" 5; }
16826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16829 #include <unistd.h>
16830 #include <stdlib.h>
16831 #include <string.h>
16836 static char program[] = "program";
16837 static char a[] = "-a";
16838 static char foo[] = "foo";
16839 static char bar[] = "bar";
16840 char *argv[] = { program, a, foo, bar, NULL };
16843 c = getopt (4, argv, "ab");
16846 c = getopt (4, argv, "ab");
16849 if (!(optind == 2))
16855 if ac_fn_c_try_run
"$LINENO"; then :
16856 gl_cv_func_getopt_posix
=maybe
16858 gl_cv_func_getopt_posix
=no
16860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16864 if test $gl_cv_func_getopt_posix = maybe
; then
16865 if test "$cross_compiling" = yes; then :
16866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16868 as_fn_error
"cannot run test program while cross compiling
16869 See \`config.log' for more details." "$LINENO" 5; }
16871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16874 #include <unistd.h>
16875 #include <stdlib.h>
16876 #include <string.h>
16881 static char program[] = "program";
16882 static char donald[] = "donald";
16883 static char p[] = "-p";
16884 static char billy[] = "billy";
16885 static char duck[] = "duck";
16886 static char a[] = "-a";
16887 static char bar[] = "bar";
16888 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16891 c = getopt (7, argv, "+abp:q:");
16894 if (!(strcmp (argv[0], "program") == 0))
16896 if (!(strcmp (argv[1], "donald") == 0))
16898 if (!(strcmp (argv[2], "-p") == 0))
16900 if (!(strcmp (argv[3], "billy") == 0))
16902 if (!(strcmp (argv[4], "duck") == 0))
16904 if (!(strcmp (argv[5], "-a") == 0))
16906 if (!(strcmp (argv[6], "bar") == 0))
16908 if (!(optind == 1))
16914 if ac_fn_c_try_run
"$LINENO"; then :
16915 gl_cv_func_getopt_posix
=maybe
16917 gl_cv_func_getopt_posix
=no
16919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16924 if test $gl_cv_func_getopt_posix = maybe
; then
16925 if test "$cross_compiling" = yes; then :
16926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16928 as_fn_error
"cannot run test program while cross compiling
16929 See \`config.log' for more details." "$LINENO" 5; }
16931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16934 #include <unistd.h>
16935 #include <stdlib.h>
16936 #include <string.h>
16941 static char program[] = "program";
16942 static char ab[] = "-ab";
16943 char *argv[3] = { program, ab, NULL };
16944 if (getopt (2, argv, "ab:") != 'a')
16946 if (getopt (2, argv, "ab:") != '?')
16956 if ac_fn_c_try_run
"$LINENO"; then :
16957 gl_cv_func_getopt_posix
=yes
16959 gl_cv_func_getopt_posix
=no
16961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16968 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16969 *) gl_cv_func_getopt_posix
="guessing yes";;
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16975 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16976 case "$gl_cv_func_getopt_posix" in
16977 *no
) gl_replace_getopt
=yes ;;
16981 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16983 $as_echo_n "checking for working GNU getopt function... " >&6; }
16984 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16987 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16988 # optstring is necessary for programs like m4 that have POSIX-mandated
16989 # semantics for supporting options interspersed with files.
16990 # Also, since getopt_long is a GNU extension, we require optind=0.
16991 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16992 # so take care to revert to the correct (non-)export state.
16993 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16994 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16995 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
16996 x
) gl_had_POSIXLY_CORRECT
=yes ;;
16997 *) gl_had_POSIXLY_CORRECT
= ;;
17000 export POSIXLY_CORRECT
17001 if test "$cross_compiling" = yes; then :
17002 gl_cv_func_getopt_gnu
="guessing no"
17005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 #include <getopt.h>
17008 #include <stddef.h>
17009 #include <string.h>
17011 #include <stdlib.h>
17012 #if defined __MACH__ && defined __APPLE__
17013 /* Avoid a crash on Mac OS X. */
17014 #include <mach/mach.h>
17015 #include <mach/mach_error.h>
17016 #include <mach/thread_status.h>
17017 #include <mach/exception.h>
17018 #include <mach/task.h>
17019 #include <pthread.h>
17020 /* The exception port on which our thread listens. */
17021 static mach_port_t our_exception_port;
17022 /* The main function of the thread listening for exceptions of type
17025 mach_exception_thread (void *arg)
17027 /* Buffer for a message to be received. */
17029 mach_msg_header_t head;
17030 mach_msg_body_t msgh_body;
17033 mach_msg_return_t retval;
17034 /* Wait for a message on the exception port. */
17035 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17036 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17037 if (retval != MACH_MSG_SUCCESS)
17042 nocrash_init (void)
17044 mach_port_t self = mach_task_self ();
17045 /* Allocate a port on which the thread shall listen for exceptions. */
17046 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17048 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17049 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17050 MACH_MSG_TYPE_MAKE_SEND)
17052 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17054 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17055 /* Create the thread listening on the exception port. */
17056 pthread_attr_t attr;
17058 if (pthread_attr_init (&attr) == 0
17059 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17060 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17061 pthread_attr_destroy (&attr);
17062 /* Replace the exception port info for these exceptions with our own.
17063 Note that we replace the exception port for the entire task, not only
17064 for a particular thread. This has the effect that when our exception
17065 port gets the message, the thread specific exception port has already
17066 been asked, and we don't need to bother about it.
17067 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17068 task_set_exception_ports (self, mask, our_exception_port,
17069 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17074 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17075 /* Avoid a crash on native Windows. */
17076 #define WIN32_LEAN_AND_MEAN
17077 #include <windows.h>
17078 #include <winerror.h>
17080 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17082 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17084 case EXCEPTION_ACCESS_VIOLATION:
17085 case EXCEPTION_IN_PAGE_ERROR:
17086 case EXCEPTION_STACK_OVERFLOW:
17087 case EXCEPTION_GUARD_PAGE:
17088 case EXCEPTION_PRIV_INSTRUCTION:
17089 case EXCEPTION_ILLEGAL_INSTRUCTION:
17090 case EXCEPTION_DATATYPE_MISALIGNMENT:
17091 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17092 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17095 return EXCEPTION_CONTINUE_SEARCH;
17098 nocrash_init (void)
17100 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17103 /* Avoid a crash on POSIX systems. */
17104 #include <signal.h>
17105 /* A POSIX signal handler. */
17107 exception_handler (int sig)
17112 nocrash_init (void)
17115 signal (SIGSEGV, exception_handler);
17118 signal (SIGBUS, exception_handler);
17132 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17133 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17134 OSF/1 5.1, Solaris 10. */
17136 static char conftest[] = "conftest";
17137 static char plus[] = "-+";
17138 char *argv[3] = { conftest, plus, NULL };
17140 if (getopt (2, argv, "+a") != '?')
17143 /* This code succeeds on glibc 2.8, mingw,
17144 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17145 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17147 static char program[] = "program";
17148 static char p[] = "-p";
17149 static char foo[] = "foo";
17150 static char bar[] = "bar";
17151 char *argv[] = { program, p, foo, bar, NULL };
17154 if (getopt (4, argv, "p::") != 'p')
17156 else if (optarg != NULL)
17158 else if (getopt (4, argv, "p::") != -1)
17160 else if (optind != 2)
17163 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17165 static char program[] = "program";
17166 static char foo[] = "foo";
17167 static char p[] = "-p";
17168 char *argv[] = { program, foo, p, NULL };
17170 if (getopt (3, argv, "-p") != 1)
17172 else if (getopt (3, argv, "-p") != 'p')
17175 /* This code fails on glibc 2.11. */
17177 static char program[] = "program";
17178 static char b[] = "-b";
17179 static char a[] = "-a";
17180 char *argv[] = { program, b, a, NULL };
17181 optind = opterr = 0;
17182 if (getopt (3, argv, "+:a:b") != 'b')
17184 else if (getopt (3, argv, "+:a:b") != ':')
17187 /* This code dumps core on glibc 2.14. */
17189 static char program[] = "program";
17190 static char w[] = "-W";
17191 static char dummy[] = "dummy";
17192 char *argv[] = { program, w, dummy, NULL };
17193 optind = opterr = 1;
17194 if (getopt (3, argv, "W;") != 'W')
17203 if ac_fn_c_try_run
"$LINENO"; then :
17204 gl_cv_func_getopt_gnu
=yes
17206 gl_cv_func_getopt_gnu
=no
17208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17212 case $gl_had_POSIXLY_CORRECT in
17214 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17215 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17220 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17221 if test "$gl_cv_func_getopt_gnu" != yes; then
17222 gl_replace_getopt
=yes
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17225 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17226 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17229 if test "$cross_compiling" = yes; then :
17231 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17232 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17238 #include <getopt.h>
17239 #include <stddef.h>
17240 #include <string.h>
17245 static const struct option long_options[] =
17247 { "xtremely-",no_argument, NULL, 1003 },
17248 { "xtra", no_argument, NULL, 1001 },
17249 { "xtreme", no_argument, NULL, 1002 },
17250 { "xtremely", no_argument, NULL, 1003 },
17251 { NULL, 0, NULL, 0 }
17253 /* This code fails on OpenBSD 5.0. */
17255 static char program[] = "program";
17256 static char xtremel[] = "--xtremel";
17257 char *argv[] = { program, xtremel, NULL };
17259 optind = 1; opterr = 0;
17260 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17269 if ac_fn_c_try_run
"$LINENO"; then :
17270 gl_cv_func_getopt_long_gnu
=yes
17272 gl_cv_func_getopt_long_gnu
=no
17274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17281 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17282 case "$gl_cv_func_getopt_long_gnu" in
17284 *) gl_replace_getopt
=yes ;;
17295 if test -n "$gl_replace_getopt"; then
17299 if test $REPLACE_GETOPT = 1; then
17303 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17309 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17310 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_DECL_GETENV $ac_have_decl
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17328 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17329 if test "${ac_cv_c_restrict+set}" = set; then :
17330 $as_echo_n "(cached) " >&6
17332 ac_cv_c_restrict
=no
17333 # The order here caters to the fact that C++ does not require restrict.
17334 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 typedef int * int_ptr;
17338 int foo (int_ptr $ac_kw ip) {
17345 int * $ac_kw t = s;
17352 if ac_fn_c_try_compile
"$LINENO"; then :
17353 ac_cv_c_restrict
=$ac_kw
17355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17356 test "$ac_cv_c_restrict" != no
&& break
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17361 $as_echo "$ac_cv_c_restrict" >&6; }
17363 case $ac_cv_c_restrict in
17365 no
) $as_echo "#define restrict /**/" >>confdefs.h
17367 *) cat >>confdefs.h
<<_ACEOF
17368 #define restrict $ac_cv_c_restrict
17374 GNULIB_GETTIMEOFDAY
=0;
17375 HAVE_GETTIMEOFDAY
=1;
17376 HAVE_STRUCT_TIMEVAL
=1;
17378 REPLACE_GETTIMEOFDAY
=0;
17379 REPLACE_STRUCT_TIMEVAL
=0;
17396 if test $gl_cv_have_include_next = yes; then
17397 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17400 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17401 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17402 $as_echo_n "(cached) " >&6
17405 if test $ac_cv_header_sys_time_h = yes; then
17408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 #include <sys/time.h>
17414 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17415 *) gl_absname_cpp
="$ac_cpp" ;;
17420 gl_dirsep_regex
='[/\\]'
17423 gl_dirsep_regex
='\/'
17426 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17428 gl_header_literal_regex
=`echo 'sys/time.h' \
17429 | sed -e "$gl_make_literal_regex_sed"`
17430 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17431 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17436 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17437 sed -n "$gl_absolute_header_sed"`'"'
17439 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17445 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17447 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17449 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17451 gl_next_as_first_directive
='<'sys
/time.h
'>'
17453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17454 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17456 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17462 if test $ac_cv_header_sys_time_h != yes; then
17470 if test $ac_cv_header_sys_socket_h != yes; then
17471 for ac_header
in winsock2.h
17473 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17474 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17475 cat >>confdefs.h
<<_ACEOF
17476 #define HAVE_WINSOCK2_H 1
17484 if test "$ac_cv_header_winsock2_h" = yes; then
17486 UNISTD_H_HAVE_WINSOCK2_H
=1
17487 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17494 $as_echo_n "checking for struct timeval... " >&6; }
17495 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17496 $as_echo_n "(cached) " >&6
17498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500 #if HAVE_SYS_TIME_H
17501 #include <sys/time.h>
17504 #if HAVE_WINSOCK2_H
17505 # include <winsock2.h>
17511 static struct timeval x; x.tv_sec = x.tv_usec;
17516 if ac_fn_c_try_compile
"$LINENO"; then :
17517 gl_cv_sys_struct_timeval
=yes
17519 gl_cv_sys_struct_timeval
=no
17521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17525 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17526 if test $gl_cv_sys_struct_timeval != yes; then
17527 HAVE_STRUCT_TIMEVAL
=0
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17530 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17531 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17532 $as_echo_n "(cached) " >&6
17534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #if HAVE_SYS_TIME_H
17537 #include <sys/time.h>
17540 #if HAVE_WINSOCK2_H
17541 # include <winsock2.h>
17547 static struct timeval x;
17548 typedef int verify_tv_sec_type[
17549 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17556 if ac_fn_c_try_compile
"$LINENO"; then :
17557 gl_cv_sys_struct_timeval_tv_sec
=yes
17559 gl_cv_sys_struct_timeval_tv_sec
=no
17561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17565 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17566 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17567 REPLACE_STRUCT_TIMEVAL
=1
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17578 $as_echo_n "checking for unsigned long long int... " >&6; }
17579 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17580 $as_echo_n "(cached) " >&6
17582 ac_cv_type_unsigned_long_long_int
=yes
17583 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h. */
17587 /* For now, do not test the preprocessor; as of 2007 there are too many
17588 implementations with broken preprocessors. Perhaps this can
17589 be revisited in 2012. In the meantime, code should not expect
17590 #if to work with literals wider than 32 bits. */
17591 /* Test literals. */
17592 long long int ll = 9223372036854775807ll;
17593 long long int nll = -9223372036854775807LL;
17594 unsigned long long int ull = 18446744073709551615ULL;
17595 /* Test constant expressions. */
17596 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17598 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17604 /* Test availability of runtime routines for shift and division. */
17605 long long int llmax = 9223372036854775807ll;
17606 unsigned long long int ullmax = 18446744073709551615ull;
17607 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17608 | (llmax / ll) | (llmax % ll)
17609 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17610 | (ullmax / ull) | (ullmax % ull));
17616 if ac_fn_c_try_link
"$LINENO"; then :
17619 ac_cv_type_unsigned_long_long_int
=no
17621 rm -f core conftest.err conftest.
$ac_objext \
17622 conftest
$ac_exeext conftest.
$ac_ext
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17626 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17627 if test $ac_cv_type_unsigned_long_long_int = yes; then
17629 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17636 $as_echo_n "checking for long long int... " >&6; }
17637 if test "${ac_cv_type_long_long_int+set}" = set; then :
17638 $as_echo_n "(cached) " >&6
17640 ac_cv_type_long_long_int
=yes
17641 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17642 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17643 if test $ac_cv_type_long_long_int = yes; then
17644 if test "$cross_compiling" = yes; then :
17647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17649 #include <limits.h>
17652 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17653 # define LLONG_MAX (HALF - 1 + HALF)
17658 long long int n = 1;
17662 long long int m = n << i;
17665 if (LLONG_MAX / 2 < m)
17673 if ac_fn_c_try_run
"$LINENO"; then :
17676 ac_cv_type_long_long_int
=no
17678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17686 $as_echo "$ac_cv_type_long_long_int" >&6; }
17687 if test $ac_cv_type_long_long_int = yes; then
17689 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17698 gl_cv_c_multiarch
=no
17699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 #ifndef __APPLE_CC__
17702 not a universal capable compiler
17707 if ac_fn_c_try_compile
"$LINENO"; then :
17711 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17712 if test -n "$prev"; then
17714 i?
86 | x86_64 | ppc | ppc64
)
17715 if test -z "$arch" ||
test "$arch" = "$word"; then
17718 gl_cv_c_multiarch
=yes
17724 if test "x$word" = "x-arch"; then
17731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17732 if test $gl_cv_c_multiarch = yes; then
17733 APPLE_UNIVERSAL_BUILD
=1
17735 APPLE_UNIVERSAL_BUILD
=0
17742 if test $ac_cv_type_long_long_int = yes; then
17743 HAVE_LONG_LONG_INT
=1
17745 HAVE_LONG_LONG_INT
=0
17749 if test $ac_cv_type_unsigned_long_long_int = yes; then
17750 HAVE_UNSIGNED_LONG_LONG_INT
=1
17752 HAVE_UNSIGNED_LONG_LONG_INT
=0
17757 if test $ac_cv_header_wchar_h = yes; then
17764 if test $ac_cv_header_inttypes_h = yes; then
17771 if test $ac_cv_header_sys_types_h = yes; then
17787 if test $gl_cv_have_include_next = yes; then
17788 gl_cv_next_stdint_h
='<'stdint.h
'>'
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17791 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17792 if test "${gl_cv_next_stdint_h+set}" = set; then :
17793 $as_echo_n "(cached) " >&6
17796 if test $ac_cv_header_stdint_h = yes; then
17799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801 #include <stdint.h>
17805 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17806 *) gl_absname_cpp
="$ac_cpp" ;;
17811 gl_dirsep_regex
='[/\\]'
17814 gl_dirsep_regex
='\/'
17817 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17819 gl_header_literal_regex
=`echo 'stdint.h' \
17820 | sed -e "$gl_make_literal_regex_sed"`
17821 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17822 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17827 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17828 sed -n "$gl_absolute_header_sed"`'"'
17830 gl_cv_next_stdint_h
='<'stdint.h
'>'
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17836 $as_echo "$gl_cv_next_stdint_h" >&6; }
17838 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17840 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17842 gl_next_as_first_directive
='<'stdint.h
'>'
17844 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17845 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17847 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17852 if test $ac_cv_header_stdint_h = yes; then
17859 if test $ac_cv_header_stdint_h = yes; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17861 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17862 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17863 $as_echo_n "(cached) " >&6
17865 gl_cv_header_working_stdint_h
=no
17866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17870 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17871 #include <stdint.h>
17872 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17873 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17874 #error "WCHAR_MIN, WCHAR_MAX not defined in <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 int8_t a1 = INT8_MAX;
17891 int8_t a1min = INT8_MIN;
17894 int16_t a2 = INT16_MAX;
17895 int16_t a2min = INT16_MIN;
17898 int32_t a3 = INT32_MAX;
17899 int32_t a3min = INT32_MIN;
17902 int64_t a4 = INT64_MAX;
17903 int64_t a4min = INT64_MIN;
17906 uint8_t b1 = UINT8_MAX;
17908 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17911 uint16_t b2 = UINT16_MAX;
17914 uint32_t b3 = UINT32_MAX;
17917 uint64_t b4 = UINT64_MAX;
17919 int_least8_t c1 = INT8_C (0x7f);
17920 int_least8_t c1max = INT_LEAST8_MAX;
17921 int_least8_t c1min = INT_LEAST8_MIN;
17922 int_least16_t c2 = INT16_C (0x7fff);
17923 int_least16_t c2max = INT_LEAST16_MAX;
17924 int_least16_t c2min = INT_LEAST16_MIN;
17925 int_least32_t c3 = INT32_C (0x7fffffff);
17926 int_least32_t c3max = INT_LEAST32_MAX;
17927 int_least32_t c3min = INT_LEAST32_MIN;
17928 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17929 int_least64_t c4max = INT_LEAST64_MAX;
17930 int_least64_t c4min = INT_LEAST64_MIN;
17931 uint_least8_t d1 = UINT8_C (0xff);
17932 uint_least8_t d1max = UINT_LEAST8_MAX;
17933 uint_least16_t d2 = UINT16_C (0xffff);
17934 uint_least16_t d2max = UINT_LEAST16_MAX;
17935 uint_least32_t d3 = UINT32_C (0xffffffff);
17936 uint_least32_t d3max = UINT_LEAST32_MAX;
17937 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17938 uint_least64_t d4max = UINT_LEAST64_MAX;
17939 int_fast8_t e1 = INT_FAST8_MAX;
17940 int_fast8_t e1min = INT_FAST8_MIN;
17941 int_fast16_t e2 = INT_FAST16_MAX;
17942 int_fast16_t e2min = INT_FAST16_MIN;
17943 int_fast32_t e3 = INT_FAST32_MAX;
17944 int_fast32_t e3min = INT_FAST32_MIN;
17945 int_fast64_t e4 = INT_FAST64_MAX;
17946 int_fast64_t e4min = INT_FAST64_MIN;
17947 uint_fast8_t f1 = UINT_FAST8_MAX;
17948 uint_fast16_t f2 = UINT_FAST16_MAX;
17949 uint_fast32_t f3 = UINT_FAST32_MAX;
17950 uint_fast64_t f4 = UINT_FAST64_MAX;
17952 intptr_t g = INTPTR_MAX;
17953 intptr_t gmin = INTPTR_MIN;
17956 uintptr_t h = UINTPTR_MAX;
17958 intmax_t i = INTMAX_MAX;
17959 uintmax_t j = UINTMAX_MAX;
17961 #include <limits.h> /* for CHAR_BIT */
17962 #define TYPE_MINIMUM(t) \
17963 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17964 #define TYPE_MAXIMUM(t) \
17965 ((t) ((t) 0 < (t) -1 \
17967 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17970 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17971 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17973 /* Detect bug in FreeBSD 6.0 / ia64. */
17974 int check_SIG_ATOMIC:
17975 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17976 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17978 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17980 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17981 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17983 /* Detect bug in mingw. */
17985 WINT_MIN == TYPE_MINIMUM (wint_t)
17986 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17989 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17991 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17992 int check_UINT16_C:
17993 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17995 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17997 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18000 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18003 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18006 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18008 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18009 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18010 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18011 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18012 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18013 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18014 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18015 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18016 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18017 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18018 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18029 if ac_fn_c_try_compile
"$LINENO"; then :
18030 if test "$cross_compiling" = yes; then :
18031 gl_cv_header_working_stdint_h
=yes
18034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18038 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18039 #include <stdint.h>
18042 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18043 included before <wchar.h>. */
18044 #include <stddef.h>
18045 #include <signal.h>
18047 # include <stdio.h>
18049 # include <wchar.h>
18054 #include <string.h>
18055 #define MVAL(macro) MVAL1(macro)
18056 #define MVAL1(expression) #expression
18057 static const char *macro_values[] =
18091 for (mv = macro_values; *mv != NULL; mv++)
18093 const char *value = *mv;
18094 /* Test whether it looks like a cast expression. */
18095 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18096 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18097 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18098 || strncmp (value, "((int)"/*)*/, 6) == 0
18099 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18100 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18101 return mv - macro_values + 1;
18109 if ac_fn_c_try_run
"$LINENO"; then :
18110 gl_cv_header_working_stdint_h
=yes
18112 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18113 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18122 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18124 if test "$gl_cv_header_working_stdint_h" = yes; then
18127 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18129 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18130 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18131 eval as_val
=\$
$as_ac_Header
18132 if test "x$as_val" = x
""yes; then :
18133 cat >>confdefs.h
<<_ACEOF
18134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18141 if test $ac_cv_header_sys_inttypes_h = yes; then
18142 HAVE_SYS_INTTYPES_H
=1
18144 HAVE_SYS_INTTYPES_H
=0
18147 if test $ac_cv_header_sys_bitypes_h = yes; then
18148 HAVE_SYS_BITYPES_H
=1
18150 HAVE_SYS_BITYPES_H
=0
18156 if test $APPLE_UNIVERSAL_BUILD = 0; then
18159 for gltype
in ptrdiff_t size_t
; do
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18161 $as_echo_n "checking for bit size of $gltype... " >&6; }
18162 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18163 $as_echo_n "(cached) " >&6
18165 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18166 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18167 included before <wchar.h>. */
18168 #include <stddef.h>
18169 #include <signal.h>
18171 # include <stdio.h>
18173 # include <wchar.h>
18176 #include <limits.h>"; then :
18182 eval gl_cv_bitsizeof_
${gltype}=\
$result
18185 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18187 $as_echo "$ac_res" >&6; }
18188 eval result
=\
$gl_cv_bitsizeof_${gltype}
18189 if test $result = unknown
; then
18192 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18193 cat >>confdefs.h
<<_ACEOF
18194 #define BITSIZEOF_${GLTYPE} $result
18197 eval BITSIZEOF_
${GLTYPE}=\
$result
18204 for gltype
in sig_atomic_t wchar_t wint_t
; do
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18206 $as_echo_n "checking for bit size of $gltype... " >&6; }
18207 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18208 $as_echo_n "(cached) " >&6
18210 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18211 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18212 included before <wchar.h>. */
18213 #include <stddef.h>
18214 #include <signal.h>
18216 # include <stdio.h>
18218 # include <wchar.h>
18221 #include <limits.h>"; then :
18227 eval gl_cv_bitsizeof_
${gltype}=\
$result
18230 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18232 $as_echo "$ac_res" >&6; }
18233 eval result
=\
$gl_cv_bitsizeof_${gltype}
18234 if test $result = unknown
; then
18237 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18238 cat >>confdefs.h
<<_ACEOF
18239 #define BITSIZEOF_${GLTYPE} $result
18242 eval BITSIZEOF_
${GLTYPE}=\
$result
18248 for gltype
in sig_atomic_t wchar_t wint_t
; do
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18250 $as_echo_n "checking whether $gltype is signed... " >&6; }
18251 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18252 $as_echo_n "(cached) " >&6
18254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18258 included before <wchar.h>. */
18259 #include <stddef.h>
18260 #include <signal.h>
18262 # include <stdio.h>
18264 # include <wchar.h>
18267 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18276 if ac_fn_c_try_compile
"$LINENO"; then :
18281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18282 eval gl_cv_type_
${gltype}_signed
=\
$result
18285 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18287 $as_echo "$ac_res" >&6; }
18288 eval result
=\
$gl_cv_type_${gltype}_signed
18289 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18290 if test "$result" = yes; then
18291 cat >>confdefs.h
<<_ACEOF
18292 #define HAVE_SIGNED_${GLTYPE} 1
18295 eval HAVE_SIGNED_
${GLTYPE}=1
18297 eval HAVE_SIGNED_
${GLTYPE}=0
18302 gl_cv_type_ptrdiff_t_signed
=yes
18303 gl_cv_type_size_t_signed
=no
18304 if test $APPLE_UNIVERSAL_BUILD = 0; then
18307 for gltype
in ptrdiff_t size_t
; do
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18309 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18310 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18311 $as_echo_n "(cached) " >&6
18313 eval gl_cv_type_
${gltype}_suffix
=no
18314 eval result
=\
$gl_cv_type_${gltype}_signed
18315 if test "$result" = yes; then
18320 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18322 '') gltype1
='int';;
18323 l
) gltype1
='long int';;
18324 ll
) gltype1
='long long int';;
18325 i64
) gltype1
='__int64';;
18326 u
) gltype1
='unsigned int';;
18327 ul
) gltype1
='unsigned long int';;
18328 ull
) gltype1
='unsigned long long int';;
18329 ui64
)gltype1
='unsigned __int64';;
18331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18334 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18335 included before <wchar.h>. */
18336 #include <stddef.h>
18337 #include <signal.h>
18339 # include <stdio.h>
18341 # include <wchar.h>
18344 extern $gltype foo;
18345 extern $gltype1 foo;
18354 if ac_fn_c_try_compile
"$LINENO"; then :
18355 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18358 eval result
=\
$gl_cv_type_${gltype}_suffix
18359 test "$result" != no
&& break
18362 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18364 $as_echo "$ac_res" >&6; }
18365 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18366 eval result
=\
$gl_cv_type_${gltype}_suffix
18367 test "$result" = no
&& result
=
18368 eval ${GLTYPE}_SUFFIX
=\
$result
18369 cat >>confdefs.h
<<_ACEOF
18370 #define ${GLTYPE}_SUFFIX $result
18379 for gltype
in sig_atomic_t wchar_t wint_t
; do
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18381 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18382 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18383 $as_echo_n "(cached) " >&6
18385 eval gl_cv_type_
${gltype}_suffix
=no
18386 eval result
=\
$gl_cv_type_${gltype}_signed
18387 if test "$result" = yes; then
18392 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18394 '') gltype1
='int';;
18395 l
) gltype1
='long int';;
18396 ll
) gltype1
='long long int';;
18397 i64
) gltype1
='__int64';;
18398 u
) gltype1
='unsigned int';;
18399 ul
) gltype1
='unsigned long int';;
18400 ull
) gltype1
='unsigned long long int';;
18401 ui64
)gltype1
='unsigned __int64';;
18403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18406 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18407 included before <wchar.h>. */
18408 #include <stddef.h>
18409 #include <signal.h>
18411 # include <stdio.h>
18413 # include <wchar.h>
18416 extern $gltype foo;
18417 extern $gltype1 foo;
18426 if ac_fn_c_try_compile
"$LINENO"; then :
18427 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18430 eval result
=\
$gl_cv_type_${gltype}_suffix
18431 test "$result" != no
&& break
18434 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18436 $as_echo "$ac_res" >&6; }
18437 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18438 eval result
=\
$gl_cv_type_${gltype}_suffix
18439 test "$result" = no
&& result
=
18440 eval ${GLTYPE}_SUFFIX
=\
$result
18441 cat >>confdefs.h
<<_ACEOF
18442 #define ${GLTYPE}_SUFFIX $result
18449 if test $BITSIZEOF_WINT_T -lt 32; then
18450 BITSIZEOF_WINT_T
=32
18456 if test -n "$STDINT_H"; then
18457 GL_GENERATE_STDINT_H_TRUE
=
18458 GL_GENERATE_STDINT_H_FALSE
='#'
18460 GL_GENERATE_STDINT_H_TRUE
='#'
18461 GL_GENERATE_STDINT_H_FALSE
=
18470 GNULIB_STRTOIMAX
=0;
18471 GNULIB_STRTOUMAX
=0;
18472 HAVE_DECL_IMAXABS
=1;
18473 HAVE_DECL_IMAXDIV
=1;
18474 HAVE_DECL_STRTOIMAX
=1;
18475 HAVE_DECL_STRTOUMAX
=1;
18476 REPLACE_STRTOIMAX
=0;
18477 INT32_MAX_LT_INTMAX_MAX
=1;
18478 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18479 PRI_MACROS_BROKEN
=0;
18480 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18481 UINT32_MAX_LT_UINTMAX_MAX
=1;
18482 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18498 if test $gl_cv_have_include_next = yes; then
18499 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18502 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18503 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18504 $as_echo_n "(cached) " >&6
18507 if test $ac_cv_header_inttypes_h = yes; then
18510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512 #include <inttypes.h>
18516 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18517 *) gl_absname_cpp
="$ac_cpp" ;;
18522 gl_dirsep_regex
='[/\\]'
18525 gl_dirsep_regex
='\/'
18528 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18530 gl_header_literal_regex
=`echo 'inttypes.h' \
18531 | sed -e "$gl_make_literal_regex_sed"`
18532 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18533 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18538 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18539 sed -n "$gl_absolute_header_sed"`'"'
18541 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18547 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18549 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18551 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18552 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18553 gl_next_as_first_directive
='<'inttypes.h
'>'
18555 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18556 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18558 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18573 $as_echo_n "checking for 64-bit off_t... " >&6; }
18574 if test "${gl_cv_type_off_t_64+set}" = set; then :
18575 $as_echo_n "(cached) " >&6
18577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <sys/types.h>
18580 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18590 if ac_fn_c_try_compile
"$LINENO"; then :
18591 gl_cv_type_off_t_64
=yes
18593 gl_cv_type_off_t_64
=no
18595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18599 $as_echo "$gl_cv_type_off_t_64" >&6; }
18600 if test $gl_cv_type_off_t_64 = no
; then
18601 WINDOWS_64_BIT_OFF_T
=1
18603 WINDOWS_64_BIT_OFF_T
=0
18605 WINDOWS_64_BIT_ST_SIZE
=1
18608 WINDOWS_64_BIT_OFF_T
=0
18609 WINDOWS_64_BIT_ST_SIZE
=0
18626 GNULIB_UTIMENSAT
=0;
18640 REPLACE_FUTIMENS
=0;
18646 REPLACE_UTIMENSAT
=0;
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18652 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18653 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18656 rm -f conftest.sym conftest.
file
18657 echo >conftest.
file
18658 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18659 if test "$cross_compiling" = yes; then :
18661 # Guess yes on glibc systems.
18662 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18663 # If we don't know, assume the worst.
18664 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 $ac_includes_default
18675 /* Linux will dereference the symlink and fail, as required by
18676 POSIX. That is better in the sense that it means we will not
18677 have to compile and use the lstat wrapper. */
18678 return lstat ("conftest.sym/", &sbuf) == 0;
18684 if ac_fn_c_try_run
"$LINENO"; then :
18685 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18687 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18689 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18690 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18694 # If the 'ln -s' command failed, then we probably don't even
18695 # have an lstat function.
18696 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18698 rm -f conftest.sym conftest.
file
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18702 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18703 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18706 cat >>confdefs.h
<<_ACEOF
18707 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18715 GNULIB_NANOSLEEP
=0;
18719 HAVE_DECL_LOCALTIME_R
=1;
18723 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18724 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18725 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18726 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18743 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18744 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18745 $as_echo_n "(cached) " >&6
18748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750 #include <sys/select.h>
18759 if ac_fn_c_try_compile
"$LINENO"; then :
18760 gl_cv_header_sys_select_h_selfcontained
=yes
18762 gl_cv_header_sys_select_h_selfcontained
=no
18764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18765 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768 #include <sys/select.h>
18772 int memset; int bzero;
18778 if ac_fn_c_try_compile
"$LINENO"; then :
18779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781 #include <sys/select.h>
18787 #define memset nonexistent_memset
18792 void *memset (void *, int, unsigned long);
18794 #define bzero nonexistent_bzero
18799 void bzero (void *, unsigned long);
18808 if ac_fn_c_try_link
"$LINENO"; then :
18811 gl_cv_header_sys_select_h_selfcontained
=no
18813 rm -f core conftest.err conftest.
$ac_objext \
18814 conftest
$ac_exeext conftest.
$ac_ext
18817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18822 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18832 if test $gl_cv_have_include_next = yes; then
18833 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18836 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18837 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18838 $as_echo_n "(cached) " >&6
18841 if test $ac_cv_header_sys_select_h = yes; then
18844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846 #include <sys/select.h>
18850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18851 *) gl_absname_cpp
="$ac_cpp" ;;
18856 gl_dirsep_regex
='[/\\]'
18859 gl_dirsep_regex
='\/'
18862 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18864 gl_header_literal_regex
=`echo 'sys/select.h' \
18865 | sed -e "$gl_make_literal_regex_sed"`
18866 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18872 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18873 sed -n "$gl_absolute_header_sed"`'"'
18875 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
18881 $as_echo "$gl_cv_next_sys_select_h" >&6; }
18883 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
18885 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18887 gl_next_as_first_directive
='<'sys
/select.h
'>'
18889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18890 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
18892 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
18897 if test $ac_cv_header_sys_select_h = yes; then
18898 HAVE_SYS_SELECT_H
=1
18900 HAVE_SYS_SELECT_H
=0
18907 if test $ac_cv_header_sys_socket_h != yes; then
18908 for ac_header
in winsock2.h
18910 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18911 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18912 cat >>confdefs.h
<<_ACEOF
18913 #define HAVE_WINSOCK2_H 1
18921 if test "$ac_cv_header_winsock2_h" = yes; then
18923 UNISTD_H_HAVE_WINSOCK2_H
=1
18924 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18936 GNULIB_PTHREAD_SIGMASK
=0;
18938 GNULIB_SIGNAL_H_SIGPIPE
=0;
18939 GNULIB_SIGPROCMASK
=0;
18940 GNULIB_SIGACTION
=0;
18941 HAVE_POSIX_SIGNALBLOCKING
=1;
18942 HAVE_PTHREAD_SIGMASK
=1;
18947 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18949 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18951 HAVE_SIGHANDLER_T
=1;
18952 REPLACE_PTHREAD_SIGMASK
=0;
18960 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18961 #include <signal.h>
18962 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18963 #include <sys/types.h>
18966 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18968 cat >>confdefs.h
<<_ACEOF
18969 #define HAVE_SIGSET_T 1
18972 gl_cv_type_sigset_t
=yes
18974 gl_cv_type_sigset_t
=no
18977 if test $gl_cv_type_sigset_t != yes; then
18983 if test $ac_cv_header_sys_socket_h = no
; then
18984 for ac_header
in ws2tcpip.h
18986 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18987 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18988 cat >>confdefs.h
<<_ACEOF
18989 #define HAVE_WS2TCPIP_H 1
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18999 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19000 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19001 $as_echo_n "(cached) " >&6
19003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19006 #include <stdbool.h>
19008 "error: bool is not defined"
19011 "error: false is not defined"
19014 "error: false is not 0"
19017 "error: true is not defined"
19020 "error: true is not 1"
19022 #ifndef __bool_true_false_are_defined
19023 "error: __bool_true_false_are_defined is not defined"
19026 struct s { _Bool s: 1; _Bool t; } s;
19028 char a[true == 1 ? 1 : -1];
19029 char b[false == 0 ? 1 : -1];
19030 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19031 char d[(bool) 0.5 == true ? 1 : -1];
19032 /* See body of main program for 'e'. */
19033 char f[(_Bool) 0.0 == false ? 1 : -1];
19035 char h[sizeof (_Bool)];
19036 char i[sizeof s.t];
19037 enum { j = false, k = true, l = false * true, m = true * 256 };
19038 /* The following fails for
19039 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19041 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19042 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19043 /* Catch a bug in an HP-UX C compiler. See
19044 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19045 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19057 /* Refer to every declared value, to avoid compiler optimizations. */
19058 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19059 + !m + !n + !o + !p + !q + !pq);
19065 if ac_fn_c_try_compile
"$LINENO"; then :
19066 ac_cv_header_stdbool_h
=yes
19068 ac_cv_header_stdbool_h
=no
19070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19073 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19074 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19075 if test "x$ac_cv_type__Bool" = x
""yes; then :
19077 cat >>confdefs.h
<<_ACEOF
19078 #define HAVE__BOOL 1
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19091 $as_echo_n "checking for wchar_t... " >&6; }
19092 if test "${gt_cv_c_wchar_t+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19097 #include <stddef.h>
19098 wchar_t foo = (wchar_t)'\0';
19107 if ac_fn_c_try_compile
"$LINENO"; then :
19108 gt_cv_c_wchar_t
=yes
19112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19115 $as_echo "$gt_cv_c_wchar_t" >&6; }
19116 if test $gt_cv_c_wchar_t = yes; then
19118 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19131 GNULIB_FPRINTF_POSIX
=0;
19147 GNULIB_OBSTACK_PRINTF
=0;
19148 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19153 GNULIB_PRINTF_POSIX
=0;
19162 GNULIB_SPRINTF_POSIX
=0;
19163 GNULIB_STDIO_H_NONBLOCKING
=0;
19164 GNULIB_STDIO_H_SIGPIPE
=0;
19166 GNULIB_VASPRINTF
=0;
19171 GNULIB_VFPRINTF_POSIX
=0;
19173 GNULIB_VPRINTF_POSIX
=0;
19174 GNULIB_VSNPRINTF
=0;
19175 GNULIB_VSPRINTF_POSIX
=0;
19176 HAVE_DECL_FPURGE
=1;
19177 HAVE_DECL_FSEEKO
=1;
19178 HAVE_DECL_FTELLO
=1;
19179 HAVE_DECL_GETDELIM
=1;
19180 HAVE_DECL_GETLINE
=1;
19181 HAVE_DECL_OBSTACK_PRINTF
=1;
19182 HAVE_DECL_SNPRINTF
=1;
19183 HAVE_DECL_VSNPRINTF
=1;
19204 REPLACE_GETDELIM
=0;
19206 REPLACE_OBSTACK_PRINTF
=0;
19212 REPLACE_RENAMEAT
=0;
19213 REPLACE_SNPRINTF
=0;
19215 REPLACE_STDIO_READ_FUNCS
=0;
19216 REPLACE_STDIO_WRITE_FUNCS
=0;
19218 REPLACE_VASPRINTF
=0;
19219 REPLACE_VDPRINTF
=0;
19220 REPLACE_VFPRINTF
=0;
19222 REPLACE_VSNPRINTF
=0;
19223 REPLACE_VSPRINTF
=0;
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19226 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19227 if test "${ac_cv_struct_tm+set}" = set; then :
19228 $as_echo_n "(cached) " >&6
19230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232 #include <sys/types.h>
19239 int *p = &tm.tm_sec;
19245 if ac_fn_c_try_compile
"$LINENO"; then :
19246 ac_cv_struct_tm
=time.h
19248 ac_cv_struct_tm
=sys
/time.h
19250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19253 $as_echo "$ac_cv_struct_tm" >&6; }
19254 if test $ac_cv_struct_tm = sys
/time.h
; then
19256 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19260 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19261 #include <$ac_cv_struct_tm>
19264 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19266 cat >>confdefs.h
<<_ACEOF
19267 #define HAVE_STRUCT_TM_TM_ZONE 1
19273 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19275 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19278 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19280 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19286 cat >>confdefs.h
<<_ACEOF
19287 #define HAVE_DECL_TZNAME $ac_have_decl
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19291 $as_echo_n "checking for tzname... " >&6; }
19292 if test "${ac_cv_var_tzname+set}" = set; then :
19293 $as_echo_n "(cached) " >&6
19295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19298 #if !HAVE_DECL_TZNAME
19299 extern char *tzname[];
19305 return tzname[0][0];
19310 if ac_fn_c_try_link
"$LINENO"; then :
19311 ac_cv_var_tzname
=yes
19313 ac_cv_var_tzname
=no
19315 rm -f core conftest.err conftest.
$ac_objext \
19316 conftest
$ac_exeext conftest.
$ac_ext
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19319 $as_echo "$ac_cv_var_tzname" >&6; }
19320 if test $ac_cv_var_tzname = yes; then
19322 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19328 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19330 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19332 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19339 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19340 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19346 cat >>confdefs.h
<<_ACEOF
19347 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19352 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19353 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19359 cat >>confdefs.h
<<_ACEOF
19360 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19366 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19367 if test "${ac_cv_header_stat_broken+set}" = set; then :
19368 $as_echo_n "(cached) " >&6
19370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19372 #include <sys/types.h>
19373 #include <sys/stat.h>
19375 #if defined S_ISBLK && defined S_IFDIR
19376 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19379 #if defined S_ISBLK && defined S_IFCHR
19380 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19383 #if defined S_ISLNK && defined S_IFREG
19384 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19387 #if defined S_ISSOCK && defined S_IFREG
19388 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19392 if ac_fn_c_try_compile
"$LINENO"; then :
19393 ac_cv_header_stat_broken
=no
19395 ac_cv_header_stat_broken
=yes
19397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19400 $as_echo "$ac_cv_header_stat_broken" >&6; }
19401 if test $ac_cv_header_stat_broken = yes; then
19403 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19409 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19410 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19414 cat >>confdefs.h
<<_ACEOF
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19423 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19424 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19425 $as_echo_n "(cached) " >&6
19427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19434 static struct timespec x; x.tv_sec = x.tv_nsec;
19439 if ac_fn_c_try_compile
"$LINENO"; then :
19440 gl_cv_sys_struct_timespec_in_time_h
=yes
19442 gl_cv_sys_struct_timespec_in_time_h
=no
19444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19447 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19449 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19450 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19451 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19452 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19453 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19456 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19457 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19458 $as_echo_n "(cached) " >&6
19460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 #include <sys/time.h>
19467 static struct timespec x; x.tv_sec = x.tv_nsec;
19472 if ac_fn_c_try_compile
"$LINENO"; then :
19473 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19475 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19480 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19481 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19482 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19485 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19486 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19487 $as_echo_n "(cached) " >&6
19489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19491 #include <pthread.h>
19496 static struct timespec x; x.tv_sec = x.tv_nsec;
19501 if ac_fn_c_try_compile
"$LINENO"; then :
19502 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19504 gl_cv_sys_struct_timespec_in_pthread_h
=no
19506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19509 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19510 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19511 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19530 if test $gl_cv_have_include_next = yes; then
19531 gl_cv_next_time_h
='<'time.h
'>'
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19534 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19535 if test "${gl_cv_next_time_h+set}" = set; then :
19536 $as_echo_n "(cached) " >&6
19539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19540 /* end confdefs.h. */
19545 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19546 *) gl_absname_cpp
="$ac_cpp" ;;
19551 gl_dirsep_regex
='[/\\]'
19554 gl_dirsep_regex
='\/'
19557 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19559 gl_header_literal_regex
=`echo 'time.h' \
19560 | sed -e "$gl_make_literal_regex_sed"`
19561 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19562 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19567 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19568 sed -n "$gl_absolute_header_sed"`'"'
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19573 $as_echo "$gl_cv_next_time_h" >&6; }
19575 NEXT_TIME_H
=$gl_cv_next_time_h
19577 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19579 gl_next_as_first_directive
='<'time.h
'>'
19581 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19582 gl_next_as_first_directive
=$gl_cv_next_time_h
19584 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19601 $as_echo_n "checking whether the utimes function works... " >&6; }
19602 if test "${gl_cv_func_working_utimes+set}" = set; then :
19603 $as_echo_n "(cached) " >&6
19606 if test "$cross_compiling" = yes; then :
19607 gl_cv_func_working_utimes
=no
19609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19612 #include <sys/types.h>
19613 #include <sys/stat.h>
19615 #include <sys/time.h>
19617 #include <unistd.h>
19618 #include <stdlib.h>
19623 inorder (time_t a, time_t b, time_t c)
19625 return a <= b && b <= c;
19632 char const *file = "conftest.utimes";
19633 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19635 /* Test whether utimes() essentially works. */
19638 FILE *f = fopen (file, "w");
19641 else if (fclose (f) != 0)
19643 else if (utimes (file, timeval) != 0)
19645 else if (lstat (file, &sbuf) != 0)
19647 else if (!(sbuf.st_atime == timeval[0].tv_sec
19648 && sbuf.st_mtime == timeval[1].tv_sec))
19650 if (unlink (file) != 0)
19654 /* Test whether utimes() with a NULL argument sets the file's timestamp
19655 to the current time. Use 'fstat' as well as 'time' to
19656 determine the "current" time, to accommodate NFS file systems
19657 if there is a time skew between the host and the NFS server. */
19659 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19665 struct stat st0, st1, st2;
19666 if (time (&t0) == (time_t) -1)
19668 else if (fstat (fd, &st0) != 0)
19670 else if (utimes (file, timeval) != 0)
19672 else if (utimes (file, NULL) != 0)
19674 else if (fstat (fd, &st1) != 0)
19676 else if (write (fd, "\n", 1) != 1)
19678 else if (fstat (fd, &st2) != 0)
19680 else if (time (&t2) == (time_t) -1)
19684 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19685 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19686 if (! (st1.st_atime == st1.st_mtime))
19688 if (! (m_ok_POSIX || m_ok_NFS))
19691 if (close (fd) != 0)
19694 if (unlink (file) != 0)
19698 /* Test whether utimes() with a NULL argument works on read-only files. */
19700 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19703 else if (close (fd) != 0)
19705 else if (utimes (file, NULL) != 0)
19707 if (unlink (file) != 0)
19715 if ac_fn_c_try_run
"$LINENO"; then :
19716 gl_cv_func_working_utimes
=yes
19718 gl_cv_func_working_utimes
=no
19720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19726 $as_echo "$gl_cv_func_working_utimes" >&6; }
19728 if test $gl_cv_func_working_utimes = yes; then
19730 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19739 $as_echo_n "checking for struct utimbuf... " >&6; }
19740 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19741 $as_echo_n "(cached) " >&6
19743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745 #if HAVE_SYS_TIME_H
19746 #include <sys/time.h>
19749 #ifdef HAVE_UTIME_H
19756 static struct utimbuf x; x.actime = x.modtime;
19761 if ac_fn_c_try_compile
"$LINENO"; then :
19762 gl_cv_sys_struct_utimbuf
=yes
19764 gl_cv_sys_struct_utimbuf
=no
19766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19769 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19771 if test $gl_cv_sys_struct_utimbuf = yes; then
19773 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19789 GL_COND_LIBTOOL_TRUE
=
19790 GL_COND_LIBTOOL_FALSE
='#'
19792 GL_COND_LIBTOOL_TRUE
='#'
19793 GL_COND_LIBTOOL_FALSE
=
19796 gl_cond_libtool
=false
19809 gl_source_base
='lib'
19812 if test $ac_cv_func_alloca_works = no
; then
19816 # Define an additional variable used in the Makefile substitution.
19817 if test $ac_cv_working_alloca_h = yes; then
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19819 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19820 if test "${gl_cv_rpl_alloca+set}" = set; then :
19821 $as_echo_n "(cached) " >&6
19824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19827 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19833 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19834 gl_cv_rpl_alloca
=yes
19836 gl_cv_rpl_alloca
=no
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19843 $as_echo "$gl_cv_rpl_alloca" >&6; }
19844 if test $gl_cv_rpl_alloca = yes; then
19846 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19856 if test -n "$ALLOCA_H"; then
19857 GL_GENERATE_ALLOCA_H_TRUE
=
19858 GL_GENERATE_ALLOCA_H_FALSE
='#'
19860 GL_GENERATE_ALLOCA_H_TRUE
='#'
19861 GL_GENERATE_ALLOCA_H_FALSE
=
19869 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19870 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19872 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19873 # programs in the package would end up linked with that potentially-shared
19874 # library, inducing unnecessary run-time overhead.
19877 gl_saved_libs
=$LIBS
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19879 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19880 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19881 $as_echo_n "(cached) " >&6
19883 ac_func_search_save_LIBS
=$LIBS
19884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 /* Override any GCC internal prototype to avoid an error.
19888 Use char because int might match the return type of a GCC
19889 builtin and then its argument prototype would still apply. */
19893 char clock_gettime ();
19897 return clock_gettime ();
19902 for ac_lib
in '' rt posix4
; do
19903 if test -z "$ac_lib"; then
19904 ac_res
="none required"
19907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19909 if ac_fn_c_try_link
"$LINENO"; then :
19910 ac_cv_search_clock_gettime
=$ac_res
19912 rm -f core conftest.err conftest.
$ac_objext \
19914 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19918 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19921 ac_cv_search_clock_gettime
=no
19923 rm conftest.
$ac_ext
19924 LIBS
=$ac_func_search_save_LIBS
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19927 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19928 ac_res
=$ac_cv_search_clock_gettime
19929 if test "$ac_res" != no
; then :
19930 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19931 test "$ac_cv_search_clock_gettime" = "none required" ||
19932 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
19935 for ac_func
in clock_gettime clock_settime
19937 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19938 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19939 eval as_val
=\$
$as_ac_var
19940 if test "x$as_val" = x
""yes; then :
19941 cat >>confdefs.h
<<_ACEOF
19942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19948 LIBS
=$gl_saved_libs
19974 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19977 if test $HAVE_DUP2 = 1; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19979 $as_echo_n "checking whether dup2 works... " >&6; }
19980 if test "${gl_cv_func_dup2_works+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19983 if test "$cross_compiling" = yes; then :
19985 mingw
*) # on this platform, dup2 always returns 0 for success
19986 gl_cv_func_dup2_works
="guessing no" ;;
19987 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19988 gl_cv_func_dup2_works
="guessing no" ;;
19989 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19990 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19991 gl_cv_func_dup2_works
="guessing no" ;;
19992 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19993 gl_cv_func_dup2_works
="guessing no" ;;
19994 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19995 gl_cv_func_dup2_works
="guessing no" ;;
19996 *) gl_cv_func_dup2_works
="guessing yes" ;;
19999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20000 /* end confdefs.h. */
20002 #include <unistd.h>
20010 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20013 if (dup2 (1, 1) == 0)
20016 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20020 if (dup2 (0, 0) != -1)
20022 /* Many gnulib modules require POSIX conformance of EBADF. */
20023 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20032 if ac_fn_c_try_run
"$LINENO"; then :
20033 gl_cv_func_dup2_works
=yes
20035 gl_cv_func_dup2_works
=no
20037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20044 $as_echo "$gl_cv_func_dup2_works" >&6; }
20045 case "$gl_cv_func_dup2_works" in
20054 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20063 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20097 # Persuade glibc <stdlib.h> to declare getloadavg().
20102 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20103 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20105 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20106 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20109 gl_func_getloadavg_done
=no
20111 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20112 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20113 # to get the right answer into the cache.
20114 # For kstat on solaris, we need to test for libelf and libkvm to force the
20115 # definition of SVR4 below.
20116 if test $gl_func_getloadavg_done = no
; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20118 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20119 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20120 $as_echo_n "(cached) " >&6
20122 ac_check_lib_save_LIBS
=$LIBS
20124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 /* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
20137 return elf_begin ();
20142 if ac_fn_c_try_link
"$LINENO"; then :
20143 ac_cv_lib_elf_elf_begin
=yes
20145 ac_cv_lib_elf_elf_begin
=no
20147 rm -f core conftest.err conftest.
$ac_objext \
20148 conftest
$ac_exeext conftest.
$ac_ext
20149 LIBS
=$ac_check_lib_save_LIBS
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20152 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20153 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20158 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20159 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20162 ac_check_lib_save_LIBS
=$LIBS
20164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20167 /* Override any GCC internal prototype to avoid an error.
20168 Use char because int might match the return type of a GCC
20169 builtin and then its argument prototype would still apply. */
20177 return kvm_open ();
20182 if ac_fn_c_try_link
"$LINENO"; then :
20183 ac_cv_lib_kvm_kvm_open
=yes
20185 ac_cv_lib_kvm_kvm_open
=no
20187 rm -f core conftest.err conftest.
$ac_objext \
20188 conftest
$ac_exeext conftest.
$ac_ext
20189 LIBS
=$ac_check_lib_save_LIBS
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20192 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20193 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20197 # Check for the 4.4BSD definition of getloadavg.
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20199 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20200 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20201 $as_echo_n "(cached) " >&6
20203 ac_check_lib_save_LIBS
=$LIBS
20204 LIBS
="-lutil $LIBS"
20205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20208 /* Override any GCC internal prototype to avoid an error.
20209 Use char because int might match the return type of a GCC
20210 builtin and then its argument prototype would still apply. */
20214 char getloadavg ();
20218 return getloadavg ();
20223 if ac_fn_c_try_link
"$LINENO"; then :
20224 ac_cv_lib_util_getloadavg
=yes
20226 ac_cv_lib_util_getloadavg
=no
20228 rm -f core conftest.err conftest.
$ac_objext \
20229 conftest
$ac_exeext conftest.
$ac_ext
20230 LIBS
=$ac_check_lib_save_LIBS
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20233 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20234 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20235 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20240 if test $gl_func_getloadavg_done = no
; then
20241 # There is a commonly available library for RS/6000 AIX.
20242 # Since it is not a standard part of AIX, it might be installed locally.
20243 gl_getloadavg_LIBS
=$LIBS
20244 LIBS
="-L/usr/local/lib $LIBS"
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20246 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20247 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20248 $as_echo_n "(cached) " >&6
20250 ac_check_lib_save_LIBS
=$LIBS
20251 LIBS
="-lgetloadavg $LIBS"
20252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20255 /* Override any GCC internal prototype to avoid an error.
20256 Use char because int might match the return type of a GCC
20257 builtin and then its argument prototype would still apply. */
20261 char getloadavg ();
20265 return getloadavg ();
20270 if ac_fn_c_try_link
"$LINENO"; then :
20271 ac_cv_lib_getloadavg_getloadavg
=yes
20273 ac_cv_lib_getloadavg_getloadavg
=no
20275 rm -f core conftest.err conftest.
$ac_objext \
20276 conftest
$ac_exeext conftest.
$ac_ext
20277 LIBS
=$ac_check_lib_save_LIBS
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20280 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20281 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20282 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20284 LIBS
=$gl_getloadavg_LIBS
20289 # Set up the replacement function if necessary.
20290 if test $gl_func_getloadavg_done = no
; then
20293 # Solaris has libkstat which does not require root.
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20295 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20296 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20297 $as_echo_n "(cached) " >&6
20299 ac_check_lib_save_LIBS
=$LIBS
20300 LIBS
="-lkstat $LIBS"
20301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20304 /* Override any GCC internal prototype to avoid an error.
20305 Use char because int might match the return type of a GCC
20306 builtin and then its argument prototype would still apply. */
20310 char kstat_open ();
20314 return kstat_open ();
20319 if ac_fn_c_try_link
"$LINENO"; then :
20320 ac_cv_lib_kstat_kstat_open
=yes
20322 ac_cv_lib_kstat_kstat_open
=no
20324 rm -f core conftest.err conftest.
$ac_objext \
20325 conftest
$ac_exeext conftest.
$ac_ext
20326 LIBS
=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20329 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20330 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20331 cat >>confdefs.h
<<_ACEOF
20332 #define HAVE_LIBKSTAT 1
20335 LIBS
="-lkstat $LIBS"
20339 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20341 # AIX has libperfstat which does not require root
20342 if test $gl_func_getloadavg_done = no
; then
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20344 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20345 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20348 ac_check_lib_save_LIBS
=$LIBS
20349 LIBS
="-lperfstat $LIBS"
20350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20359 char perfstat_cpu_total ();
20363 return perfstat_cpu_total ();
20368 if ac_fn_c_try_link
"$LINENO"; then :
20369 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20371 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20373 rm -f core conftest.err conftest.
$ac_objext \
20374 conftest
$ac_exeext conftest.
$ac_ext
20375 LIBS
=$ac_check_lib_save_LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20378 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20379 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20380 cat >>confdefs.h
<<_ACEOF
20381 #define HAVE_LIBPERFSTAT 1
20384 LIBS
="-lperfstat $LIBS"
20388 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20391 if test $gl_func_getloadavg_done = no
; then
20392 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20393 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20394 gl_func_getloadavg_done
=yes
20396 $as_echo "#define DGUX 1" >>confdefs.h
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20399 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20400 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20403 ac_check_lib_save_LIBS
=$LIBS
20405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20408 /* Override any GCC internal prototype to avoid an error.
20409 Use char because int might match the return type of a GCC
20410 builtin and then its argument prototype would still apply. */
20414 char dg_sys_info ();
20418 return dg_sys_info ();
20423 if ac_fn_c_try_link
"$LINENO"; then :
20424 ac_cv_lib_dgc_dg_sys_info
=yes
20426 ac_cv_lib_dgc_dg_sys_info
=no
20428 rm -f core conftest.err conftest.
$ac_objext \
20429 conftest
$ac_exeext conftest.
$ac_ext
20430 LIBS
=$ac_check_lib_save_LIBS
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20433 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20434 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20435 cat >>confdefs.h
<<_ACEOF
20436 #define HAVE_LIBDGC 1
20451 if test "x$gl_save_LIBS" = x
; then
20452 GETLOADAVG_LIBS
=$LIBS
20454 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20459 # Test whether the system declares getloadavg. Solaris has the function
20460 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20461 for ac_header
in sys
/loadavg.h
20463 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20464 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20465 cat >>confdefs.h
<<_ACEOF
20466 #define HAVE_SYS_LOADAVG_H 1
20473 if test $ac_cv_header_sys_loadavg_h = yes; then
20474 HAVE_SYS_LOADAVG_H
=1
20476 HAVE_SYS_LOADAVG_H
=0
20478 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20479 # include <sys/loadavg.h>
20481 #include <stdlib.h>
20483 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20486 HAVE_DECL_GETLOADAVG
=0
20490 if test $HAVE_GETLOADAVG = 0; then
20499 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20502 # Figure out what our getloadavg.c needs.
20506 # On HPUX9, an unprivileged user can get load averages this way.
20507 if test $gl_func_getloadavg_done = no
; then
20508 for ac_func
in pstat_getdynamic
20510 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20511 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20512 cat >>confdefs.h
<<_ACEOF
20513 #define HAVE_PSTAT_GETDYNAMIC 1
20515 gl_func_getloadavg_done
=yes
20521 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20522 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20523 # Irix 4.0.5F has the header but not the library.
20524 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20525 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20526 gl_func_getloadavg_done
=yes
20528 $as_echo "#define SVR4 1" >>confdefs.h
20532 if test $gl_func_getloadavg_done = no
; then
20533 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20534 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20535 gl_func_getloadavg_done
=yes
20537 $as_echo "#define UMAX 1" >>confdefs.h
20540 $as_echo "#define UMAX4_3 1" >>confdefs.h
20547 if test $gl_func_getloadavg_done = no
; then
20548 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20549 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20550 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20557 if test $gl_func_getloadavg_done = no
; then
20558 for ac_header
in mach
/mach.h
20560 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20561 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20562 cat >>confdefs.h
<<_ACEOF
20563 #define HAVE_MACH_MACH_H 1
20572 for ac_header
in nlist.h
20574 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20575 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20576 cat >>confdefs.h
<<_ACEOF
20577 #define HAVE_NLIST_H 1
20579 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20581 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20583 cat >>confdefs.h
<<_ACEOF
20584 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h. */
20597 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20598 x.n_un.n_name = "";
20606 if ac_fn_c_try_link
"$LINENO"; then :
20608 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20611 rm -f core conftest.err conftest.
$ac_objext \
20612 conftest
$ac_exeext conftest.
$ac_ext
20624 GNULIB_GETLOADAVG
=1
20635 if test $REPLACE_GETOPT = 1; then
20644 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20654 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20659 GNULIB_GL_UNISTD_H_GETOPT
=1
20669 if test -n "$gl_replace_getopt"; then
20673 if test $REPLACE_GETOPT = 1; then
20677 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20683 if test $REPLACE_GETOPT = 1; then
20692 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20702 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20707 GNULIB_GL_UNISTD_H_GETOPT
=1
20721 gl_gettimeofday_timezone
=void
20722 if test $ac_cv_func_gettimeofday != yes; then
20723 HAVE_GETTIMEOFDAY
=0
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20729 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20730 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20731 $as_echo_n "(cached) " >&6
20733 if test "$cross_compiling" = yes; then :
20734 # When cross-compiling:
20736 # Guess all is fine on glibc systems.
20737 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20738 # If we don't know, assume the worst.
20739 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20744 /* end confdefs.h. */
20745 #include <string.h>
20746 #include <sys/time.h>
20748 #include <stdlib.h>
20756 struct tm saved_lt;
20758 lt = localtime (&t);
20760 gettimeofday (&tv, NULL);
20761 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20767 if ac_fn_c_try_run
"$LINENO"; then :
20768 gl_cv_func_gettimeofday_clobber
=no
20770 gl_cv_func_gettimeofday_clobber
=yes
20772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20778 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20780 case "$gl_cv_func_gettimeofday_clobber" in
20782 REPLACE_GETTIMEOFDAY
=1
20785 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
20788 $as_echo "#define localtime rpl_localtime" >>confdefs.h
20792 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20798 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20799 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
20800 $as_echo_n "(cached) " >&6
20802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20804 #include <sys/time.h>
20806 int gettimeofday (struct timeval *restrict, void *restrict);
20811 /* glibc uses struct timezone * rather than the POSIX void *
20812 if _GNU_SOURCE is defined. However, since the only portable
20813 use of gettimeofday uses NULL as the second parameter, and
20814 since the glibc definition is actually more typesafe, it is
20815 not worth wrapping this to get a compliant signature. */
20816 int (*f) (struct timeval *restrict, void *restrict)
20819 return !(x | c.tv_sec | c.tv_usec);
20825 if ac_fn_c_try_compile
"$LINENO"; then :
20826 gl_cv_func_gettimeofday_posix_signature
=yes
20828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h. */
20830 #include <sys/time.h>
20831 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20841 if ac_fn_c_try_compile
"$LINENO"; then :
20842 gl_cv_func_gettimeofday_posix_signature
=almost
20844 gl_cv_func_gettimeofday_posix_signature
=no
20846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20851 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20852 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20853 gl_gettimeofday_timezone
='struct timezone'
20854 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20855 REPLACE_GETTIMEOFDAY
=1
20857 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20858 REPLACE_GETTIMEOFDAY
=1
20863 cat >>confdefs.h
<<_ACEOF
20864 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20868 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20877 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20880 for ac_header
in sys
/timeb.h
20882 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20883 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
20884 cat >>confdefs.h
<<_ACEOF
20885 #define HAVE_SYS_TIMEB_H 1
20892 for ac_func
in _ftime
20894 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
20895 if test "x$ac_cv_func__ftime" = x
""yes; then :
20896 cat >>confdefs.h
<<_ACEOF
20897 #define HAVE__FTIME 1
20910 GNULIB_GETTIMEOFDAY
=1
20922 if test $ac_cv_func_lstat = yes; then
20924 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
20933 if test $REPLACE_LSTAT = 1; then
20942 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20966 if test $APPLE_UNIVERSAL_BUILD = 1; then
20967 # A universal build on Apple Mac OS X platforms.
20968 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20969 # But we need a configuration result that is valid in both modes.
20970 gl_cv_func_working_mktime
=no
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20973 $as_echo_n "checking for working mktime... " >&6; }
20974 if test "${gl_cv_func_working_mktime+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20977 if test "$cross_compiling" = yes; then :
20978 gl_cv_func_working_mktime
=no
20980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h. */
20982 /* Test program from Paul Eggert and Tony Leneis. */
20983 #include <limits.h>
20984 #include <stdlib.h>
20987 #ifdef HAVE_UNISTD_H
20988 # include <unistd.h>
20992 # define alarm(X) /* empty */
20995 /* Work around redefinition to rpl_putenv by other config tests. */
20998 static time_t time_t_max;
20999 static time_t time_t_min;
21001 /* Values we'll use to set the TZ environment variable. */
21002 static char *tz_strings[] = {
21003 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21004 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21006 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21008 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21009 Based on a problem report from Andreas Jaeger. */
21011 spring_forward_gap ()
21013 /* glibc (up to about 1998-10-07) failed this test. */
21016 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21017 instead of "TZ=America/Vancouver" in order to detect the bug even
21018 on systems that don't support the Olson extension, or don't have the
21019 full zoneinfo tables installed. */
21020 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21029 return mktime (&tm) != (time_t) -1;
21033 mktime_test1 (time_t now)
21036 return ! (lt = localtime (&now)) || mktime (lt) == now;
21040 mktime_test (time_t now)
21042 return (mktime_test1 (now)
21043 && mktime_test1 ((time_t) (time_t_max - now))
21044 && mktime_test1 ((time_t) (time_t_min + now)));
21050 /* Based on code from Ariel Faigon. */
21060 return tm.tm_mon == 2 && tm.tm_mday == 31;
21064 bigtime_test (int j)
21068 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21069 now = mktime (&tm);
21070 if (now != (time_t) -1)
21072 struct tm *lt = localtime (&now);
21074 && lt->tm_year == tm.tm_year
21075 && lt->tm_mon == tm.tm_mon
21076 && lt->tm_mday == tm.tm_mday
21077 && lt->tm_hour == tm.tm_hour
21078 && lt->tm_min == tm.tm_min
21079 && lt->tm_sec == tm.tm_sec
21080 && lt->tm_yday == tm.tm_yday
21081 && lt->tm_wday == tm.tm_wday
21082 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21083 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21092 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21093 ignoring leap seconds. */
21094 unsigned long int answer = 2527315200UL;
21098 tm.tm_year = 2050 - 1900;
21101 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21104 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21105 instead of "TZ=America/Vancouver" in order to detect the bug even
21106 on systems that don't support the Olson extension, or don't have the
21107 full zoneinfo tables installed. */
21108 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21112 /* Check that the result is either a failure, or close enough
21113 to the correct answer that we can assume the discrepancy is
21114 due to leap seconds. */
21115 return (t == (time_t) -1
21116 || (0 < t && answer - 120 <= t && t <= answer + 120));
21125 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21126 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21128 /* This test makes some buggy mktime implementations loop.
21129 Give up after 60 seconds; a mktime slower than that
21130 isn't worth using anyway. */
21133 time_t_max = (! time_t_signed
21135 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21137 time_t_min = (! time_t_signed
21139 : time_t_signed_magnitude
21143 delta = time_t_max / 997; /* a suitable prime number */
21144 for (i = 0; i < N_STRINGS; i++)
21147 putenv (tz_strings[i]);
21149 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21150 if (! mktime_test (t))
21152 if ((result & 2) == 0
21153 && ! (mktime_test ((time_t) 1)
21154 && mktime_test ((time_t) (60 * 60))
21155 && mktime_test ((time_t) (60 * 60 * 24))))
21158 for (j = 1; (result & 4) == 0; j <<= 1)
21160 if (! bigtime_test (j))
21162 if (INT_MAX / 2 < j)
21165 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21168 if (! irix_6_4_bug ())
21170 if (! spring_forward_gap ())
21172 if (! year_2050_test ())
21177 if ac_fn_c_try_run
"$LINENO"; then :
21178 gl_cv_func_working_mktime
=yes
21180 gl_cv_func_working_mktime
=no
21182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21189 $as_echo "$gl_cv_func_working_mktime" >&6; }
21191 if test $gl_cv_func_working_mktime = no
; then
21197 if test $REPLACE_MKTIME = 1; then
21206 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21229 if test $ac_cv_func_pselect = yes; then
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21231 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21232 if test "${gl_cv_sig_pselect+set}" = set; then :
21233 $as_echo_n "(cached) " >&6
21235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21237 #include <sys/select.h>
21242 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21243 struct timespec const *restrict,
21244 sigset_t const *restrict) = pselect;
21250 if ac_fn_c_try_link
"$LINENO"; then :
21251 gl_cv_sig_pselect
=yes
21253 gl_cv_sig_pselect
=no
21255 rm -f core conftest.err conftest.
$ac_objext \
21256 conftest
$ac_exeext conftest.
$ac_ext
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21259 $as_echo "$gl_cv_sig_pselect" >&6; }
21262 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21266 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21275 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21293 LIB_PTHREAD_SIGMASK
=
21296 if test $ac_cv_func_pthread_sigmask = yes; then
21299 HAVE_PTHREAD_SIGMASK
=0
21300 REPLACE_PTHREAD_SIGMASK
=1
21306 if test $HAVE_PTHREAD_SIGMASK = 1; then
21309 if test -z "$LIB_PTHREAD_SIGMASK"; then
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21311 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21312 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21313 $as_echo_n "(cached) " >&6
21316 if test "$cross_compiling" = yes; then :
21319 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21320 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21322 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21329 #include <pthread.h>
21330 #include <signal.h>
21331 #include <stddef.h>
21335 sigemptyset (&set);
21336 return pthread_sigmask (1729, &set, NULL) != 0;
21339 if ac_fn_c_try_run
"$LINENO"; then :
21340 gl_cv_func_pthread_sigmask_in_libc_works
=no
21342 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21351 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21352 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21354 REPLACE_PTHREAD_SIGMASK
=1
21356 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21363 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21364 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21365 $as_echo_n "(cached) " >&6
21368 gl_save_LIBS
="$LIBS"
21369 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21370 if test "$cross_compiling" = yes; then :
21373 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21375 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21382 #include <pthread.h>
21383 #include <signal.h>
21384 #include <stddef.h>
21388 sigemptyset (&set);
21389 if (pthread_sigmask (1729, &set, NULL) == -1)
21394 if ac_fn_c_try_run
"$LINENO"; then :
21395 gl_cv_func_pthread_sigmask_return_works
=yes
21397 gl_cv_func_pthread_sigmask_return_works
=no
21399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21403 LIBS
="$gl_save_LIBS"
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21407 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21408 case "$gl_cv_func_pthread_sigmask_return_works" in
21410 REPLACE_PTHREAD_SIGMASK
=1
21412 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21418 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21419 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21425 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21427 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21429 gl_save_LIBS
="$LIBS"
21430 LIBS
="$LIBS $LIBMULTITHREAD"
21431 if test "$cross_compiling" = yes; then :
21434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21435 /* end confdefs.h. */
21437 #include <pthread.h>
21438 #include <signal.h>
21440 #include <stdlib.h>
21441 #include <unistd.h>
21442 static volatile int sigint_occurred;
21444 sigint_handler (int sig)
21451 int pid = getpid ();
21453 signal (SIGINT, sigint_handler);
21454 sigemptyset (&set);
21455 sigaddset (&set, SIGINT);
21456 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21458 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21459 if (!(system (command) == 0))
21462 if (!(sigint_occurred == 0))
21464 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21466 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21471 if ac_fn_c_try_run
"$LINENO"; then :
21474 gl_cv_func_pthread_sigmask_unblock_works
=no
21476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21480 LIBS
="$gl_save_LIBS"
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21484 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21485 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21487 REPLACE_PTHREAD_SIGMASK
=1
21489 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21495 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21504 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21507 if test $HAVE_PTHREAD_SIGMASK = 1; then
21509 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21519 GNULIB_PTHREAD_SIGMASK
=1
21528 if test $ac_cv_func_readlink = no
; then
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21532 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21533 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21534 $as_echo_n "(cached) " >&6
21536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21538 #include <unistd.h>
21539 /* Cause compilation failure if original declaration has wrong type. */
21540 ssize_t readlink (const char *, char *, size_t);
21549 if ac_fn_c_try_compile
"$LINENO"; then :
21550 gl_cv_decl_readlink_works
=yes
21552 gl_cv_decl_readlink_works
=no
21554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21557 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21559 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21560 if test "${gl_cv_func_readlink_works+set}" = set; then :
21561 $as_echo_n "(cached) " >&6
21563 # We have readlink, so assume ln -s works.
21564 ln -s conftest.no-such conftest.link
21565 ln -s conftest.link conftest.lnk2
21566 if test "$cross_compiling" = yes; then :
21568 # Guess yes on glibc systems.
21569 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21570 # If we don't know, assume the worst.
21571 *) gl_cv_func_readlink_works
="guessing no" ;;
21575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 #include <unistd.h>
21583 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21588 if ac_fn_c_try_run
"$LINENO"; then :
21589 gl_cv_func_readlink_works
=yes
21591 gl_cv_func_readlink_works
=no
21593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21597 rm -f conftest.link conftest.lnk2
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21600 $as_echo "$gl_cv_func_readlink_works" >&6; }
21601 case "$gl_cv_func_readlink_works" in
21603 if test "$gl_cv_decl_readlink_works" != yes; then
21609 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21616 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21625 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21653 if test $gl_cv_have_include_next = yes; then
21654 gl_cv_next_signal_h
='<'signal.h
'>'
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21657 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21658 if test "${gl_cv_next_signal_h+set}" = set; then :
21659 $as_echo_n "(cached) " >&6
21662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h. */
21664 #include <signal.h>
21668 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21669 *) gl_absname_cpp
="$ac_cpp" ;;
21674 gl_dirsep_regex
='[/\\]'
21677 gl_dirsep_regex
='\/'
21680 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21682 gl_header_literal_regex
=`echo 'signal.h' \
21683 | sed -e "$gl_make_literal_regex_sed"`
21684 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21685 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21690 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21691 sed -n "$gl_absolute_header_sed"`'"'
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21696 $as_echo "$gl_cv_next_signal_h" >&6; }
21698 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21700 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21701 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21702 gl_next_as_first_directive
='<'signal.h
'>'
21704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21705 gl_next_as_first_directive
=$gl_cv_next_signal_h
21707 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21713 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21714 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21715 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21716 #include <signal.h>
21719 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21722 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21731 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21732 #include <signal.h>
21735 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21738 HAVE_SIGHANDLER_T
=0
21744 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21745 /* <sys/types.h> is not needed according to POSIX, but the
21746 <sys/socket.h> in i386-unknown-freebsd4.10 and
21747 powerpc-apple-darwin5.5 required it. */
21748 #include <sys/types.h>
21749 #if HAVE_SYS_SOCKET_H
21750 # include <sys/socket.h>
21751 #elif HAVE_WS2TCPIP_H
21752 # include <ws2tcpip.h>
21756 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21760 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21761 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21762 $as_echo_n "(cached) " >&6
21764 # Systems have either "struct sockaddr *" or
21765 # "void *" as the second argument to getpeername
21766 gl_cv_socklen_t_equiv
=
21767 for arg2
in "struct sockaddr" void
; do
21768 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21771 #include <sys/types.h>
21772 #include <sys/socket.h>
21774 int getpeername (int, $arg2 *, $t *);
21779 getpeername (0, 0, &len);
21784 if ac_fn_c_try_compile
"$LINENO"; then :
21785 gl_cv_socklen_t_equiv
="$t"
21787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21788 test "$gl_cv_socklen_t_equiv" != "" && break
21790 test "$gl_cv_socklen_t_equiv" != "" && break
21795 if test "$gl_cv_socklen_t_equiv" = ""; then
21796 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21799 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21801 cat >>confdefs.h
<<_ACEOF
21802 #define socklen_t $gl_cv_socklen_t_equiv
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21809 $as_echo_n "checking for ssize_t... " >&6; }
21810 if test "${gt_cv_ssize_t+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21815 #include <sys/types.h>
21819 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21825 if ac_fn_c_try_compile
"$LINENO"; then :
21830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21833 $as_echo "$gt_cv_ssize_t" >&6; }
21834 if test $gt_cv_ssize_t = no
; then
21836 $as_echo "#define ssize_t int" >>confdefs.h
21845 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
21846 #include <sys/stat.h>
21848 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
21850 cat >>confdefs.h
<<_ACEOF
21851 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
21855 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
21856 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h. */
21862 #include <sys/types.h>
21863 #include <sys/stat.h>
21864 #if HAVE_SYS_TIME_H
21865 # include <sys/time.h>
21868 struct timespec ts;
21881 if ac_fn_c_try_compile
"$LINENO"; then :
21882 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
21884 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
21886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
21889 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
21890 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
21892 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
21896 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
21897 #include <sys/stat.h>
21899 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
21901 cat >>confdefs.h
<<_ACEOF
21902 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
21907 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
21908 #include <sys/stat.h>
21910 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
21912 cat >>confdefs.h
<<_ACEOF
21913 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21918 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
21919 #include <sys/stat.h>
21921 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
21923 cat >>confdefs.h
<<_ACEOF
21924 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
21941 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
21942 #include <sys/stat.h>
21944 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
21946 cat >>confdefs.h
<<_ACEOF
21947 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
21952 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
21953 #include <sys/stat.h>
21955 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
21957 cat >>confdefs.h
<<_ACEOF
21958 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
21963 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
21964 #include <sys/stat.h>
21966 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
21968 cat >>confdefs.h
<<_ACEOF
21969 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21982 $as_echo_n "checking for working stdalign.h... " >&6; }
21983 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #include <stdalign.h>
21989 #include <stddef.h>
21991 /* Test that alignof yields a result consistent with offsetof.
21992 This catches GCC bug 52023
21993 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21995 template <class t> struct alignof_helper { char a; t b; };
21996 # define ao(type) offsetof (alignof_helper<type>, b)
21998 # define ao(type) offsetof (struct { char a; type b; }, b)
22000 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22001 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22002 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22004 /* Test _Alignas only on platforms where gnulib can help. */
22006 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22007 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22008 int alignas (8) alignas_int = 1;
22009 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22020 if ac_fn_c_try_compile
"$LINENO"; then :
22021 gl_cv_header_working_stdalign_h
=yes
22023 gl_cv_header_working_stdalign_h
=no
22025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22028 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22030 if test $gl_cv_header_working_stdalign_h = yes; then
22033 STDALIGN_H
='stdalign.h'
22037 if test -n "$STDALIGN_H"; then
22038 GL_GENERATE_STDALIGN_H_TRUE
=
22039 GL_GENERATE_STDALIGN_H_FALSE
='#'
22041 GL_GENERATE_STDALIGN_H_TRUE
='#'
22042 GL_GENERATE_STDALIGN_H_FALSE
=
22048 NEXT_STDARG_H
='<stdarg.h>'
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22050 $as_echo_n "checking for va_copy... " >&6; }
22051 if test "${gl_cv_func_va_copy+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22057 #include <stdarg.h>
22063 void (*func) (va_list, va_list) = va_copy;
22070 if ac_fn_c_try_compile
"$LINENO"; then :
22071 gl_cv_func_va_copy
=yes
22073 gl_cv_func_va_copy
=no
22075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22079 $as_echo "$gl_cv_func_va_copy" >&6; }
22080 if test $gl_cv_func_va_copy = no
; then
22081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #if defined _AIX && !defined __GNUC__
22088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22089 $EGREP "vaccine" >/dev
/null
2>&1; then :
22096 if test $gl_aixcc = yes; then
22106 if test $gl_cv_have_include_next = yes; then
22107 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22110 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22111 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22112 $as_echo_n "(cached) " >&6
22115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22116 /* end confdefs.h. */
22117 #include <stdarg.h>
22121 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22122 *) gl_absname_cpp
="$ac_cpp" ;;
22127 gl_dirsep_regex
='[/\\]'
22130 gl_dirsep_regex
='\/'
22133 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22135 gl_header_literal_regex
=`echo 'stdarg.h' \
22136 | sed -e "$gl_make_literal_regex_sed"`
22137 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22143 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22144 sed -n "$gl_absolute_header_sed"`'"'
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22149 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22151 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22153 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22155 gl_next_as_first_directive
='<'stdarg.h
'>'
22157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22158 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22160 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22165 if test "$gl_cv_next_stdarg_h" = '""'; then
22166 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22167 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22171 saved_as_echo_n
="$as_echo_n"
22173 if test "${gl_cv_func___va_copy+set}" = set; then :
22174 $as_echo_n "(cached) " >&6
22177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22179 #include <stdarg.h>
22192 if ac_fn_c_try_compile
"$LINENO"; then :
22193 gl_cv_func___va_copy
=yes
22195 gl_cv_func___va_copy
=no
22197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22200 as_echo_n
="$saved_as_echo_n"
22202 if test $gl_cv_func___va_copy = yes; then
22204 $as_echo "#define va_copy __va_copy" >>confdefs.h
22209 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22215 if test -n "$STDARG_H"; then
22216 GL_GENERATE_STDARG_H_TRUE
=
22217 GL_GENERATE_STDARG_H_FALSE
='#'
22219 GL_GENERATE_STDARG_H_TRUE
='#'
22220 GL_GENERATE_STDARG_H_FALSE
=
22228 # Define two additional variables used in the Makefile substitution.
22230 if test "$ac_cv_header_stdbool_h" = yes; then
22233 STDBOOL_H
='stdbool.h'
22236 if test -n "$STDBOOL_H"; then
22237 GL_GENERATE_STDBOOL_H_TRUE
=
22238 GL_GENERATE_STDBOOL_H_FALSE
='#'
22240 GL_GENERATE_STDBOOL_H_TRUE
='#'
22241 GL_GENERATE_STDBOOL_H_FALSE
=
22245 if test "$ac_cv_type__Bool" = yes; then
22256 if test $gt_cv_c_wchar_t = no
; then
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22261 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22262 if test "${gl_cv_decl_null_works+set}" = set; then :
22263 $as_echo_n "(cached) " >&6
22265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22267 #include <stddef.h>
22268 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22278 if ac_fn_c_try_compile
"$LINENO"; then :
22279 gl_cv_decl_null_works
=yes
22281 gl_cv_decl_null_works
=no
22283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22286 $as_echo "$gl_cv_decl_null_works" >&6; }
22287 if test $gl_cv_decl_null_works = no
; then
22292 if test -n "$STDDEF_H"; then
22293 GL_GENERATE_STDDEF_H_TRUE
=
22294 GL_GENERATE_STDDEF_H_FALSE
='#'
22296 GL_GENERATE_STDDEF_H_TRUE
='#'
22297 GL_GENERATE_STDDEF_H_FALSE
=
22300 if test -n "$STDDEF_H"; then
22309 if test $gl_cv_have_include_next = yes; then
22310 gl_cv_next_stddef_h
='<'stddef.h
'>'
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22313 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22314 if test "${gl_cv_next_stddef_h+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22319 /* end confdefs.h. */
22320 #include <stddef.h>
22324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22325 *) gl_absname_cpp
="$ac_cpp" ;;
22330 gl_dirsep_regex
='[/\\]'
22333 gl_dirsep_regex
='\/'
22336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22338 gl_header_literal_regex
=`echo 'stddef.h' \
22339 | sed -e "$gl_make_literal_regex_sed"`
22340 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22341 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22346 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22347 sed -n "$gl_absolute_header_sed"`'"'
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22352 $as_echo "$gl_cv_next_stddef_h" >&6; }
22354 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22356 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22358 gl_next_as_first_directive
='<'stddef.h
'>'
22360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22361 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22363 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22382 if test $gl_cv_have_include_next = yes; then
22383 gl_cv_next_stdio_h
='<'stdio.h
'>'
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22386 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22387 if test "${gl_cv_next_stdio_h+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22397 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22398 *) gl_absname_cpp
="$ac_cpp" ;;
22403 gl_dirsep_regex
='[/\\]'
22406 gl_dirsep_regex
='\/'
22409 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22411 gl_header_literal_regex
=`echo 'stdio.h' \
22412 | sed -e "$gl_make_literal_regex_sed"`
22413 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22414 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22419 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22420 sed -n "$gl_absolute_header_sed"`'"'
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22425 $as_echo "$gl_cv_next_stdio_h" >&6; }
22427 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22429 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22431 gl_next_as_first_directive
='<'stdio.h
'>'
22433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22434 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22436 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22445 cat >>confdefs.h
<<_ACEOF
22446 #define GNULIB_FSCANF 1
22453 cat >>confdefs.h
<<_ACEOF
22454 #define GNULIB_SCANF 1
22490 if test $gl_cv_have_include_next = yes; then
22491 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22494 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22495 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22496 $as_echo_n "(cached) " >&6
22499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22501 #include <stdlib.h>
22505 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22506 *) gl_absname_cpp
="$ac_cpp" ;;
22511 gl_dirsep_regex
='[/\\]'
22514 gl_dirsep_regex
='\/'
22517 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22519 gl_header_literal_regex
=`echo 'stdlib.h' \
22520 | sed -e "$gl_make_literal_regex_sed"`
22521 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22522 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22527 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22528 sed -n "$gl_absolute_header_sed"`'"'
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22533 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22535 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22537 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22539 gl_next_as_first_directive
='<'stdlib.h
'>'
22541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22542 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22544 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22554 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22562 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22571 if test "$ac_cv_have_decl_strtoimax" != yes; then
22572 HAVE_DECL_STRTOIMAX
=0
22575 if test $ac_cv_func_strtoimax = yes; then
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22578 $as_echo_n "checking whether strtoimax works... " >&6; }
22579 if test "${gl_cv_func_strtoimax+set}" = set; then :
22580 $as_echo_n "(cached) " >&6
22582 if test "$cross_compiling" = yes; then :
22584 # Guess no on AIX 5.
22585 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22586 # Guess yes otherwise.
22587 *) gl_cv_func_strtoimax
="guessing yes" ;;
22591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h. */
22595 #include <string.h>
22596 #include <inttypes.h>
22599 if (sizeof (intmax_t) > sizeof (int))
22601 const char *s = "4294967295";
22605 res = strtoimax (s, &p, 10);
22606 if (p != s + strlen (s))
22610 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22615 const char *s = "2147483647";
22619 res = strtoimax (s, &p, 10);
22620 if (p != s + strlen (s))
22624 if (res != 2147483647)
22631 if ac_fn_c_try_run
"$LINENO"; then :
22632 gl_cv_func_strtoimax
=yes
22634 gl_cv_func_strtoimax
=no
22636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22637 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22643 $as_echo "$gl_cv_func_strtoimax" >&6; }
22644 case "$gl_cv_func_strtoimax" in
22645 *no
) REPLACE_STRTOIMAX
=1 ;;
22651 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
22660 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
22663 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22664 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
22670 cat >>confdefs.h
<<_ACEOF
22671 #define HAVE_DECL_STRTOLL $ac_have_decl
22692 if test "$ac_cv_have_decl_strtoumax" != yes; then
22693 HAVE_DECL_STRTOUMAX
=0
22696 if test $ac_cv_func_strtoumax = no
; then
22705 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
22708 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22709 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22715 cat >>confdefs.h
<<_ACEOF
22716 #define HAVE_DECL_STRTOULL $ac_have_decl
22735 if test $ac_cv_func_symlink = no
; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22739 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22740 if test "${gl_cv_func_symlink_works+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22743 if test "$cross_compiling" = yes; then :
22745 # Guess yes on glibc systems.
22746 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
22747 # If we don't know, assume the worst.
22748 *) gl_cv_func_symlink_works
="guessing no" ;;
22752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22754 #include <unistd.h>
22760 if (!symlink ("a", "conftest.link/"))
22762 if (symlink ("conftest.f", "conftest.lnk2"))
22764 else if (!symlink ("a", "conftest.lnk2/"))
22772 if ac_fn_c_try_run
"$LINENO"; then :
22773 gl_cv_func_symlink_works
=yes
22775 gl_cv_func_symlink_works
=no
22777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22781 rm -f conftest.f conftest.link conftest.lnk2
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22784 $as_echo "$gl_cv_func_symlink_works" >&6; }
22785 case "$gl_cv_func_symlink_works" in
22793 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22802 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22820 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22821 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22826 /* end confdefs.h. */
22827 #include <sys/select.h>
22836 if ac_fn_c_try_compile
"$LINENO"; then :
22837 gl_cv_header_sys_select_h_selfcontained
=yes
22839 gl_cv_header_sys_select_h_selfcontained
=no
22841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22842 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22845 #include <sys/select.h>
22849 int memset; int bzero;
22855 if ac_fn_c_try_compile
"$LINENO"; then :
22856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22858 #include <sys/select.h>
22864 #define memset nonexistent_memset
22869 void *memset (void *, int, unsigned long);
22871 #define bzero nonexistent_bzero
22876 void bzero (void *, unsigned long);
22885 if ac_fn_c_try_link
"$LINENO"; then :
22888 gl_cv_header_sys_select_h_selfcontained
=no
22890 rm -f core conftest.err conftest.
$ac_objext \
22891 conftest
$ac_exeext conftest.
$ac_ext
22894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22899 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22909 if test $gl_cv_have_include_next = yes; then
22910 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22913 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22914 if test "${gl_cv_next_sys_select_h+set}" = set; then :
22915 $as_echo_n "(cached) " >&6
22918 if test $ac_cv_header_sys_select_h = yes; then
22921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22922 /* end confdefs.h. */
22923 #include <sys/select.h>
22927 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22928 *) gl_absname_cpp
="$ac_cpp" ;;
22933 gl_dirsep_regex
='[/\\]'
22936 gl_dirsep_regex
='\/'
22939 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22941 gl_header_literal_regex
=`echo 'sys/select.h' \
22942 | sed -e "$gl_make_literal_regex_sed"`
22943 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22944 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22949 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22950 sed -n "$gl_absolute_header_sed"`'"'
22952 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22958 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22960 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
22962 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22964 gl_next_as_first_directive
='<'sys
/select.h
'>'
22966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22967 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
22969 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
22974 if test $ac_cv_header_sys_select_h = yes; then
22975 HAVE_SYS_SELECT_H
=1
22977 HAVE_SYS_SELECT_H
=0
22984 if test $ac_cv_header_sys_socket_h != yes; then
22985 for ac_header
in winsock2.h
22987 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22988 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
22989 cat >>confdefs.h
<<_ACEOF
22990 #define HAVE_WINSOCK2_H 1
22998 if test "$ac_cv_header_winsock2_h" = yes; then
23000 UNISTD_H_HAVE_WINSOCK2_H
=1
23001 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23027 if test $gl_cv_have_include_next = yes; then
23028 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23031 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23032 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23033 $as_echo_n "(cached) " >&6
23036 if test $ac_cv_header_sys_stat_h = yes; then
23039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23040 /* end confdefs.h. */
23041 #include <sys/stat.h>
23045 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23046 *) gl_absname_cpp
="$ac_cpp" ;;
23051 gl_dirsep_regex
='[/\\]'
23054 gl_dirsep_regex
='\/'
23057 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23059 gl_header_literal_regex
=`echo 'sys/stat.h' \
23060 | sed -e "$gl_make_literal_regex_sed"`
23061 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23062 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23067 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23068 sed -n "$gl_absolute_header_sed"`'"'
23070 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23076 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23078 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23080 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23081 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23082 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23084 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23085 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23087 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23099 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23101 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23105 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23106 #include <sys/stat.h>
23108 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23112 $as_echo "#define nlink_t int" >>confdefs.h
23133 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23135 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23141 cat >>confdefs.h
<<_ACEOF
23142 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23145 if test $ac_cv_have_decl_localtime_r = no
; then
23146 HAVE_DECL_LOCALTIME_R
=0
23150 if test $ac_cv_func_localtime_r = yes; then
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23153 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23154 if test "${gl_cv_time_r_posix+set}" = set; then :
23155 $as_echo_n "(cached) " >&6
23157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h. */
23163 /* We don't need to append 'restrict's to the argument types,
23164 even though the POSIX signature has the 'restrict's,
23165 since C99 says they can't affect type compatibility. */
23166 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23168 /* Check the return type is a pointer.
23169 On HP-UX 10 it is 'int'. */
23170 *localtime_r (0, 0);
23176 if ac_fn_c_try_compile
"$LINENO"; then :
23177 gl_cv_time_r_posix
=yes
23179 gl_cv_time_r_posix
=no
23181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23185 $as_echo "$gl_cv_time_r_posix" >&6; }
23186 if test $gl_cv_time_r_posix = yes; then
23187 REPLACE_LOCALTIME_R
=0
23189 REPLACE_LOCALTIME_R
=1
23195 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23204 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23237 if test $gl_cv_have_include_next = yes; then
23238 gl_cv_next_unistd_h
='<'unistd.h
'>'
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23241 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23242 if test "${gl_cv_next_unistd_h+set}" = set; then :
23243 $as_echo_n "(cached) " >&6
23246 if test $ac_cv_header_unistd_h = yes; then
23249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h. */
23251 #include <unistd.h>
23255 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23256 *) gl_absname_cpp
="$ac_cpp" ;;
23261 gl_dirsep_regex
='[/\\]'
23264 gl_dirsep_regex
='\/'
23267 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23269 gl_header_literal_regex
=`echo 'unistd.h' \
23270 | sed -e "$gl_make_literal_regex_sed"`
23271 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23277 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23278 sed -n "$gl_absolute_header_sed"`'"'
23280 gl_cv_next_unistd_h
='<'unistd.h
'>'
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23286 $as_echo "$gl_cv_next_unistd_h" >&6; }
23288 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23290 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23292 gl_next_as_first_directive
='<'unistd.h
'>'
23294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23295 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23297 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23302 if test $ac_cv_header_unistd_h = yes; then
23321 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23323 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23324 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23325 $as_echo_n "(cached) " >&6
23327 touch conftest.
file
23328 if test "$cross_compiling" = yes; then :
23330 # Guess yes on glibc systems.
23331 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23332 # If we don't know, assume the worst.
23333 *) gl_cv_func_futimesat_works
="guessing no" ;;
23337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23340 #include <stddef.h>
23341 #include <sys/times.h>
23347 int fd = open ("conftest.file", O_RDWR);
23348 if (fd < 0) return 1;
23349 if (futimesat (fd, NULL, NULL)) return 2;
23355 if ac_fn_c_try_run
"$LINENO"; then :
23356 gl_cv_func_futimesat_works
=yes
23358 gl_cv_func_futimesat_works
=no
23360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23364 rm -f conftest.
file
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23367 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23368 case "$gl_cv_func_futimesat_works" in
23372 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23378 gl_gnulib_enabled_dosname
=false
23379 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23380 gl_gnulib_enabled_pathmax
=false
23381 gl_gnulib_enabled_stat
=false
23382 gl_gnulib_enabled_strtoll
=false
23383 gl_gnulib_enabled_strtoull
=false
23384 gl_gnulib_enabled_verify
=false
23385 func_gl_gnulib_m4code_dosname
()
23387 if ! $gl_gnulib_enabled_dosname; then
23388 gl_gnulib_enabled_dosname
=true
23391 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23393 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23396 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23399 func_gl_gnulib_m4code_pathmax
()
23401 if ! $gl_gnulib_enabled_pathmax; then
23405 gl_gnulib_enabled_pathmax
=true
23408 func_gl_gnulib_m4code_stat
()
23410 if ! $gl_gnulib_enabled_stat; then
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23415 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23416 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23417 $as_echo_n "(cached) " >&6
23419 if test "$cross_compiling" = yes; then :
23421 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23422 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23426 /* end confdefs.h. */
23427 #include <sys/stat.h>
23432 struct stat st; return stat (".", &st) != stat ("./", &st);
23437 if ac_fn_c_try_run
"$LINENO"; then :
23438 gl_cv_func_stat_dir_slash
=yes
23440 gl_cv_func_stat_dir_slash
=no
23442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23448 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23450 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23451 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23452 $as_echo_n "(cached) " >&6
23455 # Assume that if we have lstat, we can also check symlinks.
23456 if test $ac_cv_func_lstat = yes; then
23457 ln -s conftest.tmp conftest.lnk
23459 if test "$cross_compiling" = yes; then :
23461 # Guess yes on glibc systems.
23462 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23463 # If we don't know, assume the worst.
23464 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23469 /* end confdefs.h. */
23470 #include <sys/stat.h>
23477 if (!stat ("conftest.tmp/", &st))
23480 if (!stat ("conftest.lnk/", &st))
23489 if ac_fn_c_try_run
"$LINENO"; then :
23490 gl_cv_func_stat_file_slash
=yes
23492 gl_cv_func_stat_file_slash
=no
23494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23498 rm -f conftest.tmp conftest.lnk
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23501 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23502 case $gl_cv_func_stat_dir_slash in
23503 *no
) REPLACE_STAT
=1
23505 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23508 case $gl_cv_func_stat_file_slash in
23509 *no
) REPLACE_STAT
=1
23511 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23515 if test $REPLACE_STAT = 1; then
23524 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23542 gl_gnulib_enabled_stat
=true
23543 if test $REPLACE_STAT = 1; then
23544 func_gl_gnulib_m4code_dosname
23546 if test $REPLACE_STAT = 1; then
23547 func_gl_gnulib_m4code_pathmax
23549 if test $REPLACE_STAT = 1; then
23550 func_gl_gnulib_m4code_verify
23554 func_gl_gnulib_m4code_strtoll
()
23556 if ! $gl_gnulib_enabled_strtoll; then
23560 if test "$ac_cv_type_long_long_int" = yes; then
23561 for ac_func
in strtoll
23563 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23564 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23565 cat >>confdefs.h
<<_ACEOF
23566 #define HAVE_STRTOLL 1
23572 if test $ac_cv_func_strtoll = no
; then
23577 if test $HAVE_STRTOLL = 0; then
23586 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23603 gl_gnulib_enabled_strtoll
=true
23606 func_gl_gnulib_m4code_strtoull
()
23608 if ! $gl_gnulib_enabled_strtoull; then
23612 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23613 for ac_func
in strtoull
23615 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23616 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23617 cat >>confdefs.h
<<_ACEOF
23618 #define HAVE_STRTOULL 1
23624 if test $ac_cv_func_strtoull = no
; then
23629 if test $HAVE_STRTOULL = 0; then
23638 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
23655 gl_gnulib_enabled_strtoull
=true
23658 func_gl_gnulib_m4code_verify
()
23660 if ! $gl_gnulib_enabled_verify; then
23661 gl_gnulib_enabled_verify
=true
23664 if test $REPLACE_GETOPT = 1; then
23665 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23667 if test $REPLACE_LSTAT = 1; then
23668 func_gl_gnulib_m4code_dosname
23670 if test $REPLACE_LSTAT = 1; then
23671 func_gl_gnulib_m4code_stat
23673 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23674 func_gl_gnulib_m4code_stat
23676 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23677 func_gl_gnulib_m4code_strtoll
23679 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23680 func_gl_gnulib_m4code_verify
23682 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
23683 func_gl_gnulib_m4code_strtoull
23685 if test $ac_cv_func_strtoumax = no
; then
23686 func_gl_gnulib_m4code_verify
23689 if $gl_gnulib_enabled_dosname; then
23690 gl_GNULIB_ENABLED_dosname_TRUE
=
23691 gl_GNULIB_ENABLED_dosname_FALSE
='#'
23693 gl_GNULIB_ENABLED_dosname_TRUE
='#'
23694 gl_GNULIB_ENABLED_dosname_FALSE
=
23697 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23698 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
23699 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
23701 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
23702 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
23705 if $gl_gnulib_enabled_pathmax; then
23706 gl_GNULIB_ENABLED_pathmax_TRUE
=
23707 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
23709 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
23710 gl_GNULIB_ENABLED_pathmax_FALSE
=
23713 if $gl_gnulib_enabled_stat; then
23714 gl_GNULIB_ENABLED_stat_TRUE
=
23715 gl_GNULIB_ENABLED_stat_FALSE
='#'
23717 gl_GNULIB_ENABLED_stat_TRUE
='#'
23718 gl_GNULIB_ENABLED_stat_FALSE
=
23721 if $gl_gnulib_enabled_strtoll; then
23722 gl_GNULIB_ENABLED_strtoll_TRUE
=
23723 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
23725 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
23726 gl_GNULIB_ENABLED_strtoll_FALSE
=
23729 if $gl_gnulib_enabled_strtoull; then
23730 gl_GNULIB_ENABLED_strtoull_TRUE
=
23731 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
23733 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
23734 gl_GNULIB_ENABLED_strtoull_FALSE
=
23737 if $gl_gnulib_enabled_verify; then
23738 gl_GNULIB_ENABLED_verify_TRUE
=
23739 gl_GNULIB_ENABLED_verify_FALSE
='#'
23741 gl_GNULIB_ENABLED_verify_TRUE
='#'
23742 gl_GNULIB_ENABLED_verify_FALSE
=
23745 # End of code from modules
23766 gl_source_base
='tests'
23767 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
23769 gl_module_indicator_condition
=$gltests_WITNESS
23780 LIBGNU_LIBDEPS
="$gl_libdeps"
23782 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23785 CFLAGS
=$SAVE_CFLAGS
23789 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
23792 ## The -headerpad option tells ld (see man page) to leave room at the
23793 ## end of the header for adding load commands. Needed for dumping.
23794 ## 0x690 is the total size of 30 segment load commands (at 56
23795 ## each); under Cocoa 31 commands are required.
23796 if test "$HAVE_NS" = "yes"; then
23797 libs_nsgui
="-framework AppKit"
23798 headerpad_extra
=6C8
23801 headerpad_extra
=690
23803 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23805 ## This is here because src/Makefile.in did some extra fiddling around
23806 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23807 ## #ifndef LD_SWITCH_SYSTEM
23808 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23809 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23810 ## not using gcc, darwin.
23811 ## Because this was done in src/Makefile.in, the resulting part of
23812 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23813 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23814 ## rather than LD_SWITCH_SYSTEM.
23815 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23816 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
23819 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23820 ## find X at run-time.
23821 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23822 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23823 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23824 ## had different values in configure (in ac_link) and src/Makefile.in.
23825 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23826 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23828 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
23831 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23832 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23841 ## gnu: GNU needs its own crt0.
23842 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
23844 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23845 ## library search parth, i.e. it won't search /usr/lib for libc and
23846 ## friends. Using -nostartfiles instead avoids this problem, and
23847 ## will also work on earlier NetBSD releases.
23848 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
23850 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23851 ## MkLinux/LinuxPPC needs this.
23852 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23854 case "$canonical" in
23855 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
23861 if test "x$ORDINARY_LINK" = "xyes"; then
23865 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23868 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23869 ## freebsd, gnu-* not on powerpc*|s390x*.
23870 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23872 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23873 ## places that are difficult to figure out at make time. Fortunately,
23874 ## these same versions allow you to pass arbitrary flags on to the
23875 ## linker, so there is no reason not to use it as a linker.
23877 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23878 ## searching for libraries in its internal directories, so we have to
23879 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23880 LD_FIRSTFLAG
="-nostdlib"
23883 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23884 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
23889 ## FIXME? The logic here is not precisely the same as that above.
23890 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23891 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23893 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23896 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
23899 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23900 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23906 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23907 ## immediately undefine it again and redefine it to empty.
23908 ## Was the C_SWITCH_X_SITE part really necessary?
23909 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23915 ## Ask GCC where to find libgcc.a.
23916 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23921 ## If we're using X11/GNUstep, define some consequences.
23922 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
23924 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23927 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23934 #### Report on what we decided to do.
23935 #### Report GTK as a toolkit, even if it doesn't use Xt.
23936 #### It makes printing result more understandable as using GTK sets
23937 #### toolkit_scroll_bars to yes by default.
23938 if test "${HAVE_GTK}" = "yes"; then
23939 if test "${with_gtk3}" = "yes"; then
23947 Configured for \`${canonical}'.
23949 Where should the build process find the source code? ${srcdir}
23950 What compiler should emacs be built with? ${CC} ${CFLAGS}
23951 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23952 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23953 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23954 What window system should Emacs use? ${window_system}
23955 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23957 if test -n "${x_includes}"; then
23958 echo " Where do we find X Windows header files? ${x_includes}"
23960 echo " Where do we find X Windows header files? Standard dirs"
23962 if test -n "${x_libraries}"; then
23963 echo " Where do we find X Windows libraries? ${x_libraries}"
23965 echo " Where do we find X Windows libraries? Standard dirs"
23968 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23969 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23970 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23971 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23972 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23973 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23974 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23975 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23977 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23978 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23979 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23980 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23981 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23982 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23983 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23985 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23986 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23987 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23988 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23990 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23993 if test -n "${EMACSDATA}"; then
23994 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23996 if test -n "${EMACSDOC}"; then
23997 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24002 if test "$HAVE_NS" = "yes"; then
24004 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24005 The installed application will go to nextstep/Emacs.app and can be
24006 run or moved from there."
24007 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24008 echo "The application will be fully self-contained."
24010 echo "The lisp resources for the application will be installed under ${prefix}.
24011 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24012 to run if these resources are not installed."
24017 if test "${opsys}" = "cygwin"; then
24019 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24020 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24026 # Remove any trailing slashes in these variables.
24027 test "${prefix}" != NONE
&&
24028 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24029 test "${exec_prefix}" != NONE
&&
24030 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24032 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"
24034 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"
24037 opt_makefile
=test
/automated
/Makefile
24039 if test -f $srcdir/${opt_makefile}.
in; then
24040 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24041 ac_config_files
="$ac_config_files test/automated/Makefile"
24046 opt_makefile
=admin
/unidata
/Makefile
24048 if test -f $srcdir/${opt_makefile}.
in; then
24049 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24050 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24055 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24059 ac_config_commands
="$ac_config_commands mkdirs"
24062 ac_config_commands
="$ac_config_commands epaths"
24065 ac_config_commands
="$ac_config_commands gdbinit"
24068 cat >confcache
<<\_ACEOF
24069 # This file is a shell script that caches the results of configure
24070 # tests run on this system so they can be shared between configure
24071 # scripts and configure runs, see configure's option --config-cache.
24072 # It is not useful on other systems. If it contains results you don't
24073 # want to keep, you may remove or edit it.
24075 # config.status only pays attention to the cache file if you give it
24076 # the --recheck option to rerun configure.
24078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24080 # following values.
24084 # The following way of writing the cache mishandles newlines in values,
24085 # but we know of no workaround that is simple, portable, and efficient.
24086 # So, we kill variables containing newlines.
24087 # Ultrix sh set writes to stderr and can't be redirected directly,
24088 # and sets the high bit in the cache file unless we assign to the vars.
24090 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24091 eval ac_val
=\$
$ac_var
24095 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24099 _ | IFS | as_nl
) ;; #(
24100 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24101 *) { eval $ac_var=; unset $ac_var;} ;;
24107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24108 *${as_nl}ac_space
=\
*)
24109 # `set' does not quote correctly, so add quotes: double-quote
24110 # substitution turns \\\\ into \\, and sed turns \\ into \.
24113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24116 # `set' quotes correctly as required by POSIX, so do not add quotes.
24117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24130 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24131 if test -w "$cache_file"; then
24132 test "x$cache_file" != "x/dev/null" &&
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24134 $as_echo "$as_me: updating cache $cache_file" >&6;}
24135 cat confcache
>$cache_file
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24144 # Let make expand exec_prefix.
24145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24147 DEFS
=-DHAVE_CONFIG_H
24151 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24152 # 1. Remove the extension, and $U if already installed.
24153 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24154 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24156 # will be set to the directory where LIBOBJS objects are built.
24157 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24158 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24160 LIBOBJS
=$ac_libobjs
24162 LTLIBOBJS
=$ac_ltlibobjs
24165 if test -n "$EXEEXT"; then
24167 am__EXEEXT_FALSE
='#'
24169 am__EXEEXT_TRUE
='#'
24173 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24174 as_fn_error
"conditional \"AMDEP\" was never defined.
24175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24178 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24181 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24182 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24185 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24186 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24190 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24191 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24194 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24195 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24198 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24199 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24202 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24203 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24206 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24207 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24210 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24211 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24214 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24215 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24218 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24219 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24222 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24223 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24226 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24227 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24230 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24231 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24234 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24235 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24241 if test -n "$gl_LIBOBJS"; then
24242 # Remove the extension.
24243 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24244 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24245 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24246 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24249 gl_LIBOBJS
=$gl_libobjs
24251 gl_LTLIBOBJS
=$gl_ltlibobjs
24257 if test -n "$gltests_LIBOBJS"; then
24258 # Remove the extension.
24259 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24260 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24261 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24262 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24265 gltests_LIBOBJS
=$gltests_libobjs
24267 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24271 : ${CONFIG_STATUS=./config.status}
24273 ac_clean_files_save
=$ac_clean_files
24274 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24280 # Generated by $as_me.
24281 # Run this file to recreate the current configuration.
24282 # Compiler output produced by configure, useful for debugging
24283 # configure, is in config.log if it exists.
24286 ac_cs_recheck=false
24289 SHELL=\${CONFIG_SHELL-$SHELL}
24292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24293 ## -------------------- ##
24294 ## M4sh Initialization. ##
24295 ## -------------------- ##
24297 # Be more Bourne compatible
24298 DUALCASE
=1; export DUALCASE
# for MKS sh
24299 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24303 # is contrary to our usage. Disable this feature.
24304 alias -g '${1+"$@"}'='"$@"'
24305 setopt NO_GLOB_SUBST
24307 case `(set -o) 2>/dev/null` in #(
24319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24320 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24323 # Prefer a ksh shell builtin over an external printf program on Solaris,
24324 # but without wasting forks for bash or zsh.
24325 if test -z "$BASH_VERSION$ZSH_VERSION" \
24326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24327 as_echo='print
-r --'
24328 as_echo_n='print
-rn --'
24329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24330 as_echo='printf %s
\n'
24331 as_echo_n='printf %s
'
24333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24334 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24335 as_echo_n='/usr
/ucb
/echo -n'
24337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24338 as_echo_n_body='eval
24342 expr "X$arg" : "X\\(.*\\)$as_nl";
24343 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24345 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24347 export as_echo_n_body
24348 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24350 export as_echo_body
24351 as_echo='sh
-c $as_echo_body as_echo
'
24354 # The user is always right.
24355 if test "${PATH_SEPARATOR+set}" != set; then
24357 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24358 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24365 # We need space, tab and new line, in precisely that order. Quoting is
24366 # there to prevent editors from complaining about space-tab.
24367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24368 # splitting by setting IFS to empty value.)
24371 # Find who we are. Look in the path if we contain no directory separator.
24373 *[\\/]* ) as_myself=$0 ;;
24374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24375 for as_dir in $PATH
24378 test -z "$as_dir" && as_dir=.
24379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24385 # We did not find ourselves, most probably we were run as `sh COMMAND'
24386 # in which case we are not to be found in the path.
24387 if test "x$as_myself" = x
; then
24390 if test ! -f "$as_myself"; then
24391 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24395 # Unset variables that we do not need and which cause bugs (e.g. in
24396 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24397 # suppresses any "Segmentation fault" message there. '((' could
24398 # trigger a bug in pdksh 5.2.14.
24399 for as_var
in BASH_ENV ENV MAIL MAILPATH
24400 do eval test x\
${$as_var+set} = xset \
24401 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24414 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24417 # as_fn_error ERROR [LINENO LOG_FD]
24418 # ---------------------------------
24419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24421 # script with status $?, using 1 if that was 0.
24424 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24426 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24427 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24429 $as_echo "$as_me: error: $1" >&2
24430 as_fn_exit
$as_status
24434 # as_fn_set_status STATUS
24435 # -----------------------
24436 # Set $? to STATUS, without forking.
24437 as_fn_set_status
()
24440 } # as_fn_set_status
24442 # as_fn_exit STATUS
24443 # -----------------
24444 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24448 as_fn_set_status
$1
24454 # Portably unset VAR.
24457 { eval $1=; unset $1;}
24459 as_unset
=as_fn_unset
24460 # as_fn_append VAR VALUE
24461 # ----------------------
24462 # Append the text in VALUE to the end of the definition contained in VAR. Take
24463 # advantage of any shell optimizations that allow amortized linear growth over
24464 # repeated appends, instead of the typical quadratic growth present in naive
24466 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24467 eval 'as_fn_append ()
24478 # as_fn_arith ARG...
24479 # ------------------
24480 # Perform arithmetic evaluation on the ARGs, and store the result in the
24481 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24482 # must be portable across $(()) and expr.
24483 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24484 eval 'as_fn_arith ()
24491 as_val
=`expr "$@" || test $? -eq 1`
24496 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24497 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24503 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24504 as_basename
=basename
24509 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24515 as_me
=`$as_basename -- "$0" ||
24516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24517 X"$0" : 'X\(//\)$' \| \
24518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24520 sed '/^.*\/\([^/][^/]*\)\/*$/{
24534 # Avoid depending upon Character Ranges.
24535 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24536 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24537 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24538 as_cr_digits
='0123456789'
24539 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24541 ECHO_C
= ECHO_N
= ECHO_T
=
24542 case `echo -n x` in #(((((
24544 case `echo 'xy\c'` in
24545 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24547 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24554 rm -f conf$$ conf$$.exe conf$$.
file
24555 if test -d conf$$.dir
; then
24556 rm -f conf$$.dir
/conf$$.
file
24559 mkdir conf$$.dir
2>/dev
/null
24561 if (echo >conf$$.
file) 2>/dev
/null
; then
24562 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24564 # ... but there are two gotchas:
24565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24567 # In both cases, we have to default to `cp -p'.
24568 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24570 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24578 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24579 rmdir conf$$.dir
2>/dev
/null
24584 # Create "$as_dir" as a directory, including parents if necessary.
24589 -*) as_dir
=.
/$as_dir;;
24591 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24595 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24596 *) as_qdir
=$as_dir;;
24598 as_dirs
="'$as_qdir' $as_dirs"
24599 as_dir
=`$as_dirname -- "$as_dir" ||
24600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601 X"$as_dir" : 'X\(//\)[^/]' \| \
24602 X"$as_dir" : 'X\(//\)$' \| \
24603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24604 $as_echo X"$as_dir" |
24605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24609 /^X\(\/\/\)[^/].*/{
24622 test -d "$as_dir" && break
24624 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24625 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24629 if mkdir
-p .
2>/dev
/null
; then
24630 as_mkdir_p
='mkdir -p "$as_dir"'
24632 test -d .
/-p && rmdir .
/-p
24636 if test -x / >/dev
/null
2>&1; then
24637 as_test_x
='test -x'
24639 if ls -dL / >/dev
/null
2>&1; then
24646 if test -d "$1"; then
24652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24653 ???[sx]*):;;*)false;;esac;fi
24657 as_executable_p
=$as_test_x
24659 # Sed expression to map a string onto a valid CPP name.
24660 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24662 # Sed expression to map a string onto a valid variable name.
24663 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24667 ## ----------------------------------- ##
24668 ## Main body of $CONFIG_STATUS script. ##
24669 ## ----------------------------------- ##
24671 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24674 # Save the log message, to keep $0 and so on meaningful, and to
24675 # report actual input values of CONFIG_FILES etc. instead of their
24676 # values after options handling.
24678 This file was extended by emacs $as_me 24.2.50, which was
24679 generated by GNU Autoconf 2.65. Invocation command line was
24681 CONFIG_FILES = $CONFIG_FILES
24682 CONFIG_HEADERS = $CONFIG_HEADERS
24683 CONFIG_LINKS = $CONFIG_LINKS
24684 CONFIG_COMMANDS = $CONFIG_COMMANDS
24687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24692 case $ac_config_files in *"
24693 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24696 case $ac_config_headers in *"
24697 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24702 # Files that config.status was made for.
24703 config_files="$ac_config_files"
24704 config_headers="$ac_config_headers"
24705 config_commands="$ac_config_commands"
24709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24711 \`$as_me' instantiates files and other configuration actions
24712 from templates according to the current configuration. Unless the files
24713 and actions are specified as TAGs, all are instantiated by default.
24715 Usage: $0 [OPTION]... [TAG]...
24717 -h, --help print this help, then exit
24718 -V, --version print version number and configuration settings, then exit
24719 --config print configuration, then exit
24720 -q, --quiet, --silent
24721 do not print progress messages
24722 -d, --debug don't remove temporary files
24723 --recheck update $as_me by reconfiguring in the same conditions
24724 --file=FILE[:TEMPLATE]
24725 instantiate the configuration file FILE
24726 --header=FILE[:TEMPLATE]
24727 instantiate the configuration header FILE
24729 Configuration files:
24732 Configuration headers:
24735 Configuration commands:
24738 Report bugs to the package provider."
24741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24742 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24744 emacs config.status 24.2.50
24745 configured by $0, generated by GNU Autoconf 2.65,
24746 with options \\"\$ac_cs_config\\"
24748 Copyright (C) 2009 Free Software Foundation, Inc.
24749 This config.status script is free software; the Free Software Foundation
24750 gives unlimited permission to copy, distribute and modify it."
24757 test -n "\$AWK" || AWK=awk
24760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24761 # The default lists apply if the user does not specify any file.
24767 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24768 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24779 # Handling of the options.
24780 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24782 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24783 $as_echo "$ac_cs_version"; exit ;;
24784 --config |
--confi |
--conf |
--con |
--co |
--c )
24785 $as_echo "$ac_cs_config"; exit ;;
24786 --debug |
--debu |
--deb |
--de |
--d |
-d )
24788 --file |
--fil |
--fi |
--f )
24791 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24793 as_fn_append CONFIG_FILES
" '$ac_optarg'"
24794 ac_need_defaults
=false
;;
24795 --header |
--heade |
--head |
--hea )
24798 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24800 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
24801 ac_need_defaults
=false
;;
24803 # Conflict between --help and --header
24804 as_fn_error
"ambiguous option: \`$1'
24805 Try \`$0 --help' for more information.";;
24806 --help |
--hel |
-h )
24807 $as_echo "$ac_cs_usage"; exit ;;
24808 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24809 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24812 # This is an error.
24813 -*) as_fn_error
"unrecognized option: \`$1'
24814 Try \`$0 --help' for more information." ;;
24816 *) as_fn_append ac_config_targets
" $1"
24817 ac_need_defaults
=false
;;
24823 ac_configure_extra_args
=
24825 if $ac_cs_silent; then
24827 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24832 if \$ac_cs_recheck; then
24833 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24836 CONFIG_SHELL='$SHELL'
24837 export CONFIG_SHELL
24842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24847 ## Running $as_me. ##
24853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24857 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24858 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24864 # Handling of arguments.
24865 for ac_config_target
in $ac_config_targets
24867 case $ac_config_target in
24868 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24869 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
24870 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24871 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
24872 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
24873 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24874 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24875 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24876 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24877 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24878 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
24879 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24880 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24881 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24882 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
24883 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
24884 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
24885 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
24886 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
24888 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24893 # If the user did not use the arguments to specify the items to instantiate,
24894 # then the envvar interface is used. Set only those that are not.
24895 # We use the long form for the default assignment because of an extremely
24896 # bizarre bug on SunOS 4.1.3.
24897 if $ac_need_defaults; then
24898 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24899 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24900 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24903 # Have a temporary directory for convenience. Make it in the build tree
24904 # simply because there is no reason against having it here, and in addition,
24905 # creating and moving files from /tmp can sometimes cause problems.
24906 # Hook for its removal unless debugging.
24907 # Note that there is a small window in which the directory will not be cleaned:
24908 # after its creation but before its name has been assigned to `$tmp'.
24912 trap 'exit_status=$?
24913 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24915 trap 'as_fn_exit 1' 1 2 13 15
24917 # Create a (secure) tmp directory for tmp files.
24920 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24921 test -n "$tmp" && test -d "$tmp"
24924 tmp
=.
/conf$$
-$RANDOM
24925 (umask 077 && mkdir
"$tmp")
24926 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
24928 # Set up the scripts for CONFIG_FILES section.
24929 # No need to generate them if there are no CONFIG_FILES.
24930 # This happens for instance with `./config.status config.h'.
24931 if test -n "$CONFIG_FILES"; then
24933 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
24934 ac_cs_awk_getline
=:
24935 ac_cs_awk_pipe_init
=
24936 ac_cs_awk_read_file
='
24937 while ((getline aline < (F[key])) > 0)
24940 ac_cs_awk_pipe_fini
=
24942 ac_cs_awk_getline
=false
24943 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
24944 ac_cs_awk_read_file
='
24946 print "cat " F[key] " &&"
24947 '$ac_cs_awk_pipe_init
24948 # The final `:' finishes the AND list.
24949 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
24951 ac_cr
=`echo X | tr X '\015'`
24952 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24953 # But we know of no other shell where ac_cr would be empty at this
24954 # point, so we can use a bashism as a fallback.
24955 if test "x$ac_cr" = x
; then
24956 eval ac_cr
=\$
\'\\r
\'
24958 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24962 ac_cs_awk_cr
=$ac_cr
24965 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24968 # Create commands to substitute file output variables.
24970 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24971 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24972 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24975 } >conf$
$files.sh
&&
24976 . .
/conf$
$files.sh ||
24977 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24978 rm -f conf$
$files.sh
24981 echo "cat >conf$$subs.awk <<_ACEOF" &&
24982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24984 } >conf$$subs.sh ||
24985 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24988 for ac_last_try in false false false false false :; do
24989 . ./conf$$subs.sh ||
24990 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24992 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24993 if test $ac_delim_n = $ac_delim_num; then
24995 elif $ac_last_try; then
24996 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24998 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25001 rm -f conf$$subs.sh
25003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25004 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25008 s/^/S["/; s
/!.
*/"]=/
25018 s/\(.\{148\}\)..*/\1/
25020 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25025 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25032 s/\(.\{148\}\)..*/\1/
25034 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25038 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25043 ' <conf$$subs.awk | sed '
25048 ' >>$CONFIG_STATUS || ac_write_fail=1
25049 rm -f conf$$subs.awk
25050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25052 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25053 for (key in S) S_is_set[key] = 1
25055 \$ac_cs_awk_pipe_init
25059 nfields = split(line, field, "@
")
25061 len = length(field[1])
25062 for (i = 2; i < nfields; i++) {
25064 keylen = length(key)
25065 if (S_is_set[key]) {
25067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25068 len += length(value) + length(field[++i])
25073 if (nfields == 3 && !substed) {
25075 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25076 \$ac_cs_awk_read_file
25082 \$ac_cs_awk_pipe_fini
25085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25086 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25087 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25090 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25091 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25096 # trailing colons and then remove the whole line if VPATH becomes empty
25097 # (actually we leave an empty line to preserve line numbers).
25098 if test "x
$srcdir" = x.; then
25099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25100 s/:*\$(srcdir):*/:/
25101 s/:*\${srcdir}:*/:/
25103 s/^\([^=]*=[ ]*\):*/\1/
25109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25110 fi # test -n "$CONFIG_FILES"
25112 # Set up the scripts for CONFIG_HEADERS section.
25113 # No need to generate them if there are no CONFIG_HEADERS.
25114 # This happens for instance with `./config.status Makefile'.
25115 if test -n "$CONFIG_HEADERS"; then
25116 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25120 # Transform confdefs.h into an awk script `defines.awk', embedded as
25121 # here-document in config.status, that substitutes the proper values into
25122 # config.h.in to produce config.h.
25124 # Create a delimiter string that does not exist in confdefs.h, to ease
25125 # handling of long lines.
25127 for ac_last_try in false false :; do
25128 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25129 if test -z "$ac_t"; then
25131 elif $ac_last_try; then
25132 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25134 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25138 # For the awk script, D is an array of macro values keyed by name,
25139 # likewise P contains macro parameters if any. Preserve backslash
25140 # newline sequences.
25142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25144 s/.\{148\}/&'"$ac_delim"'/g
25147 s/^[ ]*#[ ]*define[ ][ ]*/ /
25154 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25156 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25161 D["\
1"]=" \
3\\\\\\n
"\\/p
25163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25168 s/.\{148\}/&'"$ac_delim"'/g
25173 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25176 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25178 ' <confdefs.h | sed '
25179 s/'"$ac_delim"'/"\\\
25180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25183 for (key in D) D_is_set[key] = 1
25186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25188 split(line, arg, " ")
25189 if (arg[1] == "#") {
25193 defundef
= substr
(arg
[1], 2)
25196 split(mac1
, mac2
, "(") #)
25198 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25199 if (D_is_set
[macro
]) {
25200 # Preserve the white space surrounding the "#".
25201 print prefix
"define", macro P
[macro
] D
[macro
]
25204 # Replace #undef with comments. This is necessary, for example,
25205 # in the case of _POSIX_SOURCE, which is predefined and required
25206 # on some systems where configure will not decide to define it.
25207 if (defundef
== "undef") {
25208 print
"/*", prefix defundef
, macro
, "*/"
25216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25217 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25218 fi # test -n "$CONFIG_HEADERS"
25221 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25226 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25228 case $ac_mode$ac_tag in
25230 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25231 :[FH
]-) ac_tag
=-:-;;
25232 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25249 -) ac_f
="$tmp/stdin";;
25250 *) # Look for the file first in the build tree, then in the source tree
25251 # (if the path is not absolute). The absolute path cannot be DOS-style,
25252 # because $ac_f cannot contain `:'.
25256 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25258 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25260 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25261 as_fn_append ac_file_inputs
" '$ac_f'"
25264 # Let's still pretend it is `configure' which instantiates (i.e., don't
25265 # use $as_me), people would be surprised to read:
25266 # /* config.h. Generated by config.status. */
25267 configure_input
='Generated from '`
25268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25270 if test x
"$ac_file" != x-
; then
25271 configure_input
="$ac_file. $configure_input"
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25273 $as_echo "$as_me: creating $ac_file" >&6;}
25275 # Neutralize special characters interpreted by sed in replacement strings.
25276 case $configure_input in #(
25277 *\
&* |
*\|
* |
*\\* )
25278 ac_sed_conf_input
=`$as_echo "$configure_input" |
25279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25280 *) ac_sed_conf_input
=$configure_input;;
25284 *:-:* |
*:-) cat >"$tmp/stdin" \
25285 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25290 ac_dir
=`$as_dirname -- "$ac_file" ||
25291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25292 X"$ac_file" : 'X\(//\)[^/]' \| \
25293 X"$ac_file" : 'X\(//\)$' \| \
25294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25295 $as_echo X"$ac_file" |
25296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25300 /^X\(\/\/\)[^/].*/{
25313 as_dir
="$ac_dir"; as_fn_mkdir_p
25317 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25319 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25320 # A ".." for each directory in $ac_dir_suffix.
25321 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25322 case $ac_top_builddir_sub in
25323 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25324 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25327 ac_abs_top_builddir
=$ac_pwd
25328 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25329 # for backward compatibility:
25330 ac_top_builddir
=$ac_top_build_prefix
25333 .
) # We are building in place.
25335 ac_top_srcdir
=$ac_top_builddir_sub
25336 ac_abs_top_srcdir
=$ac_pwd ;;
25337 [\\/]* | ?
:[\\/]* ) # Absolute name.
25338 ac_srcdir
=$srcdir$ac_dir_suffix;
25339 ac_top_srcdir
=$srcdir
25340 ac_abs_top_srcdir
=$srcdir ;;
25341 *) # Relative name.
25342 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25343 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25344 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25346 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25356 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25357 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25359 ac_MKDIR_P
=$MKDIR_P
25361 [\\/$
]* | ?
:[\\/]* ) ;;
25362 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25367 # If the template does not know about datarootdir, expand it.
25368 # FIXME: This hack should be removed a few years after 2.60.
25369 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25381 *datarootdir
*) ac_datarootdir_seen
=yes;;
25382 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25387 ac_datarootdir_hack='
25388 s&@datadir@&$datadir&g
25389 s&@docdir@&$docdir&g
25390 s&@infodir@&$infodir&g
25391 s&@localedir@&$localedir&g
25392 s&@mandir@&$mandir&g
25393 s&\\\${datarootdir}&$datarootdir&g' ;;
25397 # Neutralize VPATH when `$srcdir' = `.'.
25398 # Shell code in configure.ac might set extrasub.
25399 # FIXME: do we really want to maintain this feature?
25400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25401 ac_sed_extra="$ac_vpsub
25404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25406 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25407 s|@configure_input@|
$ac_sed_conf_input|
;t t
25408 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25409 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25410 s
&@srcdir@
&$ac_srcdir&;t t
25411 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25412 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25413 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25414 s
&@builddir@
&$ac_builddir&;t t
25415 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25416 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25417 s
&@INSTALL@
&$ac_INSTALL&;t t
25418 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25419 $ac_datarootdir_hack
25421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25422 if $ac_cs_awk_getline; then
25423 $AWK -f "$tmp/subs.
awk"
25425 $AWK -f "$tmp/subs.
awk" | $SHELL
25427 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25429 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25430 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25431 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25433 which seems to be undefined. Please make sure it is defined." >&5
25434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25435 which seems to be undefined. Please make sure it is defined." >&2;}
25439 -) cat "$tmp/out" && rm -f "$tmp/out";;
25440 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25442 || as_fn_error "could not create $ac_file" "$LINENO" 5
25448 if test x"$ac_file" != x-; then
25450 $as_echo "/* $configure_input */" \
25451 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25452 } >"$tmp/config.h" \
25453 || as_fn_error "could not create $ac_file" "$LINENO" 5
25454 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25459 mv "$tmp/config.h" "$ac_file" \
25460 || as_fn_error "could not create $ac_file" "$LINENO" 5
25463 $as_echo "/* $configure_input */" \
25464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25465 || as_fn_error "could not create -" "$LINENO" 5
25467 # Compute "$ac_file"'s index
in $config_headers.
25470 for _am_header
in $config_headers :; do
25471 case $_am_header in
25472 $_am_arg |
$_am_arg:* )
25475 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25478 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25479 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25480 X"$_am_arg" : 'X\(//\)[^/]' \| \
25481 X"$_am_arg" : 'X\(//\)$' \| \
25482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25483 $as_echo X"$_am_arg" |
25484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25488 /^X\(\/\/\)[^/].*/{
25500 s/.*/./; q'`/stamp-h
$_am_stamp_count
25503 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25504 $as_echo "$as_me: executing $ac_file commands" >&6;}
25509 case $ac_file$ac_mode in
25510 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25511 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25512 # are listed without --file. Let's play safe and only enable the eval
25513 # if we detect the quoting.
25514 case $CONFIG_FILES in
25515 *\'*) eval set x
"$CONFIG_FILES" ;;
25516 *) set x
$CONFIG_FILES ;;
25521 # Strip MF so we end up with the name of the file.
25522 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25523 # Check whether this is an Automake generated Makefile or not.
25524 # We used to match only the files named `Makefile.in', but
25525 # some people rename them; so instead we look at the file content.
25526 # Grep'ing the first line is not enough: some people post-process
25527 # each Makefile.in and add a new line on top of each file to say so.
25528 # Grep'ing the whole file is not good either: AIX grep has a line
25529 # limit of 2048, but all sed's we know have understand at least 4000.
25530 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25531 dirpart
=`$as_dirname -- "$mf" ||
25532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25533 X"$mf" : 'X\(//\)[^/]' \| \
25534 X"$mf" : 'X\(//\)$' \| \
25535 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25541 /^X\(\/\/\)[^/].*/{
25557 # Extract the definition of DEPDIR, am__include, and am__quote
25558 # from the Makefile without running `make'.
25559 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25560 test -z "$DEPDIR" && continue
25561 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25562 test -z "am__include" && continue
25563 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25564 # When using ansi2knr, U may be empty or an underscore; expand it
25565 U
=`sed -n 's/^U = //p' < "$mf"`
25566 # Find all dependency output files, they are included files with
25567 # $(DEPDIR) in their names. We invoke sed twice because it is the
25568 # simplest approach to changing $(DEPDIR) to its actual value in the
25570 for file in `sed -n "
25571 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25573 # Make sure the directory exists.
25574 test -f "$dirpart/$file" && continue
25575 fdir
=`$as_dirname -- "$file" ||
25576 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25577 X"$file" : 'X\(//\)[^/]' \| \
25578 X"$file" : 'X\(//\)$' \| \
25579 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25580 $as_echo X"$file" |
25581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25585 /^X\(\/\/\)[^/].*/{
25598 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25599 # echo "creating $dirpart/$file"
25600 echo '# dummy' > "$dirpart/$file"
25606 for dir
in etc lisp
; do
25607 test -d ${dir} || mkdir
${dir}
25611 echo creating src
/epaths.h
25612 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25615 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25616 echo creating src
/.gdbinit
25617 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25627 ac_clean_files
=$ac_clean_files_save
25629 test $ac_write_fail = 0 ||
25630 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25633 # configure is writing to config.log, and then calls config.status.
25634 # config.status does its own redirection, appending to config.log.
25635 # Unfortunately, on DOS this fails, as config.log is still kept open
25636 # by configure, so config.status won't be able to write to it; its
25637 # output is simply discarded. So we exec the FD to /dev/null,
25638 # effectively closing config.log, so it can be properly (re)opened and
25639 # appended to by config.status. When coming back to configure, we
25640 # need to make the FD available again.
25641 if test "$no_create" != yes; then
25643 ac_config_status_args
=
25644 test "$silent" = yes &&
25645 ac_config_status_args
="$ac_config_status_args --quiet"
25647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25650 # would make configure fail if this is the last instruction.
25651 $ac_cs_success || as_fn_exit $?
25653 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25655 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}