2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.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
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
685 REPLACE_STDIO_WRITE_FUNCS
694 REPLACE_OBSTACK_PRINTF
716 HAVE_DECL_OBSTACK_PRINTF
722 GNULIB_VSPRINTF_POSIX
726 GNULIB_VFPRINTF_POSIX
731 GNULIB_STDIO_H_SIGPIPE
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
763 GL_GENERATE_STDINT_H_FALSE
764 GL_GENERATE_STDINT_H_TRUE
773 HAVE_SIGNED_SIG_ATOMIC_T
776 BITSIZEOF_SIG_ATOMIC_T
782 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
787 HAVE_UNSIGNED_LONG_LONG_INT
789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
791 GL_GENERATE_STDDEF_H_FALSE
792 GL_GENERATE_STDDEF_H_TRUE
797 GL_GENERATE_STDBOOL_H_FALSE
798 GL_GENERATE_STDBOOL_H_TRUE
800 APPLE_UNIVERSAL_BUILD
808 HAVE_DECL_LOCALTIME_R
850 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
854 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
856 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
857 UNISTD_H_HAVE_WINSOCK2_H
876 REPLACE_GETDOMAINNAME
886 HAVE_DECL_GETUSERSHELL
887 HAVE_DECL_GETPAGESIZE
889 HAVE_DECL_GETDOMAINNAME
924 GNULIB_UNISTD_H_SIGPIPE
925 GNULIB_UNISTD_H_GETOPT
972 REPLACE_CANONICALIZE_FILE_NAME
977 HAVE_STRUCT_RANDOM_DATA
996 HAVE_CANONICALIZE_FILE_NAME
1009 GNULIB_REALLOC_POSIX
1023 GNULIB_CANONICALIZE_FILE_NAME
1027 GL_COND_LIBTOOL_FALSE
1028 GL_COND_LIBTOOL_TRUE
1077 LD_SWITCH_X_SITE_AUX_RPATH
1078 LD_SWITCH_X_SITE_AUX
1139 INSTALL_STRIP_PROGRAM
1181 program_transform_name
1192 ac_subst_files
='deps_frag
1195 enable_option_checking
1217 with_toolkit_scroll_bars
1228 with_pkg_config_prog
1232 enable_ns_self_contained
1234 enable_maintainer_mode
1235 enable_locallisppath
1237 enable_use_lisp_union_type
1240 enable_dependency_tracking
1244 ac_precious_vars
='build_alias
1256 # Initialize some variables set by options.
1258 ac_init_version
=false
1259 ac_unrecognized_opts
=
1260 ac_unrecognized_sep
=
1261 # The variables have the same names as the options, with
1262 # dashes changed to underlines.
1263 cache_file
=/dev
/null
1270 program_transform_name
=s
,x
,x
,
1278 # Installation directory options.
1279 # These are left unexpanded so users can "make install exec_prefix=/foo"
1280 # and all the variables that are supposed to be based on exec_prefix
1281 # by default will actually change.
1282 # Use braces instead of parens because sh, perl, etc. also accept them.
1283 # (The list follows the same order as the GNU Coding Standards.)
1284 bindir
='${exec_prefix}/bin'
1285 sbindir
='${exec_prefix}/sbin'
1286 libexecdir
='${exec_prefix}/libexec'
1287 datarootdir
='${prefix}/share'
1288 datadir
='${datarootdir}'
1289 sysconfdir
='${prefix}/etc'
1290 sharedstatedir
='${prefix}/com'
1291 localstatedir
='${prefix}/var'
1292 includedir
='${prefix}/include'
1293 oldincludedir
='/usr/include'
1294 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1295 infodir
='${datarootdir}/info'
1300 libdir
='${exec_prefix}/lib'
1301 localedir
='${datarootdir}/locale'
1302 mandir
='${datarootdir}/man'
1308 # If the previous option needs an argument, assign it.
1309 if test -n "$ac_prev"; then
1310 eval $ac_prev=\
$ac_option
1316 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1320 # Accept the important Cygnus configure options, so we can diagnose typos.
1322 case $ac_dashdash$ac_option in
1326 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1328 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1329 bindir
=$ac_optarg ;;
1331 -build |
--build |
--buil |
--bui |
--bu)
1332 ac_prev
=build_alias
;;
1333 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1334 build_alias
=$ac_optarg ;;
1336 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1337 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1338 ac_prev
=cache_file
;;
1339 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1340 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1341 cache_file
=$ac_optarg ;;
1343 --config-cache |
-C)
1344 cache_file
=config.cache
;;
1346 -datadir |
--datadir |
--datadi |
--datad)
1348 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1349 datadir
=$ac_optarg ;;
1351 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1352 |
--dataroo |
--dataro |
--datar)
1353 ac_prev
=datarootdir
;;
1354 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1355 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1356 datarootdir
=$ac_optarg ;;
1358 -disable-* |
--disable-*)
1359 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1362 as_fn_error
"invalid feature name: $ac_useropt"
1363 ac_useropt_orig
=$ac_useropt
1364 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "enable_
$ac_useropt"
1369 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1370 ac_unrecognized_sep
=', ';;
1372 eval enable_
$ac_useropt=no
;;
1374 -docdir |
--docdir |
--docdi |
--doc |
--do)
1376 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1377 docdir
=$ac_optarg ;;
1379 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1381 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1382 dvidir
=$ac_optarg ;;
1384 -enable-* |
--enable-*)
1385 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1388 as_fn_error
"invalid feature name: $ac_useropt"
1389 ac_useropt_orig
=$ac_useropt
1390 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1393 "enable_
$ac_useropt"
1395 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1396 ac_unrecognized_sep
=', ';;
1398 eval enable_
$ac_useropt=\
$ac_optarg ;;
1400 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1401 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1402 |
--exec |
--exe |
--ex)
1403 ac_prev
=exec_prefix
;;
1404 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1405 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1406 |
--exec=* |
--exe=* |
--ex=*)
1407 exec_prefix
=$ac_optarg ;;
1409 -gas |
--gas |
--ga |
--g)
1410 # Obsolete; use --with-gas.
1413 -help |
--help |
--hel |
--he |
-h)
1414 ac_init_help
=long
;;
1415 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1416 ac_init_help
=recursive
;;
1417 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1418 ac_init_help
=short
;;
1420 -host |
--host |
--hos |
--ho)
1421 ac_prev
=host_alias
;;
1422 -host=* |
--host=* |
--hos=* |
--ho=*)
1423 host_alias
=$ac_optarg ;;
1425 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1427 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1429 htmldir
=$ac_optarg ;;
1431 -includedir |
--includedir |
--includedi |
--included |
--include \
1432 |
--includ |
--inclu |
--incl |
--inc)
1433 ac_prev
=includedir
;;
1434 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1435 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1436 includedir
=$ac_optarg ;;
1438 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1440 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1441 infodir
=$ac_optarg ;;
1443 -libdir |
--libdir |
--libdi |
--libd)
1445 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1446 libdir
=$ac_optarg ;;
1448 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1449 |
--libexe |
--libex |
--libe)
1450 ac_prev
=libexecdir
;;
1451 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1452 |
--libexe=* |
--libex=* |
--libe=*)
1453 libexecdir
=$ac_optarg ;;
1455 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1456 ac_prev
=localedir
;;
1457 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1458 localedir
=$ac_optarg ;;
1460 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1461 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1462 ac_prev
=localstatedir
;;
1463 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1464 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1465 localstatedir
=$ac_optarg ;;
1467 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1469 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1470 mandir
=$ac_optarg ;;
1472 -nfp |
--nfp |
--nf)
1473 # Obsolete; use --without-fp.
1476 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1477 |
--no-cr |
--no-c |
-n)
1480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1484 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1485 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1486 |
--oldin |
--oldi |
--old |
--ol |
--o)
1487 ac_prev
=oldincludedir
;;
1488 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1489 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1490 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1491 oldincludedir
=$ac_optarg ;;
1493 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1495 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1496 prefix
=$ac_optarg ;;
1498 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1499 |
--program-pre |
--program-pr |
--program-p)
1500 ac_prev
=program_prefix
;;
1501 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1502 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1503 program_prefix
=$ac_optarg ;;
1505 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1506 |
--program-suf |
--program-su |
--program-s)
1507 ac_prev
=program_suffix
;;
1508 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1509 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1510 program_suffix
=$ac_optarg ;;
1512 -program-transform-name |
--program-transform-name \
1513 |
--program-transform-nam |
--program-transform-na \
1514 |
--program-transform-n |
--program-transform- \
1515 |
--program-transform |
--program-transfor \
1516 |
--program-transfo |
--program-transf \
1517 |
--program-trans |
--program-tran \
1518 |
--progr-tra |
--program-tr |
--program-t)
1519 ac_prev
=program_transform_name
;;
1520 -program-transform-name=* |
--program-transform-name=* \
1521 |
--program-transform-nam=* |
--program-transform-na=* \
1522 |
--program-transform-n=* |
--program-transform-=* \
1523 |
--program-transform=* |
--program-transfor=* \
1524 |
--program-transfo=* |
--program-transf=* \
1525 |
--program-trans=* |
--program-tran=* \
1526 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1527 program_transform_name
=$ac_optarg ;;
1529 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1531 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1532 pdfdir
=$ac_optarg ;;
1534 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1536 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1540 |
-silent |
--silent |
--silen |
--sile |
--sil)
1543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1547 sbindir
=$ac_optarg ;;
1549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1553 ac_prev
=sharedstatedir
;;
1554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1558 sharedstatedir
=$ac_optarg ;;
1560 -site |
--site |
--sit)
1562 -site=* |
--site=* |
--sit=*)
1565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1568 srcdir
=$ac_optarg ;;
1570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1572 ac_prev
=sysconfdir
;;
1573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1575 sysconfdir
=$ac_optarg ;;
1577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1578 ac_prev
=target_alias
;;
1579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1580 target_alias
=$ac_optarg ;;
1582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1585 -version |
--version |
--versio |
--versi |
--vers |
-V)
1586 ac_init_version
=: ;;
1589 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1592 as_fn_error
"invalid package name: $ac_useropt"
1593 ac_useropt_orig
=$ac_useropt
1594 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1599 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep
=', ';;
1602 eval with_
$ac_useropt=\
$ac_optarg ;;
1604 -without-* |
--without-*)
1605 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1608 as_fn_error
"invalid package name: $ac_useropt"
1609 ac_useropt_orig
=$ac_useropt
1610 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1615 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep
=', ';;
1618 eval with_
$ac_useropt=no
;;
1621 # Obsolete; use --with-x.
1624 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1625 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1626 ac_prev
=x_includes
;;
1627 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1628 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1629 x_includes
=$ac_optarg ;;
1631 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1632 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1633 ac_prev
=x_libraries
;;
1634 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1635 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1636 x_libraries
=$ac_optarg ;;
1638 -*) as_fn_error
"unrecognized option: \`$ac_option'
1639 Try \`$0 --help' for more information."
1643 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1647 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1649 eval $ac_envvar=\
$ac_optarg
1650 export $ac_envvar ;;
1653 # FIXME: should be removed in autoconf 3.0.
1654 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1656 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1663 if test -n "$ac_prev"; then
1664 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error
"missing argument to $ac_option"
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1671 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1672 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1676 # Check all directory arguments for consistency.
1677 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir
1682 eval ac_val
=\$
$ac_var
1683 # Remove trailing slashes.
1686 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\
$ac_val;;
1689 # Be sure to have absolute directory names.
1691 [\\/$
]* | ?
:[\\/]* ) continue;;
1692 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1694 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1697 # There might be people who depend on the old broken behavior: `$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1702 target
=$target_alias
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x
; then
1706 if test "x$build_alias" = x
; then
1707 cross_compiling
=maybe
1708 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1709 If a cross compiler is detected then cross compile mode will be used." >&2
1710 elif test "x$build_alias" != "x$host_alias"; then
1716 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1718 test "$silent" = yes && exec 6>/dev
/null
1721 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1722 ac_ls_di
=`ls -di .` &&
1723 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1724 as_fn_error
"working directory cannot be determined"
1725 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1726 as_fn_error
"pwd does not report name of working directory"
1729 # Find the source files, if location was not specified.
1730 if test -z "$srcdir"; then
1731 ac_srcdir_defaulted
=yes
1732 # Try the directory containing this script, then the parent directory.
1733 ac_confdir
=`$as_dirname -- "$as_myself" ||
1734 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1735 X"$as_myself" : 'X\(//\)[^/]' \| \
1736 X"$as_myself" : 'X\(//\)$' \| \
1737 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1738 $as_echo X"$as_myself" |
1739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1761 ac_srcdir_defaulted
=no
1763 if test ! -r "$srcdir/$ac_unique_file"; then
1764 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1765 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1767 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1769 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1771 # When building in place, set srcdir=.
1772 if test "$ac_abs_confdir" = "$ac_pwd"; then
1775 # Remove unnecessary trailing slashes from srcdir.
1776 # Double slashes in file names in object file debugging info
1777 # mess up M-x gdb in Emacs.
1779 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1781 for ac_var
in $ac_precious_vars; do
1782 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1783 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1784 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1785 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1789 # Report the --help message.
1791 if test "$ac_init_help" = "long"; then
1792 # Omit some internal or obsolete options to make the list less imposing.
1793 # This message is too long to be a string in the A/UX 3.1 sh.
1795 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1797 Usage: $0 [OPTION]... [VAR=VALUE]...
1799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1800 VAR=VALUE. See below for descriptions of some of the useful variables.
1802 Defaults for the options are specified in brackets.
1805 -h, --help display this help and exit
1806 --help=short display options specific to this package
1807 --help=recursive display the short help of all the included packages
1808 -V, --version display version information and exit
1809 -q, --quiet, --silent do not print \`checking...' messages
1810 --cache-file=FILE cache test results in FILE [disabled]
1811 -C, --config-cache alias for \`--cache-file=config.cache'
1812 -n, --no-create do not create output files
1813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1815 Installation directories:
1816 --prefix=PREFIX install architecture-independent files in PREFIX
1817 [$ac_default_prefix]
1818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1821 By default, \`make install' will install all the files in
1822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1824 for instance \`--prefix=\$HOME'.
1826 For better control, use the options below.
1828 Fine tuning of the installation directories:
1829 --bindir=DIR user executables [EPREFIX/bin]
1830 --sbindir=DIR system admin executables [EPREFIX/sbin]
1831 --libexecdir=DIR program executables [EPREFIX/libexec]
1832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1835 --libdir=DIR object code libraries [EPREFIX/lib]
1836 --includedir=DIR C header files [PREFIX/include]
1837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1838 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1839 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1840 --infodir=DIR info documentation [DATAROOTDIR/info]
1841 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1842 --mandir=DIR man documentation [DATAROOTDIR/man]
1843 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1844 --htmldir=DIR html documentation [DOCDIR]
1845 --dvidir=DIR dvi documentation [DOCDIR]
1846 --pdfdir=DIR pdf documentation [DOCDIR]
1847 --psdir=DIR ps documentation [DOCDIR]
1853 --program-prefix=PREFIX prepend PREFIX to installed program names
1854 --program-suffix=SUFFIX append SUFFIX to installed program names
1855 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1858 --x-includes=DIR X include files are
in DIR
1859 --x-libraries=DIR X library files are
in DIR
1862 --build=BUILD configure
for building on BUILD
[guessed
]
1863 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1867 if test -n "$ac_init_help"; then
1868 case $ac_init_help in
1869 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1874 --disable-option-checking ignore unrecognized
--enable/--with options
1875 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1876 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1877 --disable-ns-self-contained
1878 disable self contained build under NeXTstep
1879 --enable-asserts compile code with asserts enabled
1880 --enable-maintainer-mode
1881 enable make rules and dependencies not useful
(and
1882 sometimes confusing
) to the casual installer
1883 --enable-locallisppath=PATH
1884 directories Emacs should search
for lisp files
1885 specific to this site
1886 --enable-checking[=LIST
]
1887 enable expensive run-time checks. With LIST
, enable
1888 only specific categories of checks. Categories are
:
1889 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1890 stringfreelist
, xmallocoverrun
, conslist
1891 --enable-use-lisp-union-type
1892 use a union
for the Lisp_Object data
type. This is
1893 only useful
for development
for catching certain
1895 --enable-profiling build emacs with profiling support. This might not
1896 work on all platforms
1897 --enable-autodepend automatically generate dependencies to .h-files.
1898 Requires GNU Make and Gcc. Enabled
if GNU Make and
1900 --disable-dependency-tracking speeds up one-time build
1901 --enable-dependency-tracking do not reject slow dependency extractors
1902 --disable-largefile omit support
for large files
1905 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1906 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1907 --without-pop don
't support POP mail retrieval with movemail
1908 --with-kerberos support Kerberos-authenticated POP
1909 --with-kerberos5 support Kerberos version 5 authenticated POP
1910 --with-hesiod support Hesiod to get the POP server host
1911 --with-mmdf support MMDF mailboxes
1912 --with-mail-unlink unlink, rather than empty, mail spool after reading
1913 --with-mailhost=HOSTNAME
1914 string giving default POP mail host
1915 --without-sound don't compile with sound support
1916 --without-sync-input process async input synchronously
1917 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1918 lucid or athena
, motif
, no
)
1919 --without-xpm don
't compile with XPM image support
1920 --without-jpeg don't compile with JPEG image support
1921 --without-tiff don
't compile with TIFF image support
1922 --without-gif don't compile with GIF image support
1923 --without-png don
't compile with PNG image support
1924 --without-rsvg don't compile with SVG image support
1925 --without-xml2 don
't compile with XML parsing support
1926 --without-imagemagick don't compile with ImageMagick image support
1927 --without-xft don
't use XFT for anti aliased fonts
1928 --without-libotf don't use libotf
for OpenType font support
1929 --without-m17n-flt don
't use m17n-flt for text shaping
1930 --without-toolkit-scroll-bars
1931 don't use Motif or Xaw3d scroll bars
1932 --without-xaw3d don
't use Xaw3d
1933 --without-xim don't use X11 XIM
1934 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1935 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1937 --without-dbus don't compile with D-Bus support
1938 --without-gconf don
't compile with GConf support
1939 --without-selinux don't compile with SELinux support
1940 --without-gnutls don
't use -lgnutls for SSL/TLS support
1941 --without-makeinfo don't require makeinfo
for building manuals
1942 --without-compress-info don
't compress the installed Info pages
1943 --with-pkg-config-prog=PATH
1944 path to pkg-config for finding GTK and librsvg
1945 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1946 /usr/lib, or /usr/lib64 on some platforms.
1947 --with-gameuser=USER user for shared game score files
1948 --with-gnustep-conf=PATH
1949 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1950 or /etc/GNUstep/GNUstep.conf
1951 --with-x use the X Window System
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1962 XMKMF Path to xmkmf, Makefile generator for X Window System
1964 Use these variables to override the choices made by `configure' or to
help
1965 it to
find libraries and programs with nonstandard names
/locations.
1967 Report bugs to the package provider.
1972 if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1981 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1983 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1988 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1991 ac_abs_top_builddir
=$ac_pwd
1992 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir
=$ac_top_build_prefix
1997 .
) # We are building in place.
1999 ac_top_srcdir
=$ac_top_builddir_sub
2000 ac_abs_top_srcdir
=$ac_pwd ;;
2001 [\\/]* | ?
:[\\/]* ) # Absolute name.
2002 ac_srcdir
=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir
=$srcdir
2004 ac_abs_top_srcdir
=$srcdir ;;
2006 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2010 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2012 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2030 emacs configure
24.0.50
2031 generated by GNU Autoconf
2.65
2033 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2034 This configure
script is free software
; the Free Software Foundation
2035 gives unlimited permission to copy
, distribute and modify it.
2040 ## ------------------------ ##
2041 ## Autoconf initialization. ##
2042 ## ------------------------ ##
2044 # ac_fn_c_try_compile LINENO
2045 # --------------------------
2046 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_compile
()
2049 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2050 rm -f conftest.
$ac_objext
2051 if { { ac_try
="$ac_compile"
2053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_c_try_compile
2082 # ac_fn_c_try_cpp LINENO
2083 # ----------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2091 *) ac_try_echo
=$ac_try;;
2093 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 if test -s conftest.err
; then
2098 grep -v '^ *+' conftest.err
>conftest.er1
2099 cat conftest.er1
>&5
2100 mv -f conftest.er1 conftest.err
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } >/dev
/null
&& {
2104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.
$ac_ext >&5
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2115 as_fn_set_status
$ac_retval
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2124 ac_fn_c_check_header_mongrel
()
2126 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2127 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2146 ac_header_compiler
=yes
2148 ac_header_compiler
=no
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 if ac_fn_c_try_cpp
"$LINENO"; then :
2162 ac_header_preproc
=yes
2164 ac_header_preproc
=no
2166 rm -f conftest.err conftest.
$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 eval "$3=\$ac_header_compiler"
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2204 } # ac_fn_c_check_header_mongrel
2206 # ac_fn_c_try_run LINENO
2207 # ----------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2209 # that executables *can* be run.
2212 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2213 if { { ac_try
="$ac_link"
2215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2224 { { case "(($ac_try" in
2225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2226 *) ac_try_echo
=$ac_try;;
2228 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_try") 2>&5
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; }; }; then :
2236 $as_echo "$as_me: program exited with status $ac_status" >&5
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 ac_retval
=$ac_status
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2244 as_fn_set_status
$ac_retval
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile
()
2254 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2277 } # ac_fn_c_check_header_compile
2279 # ac_fn_c_try_link LINENO
2280 # -----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded.
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 rm -f conftest.
$ac_objext conftest
$ac_exeext
2286 if { { ac_try
="$ac_link"
2288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>conftest.err
2295 if test -s conftest.err; then
2296 grep -v '^ *+' conftest.err >conftest.er1
2297 cat conftest.er1 >&5
2298 mv -f conftest.er1 conftest.err
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && {
2302 test -z "$ac_c_werror_flag" ||
2303 test ! -s conftest.err
2304 } && test -s conftest$ac_exeext && {
2305 test "$cross_compiling" = yes ||
2306 $as_test_x conftest$ac_exeext
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2316 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2317 # interfere with the next link command; also delete a directory that is
2318 # left behind by Apple's compiler. We do this before executing the actions.
2319 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_c_try_link
2325 # ac_fn_c_check_decl LINENO SYMBOL VAR
2326 # ------------------------------------
2327 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2328 ac_fn_c_check_decl ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2332 $as_echo_n "checking whether $2 is declared... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2350 if ac_fn_c_try_compile "$LINENO"; then :
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 } # ac_fn_c_check_decl
2364 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2365 # ----------------------------------------------
2366 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2367 ac_fn_c_check_header_preproc ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2379 if ac_fn_c_try_cpp "$LINENO"; then :
2384 rm -f conftest.err conftest.$ac_ext
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_check_header_preproc
2393 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2394 # ----------------------------------------------------
2395 # Tries to find if the field MEMBER exists in type AGGR, after including
2396 # INCLUDES, setting cache variable VAR accordingly.
2397 ac_fn_c_check_member ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2401 $as_echo_n "checking for $2.$3... " >&6; }
2402 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2418 if ac_fn_c_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2428 if (sizeof ac_aggr.$3)
2434 if ac_fn_c_try_compile "$LINENO"; then :
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_check_member
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2473 # include <limits.h>
2475 # include <assert.h>
2480 /* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2487 /* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490 #if defined __stub_$2 || defined __stub___$2
2502 if ac_fn_c_try_link "$LINENO"; then :
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515 } # ac_fn_c_check_func
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2555 if ac_fn_c_try_compile "$LINENO"; then :
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_type
2571 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2572 # --------------------------------------------
2573 # Tries to find the compile-time value of EXPR in a program that includes
2574 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2576 ac_fn_c_compute_int ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if test "$cross_compiling" = yes; then
2580 # Depending upon the size, compute the lo and hi bounds.
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2587 static int test_array [1 - 2 * !(($2) >= 0)];
2594 if ac_fn_c_try_compile "$LINENO"; then :
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2603 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 ac_hi=$ac_mid; break
2613 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614 if test $ac_lo -le $ac_mid; then
2618 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) < 0)];
2636 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2645 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 ac_lo=$ac_mid; break
2655 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2656 if test $ac_mid -le $ac_hi; then
2660 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 # Binary search between lo and hi bounds.
2671 while test "x$ac_lo" != "x$ac_hi"; do
2672 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2679 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2686 if ac_fn_c_try_compile "$LINENO"; then :
2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2709 FILE *f = fopen ("conftest.val", "w");
2714 long int i = longval ();
2717 fprintf (f, "%ld", i);
2721 unsigned long int i = ulongval ();
2724 fprintf (f, "%lu", i);
2726 /* Do not output a trailing newline, as this causes \r\n confusion
2727 on some platforms. */
2728 return ferror (f) || fclose (f) != 0;
2734 if ac_fn_c_try_run "$LINENO"; then :
2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740 conftest.$ac_objext conftest.beam conftest.$ac_ext
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 as_fn_set_status $ac_retval
2747 } # ac_fn_c_compute_int
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2752 It was created by emacs $as_me 24.0.50, which was
2753 generated by GNU Autoconf 2.65. Invocation command line was
2765 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2766 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2767 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2768 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2769 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2771 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2772 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2774 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2775 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2776 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2777 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2778 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2779 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2780 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2813 ac_must_keep_next=false
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2824 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2842 -* ) ac_must_keep_next=true ;;
2845 as_fn_append ac_configure_args " '$ac_arg'"
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2864 ## ---------------- ##
2865 ## Cache variables. ##
2866 ## ---------------- ##
2869 # The following way of writing the cache mishandles newlines in values,
2871 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2872 eval ac_val=\$$ac_var
2876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2880 _ | IFS | as_nl) ;; #(
2881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2882 *) { eval $ac_var=; unset $ac_var;} ;;
2887 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2888 *${as_nl}ac_space=\ *)
2890 "s/'\''/'\''\\\\'\'''\''/g;
2891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2902 ## ----------------- ##
2903 ## Output variables. ##
2904 ## ----------------- ##
2907 for ac_var in $ac_subst_vars
2909 eval ac_val=\$$ac_var
2911 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913 $as_echo "$ac_var='\''$ac_val'\''"
2917 if test -n "$ac_subst_files"; then
2919 ## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##
2924 for ac_var in $ac_subst_files
2926 eval ac_val=\$$ac_var
2928 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2930 $as_echo "$ac_var='\''$ac_val'\''"
2935 if test -s confdefs.h; then
2945 test "$ac_signal" != 0 &&
2946 $as_echo "$as_me: caught signal $ac_signal"
2947 $as_echo "$as_me: exit $exit_status"
2949 rm -f core *.core core.conftest.* &&
2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2953 for ac_signal in 1 2 13 15; do
2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2961 $as_echo "/* confdefs.h */" > confdefs.h
2963 # Predefined preprocessor variables.
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2994 if test -n "$CONFIG_SITE"; then
2995 ac_site_file1=$CONFIG_SITE
2996 elif test "x$prefix" != xNONE; then
2997 ac_site_file1=$prefix/share/config.site
2998 ac_site_file2=$prefix/etc/config.site
3000 ac_site_file1=$ac_default_prefix/share/config.site
3001 ac_site_file2=$ac_default_prefix/etc/config.site
3003 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3005 test "x$ac_site_file" = xNONE && continue
3006 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3008 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3009 sed 's/^/| /' "$ac_site_file" >&5
3014 if test -r "$cache_file"; then
3015 # Some versions of bash will fail to source /dev/null (special files
3016 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3017 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3019 $as_echo "$as_me: loading cache $cache_file" >&6;}
3021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3022 *) . "./$cache_file";;
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3027 $as_echo "$as_me: creating cache $cache_file" >&6;}
3031 as_fn_append ac_header_list " stdlib.h"
3032 as_fn_append ac_header_list " unistd.h"
3033 as_fn_append ac_header_list " sys/param.h"
3034 as_fn_append ac_func_list " readlinkat"
3035 gl_getopt_required=GNU
3036 as_fn_append ac_header_list " getopt.h"
3037 as_fn_append ac_func_list " lstat"
3038 as_fn_append ac_func_list " alarm"
3039 as_fn_append ac_func_list " readlink"
3040 as_fn_append ac_header_list " sys/socket.h"
3041 as_fn_append ac_header_list " wchar.h"
3042 as_fn_append ac_header_list " stdint.h"
3043 as_fn_append ac_func_list " tzset"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_header_list " sys/stat.h"
3046 as_fn_append ac_header_list " sys/time.h"
3047 as_fn_append ac_func_list " localtime_r"
3048 # Check that the precious variables saved in the cache have kept the same
3050 ac_cache_corrupted=false
3051 for ac_var in $ac_precious_vars; do
3052 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3053 eval ac_new_set=\$ac_env_${ac_var}_set
3054 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3055 eval ac_new_val=\$ac_env_${ac_var}_value
3056 case $ac_old_set,$ac_new_set in
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3059 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3063 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3067 if test "x$ac_old_val" != "x$ac_new_val"; then
3068 # differences in whitespace do not lead to failure.
3069 ac_old_val_w=`echo x
$ac_old_val`
3070 ac_new_val_w=`echo x
$ac_new_val`
3071 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3073 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3074 ac_cache_corrupted=:
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3077 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3078 eval $ac_var=\$ac_old_val
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3081 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3083 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3086 # Pass precious variables to config.status.
3087 if test "$ac_new_set" = set; then
3089 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3090 *) ac_arg=$ac_var=$ac_new_val ;;
3092 case " $ac_configure_args " in
3093 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3094 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3098 if $ac_cache_corrupted; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3102 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3103 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3105 ## -------------------- ##
3106 ## Main body of script. ##
3107 ## -------------------- ##
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3119 am__api_version='1.11'
3122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3123 for ac_t in install-sh install.sh shtool; do
3124 if test -f "$ac_dir/$ac_t"; then
3126 ac_install_sh="$ac_aux_dir/$ac_t -c"
3131 if test -z "$ac_aux_dir"; then
3132 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3135 # These three variables are undocumented and unsupported,
3136 # and are intended to be withdrawn in a future Autoconf release.
3137 # They can cause serious problems if a builder's source tree is in a directory
3138 # whose full name contains unusual characters.
3139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3144 # Find a good install program. We prefer a C program (faster),
3145 # so one script is as good as another. But avoid the broken or
3146 # incompatible versions:
3147 # SysV /etc/install, /usr/sbin/install
3148 # SunOS /usr/etc/install
3149 # IRIX /sbin/install
3151 # AmigaOS /C/install, which installs bootblocks on floppy discs
3152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3155 # OS/2's system install, which has a completely different semantic
3156 # ./install, which can be erroneously created by make from ./install.sh.
3157 # Reject install programs that cannot install multiple files.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3160 if test -z "$INSTALL"; then
3161 if test "${ac_cv_path_install+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 # Account for people who put trailing slashes in PATH elements.
3170 case $as_dir/ in #((
3171 ./ | .// | /[cC]/* | \
3172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3176 # OSF1 and SCO ODT 3.0 have their own names for install.
3177 # Don't use installbsd from OSF since it installs stuff as root
3179 for ac_prog in ginstall scoinst install; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3182 if test $ac_prog = install &&
3183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # AIX install. It has an incompatible calling convention.
3186 elif test $ac_prog = install &&
3187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # program-specific install script used by HP pwplus--don't use.
3191 rm -rf conftest.one conftest.two conftest.dir
3192 echo one > conftest.one
3193 echo two > conftest.two
3195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3196 test -s conftest.one && test -s conftest.two &&
3197 test -s conftest.dir/conftest.one &&
3198 test -s conftest.dir/conftest.two
3200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3213 rm -rf conftest.one conftest.two conftest.dir
3216 if test "${ac_cv_path_install+set}" = set; then
3217 INSTALL=$ac_cv_path_install
3219 # As a last resort, use the slow shell script. Don't cache a
3220 # value for INSTALL within a source directory, because that will
3221 # break other packages using the cache if that directory is
3222 # removed, or if the value is a relative name.
3223 INSTALL=$ac_install_sh
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3227 $as_echo "$INSTALL" >&6; }
3229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3230 # It thinks the first close brace ends the variable substitution.
3231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3238 $as_echo_n "checking whether build environment is sane... " >&6; }
3241 echo timestamp > conftest.file
3242 # Reject unsafe characters in $srcdir or the absolute working directory
3243 # name. Accept space and tab only in the latter.
3247 *[\\\"\#\$\&\'\`$am_lf]*)
3248 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3251 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3252 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3255 # Do `set' in a subshell so we don't clobber the current shell's
3256 # arguments. Must try -L first in case configure is actually a
3257 # symlink; some systems play weird games with the mod time of symlinks
3258 # (eg FreeBSD returns the mod time of the symlink's containing
3261 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3262 if test "$*" = "X"; then
3264 set X
`ls -t "$srcdir/configure" conftest.file`
3267 if test "$*" != "X $srcdir/configure conftest.file" \
3268 && test "$*" != "X conftest.file $srcdir/configure"; then
3270 # If neither matched, then we have a broken ls. This can happen
3271 # if, for instance, CONFIG_SHELL is bash and it inherits a
3272 # broken ls alias from the environment. This has actually
3273 # happened. Such a system could not be considered "sane".
3274 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3275 alias in your environment" "$LINENO" 5
3278 test "$2" = conftest.
file
3284 as_fn_error
"newly created file is older than distributed files!
3285 Check your system clock" "$LINENO" 5
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 test "$program_prefix" != NONE
&&
3290 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE
&&
3293 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s,x,x', remove it if useless.
3296 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3297 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3299 # expand $ac_aux_dir to an absolute path
3300 am_aux_dir
=`cd $ac_aux_dir && pwd`
3302 if test x
"${MISSING+set}" != xset
; then
3305 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3307 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3310 # Use eval to expand $SHELL
3311 if eval "$MISSING --run true"; then
3312 am_missing_run
="$MISSING --run "
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3319 if test x
"${install_sh}" != xset
; then
3322 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3324 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3328 # Installed binaries are usually stripped using `strip' when the user
3329 # run `make install-strip'. However `strip' might not be the right
3330 # tool to use in cross-compilation environments, therefore Automake
3331 # will honor the `STRIP' environment variable to overrule this program.
3332 if test "$cross_compiling" != no
; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3335 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_STRIP+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$STRIP"; then
3342 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir
=.
3349 for ac_exec_ext
in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 STRIP
=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3364 $as_echo "$STRIP" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$ac_cv_prog_STRIP"; then
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip
; ac_word
=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_STRIP
="strip"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3404 $as_echo "$ac_ct_STRIP" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 if test "x$ac_ct_STRIP" = x
; then
3413 case $cross_compiling:$ac_tool_warned in
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned
=yes ;;
3422 STRIP
="$ac_cv_prog_STRIP"
3426 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3430 if test -z "$MKDIR_P"; then
3431 if test "${ac_cv_path_mkdir+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3438 test -z "$as_dir" && as_dir
=.
3439 for ac_prog
in mkdir gmkdir
; do
3440 for ac_exec_ext
in '' $ac_executable_extensions; do
3441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3443 'mkdir (GNU coreutils) '* | \
3444 'mkdir (coreutils) '* | \
3445 'mkdir (fileutils) '4.1*)
3446 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3456 test -d .
/--version && rmdir .
/--version
3457 if test "${ac_cv_path_mkdir+set}" = set; then
3458 MKDIR_P
="$ac_cv_path_mkdir -p"
3460 # As a last resort, use the slow shell script. Don't cache a
3461 # value for MKDIR_P within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the value is a relative name.
3464 MKDIR_P
="$ac_install_sh -d"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468 $as_echo "$MKDIR_P" >&6; }
3473 [\\/$
]* | ?
:[\\/]*) ;;
3474 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3477 for ac_prog
in gawk mawk nawk
awk
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy
$ac_prog; ac_word
=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_AWK+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir
=.
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_AWK
="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 if test -n "$AWK"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3509 $as_echo "$AWK" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3516 test -n "$AWK" && break
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3522 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3523 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3524 $as_echo_n "(cached) " >&6
3526 cat >conftest.
make <<\_ACEOF
3529 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3534 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3536 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3540 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 SET_MAKE
="MAKE=${MAKE-make}"
3550 rm -rf .tst
2>/dev
/null
3551 mkdir .tst
2>/dev
/null
3552 if test -d .tst
; then
3557 rmdir .tst
2>/dev
/null
3559 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3560 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3561 # is not polluted with repeated "-I."
3562 am__isrc
=' -I$(srcdir)'
3563 # test to see if srcdir already configured
3564 if test -f $srcdir/config.status
; then
3565 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3569 # test whether we have cygpath
3570 if test -z "$CYGPATH_W"; then
3571 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3572 CYGPATH_W
='cygpath -w'
3579 # Define the identity of the package.
3584 cat >>confdefs.h
<<_ACEOF
3585 #define PACKAGE "$PACKAGE"
3589 cat >>confdefs.h
<<_ACEOF
3590 #define VERSION "$VERSION"
3593 # Some tools Automake needs.
3595 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3598 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3601 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3604 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3607 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3609 # We need awk for the "check" target. The system "awk" is bad on
3611 # Always define AMTAR for backward compatibility.
3613 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3615 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3624 lispdir
='${datadir}/emacs/${version}/lisp'
3625 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3626 '${datadir}/emacs/site-lisp'
3627 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3628 etcdir
='${datadir}/emacs/${version}/etc'
3629 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3630 docdir
='${datadir}/emacs/${version}/etc'
3631 gamedir
='${localstatedir}/games/emacs'
3636 # Check whether --with-pop was given.
3637 if test "${with_pop+set}" = set; then :
3643 if test "$with_pop" = yes; then
3644 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3649 # Check whether --with-kerberos was given.
3650 if test "${with_kerberos+set}" = set; then :
3651 withval
=$with_kerberos;
3656 if test "$with_kerberos" != no
; then
3657 $as_echo "#define KERBEROS 1" >>confdefs.h
3662 # Check whether --with-kerberos5 was given.
3663 if test "${with_kerberos5+set}" = set; then :
3664 withval
=$with_kerberos5;
3669 if test "${with_kerberos5}" != no
; then
3670 if test "${with_kerberos}" = no
; then
3672 $as_echo "#define KERBEROS 1" >>confdefs.h
3676 $as_echo "#define KERBEROS5 1" >>confdefs.h
3681 # Check whether --with-hesiod was given.
3682 if test "${with_hesiod+set}" = set; then :
3683 withval
=$with_hesiod;
3688 if test "$with_hesiod" != no
; then
3690 $as_echo "#define HESIOD 1" >>confdefs.h
3695 # Check whether --with-mmdf was given.
3696 if test "${with_mmdf+set}" = set; then :
3702 if test "$with_mmdf" != no
; then
3704 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3709 # Check whether --with-mail-unlink was given.
3710 if test "${with_mail_unlink+set}" = set; then :
3711 withval
=$with_mail_unlink;
3716 if test "$with_mail_unlink" != no
; then
3718 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3723 # Check whether --with-mailhost was given.
3724 if test "${with_mailhost+set}" = set; then :
3725 withval
=$with_mailhost;
3726 cat >>confdefs.h
<<_ACEOF
3727 #define MAILHOST "$withval"
3734 # Check whether --with-sound was given.
3735 if test "${with_sound+set}" = set; then :
3736 withval
=$with_sound;
3743 # Check whether --with-sync-input was given.
3744 if test "${with_sync_input+set}" = set; then :
3745 withval
=$with_sync_input;
3750 if test "$with_sync_input" = yes; then
3752 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3757 # Check whether --with-x-toolkit was given.
3758 if test "${with_x_toolkit+set}" = set; then :
3759 withval
=$with_x_toolkit; case "${withval}" in
3760 y | ye |
yes ) val
=gtk
;;
3762 l | lu | luc | luci | lucid
) val
=lucid
;;
3763 a |
at | ath | athe | athen | athena
) val
=athena
;;
3764 m | mo | mot | moti | motif
) val
=motif
;;
3765 g | gt | gtk
) val
=gtk
;;
3768 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3769 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3770 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3779 # Check whether --with-xpm was given.
3780 if test "${with_xpm+set}" = set; then :
3787 # Check whether --with-jpeg was given.
3788 if test "${with_jpeg+set}" = set; then :
3795 # Check whether --with-tiff was given.
3796 if test "${with_tiff+set}" = set; then :
3803 # Check whether --with-gif was given.
3804 if test "${with_gif+set}" = set; then :
3811 # Check whether --with-png was given.
3812 if test "${with_png+set}" = set; then :
3819 # Check whether --with-rsvg was given.
3820 if test "${with_rsvg+set}" = set; then :
3827 # Check whether --with-xml2 was given.
3828 if test "${with_xml2+set}" = set; then :
3835 # Check whether --with-imagemagick was given.
3836 if test "${with_imagemagick+set}" = set; then :
3837 withval
=$with_imagemagick;
3839 with_imagemagick
=yes
3844 # Check whether --with-xft was given.
3845 if test "${with_xft+set}" = set; then :
3852 # Check whether --with-libotf was given.
3853 if test "${with_libotf+set}" = set; then :
3854 withval
=$with_libotf;
3860 # Check whether --with-m17n-flt was given.
3861 if test "${with_m17n_flt+set}" = set; then :
3862 withval
=$with_m17n_flt;
3869 # Check whether --with-toolkit-scroll-bars was given.
3870 if test "${with_toolkit_scroll_bars+set}" = set; then :
3871 withval
=$with_toolkit_scroll_bars;
3873 with_toolkit_scroll_bars
=yes
3877 # Check whether --with-xaw3d was given.
3878 if test "${with_xaw3d+set}" = set; then :
3879 withval
=$with_xaw3d;
3885 # Check whether --with-xim was given.
3886 if test "${with_xim+set}" = set; then :
3893 # Check whether --with-ns was given.
3894 if test "${with_ns+set}" = set; then :
3902 # Check whether --with-gpm was given.
3903 if test "${with_gpm+set}" = set; then :
3910 # Check whether --with-dbus was given.
3911 if test "${with_dbus+set}" = set; then :
3918 # Check whether --with-gconf was given.
3919 if test "${with_gconf+set}" = set; then :
3920 withval
=$with_gconf;
3926 # Check whether --with-selinux was given.
3927 if test "${with_selinux+set}" = set; then :
3928 withval
=$with_selinux;
3934 # Check whether --with-gnutls was given.
3935 if test "${with_gnutls+set}" = set; then :
3936 withval
=$with_gnutls;
3942 ## For the times when you want to build Emacs but don't have
3943 ## a suitable makeinfo, and can live without the manuals.
3945 # Check whether --with-makeinfo was given.
3946 if test "${with_makeinfo+set}" = set; then :
3947 withval
=$with_makeinfo;
3953 ## This is an option because I do not know if all info/man support
3954 ## compressed files, nor how to test if they do so.
3956 # Check whether --with-compress-info was given.
3957 if test "${with_compress_info+set}" = set; then :
3958 withval
=$with_compress_info;
3960 with_compress_info
=yes
3963 if test $with_compress_info = yes; then
3971 # Check whether --with-pkg-config-prog was given.
3972 if test "${with_pkg_config_prog+set}" = set; then :
3973 withval
=$with_pkg_config_prog;
3976 if test "X${with_pkg_config_prog}" != X
; then
3977 if test "${with_pkg_config_prog}" != yes; then
3978 PKG_CONFIG
="${with_pkg_config_prog}"
3984 # Check whether --with-crt-dir was given.
3985 if test "${with_crt_dir+set}" = set; then :
3986 withval
=$with_crt_dir;
3989 CRT_DIR
="${with_crt_dir}"
3992 # Check whether --with-gameuser was given.
3993 if test "${with_gameuser+set}" = set; then :
3994 withval
=$with_gameuser;
3997 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3998 && gameuser
="${with_gameuser}"
3999 test "X$gameuser" = X
&& gameuser
=games
4002 # Check whether --with-gnustep-conf was given.
4003 if test "${with_gnustep_conf+set}" = set; then :
4004 withval
=$with_gnustep_conf;
4007 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4008 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4009 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4010 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4012 # Check whether --enable-ns-self-contained was given.
4013 if test "${enable_ns_self_contained+set}" = set; then :
4014 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4016 EN_NS_SELF_CONTAINED
=yes
4020 # Check whether --enable-asserts was given.
4021 if test "${enable_asserts+set}" = set; then :
4022 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4028 # Check whether --enable-maintainer-mode was given.
4029 if test "${enable_maintainer_mode+set}" = set; then :
4030 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4032 USE_MAINTAINER_MODE
=yes
4035 if test $USE_MAINTAINER_MODE = yes; then
4042 # Check whether --enable-locallisppath was given.
4043 if test "${enable_locallisppath+set}" = set; then :
4044 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4046 elif test "${enableval}" != "yes"; then
4047 locallisppath
=${enableval}
4052 # Check whether --enable-checking was given.
4053 if test "${enable_checking+set}" = set; then :
4054 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4057 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4058 for check
in $ac_checking_flags
4061 # these set all the flags to specific states
4062 yes) ac_enable_checking
=1 ;;
4063 no
) ac_enable_checking
= ;
4064 ac_gc_check_stringbytes
= ;
4065 ac_gc_check_string_overrun
= ;
4066 ac_gc_check_string_free_list
= ;
4067 ac_xmalloc_overrun
= ;
4068 ac_gc_check_cons_list
= ;;
4069 all
) ac_enable_checking
=1 ;
4070 ac_gc_check_stringbytes
=1 ;
4071 ac_gc_check_string_overrun
=1 ;
4072 ac_gc_check_string_free_list
=1 ;
4073 ac_xmalloc_overrun
=1 ;
4074 ac_gc_check_cons_list
=1 ;;
4075 # these enable particular checks
4076 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4077 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4078 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4079 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4080 conslist
) ac_gc_check_cons_list
=1 ;;
4081 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4086 if test x
$ac_enable_checking != x
; then
4088 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4091 if test x
$ac_gc_check_stringbytes != x
; then
4093 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4096 if test x
$ac_gc_check_stringoverrun != x
; then
4098 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4101 if test x
$ac_gc_check_string_free_list != x
; then
4103 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4106 if test x
$ac_xmalloc_overrun != x
; then
4108 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4111 if test x
$ac_gc_check_cons_list != x
; then
4113 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4117 # Check whether --enable-use-lisp-union-type was given.
4118 if test "${enable_use_lisp_union_type+set}" = set; then :
4119 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4121 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4128 # Check whether --enable-profiling was given.
4129 if test "${enable_profiling+set}" = set; then :
4130 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4133 if test x
$ac_enable_profiling != x
; then
4134 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4140 # Check whether --enable-autodepend was given.
4141 if test "${enable_autodepend+set}" = set; then :
4142 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4144 ac_enable_autodepend
=yes
4148 #### Make srcdir absolute, if it isn't already. It's important to
4149 #### avoid running the path through pwd unnecessarily, since pwd can
4150 #### give you automounter prefixes, which can go away. We do all this
4151 #### so Emacs can find its files when run uninstalled.
4152 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4157 ## We may be able to use the $PWD environment variable to make this
4158 ## absolute. But sometimes PWD is inaccurate.
4159 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4160 ## but that tested only for a well-formed and valid PWD,
4161 ## it did not object when PWD was well-formed and valid but just wrong.
4162 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4166 srcdir
="`(cd ${srcdir}; pwd)`"
4169 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4172 #### Check if the source directory already has a configured system in it.
4173 if test `pwd` != `(cd ${srcdir} && pwd)` \
4174 && test -f "${srcdir}/src/config.h" ; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4176 as a build directory right now; it has been configured in its own
4177 right. To configure in another directory as well, you MUST
4178 use GNU make. If you do not have GNU make, then you must
4179 now do \`make distclean' in ${srcdir},
4180 and then run $0 again." >&5
4181 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4182 as a build directory right now; it has been configured in its own
4183 right. To configure in another directory as well, you MUST
4184 use GNU make. If you do not have GNU make, then you must
4185 now do \`make distclean' in ${srcdir},
4186 and then run $0 again." >&2;}
4189 #### Given the configuration name, set machfile and opsysfile to the
4190 #### names of the m/*.h and s/*.h files we should use.
4192 ### Canonicalize the configuration name.
4194 # Make sure we can run config.sub.
4195 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4196 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4199 $as_echo_n "checking build system type... " >&6; }
4200 if test "${ac_cv_build+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_build_alias
=$build_alias
4204 test "x$ac_build_alias" = x
&&
4205 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4206 test "x$ac_build_alias" = x
&&
4207 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4208 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4209 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4213 $as_echo "$ac_cv_build" >&6; }
4214 case $ac_cv_build in
4216 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4219 ac_save_IFS
=$IFS; IFS
='-'
4225 # Remember, the first character of IFS is used to create $*,
4226 # except with old shells:
4229 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4233 $as_echo_n "checking host system type... " >&6; }
4234 if test "${ac_cv_host+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test "x$host_alias" = x
; then
4238 ac_cv_host
=$ac_cv_build
4240 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4241 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4246 $as_echo "$ac_cv_host" >&6; }
4249 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4252 ac_save_IFS
=$IFS; IFS
='-'
4258 # Remember, the first character of IFS is used to create $*,
4259 # except with old shells:
4262 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4266 configuration
=${host_alias-${build_alias-$host}}
4270 ### If you add support for a new configuration, add code to this
4271 ### switch statement to recognize your configuration name and select
4272 ### the appropriate operating system and machine description files.
4274 ### You would hope that you could choose an m/*.h file pretty much
4275 ### based on the machine portion of the configuration name, and an s/*.h
4276 ### file based on the operating system portion. However, it turns out
4277 ### that each m/*.h file is pretty manufacturer-specific - for
4278 ### example mips.h is MIPS
4279 ### So we basically have to have a special case for each
4280 ### configuration name.
4282 ### As far as handling version numbers on operating systems is
4283 ### concerned, make sure things will fail in a fixable way. If
4284 ### /etc/MACHINES doesn't say anything about version numbers, be
4285 ### prepared to handle anything reasonably. If version numbers
4286 ### matter, be sure /etc/MACHINES says something about it.
4288 machine
='' opsys
='' unported
=no
4289 case "${canonical}" in
4294 case ${canonical} in
4295 alpha
*) machine
=alpha
;;
4296 s390-
*) machine
=ibms390
;;
4297 s390x-
*) machine
=ibms390x
;;
4298 powerpc
*) machine
=macppc
;;
4299 sparc
*) machine
=sparc
;;
4300 ia64
*) machine
=ia64
;;
4301 m68k
*) machine
=m68k
;;
4302 x86_64
*) machine
=amdx86-64
;;
4309 case "${canonical}" in
4310 alpha
*) machine
=alpha
;;
4311 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4312 ia64-
*) machine
=ia64
;;
4313 i
[3456]86-*) machine
=intel386
;;
4314 powerpc-
*) machine
=macppc
;;
4315 sparc-
*) machine
=sparc
;;
4316 sparc64-
*) machine
=sparc
;;
4320 ## FreeBSD kernel + glibc based userland
4323 case "${canonical}" in
4324 alpha
*) machine
=alpha
;;
4325 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4326 ia64-
*) machine
=ia64
;;
4327 i
[3456]86-*) machine
=intel386
;;
4328 powerpc-
*) machine
=macppc
;;
4329 sparc-
*) machine
=sparc
;;
4330 sparc64-
*) machine
=sparc
;;
4337 case "${canonical}" in
4338 alpha
*) machine
=alpha
;;
4339 x86_64-
*) machine
=amdx86-64
;;
4340 i
[3456]86-*) machine
=intel386
;;
4341 m68k-
*) machine
=m68k
;;
4342 powerpc-
*) machine
=macppc
;;
4343 sparc
*-) machine
=sparc
;;
4344 vax-
*) machine
=vax
;;
4351 case "${canonical}" in
4352 alpha
*) machine
=alpha
;;
4353 x86_64-
*) machine
=amdx86-64
;;
4354 i386-
*) machine
=intel386
;;
4355 powerpc-
*) machine
=macppc
;;
4356 sparc
*) machine
=sparc
;;
4357 vax-
*) machine
=vax
;;
4361 ## Apple Darwin / Mac OS X
4363 case "${canonical}" in
4364 i
[3456]86-* ) machine
=intel386
;;
4365 powerpc-
* ) machine
=macppc
;;
4366 x86_64-
* ) machine
=amdx86-64
;;
4370 # Define CPP as follows to make autoconf work correctly.
4371 CPP
="${CC-cc} -E -no-cpp-precomp"
4372 # Use fink packages if available.
4373 if test -d /sw
/include
&& test -d /sw
/lib
; then
4374 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4375 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4376 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4380 ## HP 9000 series 700 and 800, running HP/UX
4381 hppa
*-hp-hpux10.2
* )
4384 hppa
*-hp-hpux1[1-9]* )
4386 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4389 ia64
*-hp-hpux1[1-9]* )
4390 machine
=hp800 opsys
=hpux11
4391 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4392 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4396 hppa
*-*-linux-gnu* )
4397 machine
=hp800 opsys
=gnu-linux
4401 rs6000-ibm-aix4.
[23]* )
4402 machine
=ibmrs6000 opsys
=aix4-2
4404 powerpc-ibm-aix4.
[23]* )
4405 machine
=ibmrs6000 opsys
=aix4-2
4407 rs6000-ibm-aix
[56]* )
4408 machine
=ibmrs6000 opsys
=aix4-2
4410 powerpc-ibm-aix
[56]* )
4411 machine
=ibmrs6000 opsys
=aix4-2
4414 ## Silicon Graphics machines
4417 machine
=iris4d opsys
=irix6-5
4418 # Without defining _LANGUAGE_C, things get masked out in the headers
4419 # so that, for instance, grepping for `free' in stdlib.h fails and
4420 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4421 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4422 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4427 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4428 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4429 case "${canonical}" in
4430 i
[3456]86-*-* ) machine
=intel386
;;
4431 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4432 sparc
* ) machine
=sparc
;;
4435 case "${canonical}" in
4436 *-sunos5.6
* |
*-solaris2.6
* )
4438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4441 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4443 emacs_check_sunpro_c
=yes
4444 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4446 *-sunos5* |
*-solaris* )
4448 emacs_check_sunpro_c
=yes
4449 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4452 ## Watch out for a compiler that we know will not work.
4453 case "${canonical}" in
4454 *-solaris* |
*-sunos5* )
4455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4456 ## /usr/ucb/cc doesn't work;
4457 ## we should find some other compiler that does work.
4465 ## Intel 386 machines where we don't care about the manufacturer.
4468 case "${canonical}" in
4469 *-cygwin ) opsys
=cygwin
;;
4470 *-darwin* ) opsys
=darwin
4471 CPP
="${CC-cc} -E -no-cpp-precomp"
4473 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4474 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4475 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4476 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4485 ### If the code above didn't choose an operating system, just choose
4486 ### an operating system based on the configuration name. You really
4487 ### only want to use this when you have no idea what the right
4488 ### operating system is; if you know what operating systems a machine
4489 ### runs, it's cleaner to make it explicit in the case statement
4491 if test x
"${opsys}" = x
; then
4492 case "${canonical}" in
4493 *-gnu* ) opsys
=gnu
;;
4502 if test $unported = yes; then
4503 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4504 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4507 if test -n "$machine"; then
4508 machfile
="m/${machine}.h"
4512 opsysfile
="s/${opsys}.h"
4515 #### Choose a compiler.
4516 test -n "$CC" && cc_specified
=yes
4518 # Save the value of CFLAGS that the user specified.
4519 SPECIFIED_CFLAGS
="$CFLAGS"
4522 ac_cpp
='$CPP $CPPFLAGS'
4523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4528 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC
="$CC" # Let the user override the test.
4537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir
=.
4542 for ac_exec_ext
in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_CC"; then
4567 # Extract the first word of "gcc", so it can be a program name with args.
4568 set dummy gcc
; ac_word
=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir
=.
4582 for ac_exec_ext
in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_CC
="gcc"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4595 if test -n "$ac_ct_CC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4597 $as_echo "$ac_ct_CC" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_CC" = x
; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned
=yes ;;
4618 if test -z "$CC"; then
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4621 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC
="$CC" # Let the user override the test.
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_exec_ext
in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4659 if test -z "$CC"; then
4660 # Extract the first word of "cc", so it can be a program name with args.
4661 set dummy cc
; ac_word
=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC
="$CC" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4679 ac_prog_rejected
=yes
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 if test $ac_prog_rejected = yes; then
4691 # We found a bogon in the path, so make sure we never use it.
4692 set dummy
$ac_cv_prog_CC
4694 if test $# != 0; then
4695 # We chose a different compiler from the bogus one.
4696 # However, it has the same basename, so the bogon will be chosen
4697 # first if we set CC to just the basename; use the full file name.
4699 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog
in cl.exe
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC
="$CC" # Let the user override the test.
4729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir
=.
4734 for ac_exec_ext
in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 if test -n "$CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749 $as_echo "$CC" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$CC" && break
4759 if test -z "$CC"; then
4761 for ac_prog
in cl.exe
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy
$ac_prog; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC
="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4800 test -n "$ac_ct_CC" && break
4803 if test "x$ac_ct_CC" = x
; then
4806 case $cross_compiling:$ac_tool_warned in
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned
=yes ;;
4819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 as_fn_error
"no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." "$LINENO" 5; }
4824 # Provide some information about the compiler.
4825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4828 for ac_option
in --version -v -V -qversion; do
4829 { { ac_try
="$ac_compiler $ac_option >&5"
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4835 $as_echo "$ac_try_echo"; } >&5
4836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838 if test -s conftest.err; then
4840 ... rest of stderr output deleted ...
4841 10q' conftest.err >conftest.er1
4842 cat conftest.er1 >&5
4844 rm -f conftest.er1 conftest.err
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4860 ac_clean_files_save=$ac_clean_files
4861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4862 # Try to create an executable without -o first, disregard a.out.
4863 # It will help us diagnose broken compilers, and finding out an intuition
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4866 $as_echo_n "checking whether the C compiler works... " >&6; }
4867 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4869 # The possible output files:
4870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4873 for ac_file in $ac_files
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4882 if { { ac_try="$ac_link_default"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 $as_echo "$ac_try_echo"; } >&5
4889 (eval "$ac_link_default") 2>&5
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then :
4893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4896 # so that the user can short-circuit this test for compilers unknown to
4898 for ac_file
in $ac_files ''
4900 test -f "$ac_file" ||
continue
4902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4905 # We found the default executable, but exeext='' is most
4909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4911 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4913 # We set ac_cv_exeext here because the later test for it is not
4914 # safe: cross compilers may not add the suffix if given an `-o'
4915 # argument, so we may need to know it at that point already.
4916 # Even if this section looks crufty: it has the advantage of
4923 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4928 if test -z "$ac_file"; then :
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.
$ac_ext >&5
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 { as_fn_set_status
77
4937 as_fn_error
"C compiler cannot create executables
4938 See \`config.log' for more details." "$LINENO" 5; }; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4944 $as_echo_n "checking for C compiler default output file name... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4946 $as_echo "$ac_file" >&6; }
4947 ac_exeext
=$ac_cv_exeext
4949 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4950 ac_clean_files
=$ac_clean_files_save
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4952 $as_echo_n "checking for suffix of executables... " >&6; }
4953 if { { ac_try
="$ac_link"
4955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959 $as_echo "$ac_try_echo"; } >&5
4960 (eval "$ac_link") 2>&5
4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }; then :
4964 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4965 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4966 # work properly (i.e., refer to `conftest.exe'), while it won't with
4968 for ac_file
in conftest.exe conftest conftest.
*; do
4969 test -f "$ac_file" ||
continue
4971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4981 See \`config.log' for more details." "$LINENO" 5; }
4983 rm -f conftest conftest
$ac_cv_exeext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4985 $as_echo "$ac_cv_exeext" >&6; }
4987 rm -f conftest.
$ac_ext
4988 EXEEXT
=$ac_cv_exeext
4990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4996 FILE *f = fopen ("conftest.out", "w");
4997 return ferror (f) || fclose (f) != 0;
5003 ac_clean_files
="$ac_clean_files conftest.out"
5004 # Check that the compiler produces executables we can run. If not, either
5005 # the compiler is broken, or we cross compile.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5007 $as_echo_n "checking whether we are cross compiling... " >&6; }
5008 if test "$cross_compiling" != yes; then
5009 { { ac_try
="$ac_link"
5011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015 $as_echo "$ac_try_echo"; } >&5
5016 (eval "$ac_link") 2>&5
5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 if { ac_try='./conftest$ac_cv_exeext'
5021 { { case "(($ac_try" in
5022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5023 *) ac_try_echo
=$ac_try;;
5025 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5026 $as_echo "$ac_try_echo"; } >&5
5027 (eval "$ac_try") 2>&5
5029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5030 test $ac_status = 0; }; }; then
5033 if test "$cross_compiling" = maybe
; then
5036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error
"cannot run C compiled programs.
5039 If you meant to cross compile, use \`--host'.
5040 See \`config.log' for more details." "$LINENO" 5; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5045 $as_echo "$cross_compiling" >&6; }
5047 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5048 ac_clean_files
=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5050 $as_echo_n "checking for suffix of object files... " >&6; }
5051 if test "${ac_cv_objext+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 rm -f conftest.o conftest.obj
5066 if { { ac_try
="$ac_compile"
5068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compile") 2>&5
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; then :
5077 for ac_file in conftest.o conftest.obj conftest.*; do
5078 test -f "$ac_file" || continue;
5080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5086 $as_echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "cannot compute suffix of object files
: cannot compile
5092 See \
`config.log' for more details." "$LINENO" 5; }
5094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5097 $as_echo "$ac_cv_objext" >&6; }
5098 OBJEXT=$ac_cv_objext
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5102 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5119 if ac_fn_c_try_compile "$LINENO"; then :
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5130 if test $ac_compiler_gnu = yes; then
5135 ac_test_CFLAGS=${CFLAGS+set}
5136 ac_save_CFLAGS=$CFLAGS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5139 if test "${ac_cv_prog_cc_g+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5142 ac_save_c_werror_flag=$ac_c_werror_flag
5143 ac_c_werror_flag=yes
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5157 if ac_fn_c_try_compile "$LINENO"; then :
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5172 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_c_werror_flag=$ac_save_c_werror_flag
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5188 if ac_fn_c_try_compile "$LINENO"; then :
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_c_werror_flag=$ac_save_c_werror_flag
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5199 $as_echo "$ac_cv_prog_cc_g" >&6; }
5200 if test "$ac_test_CFLAGS" = set; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5209 if test "$GCC" = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5217 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5220 ac_cv_prog_cc_c89=no
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5226 #include <sys/types.h>
5227 #include <sys/stat.h>
5228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5229 struct buf { int x; };
5230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5231 static char *e (p, i)
5237 static char *f (char * (*g) (char **, int), char **p, ...)
5242 s = g (p, va_arg (v,int));
5247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5248 function prototypes and stuff, but not '\xHH' hex character constants.
5249 These don't provoke an error unfortunately, instead are silently treated
5250 as 'x'. The following induces an error, until -std is added to get
5251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5252 array size at least. It's necessary to write '\x00'==0 to get something
5253 that's true only with -std. */
5254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5257 inside strings and character constants. */
5259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5261 int test (int i, double x);
5262 struct s1 {int (*f) (int a);};
5263 struct s2 {int (*f) (double a);};
5264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5278 CC="$ac_save_CC $ac_arg"
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_c89=$ac_arg
5282 rm -f core conftest.err conftest.$ac_objext
5283 test "x$ac_cv_prog_cc_c89" != "xno" && break
5285 rm -f conftest.$ac_ext
5290 case "x$ac_cv_prog_cc_c89" in
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5293 $as_echo "none needed" >&6; } ;;
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296 $as_echo "unsupported" >&6; } ;;
5298 CC="$CC $ac_cv_prog_cc_c89"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5302 if test "x$ac_cv_prog_cc_c89" != xno; then :
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 DEPDIR="${am__leading_dot}deps"
5313 ac_config_commands="$ac_config_commands depfiles"
5316 am_make=${MAKE-make}
5317 cat > confinc << 'END'
5319 @echo this is the am__doit target
5322 # If we don't find an include directive, just comment out the code.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5328 # First try GNU make style include.
5329 echo "include confinc" > confmf
5330 # Ignore all kinds of additional output from `make'.
5331 case `$am_make -s -f confmf 2> /dev/null` in #(
5332 *the\ am__doit\ target*)
5338 # Now try BSD make style include.
5339 if test "$am__include" = "#"; then
5340 echo '.include
"confinc"' > confmf
5341 case `$am_make -s -f confmf 2> /dev/null` in #(
5342 *the\ am__doit\ target*)
5343 am__include=.include
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5352 $as_echo "$_am_result" >&6; }
5353 rm -f confinc confmf
5355 # Check whether --enable-dependency-tracking was given.
5356 if test "${enable_dependency_tracking+set}" = set; then :
5357 enableval=$enable_dependency_tracking;
5360 if test "x$enable_dependency_tracking" != xno; then
5361 am_depcomp="$ac_aux_dir/depcomp"
5364 if test "x$enable_dependency_tracking" != xno
; then
5374 depcc
="$CC" am_compiler_list
=
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5377 $as_echo_n "checking dependency style of $depcc... " >&6; }
5378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5382 # We make a subdir and do the tests there. Otherwise we can end up
5383 # making bogus files that we don't know about and never remove. For
5384 # instance it was reported that on HP-UX the gcc test will end up
5385 # making a dummy file named `D' -- because `-MD' means `put the output
5388 # Copy depcomp to subdir because otherwise we won't find it if we're
5389 # using a relative directory.
5390 cp "$am_depcomp" conftest.dir
5392 # We will build objects and dependencies in a subdirectory because
5393 # it helps to detect inapplicable dependency modes. For instance
5394 # both Tru64's cc and ICC support -MD to output dependencies as a
5395 # side effect of compilation, but ICC will put the dependencies in
5396 # the current directory while Tru64 will put them in the object
5400 am_cv_CC_dependencies_compiler_type
=none
5401 if test "$am_compiler_list" = ""; then
5402 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5405 case " $depcc " in #(
5406 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5409 for depmode
in $am_compiler_list; do
5410 # Setup a source with many dependencies, because some compilers
5411 # like to wrap large dependency lists on column 80 (with \), and
5412 # we should not choose a depcomp mode which is confused by this.
5414 # We need to recreate these files for each test, as the compiler may
5415 # overwrite some of them when testing with obscure command lines.
5416 # This happens at least with the AIX C compiler.
5418 for i
in 1 2 3 4 5 6; do
5419 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5421 # Solaris 8's {/usr,}/bin/sh.
5422 touch sub
/conftst
$i.h
5424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5427 # mode. It turns out that the SunPro C++ compiler does not properly
5428 # handle `-M -o', and we need to detect this. Also, some Intel
5429 # versions had trouble with output in subdirs
5430 am__obj
=sub
/conftest.
${OBJEXT-o}
5431 am__minus_obj
="-o $am__obj"
5434 # This depmode causes a compiler race in universal mode.
5435 test "$am__universal" = false ||
continue
5438 # after this tag, mechanisms are not by side-effect, so they'll
5439 # only be used when explicitly requested
5440 if test "x$enable_dependency_tracking" = xyes
; then
5446 msvisualcpp | msvcmsys
)
5447 # This compiler won't grok `-c -o', but also, the minuso test has
5448 # not run yet. These depmodes are late enough in the game, and
5449 # so weak that their functioning should not be impacted.
5450 am__obj
=conftest.
${OBJEXT-o}
5455 if depmode
=$depmode \
5456 source=sub
/conftest.c object
=$am__obj \
5457 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5458 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5459 >/dev
/null
2>conftest.err
&&
5460 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5461 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5462 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5463 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5464 # icc doesn't choke on unknown options, it will just issue warnings
5465 # or remarks (even with -Werror). So we grep stderr for any message
5466 # that says an option was ignored or not supported.
5467 # When given -MP, icc 7.0 and 7.1 complain thusly:
5468 # icc: Command line warning: ignoring option '-M'; no argument required
5469 # The diagnosis changed in icc 8.0:
5470 # icc: Command line remark: option '-MP' not supported
5471 if (grep 'ignoring option' conftest.err ||
5472 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5473 am_cv_CC_dependencies_compiler_type
=$depmode
5482 am_cv_CC_dependencies_compiler_type
=none
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5487 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5488 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5491 test "x$enable_dependency_tracking" != xno \
5492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5494 am__fastdepCC_FALSE
='#'
5496 am__fastdepCC_TRUE
='#'
5497 am__fastdepCC_FALSE
=
5501 if test "x$CC" != xcc
; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5503 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5506 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5508 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5511 $as_echo_n "(cached) " >&6
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5524 # Make sure it works both with $CC and with simple cc.
5525 # We do the test twice because some compilers refuse to overwrite an
5526 # existing .o file with -o, though they will create one.
5527 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5529 if { { case "(($ac_try" in
5530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534 $as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_try") 2>&5
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; } &&
5539 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5541 *) ac_try_echo
=$ac_try;;
5543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5544 $as_echo "$ac_try_echo"; } >&5
5545 (eval "$ac_try") 2>&5
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; };
5550 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5551 if test "x$CC" != xcc
; then
5552 # Test first that cc exists at all.
5553 if { ac_try
='cc -c conftest.$ac_ext >&5'
5554 { { case "(($ac_try" in
5555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; }; }; then
5564 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5566 if { { case "(($ac_try" in
5567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5568 *) ac_try_echo
=$ac_try;;
5570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571 $as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_try") 2>&5
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; } &&
5576 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5581 $as_echo "$ac_try_echo"; } >&5
5582 (eval "$ac_try") 2>&5
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; };
5590 # cc exists but doesn't like -o.
5591 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5596 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5598 rm -f core conftest*
5601 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5608 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5612 # FIXME: we rely on the cache variable name because
5613 # there is no other way.
5615 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5617 if test "$am_t" != yes; then
5618 # Losing compiler, so override with the script.
5619 # FIXME: It is wrong to rewrite CC.
5620 # But if we don't then we get into trouble of one sort or another.
5621 # A longer-term fix would be to have automake use am__CC in this case,
5622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5623 CC="$am_aux_dir/compile $CC"
5628 # Initialize gnulib right after verifying that the C compiler works.
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -n "$RANLIB"; then
5638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669 ac_ct_RANLIB=$RANLIB
5670 # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5677 if test -n "$ac_ct_RANLIB"; then
5678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_RANLIB="ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5706 if test "x$ac_ct_RANLIB" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5715 RANLIB=$ac_ct_RANLIB
5718 RANLIB="$ac_cv_prog_RANLIB"
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 # include <limits.h>
5754 # include <assert.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5776 # Passes both tests.
5780 rm -f conftest.err conftest.$ac_ext
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.
$ac_ext
5785 if $ac_preproc_ok; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5800 for ac_c_preproc_warn_flag
in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # include <limits.h>
5813 # include <assert.h>
5817 if ac_fn_c_try_cpp
"$LINENO"; then :
5820 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.
$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if ac_fn_c_try_cpp
"$LINENO"; then :
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.
$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.
$ac_ext
5844 if $ac_preproc_ok; then :
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5854 ac_cpp
='$CPP $CPPFLAGS'
5855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found
=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5869 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5872 test -z "$as_dir" && as_dir
=.
5873 for ac_prog
in grep ggrep
; do
5874 for ac_exec_ext
in '' $ac_executable_extensions; do
5875 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5881 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5884 $as_echo_n 0123456789 >"conftest.in"
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5892 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5893 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP
="$ac_path_GREP"
5897 ac_path_GREP_max
=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5902 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5905 $ac_path_GREP_found && break 3
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914 ac_cv_path_GREP
=$GREP
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP
="$ac_cv_path_GREP"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5929 then ac_cv_path_EGREP
="$GREP -E"
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found
=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5935 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5938 test -z "$as_dir" && as_dir
=.
5939 for ac_prog
in egrep; do
5940 for ac_exec_ext
in '' $ac_executable_extensions; do
5941 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5947 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5950 $as_echo_n 0123456789 >"conftest.in"
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5958 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5959 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP
="$ac_path_EGREP"
5963 ac_path_EGREP_max
=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5968 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5971 $ac_path_EGREP_found && break 3
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5980 ac_cv_path_EGREP
=$EGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP
="$ac_cv_path_EGREP"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5991 $as_echo_n "checking for ANSI C header files... " >&6; }
5992 if test "${ac_cv_header_stdc+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6010 if ac_fn_c_try_compile
"$LINENO"; then :
6011 ac_cv_header_stdc
=yes
6013 ac_cv_header_stdc
=no
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 if test $ac_cv_header_stdc = yes; then
6018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "memchr" >/dev
/null
2>&1; then :
6028 ac_cv_header_stdc
=no
6034 if test $ac_cv_header_stdc = yes; then
6035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "free" >/dev
/null
2>&1; then :
6045 ac_cv_header_stdc
=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6053 if test "$cross_compiling" = yes; then :
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6060 #if ((' ' & 0x0FF) == 0x020)
6061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6064 # define ISLOWER(c) \
6065 (('a' <= (c) && (c) <= 'i') \
6066 || ('j' <= (c) && (c) <= 'r') \
6067 || ('s' <= (c) && (c) <= 'z'))
6068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6076 for (i = 0; i < 256; i++)
6077 if (XOR (islower (i), ISLOWER (i))
6078 || toupper (i) != TOUPPER (i))
6083 if ac_fn_c_try_run
"$LINENO"; then :
6086 ac_cv_header_stdc
=no
6088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6095 $as_echo "$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6103 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6104 inttypes.h stdint.h unistd.h
6106 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6109 eval as_val
=\$
$as_ac_Header
6110 if test "x$as_val" = x
""yes; then :
6111 cat >>confdefs.h
<<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6124 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6131 if test "$MINIX" = yes; then
6133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6139 $as_echo "#define _MINIX 1" >>confdefs.h
6146 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6153 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6154 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 # define __EXTENSIONS__ 1
6161 $ac_includes_default
6170 if ac_fn_c_try_compile
"$LINENO"; then :
6171 ac_cv_safe_to_define___extensions__
=yes
6173 ac_cv_safe_to_define___extensions__
=no
6175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6178 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6179 test $ac_cv_safe_to_define___extensions__ = yes &&
6180 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6182 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6184 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6186 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6188 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6199 # Code from module allocator:
6200 # Code from module arg-nonnull:
6201 # Code from module c++defs:
6202 # Code from module careadlinkat:
6203 # Code from module crypto/md5:
6204 # Code from module dosname:
6205 # Code from module dtoastr:
6206 # Code from module extensions:
6208 # Code from module filemode:
6209 # Code from module getloadavg:
6210 # Code from module getopt-gnu:
6211 # Code from module getopt-posix:
6212 # Code from module gettext-h:
6213 # Code from module ignore-value:
6214 # Code from module include_next:
6215 # Code from module intprops:
6216 # Code from module lstat:
6217 # Code from module mktime:
6218 # Code from module multiarch:
6219 # Code from module readlink:
6220 # Code from module socklen:
6221 # Code from module ssize_t:
6222 # Code from module stat:
6223 # Code from module stdbool:
6224 # Code from module stddef:
6225 # Code from module stdint:
6226 # Code from module stdio:
6227 # Code from module stdlib:
6228 # Code from module strftime:
6229 # Code from module symlink:
6230 # Code from module sys_stat:
6231 # Code from module time:
6232 # Code from module time_r:
6233 # Code from module unistd:
6234 # Code from module warn-on-use:
6237 # On Suns, sometimes $CPP names a directory.
6238 if test -n "$CPP" && test -d "$CPP"; then
6242 ## If not using gcc, and on Solaris, and no CPP specified, see if
6243 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6244 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6245 test x
"$CPP" = x
; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6247 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6248 if test "${emacs_cv_sunpro_c+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6265 if ac_fn_c_try_link
"$LINENO"; then :
6266 emacs_cv_sunpro_c
=yes
6268 emacs_cv_sunpro_c
=no
6270 rm -f core conftest.err conftest.
$ac_objext \
6271 conftest
$ac_exeext conftest.
$ac_ext
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6275 $as_echo "$emacs_cv_sunpro_c" >&6; }
6277 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6278 NON_GNU_CPP
="$CC -E -Xs"
6282 #### Some systems specify a CPP to use unless we are using GCC.
6283 #### Now that we know whether we are using GCC, we can decide whether
6284 #### to use that one.
6285 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6290 #### Some systems specify a CC to use unless we are using GCC.
6291 #### Now that we know whether we are using GCC, we can decide whether
6292 #### to use that one.
6293 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6294 test x
$cc_specified != xyes
6299 if test x
$GCC = xyes
; then
6300 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6302 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6305 ### Use -Wdeclaration-after-statement if the compiler supports it
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6307 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6308 SAVE_CFLAGS
="$CFLAGS"
6309 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6321 if ac_fn_c_try_compile
"$LINENO"; then :
6326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 if test $has_option = yes; then
6328 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6331 $as_echo "$has_option" >&6; }
6332 CFLAGS
="$SAVE_CFLAGS"
6336 ### Use -Wold-style-definition if the compiler supports it
6337 # This can be removed when conversion to standard C is finished.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6339 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6340 SAVE_CFLAGS
="$CFLAGS"
6341 CFLAGS
="$CFLAGS -Wold-style-definition"
6342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6353 if ac_fn_c_try_compile
"$LINENO"; then :
6358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6359 if test $has_option = yes; then
6360 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6363 $as_echo "$has_option" >&6; }
6364 CFLAGS
="$SAVE_CFLAGS"
6368 ### Use -Wimplicit-function-declaration if the compiler supports it
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6370 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6371 SAVE_CFLAGS
="$CFLAGS"
6372 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_c_try_compile
"$LINENO"; then :
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 if test $has_option = yes; then
6391 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6394 $as_echo "$has_option" >&6; }
6395 CFLAGS
="$SAVE_CFLAGS"
6402 #### Some other nice autoconf tests.
6405 ac_cpp
='$CPP $CPPFLAGS'
6406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6411 # On Suns, sometimes $CPP names a directory.
6412 if test -n "$CPP" && test -d "$CPP"; then
6415 if test -z "$CPP"; then
6416 if test "${ac_cv_prog_CPP+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6419 # Double quotes because CPP needs to be expanded
6420 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6423 for ac_c_preproc_warn_flag
in '' yes
6425 # Use a header file that comes with gcc, so configuring glibc
6426 # with a fresh cross-compiler works.
6427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428 # <limits.h> exists even on freestanding compilers.
6429 # On the NeXT, cc -E runs the code through the compiler's parser,
6430 # not just through cpp. "Syntax error" is here to catch this case.
6431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6434 # include <limits.h>
6436 # include <assert.h>
6440 if ac_fn_c_try_cpp
"$LINENO"; then :
6443 # Broken: fails on valid input.
6446 rm -f conftest.err conftest.
$ac_ext
6448 # OK, works on sane cases. Now check whether nonexistent headers
6449 # can be detected and how.
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <ac_nonexistent.h>
6454 if ac_fn_c_try_cpp
"$LINENO"; then :
6455 # Broken: success on invalid input.
6458 # Passes both tests.
6462 rm -f conftest.err conftest.
$ac_ext
6465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6466 rm -f conftest.err conftest.
$ac_ext
6467 if $ac_preproc_ok; then :
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6480 $as_echo "$CPP" >&6; }
6482 for ac_c_preproc_warn_flag
in '' yes
6484 # Use a header file that comes with gcc, so configuring glibc
6485 # with a fresh cross-compiler works.
6486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6487 # <limits.h> exists even on freestanding compilers.
6488 # On the NeXT, cc -E runs the code through the compiler's parser,
6489 # not just through cpp. "Syntax error" is here to catch this case.
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6493 # include <limits.h>
6495 # include <assert.h>
6499 if ac_fn_c_try_cpp
"$LINENO"; then :
6502 # Broken: fails on valid input.
6505 rm -f conftest.err conftest.
$ac_ext
6507 # OK, works on sane cases. Now check whether nonexistent headers
6508 # can be detected and how.
6509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <ac_nonexistent.h>
6513 if ac_fn_c_try_cpp
"$LINENO"; then :
6514 # Broken: success on invalid input.
6517 # Passes both tests.
6521 rm -f conftest.err conftest.
$ac_ext
6524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6525 rm -f conftest.err conftest.
$ac_ext
6526 if $ac_preproc_ok; then :
6529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6532 See \`config.log' for more details." "$LINENO" 5; }
6536 ac_cpp
='$CPP $CPPFLAGS'
6537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6542 if test "x$RANLIB" = x
; then
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6545 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$RANLIB"; then
6552 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir
=.
6559 for ac_exec_ext
in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 RANLIB
=$ac_cv_prog_RANLIB
6572 if test -n "$RANLIB"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574 $as_echo "$RANLIB" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583 ac_ct_RANLIB
=$RANLIB
6584 # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib
; ac_word
=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir
=.
6599 for ac_exec_ext
in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6612 if test -n "$ac_ct_RANLIB"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6614 $as_echo "$ac_ct_RANLIB" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6620 if test "x$ac_ct_RANLIB" = x
; then
6623 case $cross_compiling:$ac_tool_warned in
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned
=yes ;;
6629 RANLIB
=$ac_ct_RANLIB
6632 RANLIB
="$ac_cv_prog_RANLIB"
6637 ## Although we're running on an amd64 kernel, we're actually compiling for
6638 ## the x86 architecture. The user should probably have provided an
6639 ## explicit --build to `configure', but if everything else than the kernel
6640 ## is running in i386 mode, we can help them out.
6641 if test "$machine" = "amdx86-64"; then
6642 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6643 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6647 if test "$ac_cv_have_decl_i386" = "yes"; then
6648 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6650 machfile
="m/${machine}.h"
6654 # Extract the first word of "install-info", so it can be a program name with args.
6655 set dummy install-info
; ac_word
=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6661 case $INSTALL_INFO in
6663 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir
=.
6671 for ac_exec_ext
in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6685 if test -n "$INSTALL_INFO"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6687 $as_echo "$INSTALL_INFO" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6694 # Extract the first word of "install-info", so it can be a program name with args.
6695 set dummy install-info
; ac_word
=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6699 $as_echo_n "(cached) " >&6
6701 case $INSTALL_INFO in
6703 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6707 for as_dir
in /usr
/sbin
6710 test -z "$as_dir" && as_dir
=.
6711 for ac_exec_ext
in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6725 if test -n "$INSTALL_INFO"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6727 $as_echo "$INSTALL_INFO" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6734 # Extract the first word of "install-info", so it can be a program name with args.
6735 set dummy install-info
; ac_word
=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6741 case $INSTALL_INFO in
6743 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir
=.
6751 for ac_exec_ext
in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6765 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6766 if test -n "$INSTALL_INFO"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6768 $as_echo "$INSTALL_INFO" >&6; }
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6775 # Extract the first word of "gzip", so it can be a program name with args.
6776 set dummy
gzip; ac_word
=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6784 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir
=.
6792 for ac_exec_ext
in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6806 if test -n "$GZIP_PROG"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6808 $as_echo "$GZIP_PROG" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6817 ## Need makeinfo >= 4.6 (?) to build the manuals.
6818 # Extract the first word of "makeinfo", so it can be a program name with args.
6819 set dummy makeinfo
; ac_word
=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6827 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir
=.
6835 for ac_exec_ext
in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6849 MAKEINFO
=$ac_cv_path_MAKEINFO
6850 if test -n "$MAKEINFO"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6852 $as_echo "$MAKEINFO" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6859 if test "$MAKEINFO" != "no" && \
6860 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
6864 ## Makeinfo is unusual. For a released Emacs, the manuals are
6865 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6866 ## therefore in the category of "special tools" not normally required, which
6867 ## configure does not have to check for (eg autoconf itself).
6868 ## In a Bazaar checkout on the other hand, the manuals are not included.
6869 ## So makeinfo is a requirement to build from Bazaar, and configure
6870 ## should test for it as it does for any other build requirement.
6871 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6872 ## with pre-built manuals, from a Bazaar checkout.
6875 if test "$MAKEINFO" = "no"; then
6877 if test "x${with_makeinfo}" = "xno"; then
6879 elif test ! -e $srcdir/info
/emacs
; then
6880 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
6881 source tree does not seem to have pre-built manuals in the \`info' directory.
6882 Either install a suitable version of makeinfo, or re-run configure
6883 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6889 if test x
$GCC = xyes
; then
6890 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6891 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6893 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6894 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6898 late_LDFLAGS
=$LDFLAGS
6899 if test x
$GCC = xyes
; then
6900 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6902 LDFLAGS
="$LDFLAGS -znocombreloc"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6906 $as_echo_n "checking for -znocombreloc... " >&6; }
6907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6918 if ac_fn_c_try_link
"$LINENO"; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6922 LDFLAGS
=$late_LDFLAGS
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6926 rm -f core conftest.err conftest.
$ac_objext \
6927 conftest
$ac_exeext conftest.
$ac_ext
6930 # The value of CPP is a quoted variable reference, so we need to do this
6931 # to get its actual value...
6932 CPP
=`eval "echo $CPP"`
6935 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6937 your-opsys-here
) CANNOT_DUMP
=yes ;;
6940 test "$CANNOT_DUMP" = "yes" && \
6942 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6948 UNEXEC_OBJ
=unexelf.o
6950 # MSDOS uses unexcoff.o
6951 # MSWindows uses unexw32.o
6953 UNEXEC_OBJ
=unexaix.o
6959 UNEXEC_OBJ
=unexmacosx.o
6962 UNEXEC_OBJ
=unexhp9k800.o
6965 # Use the Solaris dldump() function, called from unexsol.c, to dump
6966 # emacs, instead of the generic ELF dump code found in unexelf.c.
6967 # The resulting binary has a complete symbol table, and is better
6968 # for debugging and other observability tools (debuggers, pstack, etc).
6970 # If you encounter a problem using dldump(), please consider sending
6971 # a message to the OpenSolaris tools-linking mailing list:
6972 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6974 # It is likely that dldump() works with older Solaris too, but this has
6975 # not been tested, so for now this change is for Solaris 10 or newer.
6976 UNEXEC_OBJ
=unexsol.o
6983 ## Let `ld' find image libs and similar things in /usr/local/lib.
6984 ## The system compiler, GCC, has apparently been modified to not
6985 ## look there, contrary to what a stock GCC would do.
6986 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6990 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6991 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6995 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6999 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7000 ## otherwise Emacs dumps core on elf systems.
7001 LD_SWITCH_SYSTEM
="-Z"
7006 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7008 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7009 ## which has not been defined yet. When this was handled with cpp,
7010 ## it was expanded to null when configure sourced the s/*.h file.
7011 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7012 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7013 ## (or somesuch), but because it is supposed to go at the _front_
7014 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7015 ## Compare with the gnu-linux case below, which added to the end
7016 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7017 ## LD_SWITCH_SYSTEM_TEMACS.
7020 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7021 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7026 if test "$machine" = "alpha"; then
7027 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7028 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7032 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7033 ## With ELF, make sure that all common symbols get allocated to in the
7034 ## data section. Otherwise, the dump of temacs may miss variables in
7035 ## the shared library that have been initialized. For example, with
7036 ## GNU libc, __malloc_initialized would normally be resolved to the
7037 ## shared library's .bss section, which is fatal.
7038 if test "x$GCC" = "xyes"; then
7039 C_SWITCH_MACHINE
="-fno-common"
7041 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7044 UNEXEC_OBJ
=unexalpha.o
7052 ## Some programs in src produce warnings saying certain subprograms
7053 ## are too complex and need a MAXMEM value greater than 2000 for
7054 ## additional optimization. --nils@exp-math.uni-essen.de
7055 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7056 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7057 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7058 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7064 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7065 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7067 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7069 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7071 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7073 ## Motif needs -lgen.
7074 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7079 ### Make sure subsequent tests use flags consistent with the build flags.
7081 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7082 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7084 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7087 # Check whether --enable-largefile was given.
7088 if test "${enable_largefile+set}" = set; then :
7089 enableval
=$enable_largefile;
7092 if test "$enable_largefile" != no
; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7095 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7096 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7099 ac_cv_sys_largefile_CC
=no
7100 if test "$GCC" != yes; then
7103 # IRIX 6.2 and later do not support large files by default,
7104 # so use the C compiler's -n32 option if that helps.
7105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 /* Check that off_t can represent 2**63 - 1 correctly.
7109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7110 since some C++ compilers masquerading as C compilers
7111 incorrectly reject 9223372036854775807. */
7112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7114 && LARGE_OFF_T % 2147483647 == 1)
7124 if ac_fn_c_try_compile
"$LINENO"; then :
7127 rm -f core conftest.err conftest.
$ac_objext
7129 if ac_fn_c_try_compile
"$LINENO"; then :
7130 ac_cv_sys_largefile_CC
=' -n32'; break
7132 rm -f core conftest.err conftest.
$ac_objext
7136 rm -f conftest.
$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7140 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7141 if test "$ac_cv_sys_largefile_CC" != no
; then
7142 CC
=$CC$ac_cv_sys_largefile_CC
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7146 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7147 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <sys/types.h>
7154 /* Check that off_t can represent 2**63 - 1 correctly.
7155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7156 since some C++ compilers masquerading as C compilers
7157 incorrectly reject 9223372036854775807. */
7158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7160 && LARGE_OFF_T % 2147483647 == 1)
7170 if ac_fn_c_try_compile
"$LINENO"; then :
7171 ac_cv_sys_file_offset_bits
=no
; break
7173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #define _FILE_OFFSET_BITS 64
7177 #include <sys/types.h>
7178 /* Check that off_t can represent 2**63 - 1 correctly.
7179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7180 since some C++ compilers masquerading as C compilers
7181 incorrectly reject 9223372036854775807. */
7182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7184 && LARGE_OFF_T % 2147483647 == 1)
7194 if ac_fn_c_try_compile
"$LINENO"; then :
7195 ac_cv_sys_file_offset_bits
=64; break
7197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7198 ac_cv_sys_file_offset_bits
=unknown
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7203 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7204 case $ac_cv_sys_file_offset_bits in #(
7207 cat >>confdefs.h
<<_ACEOF
7208 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7213 if test $ac_cv_sys_file_offset_bits = unknown
; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7215 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7216 if test "${ac_cv_sys_large_files+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <sys/types.h>
7223 /* Check that off_t can represent 2**63 - 1 correctly.
7224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7225 since some C++ compilers masquerading as C compilers
7226 incorrectly reject 9223372036854775807. */
7227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7229 && LARGE_OFF_T % 2147483647 == 1)
7239 if ac_fn_c_try_compile
"$LINENO"; then :
7240 ac_cv_sys_large_files
=no
; break
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #define _LARGE_FILES 1
7246 #include <sys/types.h>
7247 /* Check that off_t can represent 2**63 - 1 correctly.
7248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7249 since some C++ compilers masquerading as C compilers
7250 incorrectly reject 9223372036854775807. */
7251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7253 && LARGE_OFF_T % 2147483647 == 1)
7263 if ac_fn_c_try_compile
"$LINENO"; then :
7264 ac_cv_sys_large_files
=1; break
7266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7267 ac_cv_sys_large_files
=unknown
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7272 $as_echo "$ac_cv_sys_large_files" >&6; }
7273 case $ac_cv_sys_large_files in #(
7276 cat >>confdefs.h
<<_ACEOF
7277 #define _LARGE_FILES $ac_cv_sys_large_files
7287 ## If user specified a crt-dir, use that unconditionally.
7288 if test "X$CRT_DIR" = "X"; then
7290 case "$canonical" in
7291 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7292 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7293 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7294 ## For anything else (eg /usr/lib32), it is up the user to specify
7295 ## the location (bug#5655).
7296 ## Test for crtn.o, not just the directory, because sometimes the
7297 ## directory exists but does not have the relevant files (bug#1287).
7298 ## FIXME better to test for binary compatibility somehow.
7299 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7302 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7306 hpux10-20
) CRT_DIR
=/lib
;;
7309 ## Default is /usr/lib.
7310 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7314 ## Some platforms don't use any of these files, so it is not
7315 ## appropriate to put this test outside the if block.
7316 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7317 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7330 START_FILES
='pre-crt0.o'
7333 ## Adding -lm confuses the dynamic linker, so omit it.
7335 START_FILES
='pre-crt0.o'
7338 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7339 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7341 gnu-linux | gnu-kfreebsd
)
7342 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7343 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7345 hpux10-20 | hpux11
)
7347 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7350 if test -f $CRT_DIR/crti.o
; then
7351 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7352 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7354 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7355 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7366 if test "${with_sound}" != "no"; then
7367 # Sound support for GNU/Linux and the free BSDs.
7368 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7370 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7372 eval as_val
=\$
$as_ac_Header
7373 if test "x$as_val" = x
""yes; then :
7374 cat >>confdefs.h
<<_ACEOF
7375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377 have_sound_header
=yes
7382 # Emulation library used on NetBSD.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7384 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7385 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7388 ac_check_lib_save_LIBS
=$LIBS
7389 LIBS
="-lossaudio $LIBS"
7390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7393 /* Override any GCC internal prototype to avoid an error.
7394 Use char because int might match the return type of a GCC
7395 builtin and then its argument prototype would still apply. */
7403 return _oss_ioctl ();
7408 if ac_fn_c_try_link
"$LINENO"; then :
7409 ac_cv_lib_ossaudio__oss_ioctl
=yes
7411 ac_cv_lib_ossaudio__oss_ioctl
=no
7413 rm -f core conftest.err conftest.
$ac_objext \
7414 conftest
$ac_exeext conftest.
$ac_ext
7415 LIBS
=$ac_check_lib_save_LIBS
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7418 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7419 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7428 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7432 # Extract the first word of "pkg-config", so it can be a program name with args.
7433 set dummy pkg-config
; ac_word
=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7441 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir
=.
7449 for ac_exec_ext
in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7463 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7464 if test -n "$PKG_CONFIG"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7466 $as_echo "$PKG_CONFIG" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7474 if test "$PKG_CONFIG" = "no" ; then
7477 PKG_CONFIG_MIN_VERSION
=0.9.0
7478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7480 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7482 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7484 $as_echo "yes" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7488 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7489 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7491 $as_echo "$ALSA_CFLAGS" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7494 $as_echo_n "checking ALSA_LIBS... " >&6; }
7495 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7497 $as_echo "$ALSA_LIBS" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7503 ## If we have a custom action on failure, don't print errors, but
7504 ## do set a variable so people can do so.
7505 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7512 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7513 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7517 if test $succeeded = yes; then
7523 if test $HAVE_ALSA = yes; then
7524 SAVE_CFLAGS
="$CFLAGS"
7525 SAVE_LDFLAGS
="$LDFLAGS"
7526 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7527 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 #include <asoundlib.h>
7534 snd_lib_error_set_handler (0);
7539 if ac_fn_c_try_compile
"$LINENO"; then :
7540 emacs_alsa_normal
=yes
7542 emacs_alsa_normal
=no
7544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 if test "$emacs_alsa_normal" != yes; then
7546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #include <alsa/asoundlib.h>
7552 snd_lib_error_set_handler (0);
7557 if ac_fn_c_try_compile
"$LINENO"; then :
7558 emacs_alsa_subdir
=yes
7560 emacs_alsa_subdir
=no
7562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7563 if test "$emacs_alsa_subdir" != yes; then
7564 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7566 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7569 CFLAGS
="$SAVE_CFLAGS"
7570 LDFLAGS
="$SAVE_LDFLAGS"
7571 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7572 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7574 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7578 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7580 gnu-linux|freebsd|netbsd
)
7582 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7591 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7592 linux
/version.h sys
/systeminfo.h limits.h \
7593 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7594 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7595 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7597 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7599 eval as_val
=\$
$as_ac_Header
7600 if test "x$as_val" = x
""yes; then :
7601 cat >>confdefs.h
<<_ACEOF
7602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7611 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 #include <sys/personality.h>
7618 personality (PER_LINUX32)
7623 if ac_fn_c_try_compile
"$LINENO"; then :
7624 emacs_cv_personality_linux32
=yes
7626 emacs_cv_personality_linux32
=no
7628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7630 $as_echo "$emacs_cv_personality_linux32" >&6; }
7632 if test $emacs_cv_personality_linux32 = yes; then
7634 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7638 for ac_header
in term.h
7640 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7641 if test "x$ac_cv_header_term_h" = x
""yes; then :
7642 cat >>confdefs.h
<<_ACEOF
7643 #define HAVE_TERM_H 1
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if test "${ac_cv_header_stdc+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7670 if ac_fn_c_try_compile
"$LINENO"; then :
7671 ac_cv_header_stdc
=yes
7673 ac_cv_header_stdc
=no
7675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7677 if test $ac_cv_header_stdc = yes; then
7678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "memchr" >/dev
/null
2>&1; then :
7688 ac_cv_header_stdc
=no
7694 if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "free" >/dev
/null
2>&1; then :
7705 ac_cv_header_stdc
=no
7711 if test $ac_cv_header_stdc = yes; then
7712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713 if test "$cross_compiling" = yes; then :
7716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7724 # define ISLOWER(c) \
7725 (('a' <= (c) && (c) <= 'i') \
7726 || ('j' <= (c) && (c) <= 'r') \
7727 || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736 for (i = 0; i < 256; i++)
7737 if (XOR (islower (i), ISLOWER (i))
7738 || toupper (i) != TOUPPER (i))
7743 if ac_fn_c_try_run
"$LINENO"; then :
7746 ac_cv_header_stdc
=no
7748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7764 if test "${ac_cv_header_time+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #include <sys/types.h>
7770 #include <sys/time.h>
7776 if ((struct tm *) 0)
7782 if ac_fn_c_try_compile
"$LINENO"; then :
7783 ac_cv_header_time
=yes
7785 ac_cv_header_time
=no
7787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7790 $as_echo "$ac_cv_header_time" >&6; }
7791 if test $ac_cv_header_time = yes; then
7793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7797 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7798 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7804 cat >>confdefs.h
<<_ACEOF
7805 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7808 if test $ac_cv_have_decl_sys_siglist != yes; then
7809 # For Tru64, at least:
7810 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7811 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7817 cat >>confdefs.h
<<_ACEOF
7818 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7821 if test $ac_cv_have_decl___sys_siglist = yes; then
7823 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7828 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7829 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7835 #include <sys/wait.h>
7837 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7853 if ac_fn_c_try_compile
"$LINENO"; then :
7854 ac_cv_header_sys_wait_h
=yes
7856 ac_cv_header_sys_wait_h
=no
7858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7861 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7862 if test $ac_cv_header_sys_wait_h = yes; then
7864 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7870 $as_echo_n "checking for struct utimbuf... " >&6; }
7871 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #ifdef TIME_WITH_SYS_TIME
7877 #include <sys/time.h>
7880 #ifdef HAVE_SYS_TIME_H
7881 #include <sys/time.h>
7892 static struct utimbuf x; x.actime = x.modtime;
7897 if ac_fn_c_try_compile
"$LINENO"; then :
7898 emacs_cv_struct_utimbuf
=yes
7900 emacs_cv_struct_utimbuf
=no
7902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7905 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7906 if test $emacs_cv_struct_utimbuf = yes; then
7908 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7913 $as_echo_n "checking for speed_t... " >&6; }
7914 if test "${emacs_cv_speed_t+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <termios.h>
7928 if ac_fn_c_try_compile
"$LINENO"; then :
7929 emacs_cv_speed_t
=yes
7933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7936 $as_echo "$emacs_cv_speed_t" >&6; }
7937 if test $emacs_cv_speed_t = yes; then
7939 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7944 $as_echo_n "checking for struct timeval... " >&6; }
7945 if test "${emacs_cv_struct_timeval+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #ifdef TIME_WITH_SYS_TIME
7951 #include <sys/time.h>
7954 #ifdef HAVE_SYS_TIME_H
7955 #include <sys/time.h>
7963 static struct timeval x; x.tv_sec = x.tv_usec;
7968 if ac_fn_c_try_compile
"$LINENO"; then :
7969 emacs_cv_struct_timeval
=yes
7971 emacs_cv_struct_timeval
=no
7973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7976 $as_echo "$emacs_cv_struct_timeval" >&6; }
7977 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7978 if test $emacs_cv_struct_timeval = yes; then
7980 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7985 $as_echo_n "checking for struct exception... " >&6; }
7986 if test "${emacs_cv_struct_exception+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7995 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8000 if ac_fn_c_try_compile
"$LINENO"; then :
8001 emacs_cv_struct_exception
=yes
8003 emacs_cv_struct_exception
=no
8005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8008 $as_echo "$emacs_cv_struct_exception" >&6; }
8009 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8010 if test $emacs_cv_struct_exception != yes; then
8012 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8016 for ac_header
in net
/if.h
8018 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8019 #if HAVE_SYS_SOCKET_H
8020 #include <sys/socket.h>
8023 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8024 cat >>confdefs.h
<<_ACEOF
8025 #define HAVE_NET_IF_H 1
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8034 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8035 if test "${ac_cv_struct_tm+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <sys/types.h>
8047 int *p = &tm.tm_sec;
8053 if ac_fn_c_try_compile
"$LINENO"; then :
8054 ac_cv_struct_tm
=time.h
8056 ac_cv_struct_tm
=sys
/time.h
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8061 $as_echo "$ac_cv_struct_tm" >&6; }
8062 if test $ac_cv_struct_tm = sys
/time.h
; then
8064 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8068 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8069 #include <$ac_cv_struct_tm>
8072 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8074 cat >>confdefs.h
<<_ACEOF
8075 #define HAVE_STRUCT_TM_TM_ZONE 1
8081 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8083 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8086 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8088 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8094 cat >>confdefs.h
<<_ACEOF
8095 #define HAVE_DECL_TZNAME $ac_have_decl
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8099 $as_echo_n "checking for tzname... " >&6; }
8100 if test "${ac_cv_var_tzname+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8106 #if !HAVE_DECL_TZNAME
8107 extern char *tzname[];
8113 return tzname[0][0];
8118 if ac_fn_c_try_link
"$LINENO"; then :
8119 ac_cv_var_tzname
=yes
8123 rm -f core conftest.err conftest.
$ac_objext \
8124 conftest
$ac_exeext conftest.
$ac_ext
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8127 $as_echo "$ac_cv_var_tzname" >&6; }
8128 if test $ac_cv_var_tzname = yes; then
8130 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8135 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8137 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8139 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8143 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8144 #if HAVE_SYS_SOCKET_H
8145 #include <sys/socket.h>
8151 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8153 cat >>confdefs.h
<<_ACEOF
8154 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8159 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8160 #if HAVE_SYS_SOCKET_H
8161 #include <sys/socket.h>
8167 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8169 cat >>confdefs.h
<<_ACEOF
8170 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8175 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8183 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8185 cat >>confdefs.h
<<_ACEOF
8186 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8191 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8199 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8201 cat >>confdefs.h
<<_ACEOF
8202 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8207 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8208 #if HAVE_SYS_SOCKET_H
8209 #include <sys/socket.h>
8215 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8217 cat >>confdefs.h
<<_ACEOF
8218 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8227 $as_echo_n "checking for function prototypes... " >&6; }
8228 if test "$ac_cv_prog_cc_c89" != no
; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8230 $as_echo "yes" >&6; }
8232 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8235 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8243 $as_echo_n "checking for working volatile... " >&6; }
8244 if test "${ac_cv_c_volatile+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8255 int * volatile y = (int *) 0;
8261 if ac_fn_c_try_compile
"$LINENO"; then :
8262 ac_cv_c_volatile
=yes
8266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8269 $as_echo "$ac_cv_c_volatile" >&6; }
8270 if test $ac_cv_c_volatile = no
; then
8272 $as_echo "#define volatile /**/" >>confdefs.h
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8277 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8278 if test "${ac_cv_c_const+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8287 /* FIXME: Include the comments suggested by Paul. */
8289 /* Ultrix mips cc rejects this. */
8290 typedef int charset[2];
8292 /* SunOS 4.1.1 cc rejects this. */
8293 char const *const *pcpcc;
8295 /* NEC SVR4.0.2 mips cc rejects this. */
8296 struct point {int x, y;};
8297 static struct point const zero = {0,0};
8298 /* AIX XL C 1.02.0.0 rejects this.
8299 It does not let you subtract one const X* pointer from another in
8300 an arm of an if-expression whose if-part is not a constant
8302 const char *g = "string";
8303 pcpcc = &g + (g ? g-g : 0);
8304 /* HPUX 7.0 cc rejects these. */
8306 ppc = (char**) pcpcc;
8307 pcpcc = (char const *const *) ppc;
8308 { /* SCO 3.2v4 cc rejects this. */
8310 char const *s = 0 ? (char *) 0 : (char const *) 0;
8315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8317 const int *foo = &x[0];
8320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8321 typedef const int *iptr;
8325 { /* AIX XL C 1.02.0.0 rejects this saying
8326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8327 struct s { int j; const int *ap[3]; };
8328 struct s *b; b->j = 5;
8330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8334 return !cs[0] && !zero.x;
8341 if ac_fn_c_try_compile
"$LINENO"; then :
8346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8349 $as_echo "$ac_cv_c_const" >&6; }
8350 if test $ac_cv_c_const = no
; then
8352 $as_echo "#define const /**/" >>confdefs.h
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8357 $as_echo_n "checking for void * support... " >&6; }
8358 if test "${emacs_cv_void_star+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8372 if ac_fn_c_try_compile
"$LINENO"; then :
8373 emacs_cv_void_star
=yes
8375 emacs_cv_void_star
=no
8377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8380 $as_echo "$emacs_cv_void_star" >&6; }
8381 if test $emacs_cv_void_star = yes; then
8382 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8385 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8390 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8391 if test "${ac_cv_c_bigendian+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8394 ac_cv_c_bigendian
=unknown
8395 # See if we're dealing with a universal compiler.
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #ifndef __APPLE_CC__
8399 not a universal capable compiler
8404 if ac_fn_c_try_compile
"$LINENO"; then :
8406 # Check for potential -arch flags. It is not universal unless
8407 # there are at least two -arch flags with different values.
8410 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8411 if test -n "$ac_prev"; then
8413 i?
86 | x86_64 | ppc | ppc64
)
8414 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8417 ac_cv_c_bigendian
=universal
8423 elif test "x$ac_word" = "x-arch"; then
8428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 if test $ac_cv_c_bigendian = unknown
; then
8430 # See if sys/param.h defines the BYTE_ORDER macro.
8431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8440 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8449 if ac_fn_c_try_compile
"$LINENO"; then :
8450 # It does; now see whether it defined to BIG_ENDIAN or not.
8451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <sys/types.h>
8454 #include <sys/param.h>
8459 #if BYTE_ORDER != BIG_ENDIAN
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_c_bigendian
=yes
8470 ac_cv_c_bigendian
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 if test $ac_cv_c_bigendian = unknown
; then
8477 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8485 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8493 if ac_fn_c_try_compile
"$LINENO"; then :
8494 # It does; now see whether it defined to _BIG_ENDIAN or not.
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8510 if ac_fn_c_try_compile
"$LINENO"; then :
8511 ac_cv_c_bigendian
=yes
8513 ac_cv_c_bigendian
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 if test $ac_cv_c_bigendian = unknown
; then
8520 # Compile a test program.
8521 if test "$cross_compiling" = yes; then :
8522 # Try to guess by grepping values from an object file.
8523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 short int ascii_mm[] =
8526 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8527 short int ascii_ii[] =
8528 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8529 int use_ascii (int i) {
8530 return ascii_mm[i] + ascii_ii[i];
8532 short int ebcdic_ii[] =
8533 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8534 short int ebcdic_mm[] =
8535 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8536 int use_ebcdic (int i) {
8537 return ebcdic_mm[i] + ebcdic_ii[i];
8544 return use_ascii (foo) == use_ebcdic (foo);
8549 if ac_fn_c_try_compile
"$LINENO"; then :
8550 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8551 ac_cv_c_bigendian
=yes
8553 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8554 if test "$ac_cv_c_bigendian" = unknown
; then
8555 ac_cv_c_bigendian
=no
8557 # finding both strings is unlikely to happen, but who knows?
8558 ac_cv_c_bigendian
=unknown
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 $ac_includes_default
8571 /* Are we little or big endian? From Harbison&Steele. */
8575 char c[sizeof (long int)];
8578 return u.c[sizeof (long int) - 1] == 1;
8584 if ac_fn_c_try_run
"$LINENO"; then :
8585 ac_cv_c_bigendian
=no
8587 ac_cv_c_bigendian
=yes
8589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8596 $as_echo "$ac_cv_c_bigendian" >&6; }
8597 case $ac_cv_c_bigendian in #(
8599 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8605 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8609 as_fn_error
"unknown endianness
8610 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8615 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8616 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 char __attribute__ ((__aligned__ (1 << 3))) c;
8630 if ac_fn_c_try_compile
"$LINENO"; then :
8631 emacs_cv_attribute_aligned
=yes
8633 emacs_cv_attribute_aligned
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8638 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8639 if test $emacs_cv_attribute_aligned = yes; then
8641 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8648 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8649 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8650 $as_echo_n "(cached) " >&6
8652 cat >conftest.
make <<\_ACEOF
8655 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8660 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8662 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8666 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8668 $as_echo "yes" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 SET_MAKE
="MAKE=${MAKE-make}"
8680 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8682 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8684 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8685 if test "x$testval" != x
; then
8688 ac_enable_autodepend
=no
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8691 $as_echo "$HAVE_GNU_MAKE" >&6; }
8692 if test $HAVE_GNU_MAKE = yes; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8694 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8695 SAVE_CFLAGS
="$CFLAGS"
8696 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8708 if ac_fn_c_try_compile
"$LINENO"; then :
8711 ac_enable_autodepend
=no
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8714 CFLAGS
="$SAVE_CFLAGS"
8715 test -f deps.d || ac_enable_autodepend
=no
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8718 $as_echo "$ac_enable_autodepend" >&6; }
8720 if test $ac_enable_autodepend = yes; then
8721 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8722 ## In parallel builds, another make might create depdir between
8723 ## the first test and mkdir, so stick another test on the end.
8724 ## Or use install-sh -d? mkdir -p is not portable.
8725 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8726 deps_frag
=autodeps.mk
8729 deps_frag
=$srcdir/src
/$deps_frag
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8736 $as_echo_n "checking for long file names... " >&6; }
8737 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8740 ac_cv_sys_long_file_names
=yes
8741 # Test for long file names in all the places we know might matter:
8742 # . the current directory, where building will happen
8743 # $prefix/lib where we will be installing things
8744 # $exec_prefix/lib likewise
8745 # $TMPDIR if set, where it might want to write temporary files
8746 # /tmp where it might want to write temporary files
8749 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8750 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8751 # in the usual case where exec_prefix is '${prefix}'.
8753 . |
/* | ?
:[\\/]*) ;; #(
8756 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8757 ac_xdir
=$ac_dir/cf$$
8758 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8759 ac_tf1
=$ac_xdir/conftest9012345
8760 ac_tf2
=$ac_xdir/conftest9012346
8761 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8762 ac_cv_sys_long_file_names
=no
8763 rm -f -r "$ac_xdir" 2>/dev
/null
8764 test $ac_cv_sys_long_file_names = no
&& break
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8768 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8769 if test $ac_cv_sys_long_file_names = yes; then
8771 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8776 #### Choose a window system.
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8779 $as_echo_n "checking for X... " >&6; }
8782 # Check whether --with-x was given.
8783 if test "${with_x+set}" = set; then :
8787 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8788 if test "x$with_x" = xno
; then
8789 # The user explicitly disabled X.
8792 case $x_includes,$x_libraries in #(
8793 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
8794 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 # One or both of the vars are not set, and there is no cached value.
8798 ac_x_includes
=no ac_x_libraries
=no
8799 rm -f -r conftest.dir
8800 if mkdir conftest.dir
; then
8802 cat >Imakefile
<<'_ACEOF'
8804 @echo incroot='${INCROOT}'
8806 @echo usrlibdir='${USRLIBDIR}'
8808 @echo libdir='${LIBDIR}'
8810 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812 for ac_var
in incroot usrlibdir libdir
; do
8813 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8816 for ac_extension
in a so sl dylib la dll
; do
8817 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8818 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8819 ac_im_usrlibdir
=$ac_im_libdir; break
8822 # Screen out bogus values from the imake configuration. They are
8823 # bogus both because they are the default anyway, and because
8824 # using them would break gcc on systems where it needs fixed includes.
8825 case $ac_im_incroot in
8826 /usr
/include
) ac_x_includes
= ;;
8827 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8829 case $ac_im_usrlibdir in
8830 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8831 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8835 rm -f -r conftest.dir
8838 # Standard set of common directories for X headers.
8839 # Check X11 before X11Rn because it is often a symlink to the current release.
8853 /usr/local/X11/include
8854 /usr/local/X11R7/include
8855 /usr/local/X11R6/include
8856 /usr/local/X11R5/include
8857 /usr/local/X11R4/include
8859 /usr/local/include/X11
8860 /usr/local/include/X11R7
8861 /usr/local/include/X11R6
8862 /usr/local/include/X11R5
8863 /usr/local/include/X11R4
8867 /usr/XFree86/include/X11
8871 /usr/unsupported/include
8873 /usr/local/x11r5/include
8874 /usr/lpp/Xamples/include
8876 /usr/openwin/include
8877 /usr/openwin/share/include'
8879 if test "$ac_x_includes" = no
; then
8880 # Guess where to find include files, by looking for Xlib.h.
8881 # First, try using that file with no special directory specified.
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <X11/Xlib.h>
8886 if ac_fn_c_try_cpp
"$LINENO"; then :
8887 # We can compile using X headers with no special include directory.
8890 for ac_dir
in $ac_x_header_dirs; do
8891 if test -r "$ac_dir/X11/Xlib.h"; then
8892 ac_x_includes
=$ac_dir
8897 rm -f conftest.err conftest.
$ac_ext
8898 fi # $ac_x_includes = no
8900 if test "$ac_x_libraries" = no
; then
8901 # Check for the libraries.
8902 # See if we find them without any special options.
8903 # Don't add to $LIBS permanently.
8906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <X11/Xlib.h>
8917 if ac_fn_c_try_link
"$LINENO"; then :
8919 # We can link X programs with no special library path.
8923 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8925 # Don't even attempt the hair of trying to link an X program!
8926 for ac_extension
in a so sl dylib la dll
; do
8927 if test -r "$ac_dir/libX11.$ac_extension"; then
8928 ac_x_libraries
=$ac_dir
8934 rm -f core conftest.err conftest.
$ac_objext \
8935 conftest
$ac_exeext conftest.
$ac_ext
8936 fi # $ac_x_libraries = no
8938 case $ac_x_includes,$ac_x_libraries in #(
8940 # Didn't find X, or a directory has "'" in its name.
8941 ac_cv_have_x
="have_x=no";; #(
8943 # Record where we found X for the cache.
8944 ac_cv_have_x
="have_x=yes\
8945 ac_x_includes='$ac_x_includes'\
8946 ac_x_libraries='$ac_x_libraries'"
8952 eval "$ac_cv_have_x"
8955 if test "$have_x" != yes; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8957 $as_echo "$have_x" >&6; }
8960 # If each of the values was on the command line, it overrides each guess.
8961 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8962 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8963 # Update the cache value to reflect the command line values.
8964 ac_cv_have_x
="have_x=yes\
8965 ac_x_includes='$x_includes'\
8966 ac_x_libraries='$x_libraries'"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8968 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8971 if test "$no_x" = yes; then
8977 ## Workaround for bug in autoconf <= 2.62.
8978 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8979 ## No need to do anything special for these standard directories.
8980 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8982 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8986 LD_SWITCH_X_SITE_AUX
=
8987 LD_SWITCH_X_SITE_AUX_RPATH
=
8988 if test "${x_libraries}" != NONE
; then
8989 if test -n "${x_libraries}"; then
8990 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8991 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8992 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8994 x_default_search_path
=""
8995 x_search_path
=${x_libraries}
8996 if test -z "${x_search_path}"; then
8997 x_search_path
=/usr
/lib
8999 for x_library
in `echo ${x_search_path}: | \
9000 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9002 ${x_library}/X11/%L/%T/%N%C%S:\
9003 ${x_library}/X11/%l/%T/%N%C%S:\
9004 ${x_library}/X11/%T/%N%C%S:\
9005 ${x_library}/X11/%L/%T/%N%S:\
9006 ${x_library}/X11/%l/%T/%N%S:\
9007 ${x_library}/X11/%T/%N%S"
9008 if test x
"${x_default_search_path}" = x
; then
9009 x_default_search_path
=${x_search_path}
9011 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9018 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9019 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9022 if test x
"${x_includes}" = x
; then
9023 bitmapdir
=/usr
/include
/X11
/bitmaps
9025 # accumulate include directories that have X11 bitmap subdirectories
9027 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9028 if test -d "${bmd}/X11/bitmaps"; then
9029 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9031 if test -d "${bmd}/bitmaps"; then
9032 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9035 if test ${bmd_acc} != "dummyval"; then
9036 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9043 tmp_CPPFLAGS
="$CPPFLAGS"
9044 tmp_CFLAGS
="$CFLAGS"
9045 CPPFLAGS
="$CPPFLAGS -x objective-c"
9046 CFLAGS
="$CFLAGS -x objective-c"
9047 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9048 if test "${with_ns}" != no
; then
9049 if test "${opsys}" = darwin
; then
9051 ns_appdir
=`pwd`/nextstep
/Emacs.app
9052 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9053 ns_appresdir
=${ns_appdir}/Contents
/Resources
9054 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9055 elif test -f $GNUSTEP_CONFIG_FILE; then
9057 ns_appdir
=`pwd`/nextstep
/Emacs.app
9058 ns_appbindir
=${ns_appdir}/
9059 ns_appresdir
=${ns_appdir}/Resources
9060 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9061 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9062 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9063 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9064 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9065 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9066 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9067 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9068 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9069 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9070 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9071 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9076 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9077 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9080 as_fn_error
"\`--with-ns' was specified, but the include
9081 files are missing or cannot be compiled." "$LINENO" 5
9085 NS_HAVE_NSINTEGER
=yes
9086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 #include <Foundation/NSObjCRuntime.h>
9097 if ac_fn_c_try_compile
"$LINENO"; then :
9098 ns_have_nsinteger
=yes
9100 ns_have_nsinteger
=no
9102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9103 if test $ns_have_nsinteger = no
; then
9104 NS_HAVE_NSINTEGER
=no
9113 if test "${HAVE_NS}" = yes; then
9114 window_system
=nextstep
9116 # set up packaging dirs
9117 exec_prefix
=${ns_appbindir}
9118 libexecdir
=${ns_appbindir}/libexec
9119 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9120 prefix
=${ns_appresdir}
9122 ns_frag
=$srcdir/src
/ns.mk
9123 NS_OBJ
="fontset.o fringe.o image.o"
9124 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9125 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9127 CFLAGS
="$tmp_CFLAGS"
9128 CPPFLAGS
="$tmp_CPPFLAGS"
9135 case "${window_system}" in
9139 case "${with_x_toolkit}" in
9140 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9141 motif
) USE_X_TOOLKIT
=MOTIF
;;
9143 USE_X_TOOLKIT
=none
;;
9144 gtk3
) with_gtk3
=yes
9145 USE_X_TOOLKIT
=none
;;
9146 no
) USE_X_TOOLKIT
=none
;;
9147 * ) USE_X_TOOLKIT
=maybe
;;
9157 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9158 # Extract the first word of "X", so it can be a program name with args.
9159 set dummy X
; ac_word
=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9163 $as_echo_n "(cached) " >&6
9165 if test -n "$HAVE_XSERVER"; then
9166 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9172 test -z "$as_dir" && as_dir
=.
9173 for ac_exec_ext
in '' $ac_executable_extensions; do
9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175 ac_cv_prog_HAVE_XSERVER
="true"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9186 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9187 if test -n "$HAVE_XSERVER"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9189 $as_echo "$HAVE_XSERVER" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9196 if test "$HAVE_XSERVER" = true ||
9197 test -n "$DISPLAY" ||
9198 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9199 as_fn_error
"You seem to be running X, but no X development libraries
9200 were found. You should install the relevant development files for X
9201 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9202 sure you have development files for image handling, i.e.
9203 tiff, gif, jpeg, png and xpm.
9204 If you are sure you want Emacs compiled without X window support, pass
9206 to configure." "$LINENO" 5
9210 ### If we're using X11, we should use the X menu package.
9213 yes ) HAVE_MENUS
=yes ;;
9216 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9217 # Assume not, until told otherwise.
9220 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9221 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9227 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9228 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9235 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9236 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 extern void (* __after_morecore_hook)();
9245 __after_morecore_hook = 0
9250 if ac_fn_c_try_link
"$LINENO"; then :
9251 emacs_cv_var___after_morecore_hook
=yes
9253 emacs_cv_var___after_morecore_hook
=no
9255 rm -f core conftest.err conftest.
$ac_objext \
9256 conftest
$ac_exeext conftest.
$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9259 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9260 if test $emacs_cv_var___after_morecore_hook = no
; then
9267 ## darwin ld insists on the use of malloc routines in the System framework.
9268 darwin|sol2-10
) system_malloc
=yes ;;
9271 if test "${system_malloc}" = "yes"; then
9273 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9277 (The GNU allocators don't work with this system configuration.)"
9281 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9282 VMLIMIT_OBJ
=vm-limit.o
9287 if test "$doug_lea_malloc" = "yes" ; then
9288 if test "$GNU_MALLOC" = yes ; then
9290 (Using Doug Lea's new malloc from the GNU C Library.)"
9293 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9296 ## Use mmap directly for allocating larger buffers.
9297 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9298 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9299 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9301 gnu
*) REL_ALLOC
=no
;;
9305 if test x
"${REL_ALLOC}" = x
; then
9306 REL_ALLOC
=${GNU_MALLOC}
9309 use_mmap_for_buffers
=no
9311 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9317 for ac_header
in $ac_header_list
9319 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9322 eval as_val
=\$
$as_ac_Header
9323 if test "x$as_val" = x
""yes; then :
9324 cat >>confdefs.h
<<_ACEOF
9325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 for ac_func
in getpagesize
9341 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9342 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9343 cat >>confdefs.h
<<_ACEOF
9344 #define HAVE_GETPAGESIZE 1
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9351 $as_echo_n "checking for working mmap... " >&6; }
9352 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9355 if test "$cross_compiling" = yes; then :
9356 ac_cv_func_mmap_fixed_mapped
=no
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 /* malloc might have been renamed as rpl_malloc. */
9364 /* Thanks to Mike Haertel and Jim Avera for this test.
9365 Here is a matrix of mmap possibilities:
9366 mmap private not fixed
9367 mmap private fixed at somewhere currently unmapped
9368 mmap private fixed at somewhere already mapped
9369 mmap shared not fixed
9370 mmap shared fixed at somewhere currently unmapped
9371 mmap shared fixed at somewhere already mapped
9372 For private mappings, we should verify that changes cannot be read()
9373 back from the file, nor mmap's back from the file at a different
9374 address. (There have been systems where private was not correctly
9375 implemented like the infamous i386 svr4.0, and systems where the
9376 VM page cache was not coherent with the file system buffer cache
9377 like early versions of FreeBSD and possibly contemporary NetBSD.)
9378 For shared mappings, we should conversely verify that changes get
9379 propagated back to all the places they're supposed to be.
9381 Grep wants private fixed already mapped.
9382 The main things grep needs to know about mmap are:
9383 * does it exist and is it safe to write into the mmap'd area
9384 * how to use it (BSD variants) */
9387 #include <sys/mman.h>
9389 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9393 /* This mess was copied from the GNU getpagesize.h. */
9394 #ifndef HAVE_GETPAGESIZE
9395 # ifdef _SC_PAGESIZE
9396 # define getpagesize() sysconf(_SC_PAGESIZE)
9397 # else /* no _SC_PAGESIZE */
9398 # ifdef HAVE_SYS_PARAM_H
9399 # include <sys/param.h>
9400 # ifdef EXEC_PAGESIZE
9401 # define getpagesize() EXEC_PAGESIZE
9402 # else /* no EXEC_PAGESIZE */
9404 # define getpagesize() NBPG * CLSIZE
9407 # endif /* no CLSIZE */
9408 # else /* no NBPG */
9410 # define getpagesize() NBPC
9411 # else /* no NBPC */
9413 # define getpagesize() PAGESIZE
9414 # endif /* PAGESIZE */
9415 # endif /* no NBPC */
9416 # endif /* no NBPG */
9417 # endif /* no EXEC_PAGESIZE */
9418 # else /* no HAVE_SYS_PARAM_H */
9419 # define getpagesize() 8192 /* punt totally */
9420 # endif /* no HAVE_SYS_PARAM_H */
9421 # endif /* no _SC_PAGESIZE */
9423 #endif /* no HAVE_GETPAGESIZE */
9428 char *data, *data2, *data3;
9433 pagesize = getpagesize ();
9435 /* First, make a file with some known garbage in it. */
9436 data = (char *) malloc (pagesize);
9439 for (i = 0; i < pagesize; ++i)
9440 *(data + i) = rand ();
9442 fd = creat ("conftest.mmap", 0600);
9445 if (write (fd, data, pagesize) != pagesize)
9449 /* Next, check that the tail of a page is zero-filled. File must have
9450 non-zero length, otherwise we risk SIGBUS for entire page. */
9451 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9455 if (write (fd2, cdata2, 1) != 1)
9457 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9458 if (data2 == MAP_FAILED)
9460 for (i = 0; i < pagesize; ++i)
9464 if (munmap (data2, pagesize))
9467 /* Next, try to mmap the file at a fixed address which already has
9468 something else allocated at it. If we can, also make sure that
9469 we see the same garbage. */
9470 fd = open ("conftest.mmap", O_RDWR);
9473 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9474 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9476 for (i = 0; i < pagesize; ++i)
9477 if (*(data + i) != *(data2 + i))
9480 /* Finally, make sure that changes to the mapped area do not
9481 percolate back to the file as seen by read(). (This is a bug on
9482 some variants of i386 svr4.0.) */
9483 for (i = 0; i < pagesize; ++i)
9484 *(data2 + i) = *(data2 + i) + 1;
9485 data3 = (char *) malloc (pagesize);
9488 if (read (fd, data3, pagesize) != pagesize)
9490 for (i = 0; i < pagesize; ++i)
9491 if (*(data + i) != *(data3 + i))
9497 if ac_fn_c_try_run
"$LINENO"; then :
9498 ac_cv_func_mmap_fixed_mapped
=yes
9500 ac_cv_func_mmap_fixed_mapped
=no
9502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9508 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9509 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9511 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9514 rm -f conftest.mmap conftest.txt
9516 if test $use_mmap_for_buffers = yes; then
9518 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9523 LIBS
="$LIBS_SYSTEM $LIBS"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9526 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9527 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9530 ac_check_lib_save_LIBS
=$LIBS
9532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9545 return dnet_ntoa ();
9550 if ac_fn_c_try_link
"$LINENO"; then :
9551 ac_cv_lib_dnet_dnet_ntoa
=yes
9553 ac_cv_lib_dnet_dnet_ntoa
=no
9555 rm -f core conftest.err conftest.
$ac_objext \
9556 conftest
$ac_exeext conftest.
$ac_ext
9557 LIBS
=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9560 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9561 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9562 cat >>confdefs.h
<<_ACEOF
9563 #define HAVE_LIBDNET 1
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9572 $as_echo_n "checking for main in -lXbsd... " >&6; }
9573 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9576 ac_check_lib_save_LIBS
=$LIBS
9578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9590 if ac_fn_c_try_link
"$LINENO"; then :
9591 ac_cv_lib_Xbsd_main
=yes
9593 ac_cv_lib_Xbsd_main
=no
9595 rm -f core conftest.err conftest.
$ac_objext \
9596 conftest
$ac_exeext conftest.
$ac_ext
9597 LIBS
=$ac_check_lib_save_LIBS
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9600 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9601 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9602 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9607 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9608 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9611 ac_check_lib_save_LIBS
=$LIBS
9612 LIBS
="-lpthreads $LIBS"
9613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9631 if ac_fn_c_try_link
"$LINENO"; then :
9632 ac_cv_lib_pthreads_cma_open
=yes
9634 ac_cv_lib_pthreads_cma_open
=no
9636 rm -f core conftest.err conftest.
$ac_objext \
9637 conftest
$ac_exeext conftest.
$ac_ext
9638 LIBS
=$ac_check_lib_save_LIBS
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9641 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9642 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9643 cat >>confdefs.h
<<_ACEOF
9644 #define HAVE_LIBPTHREADS 1
9647 LIBS
="-lpthreads $LIBS"
9652 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9653 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9654 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9655 ## added to LIBS in configure would never contain the pthreads part,
9656 ## but the value used in Makefiles might. FIXME?
9658 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9659 ## be harmless on older versions of X where it happens to exist.
9660 test "$opsys" = "aix4-2" && \
9661 test $ac_cv_lib_pthreads_cma_open = yes && \
9662 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9668 $as_echo_n "checking for -bbigtoc option... " >&6; }
9669 if test "${gdb_cv_bigtoc+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9674 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9675 *) gdb_cv_bigtoc
=-bbigtoc ;;
9678 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9690 if ac_fn_c_try_link
"$LINENO"; then :
9695 rm -f core conftest.err conftest.
$ac_objext \
9696 conftest
$ac_exeext conftest.
$ac_ext
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9700 $as_echo "$gdb_cv_bigtoc" >&6; }
9704 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9705 # used for the tests that follow. We set them back to REAL_CFLAGS and
9706 # REAL_CPPFLAGS later on.
9708 REAL_CFLAGS
="$CFLAGS"
9709 REAL_CPPFLAGS
="$CPPFLAGS"
9711 if test "${HAVE_X11}" = "yes"; then
9712 DEFS
="$C_SWITCH_X_SITE $DEFS"
9713 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9715 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9716 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9718 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9719 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9720 # but it's more convenient here to set LD_RUN_PATH
9721 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9722 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9723 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9727 if test "${opsys}" = "gnu-linux"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9729 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9736 XOpenDisplay ("foo");
9741 if ac_fn_c_try_link
"$LINENO"; then :
9742 xlinux_first_failure
=no
9744 xlinux_first_failure
=yes
9746 rm -f core conftest.err conftest.
$ac_objext \
9747 conftest
$ac_exeext conftest.
$ac_ext
9748 if test "${xlinux_first_failure}" = "yes"; then
9749 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9750 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9751 OLD_CPPFLAGS
="$CPPFLAGS"
9753 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9754 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9755 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9756 LIBS
="$LIBS -b i486-linuxaout"
9757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9763 XOpenDisplay ("foo");
9768 if ac_fn_c_try_link
"$LINENO"; then :
9769 xlinux_second_failure
=no
9771 xlinux_second_failure
=yes
9773 rm -f core conftest.err conftest.
$ac_objext \
9774 conftest
$ac_exeext conftest.
$ac_ext
9775 if test "${xlinux_second_failure}" = "yes"; then
9776 # If we get the same failure with -b, there is no use adding -b.
9777 # So take it out. This plays safe.
9778 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9779 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9780 CPPFLAGS
="$OLD_CPPFLAGS"
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9794 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9795 # header files included from there.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9797 $as_echo_n "checking for Xkb... " >&6; }
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <X11/Xlib.h>
9801 #include <X11/XKBlib.h>
9805 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9810 if ac_fn_c_try_link
"$LINENO"; then :
9815 rm -f core conftest.err conftest.
$ac_objext \
9816 conftest
$ac_exeext conftest.
$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9818 $as_echo "$emacs_xkb" >&6; }
9819 if test $emacs_xkb = yes; then
9821 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9825 for ac_func
in XrmSetDatabase XScreenResourceString \
9826 XScreenNumberOfScreen XSetWMProtocols
9828 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9829 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9830 eval as_val
=\$
$as_ac_var
9831 if test "x$as_val" = x
""yes; then :
9832 cat >>confdefs.h
<<_ACEOF
9833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9841 if test "${window_system}" = "x11"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9843 $as_echo_n "checking X11 version 6... " >&6; }
9844 if test "${emacs_cv_x11_version_6+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 #include <X11/Xlib.h>
9853 #if XlibSpecificationRelease < 6
9861 if ac_fn_c_try_link
"$LINENO"; then :
9862 emacs_cv_x11_version_6
=yes
9864 emacs_cv_x11_version_6
=no
9866 rm -f core conftest.err conftest.
$ac_objext \
9867 conftest
$ac_exeext conftest.
$ac_ext
9870 if test $emacs_cv_x11_version_6 = yes; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9872 $as_echo "6 or newer" >&6; }
9874 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9877 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9879 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9884 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9890 $as_echo "before 6" >&6; }
9895 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9897 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9898 if test "${with_rsvg}" != "no"; then
9899 RSVG_REQUIRED
=2.11.0
9900 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9905 # Extract the first word of "pkg-config", so it can be a program name with args.
9906 set dummy pkg-config
; ac_word
=$2
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908 $as_echo_n "checking for $ac_word... " >&6; }
9909 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9910 $as_echo_n "(cached) " >&6
9914 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir
=.
9922 for ac_exec_ext
in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9936 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9937 if test -n "$PKG_CONFIG"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9939 $as_echo "$PKG_CONFIG" >&6; }
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9947 if test "$PKG_CONFIG" = "no" ; then
9950 PKG_CONFIG_MIN_VERSION
=0.9.0
9951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9953 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9955 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9957 $as_echo "yes" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9961 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9962 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9964 $as_echo "$RSVG_CFLAGS" >&6; }
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9967 $as_echo_n "checking RSVG_LIBS... " >&6; }
9968 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9970 $as_echo "$RSVG_LIBS" >&6; }
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9976 ## If we have a custom action on failure, don't print errors, but
9977 ## do set a variable so people can do so.
9978 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9990 if test $succeeded = yes; then
9999 if test $HAVE_RSVG = yes; then
10001 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10003 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10004 LIBS
="$RSVG_LIBS $LIBS"
10009 HAVE_IMAGEMAGICK
=no
10010 if test "${HAVE_X11}" = "yes"; then
10011 if test "${with_imagemagick}" != "no"; then
10012 ## 6.2.8 is the earliest version known to work, but earlier versions
10013 ## might work - let us know if you find one.
10014 ## 6.0.7 does not work. See bug#7955.
10015 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10019 # Extract the first word of "pkg-config", so it can be a program name with args.
10020 set dummy pkg-config
; ac_word
=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10026 case $PKG_CONFIG in
10028 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10032 for as_dir
in $PATH
10035 test -z "$as_dir" && as_dir
=.
10036 for ac_exec_ext
in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10050 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10051 if test -n "$PKG_CONFIG"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10053 $as_echo "$PKG_CONFIG" >&6; }
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10061 if test "$PKG_CONFIG" = "no" ; then
10064 PKG_CONFIG_MIN_VERSION
=0.9.0
10065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10067 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10069 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10071 $as_echo "yes" >&6; }
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10075 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10076 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10078 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10081 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10082 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10084 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 IMAGEMAGICK_CFLAGS
=""
10089 IMAGEMAGICK_LIBS
=""
10090 ## If we have a custom action on failure, don't print errors, but
10091 ## do set a variable so people can do so.
10092 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10104 if test $succeeded = yes; then
10105 HAVE_IMAGEMAGICK
=yes
10113 if test $HAVE_IMAGEMAGICK = yes; then
10115 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10117 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10118 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10119 for ac_func
in MagickExportImagePixels
10121 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10122 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10123 cat >>confdefs.h
<<_ACEOF
10124 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10136 if test "${with_gtk3}" = "yes"; then
10139 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10144 # Extract the first word of "pkg-config", so it can be a program name with args.
10145 set dummy pkg-config
; ac_word
=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10149 $as_echo_n "(cached) " >&6
10151 case $PKG_CONFIG in
10153 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10157 for as_dir
in $PATH
10160 test -z "$as_dir" && as_dir
=.
10161 for ac_exec_ext
in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10175 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10176 if test -n "$PKG_CONFIG"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10178 $as_echo "$PKG_CONFIG" >&6; }
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10186 if test "$PKG_CONFIG" = "no" ; then
10189 PKG_CONFIG_MIN_VERSION
=0.9.0
10190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10192 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10194 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10196 $as_echo "yes" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10200 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10201 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10203 $as_echo "$GTK_CFLAGS" >&6; }
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10206 $as_echo_n "checking GTK_LIBS... " >&6; }
10207 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10209 $as_echo "$GTK_LIBS" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10215 ## If we have a custom action on failure, don't print errors, but
10216 ## do set a variable so people can do so.
10217 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10229 if test $succeeded = yes; then
10235 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10236 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10239 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10243 if test "$pkg_check_gtk" != "yes"; then
10245 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10248 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10253 # Extract the first word of "pkg-config", so it can be a program name with args.
10254 set dummy pkg-config
; ac_word
=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10260 case $PKG_CONFIG in
10262 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10266 for as_dir
in $PATH
10269 test -z "$as_dir" && as_dir
=.
10270 for ac_exec_ext
in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10284 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10285 if test -n "$PKG_CONFIG"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10287 $as_echo "$PKG_CONFIG" >&6; }
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test "$PKG_CONFIG" = "no" ; then
10298 PKG_CONFIG_MIN_VERSION
=0.9.0
10299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10301 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10303 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10309 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10310 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10312 $as_echo "$GTK_CFLAGS" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10315 $as_echo_n "checking GTK_LIBS... " >&6; }
10316 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10318 $as_echo "$GTK_LIBS" >&6; }
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10324 ## If we have a custom action on failure, don't print errors, but
10325 ## do set a variable so people can do so.
10326 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10338 if test $succeeded = yes; then
10344 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10345 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10351 if test x
"$pkg_check_gtk" = xyes
; then
10355 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10356 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10357 LIBS
="$GTK_LIBS $LIBS"
10359 for ac_func
in gtk_main
10361 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10362 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10363 cat >>confdefs.h
<<_ACEOF
10364 #define HAVE_GTK_MAIN 1
10370 if test "${GTK_COMPILES}" != "yes"; then
10371 if test "$USE_X_TOOLKIT" != "maybe"; then
10372 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10377 $as_echo "#define USE_GTK 1" >>confdefs.h
10381 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10385 closing open displays. This is no problem if you just use
10386 one display, but if you use more than one and close one of them
10387 Emacs may crash." >&5
10388 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10389 closing open displays. This is no problem if you just use
10390 one display, but if you use more than one and close one of them
10391 Emacs may crash." >&2;}
10400 if test "${HAVE_GTK}" = "yes"; then
10402 if test "$with_toolkit_scroll_bars" != no
; then
10403 with_toolkit_scroll_bars
=yes
10406 HAVE_GTK_FILE_SELECTION
=no
10407 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10408 #include <gtk/gtk.h>
10410 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10411 HAVE_GTK_FILE_SELECTION
=yes
10413 HAVE_GTK_FILE_SELECTION
=no
10416 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10417 for ac_func
in gtk_file_selection_new
10419 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10420 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10421 cat >>confdefs.h
<<_ACEOF
10422 #define HAVE_GTK_FILE_SELECTION_NEW 1
10430 HAVE_GTK_AND_PTHREAD
=no
10431 for ac_header
in pthread.h
10433 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10434 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10435 cat >>confdefs.h
<<_ACEOF
10436 #define HAVE_PTHREAD_H 1
10443 if test "$ac_cv_header_pthread_h"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10445 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10446 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10449 ac_check_lib_save_LIBS
=$LIBS
10450 LIBS
="-lpthread $LIBS"
10451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10460 char pthread_self ();
10464 return pthread_self ();
10469 if ac_fn_c_try_link
"$LINENO"; then :
10470 ac_cv_lib_pthread_pthread_self
=yes
10472 ac_cv_lib_pthread_pthread_self
=no
10474 rm -f core conftest.err conftest.
$ac_objext \
10475 conftest
$ac_exeext conftest.
$ac_ext
10476 LIBS
=$ac_check_lib_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10479 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10480 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10481 HAVE_GTK_AND_PTHREAD
=yes
10485 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10486 case "${canonical}" in
10488 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10491 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10495 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10496 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10497 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10498 gtk_orientable_set_orientation
10500 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10501 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10502 eval as_val
=\$
$as_ac_var
10503 if test "x$as_val" = x
""yes; then :
10504 cat >>confdefs.h
<<_ACEOF
10505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10516 if test "${with_dbus}" = "yes"; then
10520 # Extract the first word of "pkg-config", so it can be a program name with args.
10521 set dummy pkg-config
; ac_word
=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 case $PKG_CONFIG in
10529 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10533 for as_dir
in $PATH
10536 test -z "$as_dir" && as_dir
=.
10537 for ac_exec_ext
in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10539 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10551 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10552 if test -n "$PKG_CONFIG"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10554 $as_echo "$PKG_CONFIG" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10562 if test "$PKG_CONFIG" = "no" ; then
10565 PKG_CONFIG_MIN_VERSION
=0.9.0
10566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10568 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10570 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10576 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10577 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10579 $as_echo "$DBUS_CFLAGS" >&6; }
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10582 $as_echo_n "checking DBUS_LIBS... " >&6; }
10583 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10585 $as_echo "$DBUS_LIBS" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10591 ## If we have a custom action on failure, don't print errors, but
10592 ## do set a variable so people can do so.
10593 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10605 if test $succeeded = yes; then
10611 if test "$HAVE_DBUS" = yes; then
10612 LIBS
="$LIBS $DBUS_LIBS"
10614 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10616 for ac_func
in dbus_watch_get_unix_fd
10618 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10619 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10620 cat >>confdefs.h
<<_ACEOF
10621 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10627 DBUS_OBJ
=dbusbind.o
10633 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10637 # Extract the first word of "pkg-config", so it can be a program name with args.
10638 set dummy pkg-config
; ac_word
=$2
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640 $as_echo_n "checking for $ac_word... " >&6; }
10641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10644 case $PKG_CONFIG in
10646 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10650 for as_dir
in $PATH
10653 test -z "$as_dir" && as_dir
=.
10654 for ac_exec_ext
in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10668 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10669 if test -n "$PKG_CONFIG"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10671 $as_echo "$PKG_CONFIG" >&6; }
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10679 if test "$PKG_CONFIG" = "no" ; then
10682 PKG_CONFIG_MIN_VERSION
=0.9.0
10683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10685 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10687 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689 $as_echo "yes" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10693 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10694 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10696 $as_echo "$GCONF_CFLAGS" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10699 $as_echo_n "checking GCONF_LIBS... " >&6; }
10700 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10702 $as_echo "$GCONF_LIBS" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10708 ## If we have a custom action on failure, don't print errors, but
10709 ## do set a variable so people can do so.
10710 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10722 if test $succeeded = yes; then
10728 if test "$HAVE_GCONF" = yes; then
10730 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10732 for ac_func
in g_type_init
10734 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10735 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10736 cat >>confdefs.h
<<_ACEOF
10737 #define HAVE_G_TYPE_INIT 1
10748 if test "${with_selinux}" = "yes"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10750 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10751 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 ac_check_lib_save_LIBS
=$LIBS
10755 LIBS
="-lselinux $LIBS"
10756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10765 char lgetfilecon ();
10769 return lgetfilecon ();
10774 if ac_fn_c_try_link
"$LINENO"; then :
10775 ac_cv_lib_selinux_lgetfilecon
=yes
10777 ac_cv_lib_selinux_lgetfilecon
=no
10779 rm -f core conftest.err conftest.
$ac_objext \
10780 conftest
$ac_exeext conftest.
$ac_ext
10781 LIBS
=$ac_check_lib_save_LIBS
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10784 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10785 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10786 HAVE_LIBSELINUX
=yes
10791 if test "$HAVE_LIBSELINUX" = yes; then
10793 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10795 LIBSELINUX_LIBS
=-lselinux
10801 if test "${with_gnutls}" = "yes" ; then
10805 # Extract the first word of "pkg-config", so it can be a program name with args.
10806 set dummy pkg-config
; ac_word
=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 case $PKG_CONFIG in
10814 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10818 for as_dir
in $PATH
10821 test -z "$as_dir" && as_dir
=.
10822 for ac_exec_ext
in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10836 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10837 if test -n "$PKG_CONFIG"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10839 $as_echo "$PKG_CONFIG" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10847 if test "$PKG_CONFIG" = "no" ; then
10850 PKG_CONFIG_MIN_VERSION
=0.9.0
10851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10853 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10855 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857 $as_echo "yes" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10861 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10862 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10864 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10867 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10868 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10870 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 LIBGNUTLS_CFLAGS
=""
10876 ## If we have a custom action on failure, don't print errors, but
10877 ## do set a variable so people can do so.
10878 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10890 if test $succeeded = yes; then
10896 if test "${HAVE_GNUTLS}" = "yes"; then
10898 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10907 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10908 if test "$with_xaw3d" != no
; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10910 $as_echo_n "checking for xaw3d... " >&6; }
10911 if test "${emacs_cv_xaw3d+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 #include <X11/Intrinsic.h>
10918 #include <X11/Xaw3d/Simple.h>
10927 if ac_fn_c_try_link
"$LINENO"; then :
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10929 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10930 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10933 ac_check_lib_save_LIBS
=$LIBS
10934 LIBS
="-lXaw3d $LIBS"
10935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10944 char XawScrollbarSetThumb ();
10948 return XawScrollbarSetThumb ();
10953 if ac_fn_c_try_link
"$LINENO"; then :
10954 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10956 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10958 rm -f core conftest.err conftest.
$ac_objext \
10959 conftest
$ac_exeext conftest.
$ac_ext
10960 LIBS
=$ac_check_lib_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10963 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10964 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10973 rm -f core conftest.err conftest.
$ac_objext \
10974 conftest
$ac_exeext conftest.
$ac_ext
10980 if test $emacs_cv_xaw3d = yes; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10982 $as_echo "yes; using Lucid toolkit" >&6; }
10983 USE_X_TOOLKIT
=LUCID
10987 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10993 $as_echo_n "checking for libXaw... " >&6; }
10994 if test "${emacs_cv_xaw+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 #include <X11/Intrinsic.h>
11001 #include <X11/Xaw/Simple.h>
11010 if ac_fn_c_try_link
"$LINENO"; then :
11015 rm -f core conftest.err conftest.
$ac_objext \
11016 conftest
$ac_exeext conftest.
$ac_ext
11019 if test $emacs_cv_xaw = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11021 $as_echo "yes; using Lucid toolkit" >&6; }
11022 USE_X_TOOLKIT
=LUCID
11024 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11025 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11028 $as_echo "no; do not use toolkit by default" >&6; }
11034 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11037 if test "${USE_X_TOOLKIT}" != "none"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11039 $as_echo_n "checking X11 toolkit version... " >&6; }
11040 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <X11/Intrinsic.h>
11049 #if XtSpecificationRelease < 6
11057 if ac_fn_c_try_link
"$LINENO"; then :
11058 emacs_cv_x11_toolkit_version_6
=yes
11060 emacs_cv_x11_toolkit_version_6
=no
11062 rm -f core conftest.err conftest.
$ac_objext \
11063 conftest
$ac_exeext conftest.
$ac_ext
11066 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11067 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11069 $as_echo "6 or newer" >&6; }
11071 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11073 LIBXTR6
="-lSM -lICE"
11075 ## Use libw.a along with X11R6 Xt.
11076 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11080 $as_echo "before 6" >&6; }
11084 if test x
$HAVE_X11XTR6 = xyes
; then
11085 LIBS
="-lXt -lSM -lICE $LIBS"
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11090 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11094 ac_check_lib_save_LIBS
=$LIBS
11096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11105 char XmuConvertStandardSelection ();
11109 return XmuConvertStandardSelection ();
11114 if ac_fn_c_try_link
"$LINENO"; then :
11115 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11117 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11119 rm -f core conftest.err conftest.
$ac_objext \
11120 conftest
$ac_exeext conftest.
$ac_ext
11121 LIBS
=$ac_check_lib_save_LIBS
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11124 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11125 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11126 cat >>confdefs.h
<<_ACEOF
11127 #define HAVE_LIBXMU 1
11134 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11140 ## These systems don't supply Xmu.
11142 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11147 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11148 if test "${HAVE_X11}" = "yes"; then
11149 if test "${USE_X_TOOLKIT}" != "none"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11151 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11152 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS
=$LIBS
11156 LIBS
="-lXext $LIBS"
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11166 char XShapeQueryExtension ();
11170 return XShapeQueryExtension ();
11175 if ac_fn_c_try_link
"$LINENO"; then :
11176 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11178 ac_cv_lib_Xext_XShapeQueryExtension
=no
11180 rm -f core conftest.err conftest.
$ac_objext \
11181 conftest
$ac_exeext conftest.
$ac_ext
11182 LIBS
=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11185 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11186 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define HAVE_LIBXEXT 1
11191 LIBS
="-lXext $LIBS"
11199 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11201 $as_echo_n "checking for Motif version 2.1... " >&6; }
11202 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11214 Motif version prior to 2.1.
11220 if ac_fn_c_try_compile
"$LINENO"; then :
11221 emacs_cv_motif_version_2_1
=yes
11223 emacs_cv_motif_version_2_1
=no
11225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11228 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11229 if test $emacs_cv_motif_version_2_1 = yes; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11231 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11232 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 ac_check_lib_save_LIBS
=$LIBS
11237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11246 char XpCreateContext ();
11250 return XpCreateContext ();
11255 if ac_fn_c_try_link
"$LINENO"; then :
11256 ac_cv_lib_Xp_XpCreateContext
=yes
11258 ac_cv_lib_Xp_XpCreateContext
=no
11260 rm -f core conftest.err conftest.
$ac_objext \
11261 conftest
$ac_exeext conftest.
$ac_ext
11262 LIBS
=$ac_check_lib_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11265 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11266 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11272 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11273 if test "${emacs_cv_lesstif+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11276 # We put this in CFLAGS temporarily to precede other -I options
11277 # that might be in CFLAGS temporarily.
11278 # We put this in CPPFLAGS where it precedes the other -I options.
11279 OLD_CPPFLAGS
=$CPPFLAGS
11281 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11282 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11294 if ac_fn_c_try_compile
"$LINENO"; then :
11295 emacs_cv_lesstif
=yes
11297 emacs_cv_lesstif
=no
11299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11302 $as_echo "$emacs_cv_lesstif" >&6; }
11303 if test $emacs_cv_lesstif = yes; then
11304 # Make sure this -I option remains in CPPFLAGS after it is set
11305 # back to REAL_CPPFLAGS.
11306 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11307 # have those other -I options anyway. Ultimately, having this
11308 # directory ultimately in CPPFLAGS will be enough.
11309 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11310 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11313 CPPFLAGS
=$OLD_CPPFLAGS
11319 USE_TOOLKIT_SCROLL_BARS
=no
11320 if test "${with_toolkit_scroll_bars}" != "no"; then
11321 if test "${USE_X_TOOLKIT}" != "none"; then
11322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11323 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11326 USE_TOOLKIT_SCROLL_BARS
=yes
11327 elif test "${HAVE_XAW3D}" = "yes"; then
11328 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11330 USE_TOOLKIT_SCROLL_BARS
=yes
11332 elif test "${HAVE_GTK}" = "yes"; then
11333 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11335 USE_TOOLKIT_SCROLL_BARS
=yes
11336 elif test "${HAVE_NS}" = "yes"; then
11337 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11339 USE_TOOLKIT_SCROLL_BARS
=yes
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 #include <X11/Xlib.h>
11347 #include <X11/Xresource.h>
11356 if ac_fn_c_try_compile
"$LINENO"; then :
11359 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11367 if test "${with_xim}" != "no"; then
11369 $as_echo "#define USE_XIM 1" >>confdefs.h
11374 if test "${HAVE_XIM}" != "no"; then
11375 late_CFLAGS
=$CFLAGS
11376 if test "$GCC" = yes; then
11377 CFLAGS
="$CFLAGS --pedantic-errors"
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #include <X11/Xlib.h>
11383 #include <X11/Xresource.h>
11392 XPointer *client_data;
11394 /* If we're not using GCC, it's probably not XFree86, and this is
11395 probably right, but we can't use something like --pedantic-errors. */
11396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11397 char*, XIMProc, XPointer*);
11399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11405 if ac_fn_c_try_compile
"$LINENO"; then :
11406 emacs_cv_arg6_star
=yes
11408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11409 if test "$emacs_cv_arg6_star" = yes; then
11410 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11413 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11416 CFLAGS
=$late_CFLAGS
11419 ### Start of font-backend (under any platform) section.
11420 # (nothing here yet -- this is a placeholder)
11421 ### End of font-backend (under any platform) section.
11423 ### Start of font-backend (under X11) section.
11424 if test "${HAVE_X11}" = "yes"; then
11428 # Extract the first word of "pkg-config", so it can be a program name with args.
11429 set dummy pkg-config
; ac_word
=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11435 case $PKG_CONFIG in
11437 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11441 for as_dir
in $PATH
11444 test -z "$as_dir" && as_dir
=.
11445 for ac_exec_ext
in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11447 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11459 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11460 if test -n "$PKG_CONFIG"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11462 $as_echo "$PKG_CONFIG" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 if test "$PKG_CONFIG" = "no" ; then
11473 PKG_CONFIG_MIN_VERSION
=0.9.0
11474 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11476 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11478 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11480 $as_echo "yes" >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11484 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11485 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11487 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11490 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11491 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11493 $as_echo "$FONTCONFIG_LIBS" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 FONTCONFIG_CFLAGS
=""
11499 ## If we have a custom action on failure, don't print errors, but
11500 ## do set a variable so people can do so.
11501 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11513 if test $succeeded = yes; then
11520 ## Use -lXft if available, unless `--with-xft=no'.
11522 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11525 if test "x${with_xft}" != "xno"; then
11530 # Extract the first word of "pkg-config", so it can be a program name with args.
11531 set dummy pkg-config
; ac_word
=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11537 case $PKG_CONFIG in
11539 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11543 for as_dir
in $PATH
11546 test -z "$as_dir" && as_dir
=.
11547 for ac_exec_ext
in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11561 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11562 if test -n "$PKG_CONFIG"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11564 $as_echo "$PKG_CONFIG" >&6; }
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11572 if test "$PKG_CONFIG" = "no" ; then
11575 PKG_CONFIG_MIN_VERSION
=0.9.0
11576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11578 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11580 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11582 $as_echo "yes" >&6; }
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11586 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11587 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11589 $as_echo "$XFT_CFLAGS" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11592 $as_echo_n "checking XFT_LIBS... " >&6; }
11593 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11595 $as_echo "$XFT_LIBS" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
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 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.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
11621 ## Because xftfont.c uses XRenderQueryExtension, we also
11622 ## need to link to -lXrender.
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11625 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11626 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_check_lib_save_LIBS
=$LIBS
11630 LIBS
="-lXrender $LIBS"
11631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11640 char XRenderQueryExtension ();
11644 return XRenderQueryExtension ();
11649 if ac_fn_c_try_link
"$LINENO"; then :
11650 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11652 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11654 rm -f core conftest.err conftest.
$ac_objext \
11655 conftest
$ac_exeext conftest.
$ac_ext
11656 LIBS
=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11659 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11660 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11664 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11665 OLD_CPPFLAGS
="$CPPFLAGS"
11666 OLD_CFLAGS
="$CFLAGS"
11668 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11669 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11670 XFT_LIBS
="-lXrender $XFT_LIBS"
11671 LIBS
="$XFT_LIBS $LIBS"
11672 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11673 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11675 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11676 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11679 ac_check_lib_save_LIBS
=$LIBS
11680 LIBS
="-lXft $XFT_LIBS $LIBS"
11681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11690 char XftFontOpen ();
11694 return XftFontOpen ();
11699 if ac_fn_c_try_link
"$LINENO"; then :
11700 ac_cv_lib_Xft_XftFontOpen
=yes
11702 ac_cv_lib_Xft_XftFontOpen
=no
11704 rm -f core conftest.err conftest.
$ac_objext \
11705 conftest
$ac_exeext conftest.
$ac_ext
11706 LIBS
=$ac_check_lib_save_LIBS
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11709 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11710 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11718 if test "${HAVE_XFT}" = "yes"; then
11720 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11723 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11725 CPPFLAGS
="$OLD_CPPFLAGS"
11726 CFLAGS
="$OLD_CFLAGS"
11728 fi # "${HAVE_XFT}" = "yes"
11729 fi # "$HAVE_XFT" != no
11730 fi # "x${with_xft}" != "xno"
11732 ## We used to allow building with FreeType and without Xft.
11733 ## However, the ftx font backend driver is not in good shape.
11734 if test "$HAVE_XFT" != "yes"; then
11741 # Extract the first word of "pkg-config", so it can be a program name with args.
11742 set dummy pkg-config
; ac_word
=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11748 case $PKG_CONFIG in
11750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11754 for as_dir
in $PATH
11757 test -z "$as_dir" && as_dir
=.
11758 for ac_exec_ext
in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11773 if test -n "$PKG_CONFIG"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11775 $as_echo "$PKG_CONFIG" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11783 if test "$PKG_CONFIG" = "no" ; then
11786 PKG_CONFIG_MIN_VERSION
=0.9.0
11787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11789 $as_echo_n "checking for freetype2... " >&6; }
11791 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793 $as_echo "yes" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11797 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11798 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11800 $as_echo "$FREETYPE_CFLAGS" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11803 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11804 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11806 $as_echo "$FREETYPE_LIBS" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11812 ## If we have a custom action on failure, don't print errors, but
11813 ## do set a variable so people can do so.
11814 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11826 if test $succeeded = yes; then
11833 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11837 if test "${HAVE_FREETYPE}" = "yes"; then
11839 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11841 if test "${with_libotf}" != "no"; then
11845 # Extract the first word of "pkg-config", so it can be a program name with args.
11846 set dummy pkg-config
; ac_word
=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11852 case $PKG_CONFIG in
11854 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11858 for as_dir
in $PATH
11861 test -z "$as_dir" && as_dir
=.
11862 for ac_exec_ext
in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11876 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11877 if test -n "$PKG_CONFIG"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11879 $as_echo "$PKG_CONFIG" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11887 if test "$PKG_CONFIG" = "no" ; then
11890 PKG_CONFIG_MIN_VERSION
=0.9.0
11891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11893 $as_echo_n "checking for libotf... " >&6; }
11895 if $PKG_CONFIG --exists "libotf" 2>&5; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11901 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11902 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11904 $as_echo "$LIBOTF_CFLAGS" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11907 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11908 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11910 $as_echo "$LIBOTF_LIBS" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11916 ## If we have a custom action on failure, don't print errors, but
11917 ## do set a variable so people can do so.
11918 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11930 if test $succeeded = yes; then
11936 if test "$HAVE_LIBOTF" = "yes"; then
11938 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11941 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11942 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11945 ac_check_lib_save_LIBS
=$LIBS
11947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11956 char OTF_get_variation_glyphs ();
11960 return OTF_get_variation_glyphs ();
11965 if ac_fn_c_try_link
"$LINENO"; then :
11966 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11968 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11970 rm -f core conftest.err conftest.
$ac_objext \
11971 conftest
$ac_exeext conftest.
$ac_ext
11972 LIBS
=$ac_check_lib_save_LIBS
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11975 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11976 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11977 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11979 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11982 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11984 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11992 if test "${HAVE_LIBOTF}" = yes; then
11993 if test "${with_m17n_flt}" != "no"; then
11997 # Extract the first word of "pkg-config", so it can be a program name with args.
11998 set dummy pkg-config
; ac_word
=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12004 case $PKG_CONFIG in
12006 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12010 for as_dir
in $PATH
12013 test -z "$as_dir" && as_dir
=.
12014 for ac_exec_ext
in '' $ac_executable_extensions; do
12015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12016 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12028 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12029 if test -n "$PKG_CONFIG"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12031 $as_echo "$PKG_CONFIG" >&6; }
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12039 if test "$PKG_CONFIG" = "no" ; then
12042 PKG_CONFIG_MIN_VERSION
=0.9.0
12043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12045 $as_echo_n "checking for m17n-flt... " >&6; }
12047 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049 $as_echo "yes" >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12053 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12054 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12056 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12059 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12060 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12062 $as_echo "$M17N_FLT_LIBS" >&6; }
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12068 ## If we have a custom action on failure, don't print errors, but
12069 ## do set a variable so people can do so.
12070 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12082 if test $succeeded = yes; then
12088 if test "$HAVE_M17N_FLT" = "yes"; then
12090 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12102 ### End of font-backend (under X11) section.
12113 ### Use -lXpm if available, unless `--with-xpm=no'.
12116 if test "${HAVE_X11}" = "yes"; then
12117 if test "${with_xpm}" != "no"; then
12118 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12121 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12122 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12125 ac_check_lib_save_LIBS
=$LIBS
12126 LIBS
="-lXpm -lX11 $LIBS"
12127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12136 char XpmReadFileToPixmap ();
12140 return XpmReadFileToPixmap ();
12145 if ac_fn_c_try_link
"$LINENO"; then :
12146 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12148 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12150 rm -f core conftest.err conftest.
$ac_objext \
12151 conftest
$ac_exeext conftest.
$ac_ext
12152 LIBS
=$ac_check_lib_save_LIBS
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12155 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12156 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12163 if test "${HAVE_XPM}" = "yes"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12165 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include "X11/xpm.h"
12169 #ifndef XpmReturnAllocPixels
12170 no_return_alloc_pixels
12174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12175 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12183 if test "${HAVE_XPM}" = "yes"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; }
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12193 if test "${HAVE_XPM}" = "yes"; then
12195 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12202 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12205 if test "${HAVE_X11}" = "yes"; then
12206 if test "${with_jpeg}" != "no"; then
12207 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12208 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12210 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12211 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12214 ac_check_lib_save_LIBS
=$LIBS
12215 LIBS
="-ljpeg $LIBS"
12216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12225 char jpeg_destroy_compress ();
12229 return jpeg_destroy_compress ();
12234 if ac_fn_c_try_link
"$LINENO"; then :
12235 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12237 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12239 rm -f core conftest.err conftest.
$ac_objext \
12240 conftest
$ac_exeext conftest.
$ac_ext
12241 LIBS
=$ac_check_lib_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12244 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12245 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12254 if test "${HAVE_JPEG}" = "yes"; then
12255 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <jpeglib.h>
12260 version=JPEG_LIB_VERSION
12263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12264 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12265 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12269 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12275 if test "${HAVE_JPEG}" = "yes"; then
12281 ### Use -lpng if available, unless `--with-png=no'.
12284 if test "${HAVE_X11}" = "yes"; then
12285 if test "${with_png}" != "no"; then
12286 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12287 # in /usr/include/libpng.
12288 for ac_header
in png.h libpng
/png.h
12290 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12292 eval as_val
=\$
$as_ac_Header
12293 if test "x$as_val" = x
""yes; then :
12294 cat >>confdefs.h
<<_ACEOF
12295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12302 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12304 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12305 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12308 ac_check_lib_save_LIBS
=$LIBS
12309 LIBS
="-lpng -lz -lm $LIBS"
12310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12319 char png_get_channels ();
12323 return png_get_channels ();
12328 if ac_fn_c_try_link
"$LINENO"; then :
12329 ac_cv_lib_png_png_get_channels
=yes
12331 ac_cv_lib_png_png_get_channels
=no
12333 rm -f core conftest.err conftest.
$ac_objext \
12334 conftest
$ac_exeext conftest.
$ac_ext
12335 LIBS
=$ac_check_lib_save_LIBS
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12338 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12339 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12346 if test "${HAVE_PNG}" = "yes"; then
12348 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12350 LIBPNG
="-lpng -lz -lm"
12355 ### Use -ltiff if available, unless `--with-tiff=no'.
12358 if test "${HAVE_X11}" = "yes"; then
12359 if test "${with_tiff}" != "no"; then
12360 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12361 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12363 # At least one tiff package requires the jpeg library.
12364 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12366 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12367 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12370 ac_check_lib_save_LIBS
=$LIBS
12371 LIBS
="-ltiff $tifflibs $LIBS"
12372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char TIFFGetVersion ();
12385 return TIFFGetVersion ();
12390 if ac_fn_c_try_link
"$LINENO"; then :
12391 ac_cv_lib_tiff_TIFFGetVersion
=yes
12393 ac_cv_lib_tiff_TIFFGetVersion
=no
12395 rm -f core conftest.err conftest.
$ac_objext \
12396 conftest
$ac_exeext conftest.
$ac_ext
12397 LIBS
=$ac_check_lib_save_LIBS
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12400 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12401 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12410 if test "${HAVE_TIFF}" = "yes"; then
12412 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12419 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12422 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12423 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12424 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12425 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12426 # Earlier versions can crash Emacs.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12428 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12429 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12432 ac_check_lib_save_LIBS
=$LIBS
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12443 char EGifPutExtensionLast ();
12447 return EGifPutExtensionLast ();
12452 if ac_fn_c_try_link
"$LINENO"; then :
12453 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12455 ac_cv_lib_gif_EGifPutExtensionLast
=no
12457 rm -f core conftest.err conftest.
$ac_objext \
12458 conftest
$ac_exeext conftest.
$ac_ext
12459 LIBS
=$ac_check_lib_save_LIBS
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12462 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12463 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12473 if test "$HAVE_GIF" = yes; then
12475 elif test "$HAVE_GIF" = maybe
; then
12476 # If gif_lib.h but no libgif, try libungif.
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12478 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12479 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12482 ac_check_lib_save_LIBS
=$LIBS
12483 LIBS
="-lungif $LIBS"
12484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12493 char EGifPutExtensionLast ();
12497 return EGifPutExtensionLast ();
12502 if ac_fn_c_try_link
"$LINENO"; then :
12503 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12505 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12507 rm -f core conftest.err conftest.
$ac_objext \
12508 conftest
$ac_exeext conftest.
$ac_ext
12509 LIBS
=$ac_check_lib_save_LIBS
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12512 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12513 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12519 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12522 if test "${HAVE_GIF}" = "yes"; then
12524 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12530 if test "${HAVE_X11}" = "yes"; then
12533 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12534 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12535 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12536 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12537 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12538 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12539 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12540 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12541 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12542 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12544 if test "X${MISSING}" != X
; then
12545 as_fn_error
"The following required libraries were not found:
12547 Maybe some development libraries/packages are missing?
12548 If you don't want to link with them give
12550 as options to configure" "$LINENO" 5
12554 ### Use -lgpm if available, unless `--with-gpm=no'.
12558 if test "${with_gpm}" != "no"; then
12559 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12560 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12562 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12563 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12566 ac_check_lib_save_LIBS
=$LIBS
12568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12581 return Gpm_Open ();
12586 if ac_fn_c_try_link
"$LINENO"; then :
12587 ac_cv_lib_gpm_Gpm_Open
=yes
12589 ac_cv_lib_gpm_Gpm_Open
=no
12591 rm -f core conftest.err conftest.
$ac_objext \
12592 conftest
$ac_exeext conftest.
$ac_ext
12593 LIBS
=$ac_check_lib_save_LIBS
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12596 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12597 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12605 if test "${HAVE_GPM}" = "yes"; then
12607 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12610 ## May be reset below.
12611 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12616 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12617 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12619 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12626 ### Use NeXTstep API to implement GUI.
12627 if test "${HAVE_NS}" = "yes"; then
12629 $as_echo "#define HAVE_NS 1" >>confdefs.h
12631 if test "${NS_IMPL_COCOA}" = "yes"; then
12633 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12637 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12639 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12641 # See also .m.o rule in Makefile.in */
12642 # FIXME: are all these flags really needed? Document here why. */
12643 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12644 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12646 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12648 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12651 # We also have mouse menus.
12657 ### Use session management (-lSM -lICE) if available
12660 if test "${HAVE_X11}" = "yes"; then
12661 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12662 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12664 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12665 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12668 ac_check_lib_save_LIBS
=$LIBS
12669 LIBS
="-lSM -lICE $LIBS"
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char SmcOpenConnection ();
12683 return SmcOpenConnection ();
12688 if ac_fn_c_try_link
"$LINENO"; then :
12689 ac_cv_lib_SM_SmcOpenConnection
=yes
12691 ac_cv_lib_SM_SmcOpenConnection
=no
12693 rm -f core conftest.err conftest.
$ac_objext \
12694 conftest
$ac_exeext conftest.
$ac_ext
12695 LIBS
=$ac_check_lib_save_LIBS
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12698 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12699 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12707 if test "${HAVE_X_SM}" = "yes"; then
12709 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12711 LIBXSM
="-lSM -lICE"
12714 *) LIBS
="$LIBXSM $LIBS" ;;
12720 ### Use libxml (-lxml2) if available
12721 if test "${with_xml2}" != "no"; then
12722 ### I'm not sure what the version number should be, so I just guessed.
12726 # Extract the first word of "pkg-config", so it can be a program name with args.
12727 set dummy pkg-config
; ac_word
=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12733 case $PKG_CONFIG in
12735 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12739 for as_dir
in $PATH
12742 test -z "$as_dir" && as_dir
=.
12743 for ac_exec_ext
in '' $ac_executable_extensions; do
12744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12745 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12757 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12758 if test -n "$PKG_CONFIG"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12760 $as_echo "$PKG_CONFIG" >&6; }
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12768 if test "$PKG_CONFIG" = "no" ; then
12771 PKG_CONFIG_MIN_VERSION
=0.9.0
12772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12774 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12776 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12782 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12783 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12785 $as_echo "$LIBXML2_CFLAGS" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12788 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12789 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12791 $as_echo "$LIBXML2_LIBS" >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12797 ## If we have a custom action on failure, don't print errors, but
12798 ## do set a variable so people can do so.
12799 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12811 if test $succeeded = yes; then
12817 if test "${HAVE_LIBXML2}" = "yes"; then
12818 LIBS
="$LIBXML2_LIBS $LIBS"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12820 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12821 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12824 ac_check_lib_save_LIBS
=$LIBS
12825 LIBS
="-lxml2 $LIBS"
12826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12835 char htmlReadMemory ();
12839 return htmlReadMemory ();
12844 if ac_fn_c_try_link
"$LINENO"; then :
12845 ac_cv_lib_xml2_htmlReadMemory
=yes
12847 ac_cv_lib_xml2_htmlReadMemory
=no
12849 rm -f core conftest.err conftest.
$ac_objext \
12850 conftest
$ac_exeext conftest.
$ac_ext
12851 LIBS
=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12854 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12855 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12861 if test "${HAVE_LIBXML2}" = "yes"; then
12863 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12874 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12876 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12877 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12891 if ac_fn_c_try_link
"$LINENO"; then :
12892 emacs_cv_netdb_declares_h_errno
=yes
12894 emacs_cv_netdb_declares_h_errno
=no
12896 rm -f core conftest.err conftest.
$ac_objext \
12897 conftest
$ac_exeext conftest.
$ac_ext
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12900 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12901 if test $emacs_cv_netdb_declares_h_errno = yes; then
12903 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12908 # for constant arguments. Useless!
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12910 $as_echo_n "checking for working alloca.h... " >&6; }
12911 if test "${ac_cv_working_alloca_h+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 #include <alloca.h>
12920 char *p = (char *) alloca (2 * sizeof (int));
12926 if ac_fn_c_try_link
"$LINENO"; then :
12927 ac_cv_working_alloca_h
=yes
12929 ac_cv_working_alloca_h
=no
12931 rm -f core conftest.err conftest.
$ac_objext \
12932 conftest
$ac_exeext conftest.
$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12935 $as_echo "$ac_cv_working_alloca_h" >&6; }
12936 if test $ac_cv_working_alloca_h = yes; then
12938 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12943 $as_echo_n "checking for alloca... " >&6; }
12944 if test "${ac_cv_func_alloca_works+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12950 # define alloca __builtin_alloca
12953 # include <malloc.h>
12954 # define alloca _alloca
12956 # ifdef HAVE_ALLOCA_H
12957 # include <alloca.h>
12962 # ifndef alloca /* predefined by HP cc +Olibcalls */
12973 char *p = (char *) alloca (1);
12979 if ac_fn_c_try_link
"$LINENO"; then :
12980 ac_cv_func_alloca_works
=yes
12982 ac_cv_func_alloca_works
=no
12984 rm -f core conftest.err conftest.
$ac_objext \
12985 conftest
$ac_exeext conftest.
$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12988 $as_echo "$ac_cv_func_alloca_works" >&6; }
12990 if test $ac_cv_func_alloca_works = yes; then
12992 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12996 # that cause trouble. Some versions do not even contain alloca or
12997 # contain a buggy version. If you still want to use their alloca,
12998 # use ar to extract alloca.o from them instead of compiling alloca.c.
13000 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13002 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13006 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13007 if test "${ac_cv_os_cray+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 #if defined CRAY && ! defined CRAY2
13019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 $EGREP "webecray" >/dev
/null
2>&1; then :
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13029 $as_echo "$ac_cv_os_cray" >&6; }
13030 if test $ac_cv_os_cray = yes; then
13031 for ac_func
in _getb67 GETB67 getb67
; do
13032 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13033 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13034 eval as_val
=\$
$as_ac_var
13035 if test "x$as_val" = x
""yes; then :
13037 cat >>confdefs.h
<<_ACEOF
13038 #define CRAY_STACKSEG_END $ac_func
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13048 $as_echo_n "checking stack direction for C alloca... " >&6; }
13049 if test "${ac_cv_c_stack_direction+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13052 if test "$cross_compiling" = yes; then :
13053 ac_cv_c_stack_direction
=0
13055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 $ac_includes_default
13059 find_stack_direction ()
13061 static char *addr = 0;
13066 return find_stack_direction ();
13069 return (&dummy > addr) ? 1 : -1;
13075 return find_stack_direction () < 0;
13078 if ac_fn_c_try_run
"$LINENO"; then :
13079 ac_cv_c_stack_direction
=1
13081 ac_cv_c_stack_direction
=-1
13083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13089 $as_echo "$ac_cv_c_stack_direction" >&6; }
13090 cat >>confdefs.h
<<_ACEOF
13091 #define STACK_DIRECTION $ac_cv_c_stack_direction
13098 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13099 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
13102 # fmod, logb, and frexp are found in -lm on most systems.
13103 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13105 $as_echo_n "checking for sqrt in -lm... " >&6; }
13106 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13109 ac_check_lib_save_LIBS
=$LIBS
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13129 if ac_fn_c_try_link
"$LINENO"; then :
13130 ac_cv_lib_m_sqrt
=yes
13132 ac_cv_lib_m_sqrt
=no
13134 rm -f core conftest.err conftest.
$ac_objext \
13135 conftest
$ac_exeext conftest.
$ac_ext
13136 LIBS
=$ac_check_lib_save_LIBS
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13139 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13140 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13141 cat >>confdefs.h
<<_ACEOF
13142 #define HAVE_LIBM 1
13150 # Check for mail-locking functions in a "mail" library. Probably this should
13151 # have the same check as for liblockfile below.
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13153 $as_echo_n "checking for maillock in -lmail... " >&6; }
13154 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13157 ac_check_lib_save_LIBS
=$LIBS
13158 LIBS
="-lmail $LIBS"
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13162 /* Override any GCC internal prototype to avoid an error.
13163 Use char because int might match the return type of a GCC
13164 builtin and then its argument prototype would still apply. */
13172 return maillock ();
13177 if ac_fn_c_try_link
"$LINENO"; then :
13178 ac_cv_lib_mail_maillock
=yes
13180 ac_cv_lib_mail_maillock
=no
13182 rm -f core conftest.err conftest.
$ac_objext \
13183 conftest
$ac_exeext conftest.
$ac_ext
13184 LIBS
=$ac_check_lib_save_LIBS
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13187 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13188 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13194 if test $have_mail = yes; then
13196 LIBS
="$LIBS_MAIL $LIBS"
13198 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13204 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13205 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13208 ac_check_lib_save_LIBS
=$LIBS
13209 LIBS
="-llockfile $LIBS"
13210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13223 return maillock ();
13228 if ac_fn_c_try_link
"$LINENO"; then :
13229 ac_cv_lib_lockfile_maillock
=yes
13231 ac_cv_lib_lockfile_maillock
=no
13233 rm -f core conftest.err conftest.
$ac_objext \
13234 conftest
$ac_exeext conftest.
$ac_ext
13235 LIBS
=$ac_check_lib_save_LIBS
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13238 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13239 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13245 if test $have_lockfile = yes; then
13246 LIBS_MAIL
=-llockfile
13247 LIBS
="$LIBS_MAIL $LIBS"
13249 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13252 # If we have the shared liblockfile, assume we must use it for mail
13253 # locking (e.g. Debian). If we couldn't link against liblockfile
13254 # (no liblockfile.a installed), ensure that we don't need to.
13255 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13256 set dummy liblockfile.so
; ac_word
=$2
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 $as_echo_n "checking for $ac_word... " >&6; }
13259 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13262 if test -n "$liblockfile"; then
13263 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13266 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13267 for as_dir
in $as_dummy
13270 test -z "$as_dir" && as_dir
=.
13271 for ac_exec_ext
in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_liblockfile
="yes"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13284 liblockfile
=$ac_cv_prog_liblockfile
13285 if test -n "$liblockfile"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13287 $as_echo "$liblockfile" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13294 if test $ac_cv_prog_liblockfile = yes; then
13295 as_fn_error
"Shared liblockfile found but can't link against it.
13296 This probably means that movemail could lose mail.
13297 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13300 for ac_func
in touchlock
13302 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13303 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13304 cat >>confdefs.h
<<_ACEOF
13305 #define HAVE_TOUCHLOCK 1
13311 for ac_header
in maillock.h
13313 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13314 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13315 cat >>confdefs.h
<<_ACEOF
13316 #define HAVE_MAILLOCK_H 1
13325 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13326 ## interlock access to the mail spool. The alternative is a lock file named
13327 ## /usr/spool/mail/$USER.lock.
13330 aix4-2
) mail_lock
="lockf" ;;
13332 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13334 ## On GNU/Linux systems, both methods are used by various mail programs.
13335 ## I assume most people are using newer mailers that have heard of flock.
13336 ## Change this if you need to.
13337 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13338 ## configure gets the right answers, and that means *NOT* using flock.
13339 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13340 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13341 ## Debian maintainer hasn't provided a clean fix for Emacs.
13342 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13343 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13344 ## correct logic. -- fx
13345 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13346 ## liblockfile is a Free Software replacement for libmail, used on
13347 ## Debian systems and elsewhere. -rfr.
13350 if test $have_mail = yes ||
test $have_lockfile = yes; then
13351 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13357 case "$mail_lock" in
13359 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13363 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13366 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13371 for ac_func
in gethostname getdomainname dup2 \
13372 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13373 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13374 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13375 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13376 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13377 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13378 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13379 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13380 cfmakeraw cfsetspeed isnan copysign __executable_start
13382 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13383 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13384 eval as_val
=\$
$as_ac_var
13385 if test "x$as_val" = x
""yes; then :
13386 cat >>confdefs.h
<<_ACEOF
13387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13395 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13396 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13405 __builtin_unwind_init ();
13410 if ac_fn_c_try_link
"$LINENO"; then :
13411 emacs_cv_func___builtin_unwind_init
=yes
13413 emacs_cv_func___builtin_unwind_init
=no
13415 rm -f core conftest.err conftest.
$ac_objext \
13416 conftest
$ac_exeext conftest.
$ac_ext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13419 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13420 if test $emacs_cv_func___builtin_unwind_init = yes; then
13422 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13426 for ac_header
in sys
/un.h
13428 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13429 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13430 cat >>confdefs.h
<<_ACEOF
13431 #define HAVE_SYS_UN_H 1
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13440 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13441 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 #include <sys/types.h> /* for off_t */
13452 int (*fp) (FILE *, off_t, int) = fseeko;
13453 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13458 if ac_fn_c_try_link
"$LINENO"; then :
13459 ac_cv_sys_largefile_source
=no
; break
13461 rm -f core conftest.err conftest.
$ac_objext \
13462 conftest
$ac_exeext conftest.
$ac_ext
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #define _LARGEFILE_SOURCE 1
13466 #include <sys/types.h> /* for off_t */
13471 int (*fp) (FILE *, off_t, int) = fseeko;
13472 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13477 if ac_fn_c_try_link
"$LINENO"; then :
13478 ac_cv_sys_largefile_source
=1; break
13480 rm -f core conftest.err conftest.
$ac_objext \
13481 conftest
$ac_exeext conftest.
$ac_ext
13482 ac_cv_sys_largefile_source
=unknown
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13487 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13488 case $ac_cv_sys_largefile_source in #(
13491 cat >>confdefs.h
<<_ACEOF
13492 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13498 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13499 # in glibc 2.1.3, but that breaks too many other things.
13500 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13501 if test $ac_cv_sys_largefile_source != unknown
; then
13503 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13509 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13510 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13513 # Use it with a single arg.
13514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 $ac_includes_default
13525 if ac_fn_c_try_compile
"$LINENO"; then :
13526 ac_cv_func_getpgrp_void
=no
13528 ac_cv_func_getpgrp_void
=yes
13530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13534 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13535 if test $ac_cv_func_getpgrp_void = yes; then
13537 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13542 # Configure gnulib.
13553 LIBC_FATAL_STDERR_
=1
13554 export LIBC_FATAL_STDERR_
13559 for ac_func
in $ac_func_list
13561 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13562 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13563 eval as_val
=\$
$as_ac_var
13564 if test "x$as_val" = x
""yes; then :
13565 cat >>confdefs.h
<<_ACEOF
13566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13576 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13577 if test "${ac_cv_c_bigendian+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13580 ac_cv_c_bigendian
=unknown
13581 # See if we're dealing with a universal compiler.
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 #ifndef __APPLE_CC__
13585 not a universal capable compiler
13590 if ac_fn_c_try_compile
"$LINENO"; then :
13592 # Check for potential -arch flags. It is not universal unless
13593 # there are at least two -arch flags with different values.
13596 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13597 if test -n "$ac_prev"; then
13599 i?
86 | x86_64 | ppc | ppc64
)
13600 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13603 ac_cv_c_bigendian
=universal
13609 elif test "x$ac_word" = "x-arch"; then
13614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13615 if test $ac_cv_c_bigendian = unknown
; then
13616 # See if sys/param.h defines the BYTE_ORDER macro.
13617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 #include <sys/types.h>
13620 #include <sys/param.h>
13625 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13626 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13628 bogus endian macros
13635 if ac_fn_c_try_compile
"$LINENO"; then :
13636 # It does; now see whether it defined to BIG_ENDIAN or not.
13637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <sys/types.h>
13640 #include <sys/param.h>
13645 #if BYTE_ORDER != BIG_ENDIAN
13653 if ac_fn_c_try_compile
"$LINENO"; then :
13654 ac_cv_c_bigendian
=yes
13656 ac_cv_c_bigendian
=no
13658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13662 if test $ac_cv_c_bigendian = unknown
; then
13663 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <limits.h>
13671 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13672 bogus endian macros
13679 if ac_fn_c_try_compile
"$LINENO"; then :
13680 # It does; now see whether it defined to _BIG_ENDIAN or not.
13681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <limits.h>
13688 #ifndef _BIG_ENDIAN
13696 if ac_fn_c_try_compile
"$LINENO"; then :
13697 ac_cv_c_bigendian
=yes
13699 ac_cv_c_bigendian
=no
13701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13705 if test $ac_cv_c_bigendian = unknown
; then
13706 # Compile a test program.
13707 if test "$cross_compiling" = yes; then :
13708 # Try to guess by grepping values from an object file.
13709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 short int ascii_mm[] =
13712 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13713 short int ascii_ii[] =
13714 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13715 int use_ascii (int i) {
13716 return ascii_mm[i] + ascii_ii[i];
13718 short int ebcdic_ii[] =
13719 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13720 short int ebcdic_mm[] =
13721 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13722 int use_ebcdic (int i) {
13723 return ebcdic_mm[i] + ebcdic_ii[i];
13730 return use_ascii (foo) == use_ebcdic (foo);
13735 if ac_fn_c_try_compile
"$LINENO"; then :
13736 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13737 ac_cv_c_bigendian
=yes
13739 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13740 if test "$ac_cv_c_bigendian" = unknown
; then
13741 ac_cv_c_bigendian
=no
13743 # finding both strings is unlikely to happen, but who knows?
13744 ac_cv_c_bigendian
=unknown
13748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 $ac_includes_default
13757 /* Are we little or big endian? From Harbison&Steele. */
13761 char c[sizeof (long int)];
13764 return u.c[sizeof (long int) - 1] == 1;
13770 if ac_fn_c_try_run
"$LINENO"; then :
13771 ac_cv_c_bigendian
=no
13773 ac_cv_c_bigendian
=yes
13775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13782 $as_echo "$ac_cv_c_bigendian" >&6; }
13783 case $ac_cv_c_bigendian in #(
13785 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13791 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13795 as_fn_error
"unknown endianness
13796 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13801 $as_echo_n "checking for inline... " >&6; }
13802 if test "${ac_cv_c_inline+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13806 for ac_kw
in inline __inline__ __inline
; do
13807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #ifndef __cplusplus
13811 static $ac_kw foo_t static_foo () {return 0; }
13812 $ac_kw foo_t foo () {return 0; }
13816 if ac_fn_c_try_compile
"$LINENO"; then :
13817 ac_cv_c_inline
=$ac_kw
13819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13820 test "$ac_cv_c_inline" != no
&& break
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13825 $as_echo "$ac_cv_c_inline" >&6; }
13827 case $ac_cv_c_inline in
13830 case $ac_cv_c_inline in
13832 *) ac_val
=$ac_cv_c_inline;;
13834 cat >>confdefs.h
<<_ACEOF
13835 #ifndef __cplusplus
13836 #define inline $ac_val
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13844 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13845 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
13848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 /* On HP-UX before 11.23, strtold returns a struct instead of
13851 long double. Reject implementations like that, by requiring
13852 compatibility with the C99 prototype. */
13853 #include <stdlib.h>
13854 static long double (*p) (char const *, char **) = strtold;
13856 test (char const *nptr, char **endptr)
13859 r = strtold (nptr, endptr);
13865 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13870 if ac_fn_c_try_link
"$LINENO"; then :
13871 gl_cv_func_c99_strtold
=yes
13873 gl_cv_func_c99_strtold
=no
13875 rm -f core conftest.err conftest.
$ac_objext \
13876 conftest
$ac_exeext conftest.
$ac_ext
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13879 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13880 if test $gl_cv_func_c99_strtold = yes; then
13882 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13887 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13888 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 #include <sys/types.h>
13895 #include <sys/stat.h>
13899 struct stat s; s.st_dm_mode;
13904 if ac_fn_c_try_compile
"$LINENO"; then :
13905 ac_cv_struct_st_dm_mode
=yes
13907 ac_cv_struct_st_dm_mode
=no
13909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13912 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13914 if test $ac_cv_struct_st_dm_mode = yes; then
13916 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13921 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13922 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13928 cat >>confdefs.h
<<_ACEOF
13929 #define HAVE_DECL_STRMODE $ac_have_decl
13935 GNULIB_CALLOC_POSIX
=0;
13936 GNULIB_CANONICALIZE_FILE_NAME
=0;
13937 GNULIB_GETLOADAVG
=0;
13938 GNULIB_GETSUBOPT
=0;
13940 GNULIB_MALLOC_POSIX
=0;
13944 GNULIB_MKOSTEMPS
=0;
13950 GNULIB_REALLOC_POSIX
=0;
13957 GNULIB_SYSTEM_POSIX
=0;
13963 HAVE_CANONICALIZE_FILE_NAME
=1;
13964 HAVE_DECL_GETLOADAVG
=1;
13978 HAVE_DECL_SETENV
=1;
13982 HAVE_STRUCT_RANDOM_DATA
=1;
13983 HAVE_SYS_LOADAVG_H
=0;
13985 HAVE_DECL_UNSETENV
=1;
13987 REPLACE_CANONICALIZE_FILE_NAME
=0;
13993 REPLACE_REALPATH
=0;
13996 REPLACE_UNSETENV
=0;
14005 GNULIB_EUIDACCESS
=0;
14006 GNULIB_FACCESSAT
=0;
14010 GNULIB_FTRUNCATE
=0;
14012 GNULIB_GETDOMAINNAME
=0;
14013 GNULIB_GETDTABLESIZE
=0;
14014 GNULIB_GETGROUPS
=0;
14015 GNULIB_GETHOSTNAME
=0;
14017 GNULIB_GETLOGIN_R
=0;
14018 GNULIB_GETPAGESIZE
=0;
14019 GNULIB_GETUSERSHELL
=0;
14029 GNULIB_READLINKAT
=0;
14033 GNULIB_SYMLINKAT
=0;
14034 GNULIB_TTYNAME_R
=0;
14035 GNULIB_UNISTD_H_GETOPT
=0;
14036 GNULIB_UNISTD_H_SIGPIPE
=0;
14050 HAVE_GETDTABLESIZE
=1;
14052 HAVE_GETHOSTNAME
=1;
14054 HAVE_GETPAGESIZE
=1;
14069 HAVE_DECL_ENVIRON
=1;
14070 HAVE_DECL_FCHDIR
=1;
14071 HAVE_DECL_GETDOMAINNAME
=1;
14072 HAVE_DECL_GETLOGIN_R
=1;
14073 HAVE_DECL_GETPAGESIZE
=1;
14074 HAVE_DECL_GETUSERSHELL
=1;
14075 HAVE_DECL_TTYNAME_R
=1;
14077 HAVE_SYS_PARAM_H
=0;
14082 REPLACE_FCHOWNAT
=0;
14084 REPLACE_GETDOMAINNAME
=0;
14085 REPLACE_GETLOGIN_R
=0;
14086 REPLACE_GETGROUPS
=0;
14087 REPLACE_GETPAGESIZE
=0;
14094 REPLACE_READLINK
=0;
14098 REPLACE_TTYNAME_R
=0;
14100 REPLACE_UNLINKAT
=0;
14103 UNISTD_H_HAVE_WINSOCK2_H
=0;
14104 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14110 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14111 if test "${gl_cv_have_include_next+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14114 rm -rf conftestd1a conftestd1b conftestd2
14115 mkdir conftestd1a conftestd1b conftestd2
14116 cat <<EOF > conftestd1a/conftest.h
14117 #define DEFINED_IN_CONFTESTD1
14118 #include_next <conftest.h>
14119 #ifdef DEFINED_IN_CONFTESTD2
14122 #error "include_next doesn't work"
14125 cat <<EOF > conftestd1b/conftest.h
14126 #define DEFINED_IN_CONFTESTD1
14128 #include_next <conftest.h>
14129 #ifdef DEFINED_IN_CONFTESTD2
14132 #error "include_next doesn't work"
14135 cat <<EOF > conftestd2/conftest.h
14136 #ifndef DEFINED_IN_CONFTESTD1
14137 #error "include_next test doesn't work"
14139 #define DEFINED_IN_CONFTESTD2
14141 gl_save_CPPFLAGS
="$CPPFLAGS"
14142 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <conftest.h>
14147 if ac_fn_c_try_compile
"$LINENO"; then :
14148 gl_cv_have_include_next
=yes
14150 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <conftest.h>
14155 if ac_fn_c_try_compile
"$LINENO"; then :
14156 gl_cv_have_include_next
=buggy
14158 gl_cv_have_include_next
=no
14160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14164 CPPFLAGS
="$gl_save_CPPFLAGS"
14165 rm -rf conftestd1a conftestd1b conftestd2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14169 $as_echo "$gl_cv_have_include_next" >&6; }
14170 PRAGMA_SYSTEM_HEADER
=
14171 if test $gl_cv_have_include_next = yes; then
14172 INCLUDE_NEXT
=include_next
14173 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14174 if test -n "$GCC"; then
14175 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14178 if test $gl_cv_have_include_next = buggy
; then
14179 INCLUDE_NEXT
=include
14180 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14182 INCLUDE_NEXT
=include
14183 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14190 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14191 if test "${gl_cv_pragma_columns+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14203 $EGREP "choke me" >/dev
/null
2>&1; then :
14204 gl_cv_pragma_columns
=yes
14206 gl_cv_pragma_columns
=no
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14213 $as_echo "$gl_cv_pragma_columns" >&6; }
14214 if test $gl_cv_pragma_columns = yes; then
14215 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14236 if test $gl_cv_have_include_next = yes; then
14237 gl_cv_next_getopt_h
='<'getopt.h
'>'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14240 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14241 if test "${gl_cv_next_getopt_h+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14245 if test $ac_cv_header_getopt_h = yes; then
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <getopt.h>
14254 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14255 *) gl_absname_cpp
="$ac_cpp" ;;
14257 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14258 sed -n '\#/getopt.h#{
14259 s#.*"\(.*/getopt.h\)".*#\1#
14265 gl_cv_next_getopt_h
='<'getopt.h
'>'
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14271 $as_echo "$gl_cv_next_getopt_h" >&6; }
14273 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14275 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14277 gl_next_as_first_directive
='<'getopt.h
'>'
14279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14280 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14282 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14287 if test $ac_cv_header_getopt_h = yes; then
14296 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14297 for ac_header
in getopt.h
14299 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14300 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14301 cat >>confdefs.h
<<_ACEOF
14302 #define HAVE_GETOPT_H 1
14306 gl_replace_getopt
=yes
14313 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14314 for ac_func
in getopt_long_only
14316 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14317 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14318 cat >>confdefs.h
<<_ACEOF
14319 #define HAVE_GETOPT_LONG_ONLY 1
14323 gl_replace_getopt
=yes
14329 if test -z "$gl_replace_getopt"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14331 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14332 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #include <unistd.h>
14342 int *p = &optreset; return optreset;
14347 if ac_fn_c_try_compile
"$LINENO"; then :
14350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #include <getopt.h>
14356 return !getopt_clip;
14361 if ac_fn_c_try_compile
"$LINENO"; then :
14366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14370 gl_save_CPPFLAGS
=$CPPFLAGS
14371 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14372 if test "$cross_compiling" = yes; then :
14374 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14375 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14376 *) gl_cv_func_getopt_posix
="guessing yes";;
14380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14383 #include <unistd.h>
14384 #include <stdlib.h>
14385 #include <string.h>
14395 argv[argc++] = "program";
14396 argv[argc++] = "-a";
14397 argv[argc++] = "foo";
14398 argv[argc++] = "bar";
14400 optind = OPTIND_MIN;
14403 c = getopt (argc, argv, "ab");
14406 c = getopt (argc, argv, "ab");
14409 if (!(optind == 2))
14412 /* Some internal state exists at this point. */
14418 argv[argc++] = "program";
14419 argv[argc++] = "donald";
14420 argv[argc++] = "-p";
14421 argv[argc++] = "billy";
14422 argv[argc++] = "duck";
14423 argv[argc++] = "-a";
14424 argv[argc++] = "bar";
14426 optind = OPTIND_MIN;
14429 c = getopt (argc, argv, "+abp:q:");
14432 if (!(strcmp (argv[0], "program") == 0))
14434 if (!(strcmp (argv[1], "donald") == 0))
14436 if (!(strcmp (argv[2], "-p") == 0))
14438 if (!(strcmp (argv[3], "billy") == 0))
14440 if (!(strcmp (argv[4], "duck") == 0))
14442 if (!(strcmp (argv[5], "-a") == 0))
14444 if (!(strcmp (argv[6], "bar") == 0))
14446 if (!(optind == 1))
14449 /* Detect MacOS 10.5, AIX 7.1 bug. */
14451 char *argv[3] = { "program", "-ab", NULL };
14452 optind = OPTIND_MIN;
14454 if (getopt (2, argv, "ab:") != 'a')
14456 if (getopt (2, argv, "ab:") != '?')
14468 if ac_fn_c_try_run
"$LINENO"; then :
14469 gl_cv_func_getopt_posix
=yes
14471 gl_cv_func_getopt_posix
=no
14473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14477 CPPFLAGS
=$gl_save_CPPFLAGS
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14481 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14482 case "$gl_cv_func_getopt_posix" in
14483 *no
) gl_replace_getopt
=yes ;;
14487 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14489 $as_echo_n "checking for working GNU getopt function... " >&6; }
14490 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14493 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14494 # optstring is necessary for programs like m4 that have POSIX-mandated
14495 # semantics for supporting options interspersed with files.
14496 # Also, since getopt_long is a GNU extension, we require optind=0.
14497 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14498 # so take care to revert to the correct (non-)export state.
14499 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14500 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14501 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14502 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14503 *) gl_had_POSIXLY_CORRECT
= ;;
14506 export POSIXLY_CORRECT
14507 if test "$cross_compiling" = yes; then :
14508 case $host_os:$ac_cv_have_decl_optreset in
14509 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14510 *:yes) gl_cv_func_getopt_gnu
=no
;;
14511 *) gl_cv_func_getopt_gnu
=yes;;
14515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <getopt.h>
14518 #include <stddef.h>
14519 #include <string.h>
14526 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14527 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14528 OSF/1 5.1, Solaris 10. */
14531 myargv[0] = "conftest";
14535 if (getopt (2, myargv, "+a") != '?')
14538 /* This code succeeds on glibc 2.8, mingw,
14539 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14540 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14542 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14545 if (getopt (4, argv, "p::") != 'p')
14547 else if (optarg != NULL)
14549 else if (getopt (4, argv, "p::") != -1)
14551 else if (optind != 2)
14554 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14556 char *argv[] = { "program", "foo", "-p", NULL };
14558 if (getopt (3, argv, "-p") != 1)
14560 else if (getopt (3, argv, "-p") != 'p')
14563 /* This code fails on glibc 2.11. */
14565 char *argv[] = { "program", "-b", "-a", NULL };
14566 optind = opterr = 0;
14567 if (getopt (3, argv, "+:a:b") != 'b')
14569 else if (getopt (3, argv, "+:a:b") != ':')
14578 if ac_fn_c_try_run
"$LINENO"; then :
14579 gl_cv_func_getopt_gnu
=yes
14581 gl_cv_func_getopt_gnu
=no
14583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14587 case $gl_had_POSIXLY_CORRECT in
14589 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14590 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14595 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14596 if test "$gl_cv_func_getopt_gnu" = "no"; then
14597 gl_replace_getopt
=yes
14601 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14602 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14608 cat >>confdefs.h
<<_ACEOF
14609 #define HAVE_DECL_GETENV $ac_have_decl
14617 if test -n "$gl_replace_getopt"; then :
14623 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14627 GNULIB_UNISTD_H_GETOPT
=1
14636 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14646 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14668 GNULIB_UTIMENSAT
=0;
14682 REPLACE_FUTIMENS
=0;
14688 REPLACE_UTIMENSAT
=0;
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14694 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14695 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14698 rm -f conftest.sym conftest.
file
14699 echo >conftest.
file
14700 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14701 if test "$cross_compiling" = yes; then :
14702 # When cross-compiling, be pessimistic so we will end up using the
14703 # replacement version of lstat that checks for trailing slashes and
14704 # calls lstat a second time when necessary.
14705 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 $ac_includes_default
14715 /* Linux will dereference the symlink and fail, as required by
14716 POSIX. That is better in the sense that it means we will not
14717 have to compile and use the lstat wrapper. */
14718 return lstat ("conftest.sym/", &sbuf) == 0;
14724 if ac_fn_c_try_run
"$LINENO"; then :
14725 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14727 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14729 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14730 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14734 # If the 'ln -s' command failed, then we probably don't even
14735 # have an lstat function.
14736 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14738 rm -f conftest.sym conftest.
file
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14742 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14743 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14745 cat >>confdefs.h
<<_ACEOF
14746 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14749 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14758 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14764 GNULIB_NANOSLEEP
=0;
14768 HAVE_DECL_LOCALTIME_R
=1;
14772 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14773 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14774 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14775 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14780 gl_cv_c_multiarch
=no
14781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 #ifndef __APPLE_CC__
14784 not a universal capable compiler
14789 if ac_fn_c_try_compile
"$LINENO"; then :
14793 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14794 if test -n "$prev"; then
14796 i?
86 | x86_64 | ppc | ppc64
)
14797 if test -z "$arch" ||
test "$arch" = "$word"; then
14800 gl_cv_c_multiarch
=yes
14806 if test "x$word" = "x-arch"; then
14813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14814 if test $gl_cv_c_multiarch = yes; then
14815 APPLE_UNIVERSAL_BUILD
=1
14817 APPLE_UNIVERSAL_BUILD
=0
14826 if test $ac_cv_header_sys_socket_h = no
; then
14827 for ac_header
in ws2tcpip.h
14829 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14830 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
14831 cat >>confdefs.h
<<_ACEOF
14832 #define HAVE_WS2TCPIP_H 1
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14842 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14843 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14849 #include <stdbool.h>
14851 "error: bool is not defined"
14854 "error: false is not defined"
14857 "error: false is not 0"
14860 "error: true is not defined"
14863 "error: true is not 1"
14865 #ifndef __bool_true_false_are_defined
14866 "error: __bool_true_false_are_defined is not defined"
14869 struct s { _Bool s: 1; _Bool t; } s;
14871 char a[true == 1 ? 1 : -1];
14872 char b[false == 0 ? 1 : -1];
14873 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14874 char d[(bool) 0.5 == true ? 1 : -1];
14875 /* See body of main program for 'e'. */
14876 char f[(_Bool) 0.0 == false ? 1 : -1];
14878 char h[sizeof (_Bool)];
14879 char i[sizeof s.t];
14880 enum { j = false, k = true, l = false * true, m = true * 256 };
14881 /* The following fails for
14882 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14884 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14885 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14886 /* Catch a bug in an HP-UX C compiler. See
14887 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14888 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14900 /* Refer to every declared value, to avoid compiler optimizations. */
14901 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14902 + !m + !n + !o + !p + !q + !pq);
14908 if ac_fn_c_try_compile
"$LINENO"; then :
14909 ac_cv_header_stdbool_h
=yes
14911 ac_cv_header_stdbool_h
=no
14913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14916 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14917 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14918 if test "x$ac_cv_type__Bool" = x
""yes; then :
14920 cat >>confdefs.h
<<_ACEOF
14921 #define HAVE__BOOL 1
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14934 $as_echo_n "checking for wchar_t... " >&6; }
14935 if test "${gt_cv_c_wchar_t+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <stddef.h>
14941 wchar_t foo = (wchar_t)'\0';
14950 if ac_fn_c_try_compile
"$LINENO"; then :
14951 gt_cv_c_wchar_t
=yes
14955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14958 $as_echo "$gt_cv_c_wchar_t" >&6; }
14959 if test $gt_cv_c_wchar_t = yes; then
14961 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14967 $as_echo_n "checking for unsigned long long int... " >&6; }
14968 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14971 ac_cv_type_unsigned_long_long_int
=yes
14972 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14976 /* For now, do not test the preprocessor; as of 2007 there are too many
14977 implementations with broken preprocessors. Perhaps this can
14978 be revisited in 2012. In the meantime, code should not expect
14979 #if to work with literals wider than 32 bits. */
14980 /* Test literals. */
14981 long long int ll = 9223372036854775807ll;
14982 long long int nll = -9223372036854775807LL;
14983 unsigned long long int ull = 18446744073709551615ULL;
14984 /* Test constant expressions. */
14985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14993 /* Test availability of runtime routines for shift and division. */
14994 long long int llmax = 9223372036854775807ll;
14995 unsigned long long int ullmax = 18446744073709551615ull;
14996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14997 | (llmax / ll) | (llmax % ll)
14998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14999 | (ullmax / ull) | (ullmax % ull));
15005 if ac_fn_c_try_link
"$LINENO"; then :
15008 ac_cv_type_unsigned_long_long_int
=no
15010 rm -f core conftest.err conftest.
$ac_objext \
15011 conftest
$ac_exeext conftest.
$ac_ext
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15015 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15016 if test $ac_cv_type_unsigned_long_long_int = yes; then
15018 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15025 $as_echo_n "checking for long long int... " >&6; }
15026 if test "${ac_cv_type_long_long_int+set}" = set; then :
15027 $as_echo_n "(cached) " >&6
15029 ac_cv_type_long_long_int
=yes
15030 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15031 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
15032 if test $ac_cv_type_long_long_int = yes; then
15033 if test "$cross_compiling" = yes; then :
15036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 #include <limits.h>
15041 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15042 # define LLONG_MAX (HALF - 1 + HALF)
15047 long long int n = 1;
15051 long long int m = n << i;
15054 if (LLONG_MAX / 2 < m)
15062 if ac_fn_c_try_run
"$LINENO"; then :
15065 ac_cv_type_long_long_int
=no
15067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15075 $as_echo "$ac_cv_type_long_long_int" >&6; }
15076 if test $ac_cv_type_long_long_int = yes; then
15078 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15092 GNULIB_FPRINTF_POSIX
=0;
15104 GNULIB_OBSTACK_PRINTF
=0;
15105 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15109 GNULIB_PRINTF_POSIX
=0;
15117 GNULIB_SPRINTF_POSIX
=0;
15118 GNULIB_STDIO_H_SIGPIPE
=0;
15120 GNULIB_VASPRINTF
=0;
15123 GNULIB_VFPRINTF_POSIX
=0;
15125 GNULIB_VPRINTF_POSIX
=0;
15126 GNULIB_VSNPRINTF
=0;
15127 GNULIB_VSPRINTF_POSIX
=0;
15128 HAVE_DECL_FPURGE
=1;
15129 HAVE_DECL_FSEEKO
=1;
15130 HAVE_DECL_FTELLO
=1;
15131 HAVE_DECL_GETDELIM
=1;
15132 HAVE_DECL_GETLINE
=1;
15133 HAVE_DECL_OBSTACK_PRINTF
=1;
15134 HAVE_DECL_SNPRINTF
=1;
15135 HAVE_DECL_VSNPRINTF
=1;
15153 REPLACE_GETDELIM
=0;
15155 REPLACE_OBSTACK_PRINTF
=0;
15161 REPLACE_RENAMEAT
=0;
15162 REPLACE_SNPRINTF
=0;
15164 REPLACE_STDIO_WRITE_FUNCS
=0;
15166 REPLACE_VASPRINTF
=0;
15167 REPLACE_VDPRINTF
=0;
15168 REPLACE_VFPRINTF
=0;
15170 REPLACE_VSNPRINTF
=0;
15171 REPLACE_VSPRINTF
=0;
15174 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15176 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15178 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15188 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15189 if test "${ac_cv_header_stat_broken+set}" = set; then :
15190 $as_echo_n "(cached) " >&6
15192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15194 #include <sys/types.h>
15195 #include <sys/stat.h>
15197 #if defined S_ISBLK && defined S_IFDIR
15198 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15201 #if defined S_ISBLK && defined S_IFCHR
15202 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15205 #if defined S_ISLNK && defined S_IFREG
15206 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15209 #if defined S_ISSOCK && defined S_IFREG
15210 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15214 if ac_fn_c_try_compile
"$LINENO"; then :
15215 ac_cv_header_stat_broken
=no
15217 ac_cv_header_stat_broken
=yes
15219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15222 $as_echo "$ac_cv_header_stat_broken" >&6; }
15223 if test $ac_cv_header_stat_broken = yes; then
15225 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15232 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15233 if test "${ac_cv_c_restrict+set}" = set; then :
15234 $as_echo_n "(cached) " >&6
15236 ac_cv_c_restrict
=no
15237 # The order here caters to the fact that C++ does not require restrict.
15238 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 typedef int * int_ptr;
15242 int foo (int_ptr $ac_kw ip) {
15249 int * $ac_kw t = s;
15256 if ac_fn_c_try_compile
"$LINENO"; then :
15257 ac_cv_c_restrict
=$ac_kw
15259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15260 test "$ac_cv_c_restrict" != no
&& break
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15265 $as_echo "$ac_cv_c_restrict" >&6; }
15267 case $ac_cv_c_restrict in
15269 no
) $as_echo "#define restrict /**/" >>confdefs.h
15271 *) cat >>confdefs.h
<<_ACEOF
15272 #define restrict $ac_cv_c_restrict
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15282 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15283 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15284 $as_echo_n "(cached) " >&6
15286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15293 static struct timespec x; x.tv_sec = x.tv_nsec;
15298 if ac_fn_c_try_compile
"$LINENO"; then :
15299 gl_cv_sys_struct_timespec_in_time_h
=yes
15301 gl_cv_sys_struct_timespec_in_time_h
=no
15303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15306 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15308 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15309 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15310 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15311 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15312 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15315 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15316 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <sys/time.h>
15326 static struct timespec x; x.tv_sec = x.tv_nsec;
15331 if ac_fn_c_try_compile
"$LINENO"; then :
15332 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15334 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15339 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15340 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15341 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15344 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15345 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15346 $as_echo_n "(cached) " >&6
15348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350 #include <pthread.h>
15355 static struct timespec x; x.tv_sec = x.tv_nsec;
15360 if ac_fn_c_try_compile
"$LINENO"; then :
15361 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15363 gl_cv_sys_struct_timespec_in_pthread_h
=no
15365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15368 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15369 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15370 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15389 if test $gl_cv_have_include_next = yes; then
15390 gl_cv_next_time_h
='<'time.h
'>'
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15393 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15394 if test "${gl_cv_next_time_h+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15404 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15405 *) gl_absname_cpp
="$ac_cpp" ;;
15407 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15408 sed -n '\#/time.h#{
15409 s#.*"\(.*/time.h\)".*#\1#
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15418 $as_echo "$gl_cv_next_time_h" >&6; }
15420 NEXT_TIME_H
=$gl_cv_next_time_h
15422 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15424 gl_next_as_first_directive
='<'time.h
'>'
15426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15427 gl_next_as_first_directive
=$gl_cv_next_time_h
15429 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15436 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15437 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15443 cat >>confdefs.h
<<_ACEOF
15444 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15451 GL_COND_LIBTOOL_TRUE
=
15452 GL_COND_LIBTOOL_FALSE
='#'
15454 GL_COND_LIBTOOL_TRUE
='#'
15455 GL_COND_LIBTOOL_FALSE
=
15458 gl_cond_libtool
=false
15471 gl_source_base
='lib'
15472 # Code from module allocator:
15473 # Code from module arg-nonnull:
15474 # Code from module c++defs:
15475 # Code from module careadlinkat:
15477 # Code from module crypto/md5:
15487 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15494 # Code from module dosname:
15495 # Code from module dtoastr:
15497 # Code from module extensions:
15498 # Code from module filemode:
15509 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15513 # Code from module getloadavg:
15516 # Persuade glibc <stdlib.h> to declare getloadavg().
15519 # Make sure getloadavg.c is where it belongs, at configure-time.
15520 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15521 as_fn_error
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15525 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15526 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15527 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15528 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15533 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15534 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15535 # to get the right answer into the cache.
15536 # For kstat on solaris, we need to test for libelf and libkvm to force the
15537 # definition of SVR4 below.
15538 if test $gl_have_func = no
; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15540 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15541 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15544 ac_check_lib_save_LIBS
=$LIBS
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15549 /* Override any GCC internal prototype to avoid an error.
15550 Use char because int might match the return type of a GCC
15551 builtin and then its argument prototype would still apply. */
15559 return elf_begin ();
15564 if ac_fn_c_try_link
"$LINENO"; then :
15565 ac_cv_lib_elf_elf_begin
=yes
15567 ac_cv_lib_elf_elf_begin
=no
15569 rm -f core conftest.err conftest.
$ac_objext \
15570 conftest
$ac_exeext conftest.
$ac_ext
15571 LIBS
=$ac_check_lib_save_LIBS
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15574 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15575 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15580 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15581 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15584 ac_check_lib_save_LIBS
=$LIBS
15586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15599 return kvm_open ();
15604 if ac_fn_c_try_link
"$LINENO"; then :
15605 ac_cv_lib_kvm_kvm_open
=yes
15607 ac_cv_lib_kvm_kvm_open
=no
15609 rm -f core conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15611 LIBS
=$ac_check_lib_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15614 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15615 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15619 # Check for the 4.4BSD definition of getloadavg.
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15621 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15622 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15623 $as_echo_n "(cached) " >&6
15625 ac_check_lib_save_LIBS
=$LIBS
15626 LIBS
="-lutil $LIBS"
15627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15630 /* Override any GCC internal prototype to avoid an error.
15631 Use char because int might match the return type of a GCC
15632 builtin and then its argument prototype would still apply. */
15636 char getloadavg ();
15640 return getloadavg ();
15645 if ac_fn_c_try_link
"$LINENO"; then :
15646 ac_cv_lib_util_getloadavg
=yes
15648 ac_cv_lib_util_getloadavg
=no
15650 rm -f core conftest.err conftest.
$ac_objext \
15651 conftest
$ac_exeext conftest.
$ac_ext
15652 LIBS
=$ac_check_lib_save_LIBS
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15655 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15656 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15657 LIBS
="-lutil $LIBS" gl_have_func
=yes
15662 if test $gl_have_func = no
; then
15663 # There is a commonly available library for RS/6000 AIX.
15664 # Since it is not a standard part of AIX, it might be installed locally.
15665 gl_getloadavg_LIBS
=$LIBS
15666 LIBS
="-L/usr/local/lib $LIBS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15668 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15669 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15670 $as_echo_n "(cached) " >&6
15672 ac_check_lib_save_LIBS
=$LIBS
15673 LIBS
="-lgetloadavg $LIBS"
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply. */
15683 char getloadavg ();
15687 return getloadavg ();
15692 if ac_fn_c_try_link
"$LINENO"; then :
15693 ac_cv_lib_getloadavg_getloadavg
=yes
15695 ac_cv_lib_getloadavg_getloadavg
=no
15697 rm -f core conftest.err conftest.
$ac_objext \
15698 conftest
$ac_exeext conftest.
$ac_ext
15699 LIBS
=$ac_check_lib_save_LIBS
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15702 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15703 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15704 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15706 LIBS
=$gl_getloadavg_LIBS
15711 # Set up the replacement function if necessary.
15712 if test $gl_have_func = no
; then
15721 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15724 # Figure out what our getloadavg.c needs.
15726 # Solaris has libkstat which does not require root.
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15728 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15729 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15730 $as_echo_n "(cached) " >&6
15732 ac_check_lib_save_LIBS
=$LIBS
15733 LIBS
="-lkstat $LIBS"
15734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15737 /* Override any GCC internal prototype to avoid an error.
15738 Use char because int might match the return type of a GCC
15739 builtin and then its argument prototype would still apply. */
15743 char kstat_open ();
15747 return kstat_open ();
15752 if ac_fn_c_try_link
"$LINENO"; then :
15753 ac_cv_lib_kstat_kstat_open
=yes
15755 ac_cv_lib_kstat_kstat_open
=no
15757 rm -f core conftest.err conftest.
$ac_objext \
15758 conftest
$ac_exeext conftest.
$ac_ext
15759 LIBS
=$ac_check_lib_save_LIBS
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15762 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15763 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15764 cat >>confdefs.h
<<_ACEOF
15765 #define HAVE_LIBKSTAT 1
15768 LIBS
="-lkstat $LIBS"
15772 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15774 # On HPUX9, an unprivileged user can get load averages this way.
15775 if test $gl_have_func = no
; then
15776 for ac_func
in pstat_getdynamic
15778 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15779 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15780 cat >>confdefs.h
<<_ACEOF
15781 #define HAVE_PSTAT_GETDYNAMIC 1
15789 # AIX has libperfstat which does not require root
15790 if test $gl_have_func = no
; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15792 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15793 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15794 $as_echo_n "(cached) " >&6
15796 ac_check_lib_save_LIBS
=$LIBS
15797 LIBS
="-lperfstat $LIBS"
15798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15801 /* Override any GCC internal prototype to avoid an error.
15802 Use char because int might match the return type of a GCC
15803 builtin and then its argument prototype would still apply. */
15807 char perfstat_cpu_total ();
15811 return perfstat_cpu_total ();
15816 if ac_fn_c_try_link
"$LINENO"; then :
15817 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15819 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15821 rm -f core conftest.err conftest.
$ac_objext \
15822 conftest
$ac_exeext conftest.
$ac_ext
15823 LIBS
=$ac_check_lib_save_LIBS
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15826 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15827 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15828 cat >>confdefs.h
<<_ACEOF
15829 #define HAVE_LIBPERFSTAT 1
15832 LIBS
="-lperfstat $LIBS"
15836 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15839 if test $gl_have_func = no
; then
15840 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15844 $as_echo "#define DGUX 1" >>confdefs.h
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15847 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15848 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15851 ac_check_lib_save_LIBS
=$LIBS
15853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15862 char dg_sys_info ();
15866 return dg_sys_info ();
15871 if ac_fn_c_try_link
"$LINENO"; then :
15872 ac_cv_lib_dgc_dg_sys_info
=yes
15874 ac_cv_lib_dgc_dg_sys_info
=no
15876 rm -f core conftest.err conftest.
$ac_objext \
15877 conftest
$ac_exeext conftest.
$ac_ext
15878 LIBS
=$ac_check_lib_save_LIBS
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15881 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15882 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15883 cat >>confdefs.h
<<_ACEOF
15884 #define HAVE_LIBDGC 1
15896 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15897 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15898 # Irix 4.0.5F has the header but not the library.
15899 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15900 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15903 $as_echo "#define SVR4 1" >>confdefs.h
15907 if test $gl_have_func = no
; then
15908 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15909 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15912 $as_echo "#define UMAX 1" >>confdefs.h
15915 $as_echo "#define UMAX4_3 1" >>confdefs.h
15922 if test $gl_have_func = no
; then
15923 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15924 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15925 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15932 if test $gl_have_func = no
; then
15933 for ac_header
in mach
/mach.h
15935 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15936 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15937 cat >>confdefs.h
<<_ACEOF
15938 #define HAVE_MACH_MACH_H 1
15947 for ac_header
in nlist.h
15949 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15950 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15951 cat >>confdefs.h
<<_ACEOF
15952 #define HAVE_NLIST_H 1
15954 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15956 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15958 cat >>confdefs.h
<<_ACEOF
15959 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15972 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15973 x.n_un.n_name = "";
15981 if ac_fn_c_try_link
"$LINENO"; then :
15983 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15986 rm -f core conftest.err conftest.
$ac_objext \
15987 conftest
$ac_exeext conftest.
$ac_ext
15997 if test "x$gl_save_LIBS" = x
; then
15998 GETLOADAVG_LIBS
=$LIBS
16000 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16005 # Test whether the system declares getloadavg. Solaris has the function
16006 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16007 for ac_header
in sys
/loadavg.h
16009 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16010 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
16011 cat >>confdefs.h
<<_ACEOF
16012 #define HAVE_SYS_LOADAVG_H 1
16019 if test $ac_cv_header_sys_loadavg_h = yes; then
16020 HAVE_SYS_LOADAVG_H
=1
16022 HAVE_SYS_LOADAVG_H
=0
16024 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16025 # include <sys/loadavg.h>
16027 #include <stdlib.h>
16029 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
16032 HAVE_DECL_GETLOADAVG
=0
16039 GNULIB_GETLOADAVG
=1
16043 # Code from module getopt-gnu:
16050 # Code from module getopt-posix:
16056 if test -n "$gl_replace_getopt"; then :
16062 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16066 GNULIB_UNISTD_H_GETOPT
=1
16075 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16085 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16095 # Code from module gettext-h:
16098 # Code from module ignore-value:
16100 # Code from module include_next:
16101 # Code from module intprops:
16102 # Code from module lstat:
16106 if test $ac_cv_func_lstat = yes; then
16108 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
16111 # Prerequisites of lib/lstat.c.
16124 # Code from module mktime:
16130 if test $APPLE_UNIVERSAL_BUILD = 1; then
16131 # A universal build on Apple MacOS X platforms.
16132 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16133 # But we need a configuration result that is valid in both modes.
16134 ac_cv_func_working_mktime
=no
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16137 $as_echo_n "checking for working mktime... " >&6; }
16138 if test "${ac_cv_func_working_mktime+set}" = set; then :
16139 $as_echo_n "(cached) " >&6
16141 if test "$cross_compiling" = yes; then :
16142 ac_cv_func_working_mktime
=no
16144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 /* Test program from Paul Eggert and Tony Leneis. */
16147 #include <limits.h>
16148 #include <stdlib.h>
16151 #ifdef HAVE_UNISTD_H
16152 # include <unistd.h>
16156 # define alarm(X) /* empty */
16159 /* Work around redefinition to rpl_putenv by other config tests. */
16162 static time_t time_t_max;
16163 static time_t time_t_min;
16165 /* Values we'll use to set the TZ environment variable. */
16166 static char *tz_strings[] = {
16167 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16168 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16170 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16172 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16173 Based on a problem report from Andreas Jaeger. */
16175 spring_forward_gap ()
16177 /* glibc (up to about 1998-10-07) failed this test. */
16180 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16181 instead of "TZ=America/Vancouver" in order to detect the bug even
16182 on systems that don't support the Olson extension, or don't have the
16183 full zoneinfo tables installed. */
16184 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16193 return mktime (&tm) != (time_t) -1;
16197 mktime_test1 (time_t now)
16200 return ! (lt = localtime (&now)) || mktime (lt) == now;
16204 mktime_test (time_t now)
16206 return (mktime_test1 (now)
16207 && mktime_test1 ((time_t) (time_t_max - now))
16208 && mktime_test1 ((time_t) (time_t_min + now)));
16214 /* Based on code from Ariel Faigon. */
16224 return tm.tm_mon == 2 && tm.tm_mday == 31;
16228 bigtime_test (int j)
16232 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16233 now = mktime (&tm);
16234 if (now != (time_t) -1)
16236 struct tm *lt = localtime (&now);
16238 && lt->tm_year == tm.tm_year
16239 && lt->tm_mon == tm.tm_mon
16240 && lt->tm_mday == tm.tm_mday
16241 && lt->tm_hour == tm.tm_hour
16242 && lt->tm_min == tm.tm_min
16243 && lt->tm_sec == tm.tm_sec
16244 && lt->tm_yday == tm.tm_yday
16245 && lt->tm_wday == tm.tm_wday
16246 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16247 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16256 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16257 ignoring leap seconds. */
16258 unsigned long int answer = 2527315200UL;
16262 tm.tm_year = 2050 - 1900;
16265 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16268 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16269 instead of "TZ=America/Vancouver" in order to detect the bug even
16270 on systems that don't support the Olson extension, or don't have the
16271 full zoneinfo tables installed. */
16272 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16276 /* Check that the result is either a failure, or close enough
16277 to the correct answer that we can assume the discrepancy is
16278 due to leap seconds. */
16279 return (t == (time_t) -1
16280 || (0 < t && answer - 120 <= t && t <= answer + 120));
16289 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16290 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16292 /* This test makes some buggy mktime implementations loop.
16293 Give up after 60 seconds; a mktime slower than that
16294 isn't worth using anyway. */
16297 time_t_max = (! time_t_signed
16299 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16301 time_t_min = (! time_t_signed
16303 : time_t_signed_magnitude
16307 delta = time_t_max / 997; /* a suitable prime number */
16308 for (i = 0; i < N_STRINGS; i++)
16311 putenv (tz_strings[i]);
16313 for (t = 0; t <= time_t_max - delta; t += delta)
16314 if (! mktime_test (t))
16316 if (! (mktime_test ((time_t) 1)
16317 && mktime_test ((time_t) (60 * 60))
16318 && mktime_test ((time_t) (60 * 60 * 24))))
16321 for (j = 1; ; j <<= 1)
16322 if (! bigtime_test (j))
16324 else if (INT_MAX / 2 < j)
16326 if (! bigtime_test (INT_MAX))
16329 if (! irix_6_4_bug ())
16331 if (! spring_forward_gap ())
16333 if (! year_2050_test ())
16338 if ac_fn_c_try_run
"$LINENO"; then :
16339 ac_cv_func_working_mktime
=yes
16341 ac_cv_func_working_mktime
=no
16343 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16344 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16349 $as_echo "$ac_cv_func_working_mktime" >&6; }
16350 if test $ac_cv_func_working_mktime = no
; then
16359 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16363 if test $ac_cv_func_working_mktime = no
; then
16379 # Code from module multiarch:
16381 # Code from module readlink:
16385 if test $ac_cv_func_readlink = no
; then
16395 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16402 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16403 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16408 #include <unistd.h>
16409 /* Cause compilation failure if original declaration has wrong type. */
16410 ssize_t readlink (const char *, char *, size_t);
16419 if ac_fn_c_try_compile
"$LINENO"; then :
16420 gl_cv_decl_readlink_works
=yes
16422 gl_cv_decl_readlink_works
=no
16424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16427 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16429 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16430 if test "${gl_cv_func_readlink_works+set}" = set; then :
16431 $as_echo_n "(cached) " >&6
16433 # We have readlink, so assume ln -s works.
16434 ln -s conftest.no-such conftest.link
16435 ln -s conftest.link conftest.lnk2
16436 if test "$cross_compiling" = yes; then :
16437 gl_cv_func_readlink_works
="guessing no"
16439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 #include <unistd.h>
16447 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16452 if ac_fn_c_try_run
"$LINENO"; then :
16453 gl_cv_func_readlink_works
=yes
16455 gl_cv_func_readlink_works
=no
16457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16461 rm -f conftest.link conftest.lnk2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16464 $as_echo "$gl_cv_func_readlink_works" >&6; }
16465 if test "$gl_cv_func_readlink_works" != yes; then
16467 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16478 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16480 elif test "$gl_cv_decl_readlink_works" != yes; then
16490 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16502 # Code from module socklen:
16503 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16504 /* <sys/types.h> is not needed according to POSIX, but the
16505 <sys/socket.h> in i386-unknown-freebsd4.10 and
16506 powerpc-apple-darwin5.5 required it. */
16507 #include <sys/types.h>
16508 #if HAVE_SYS_SOCKET_H
16509 # include <sys/socket.h>
16510 #elif HAVE_WS2TCPIP_H
16511 # include <ws2tcpip.h>
16515 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16519 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16520 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16521 $as_echo_n "(cached) " >&6
16523 # Systems have either "struct sockaddr *" or
16524 # "void *" as the second argument to getpeername
16525 gl_cv_socklen_t_equiv
=
16526 for arg2
in "struct sockaddr" void
; do
16527 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
16528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <sys/types.h>
16531 #include <sys/socket.h>
16533 int getpeername (int, $arg2 *, $t *);
16538 getpeername (0, 0, &len);
16543 if ac_fn_c_try_compile
"$LINENO"; then :
16544 gl_cv_socklen_t_equiv
="$t"
16546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16547 test "$gl_cv_socklen_t_equiv" != "" && break
16549 test "$gl_cv_socklen_t_equiv" != "" && break
16554 if test "$gl_cv_socklen_t_equiv" = ""; then
16555 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16558 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16560 cat >>confdefs.h
<<_ACEOF
16561 #define socklen_t $gl_cv_socklen_t_equiv
16566 # Code from module ssize_t:
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16569 $as_echo_n "checking for ssize_t... " >&6; }
16570 if test "${gt_cv_ssize_t+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575 #include <sys/types.h>
16579 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16585 if ac_fn_c_try_compile
"$LINENO"; then :
16590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16593 $as_echo "$gt_cv_ssize_t" >&6; }
16594 if test $gt_cv_ssize_t = no
; then
16596 $as_echo "#define ssize_t int" >>confdefs.h
16600 # Code from module stat:
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16605 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16606 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16607 $as_echo_n "(cached) " >&6
16609 if test "$cross_compiling" = yes; then :
16611 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16612 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #include <sys/stat.h>
16622 struct stat st; return stat (".", &st) != stat ("./", &st);
16627 if ac_fn_c_try_run
"$LINENO"; then :
16628 gl_cv_func_stat_dir_slash
=yes
16630 gl_cv_func_stat_dir_slash
=no
16632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16638 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16640 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16641 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16642 $as_echo_n "(cached) " >&6
16645 # Assume that if we have lstat, we can also check symlinks.
16646 if test $ac_cv_func_lstat = yes; then
16647 ln -s conftest.tmp conftest.lnk
16649 if test "$cross_compiling" = yes; then :
16650 gl_cv_func_stat_file_slash
="guessing no"
16652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #include <sys/stat.h>
16661 if (!stat ("conftest.tmp/", &st))
16664 if (!stat ("conftest.lnk/", &st))
16673 if ac_fn_c_try_run
"$LINENO"; then :
16674 gl_cv_func_stat_file_slash
=yes
16676 gl_cv_func_stat_file_slash
=no
16678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16682 rm -f conftest.tmp conftest.lnk
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16685 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16686 case $gl_cv_func_stat_dir_slash in
16687 *no
) REPLACE_STAT
=1
16689 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16692 case $gl_cv_func_stat_file_slash in
16693 *no
) REPLACE_STAT
=1
16695 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16698 if test $REPLACE_STAT = 1; then
16707 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16719 # Code from module stdbool:
16723 # Define two additional variables used in the Makefile substitution.
16725 if test "$ac_cv_header_stdbool_h" = yes; then
16728 STDBOOL_H
='stdbool.h'
16731 if test -n "$STDBOOL_H"; then
16732 GL_GENERATE_STDBOOL_H_TRUE
=
16733 GL_GENERATE_STDBOOL_H_FALSE
='#'
16735 GL_GENERATE_STDBOOL_H_TRUE
='#'
16736 GL_GENERATE_STDBOOL_H_FALSE
=
16740 if test "$ac_cv_type__Bool" = yes; then
16747 # Code from module stddef:
16752 if test $gt_cv_c_wchar_t = no
; then
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16757 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16758 if test "${gl_cv_decl_null_works+set}" = set; then :
16759 $as_echo_n "(cached) " >&6
16761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763 #include <stddef.h>
16764 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16774 if ac_fn_c_try_compile
"$LINENO"; then :
16775 gl_cv_decl_null_works
=yes
16777 gl_cv_decl_null_works
=no
16779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16782 $as_echo "$gl_cv_decl_null_works" >&6; }
16783 if test $gl_cv_decl_null_works = no
; then
16788 if test -n "$STDDEF_H"; then
16789 GL_GENERATE_STDDEF_H_TRUE
=
16790 GL_GENERATE_STDDEF_H_FALSE
='#'
16792 GL_GENERATE_STDDEF_H_TRUE
='#'
16793 GL_GENERATE_STDDEF_H_FALSE
=
16796 if test -n "$STDDEF_H"; then
16805 if test $gl_cv_have_include_next = yes; then
16806 gl_cv_next_stddef_h
='<'stddef.h
'>'
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16809 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16810 if test "${gl_cv_next_stddef_h+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16816 #include <stddef.h>
16820 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16821 *) gl_absname_cpp
="$ac_cpp" ;;
16823 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16824 sed -n '\#/stddef.h#{
16825 s#.*"\(.*/stddef.h\)".*#\1#
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16834 $as_echo "$gl_cv_next_stddef_h" >&6; }
16836 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16838 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16840 gl_next_as_first_directive
='<'stddef.h
'>'
16842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16843 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16845 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16852 # Code from module stdint:
16856 if test $ac_cv_type_long_long_int = yes; then
16857 HAVE_LONG_LONG_INT
=1
16859 HAVE_LONG_LONG_INT
=0
16863 if test $ac_cv_type_unsigned_long_long_int = yes; then
16864 HAVE_UNSIGNED_LONG_LONG_INT
=1
16866 HAVE_UNSIGNED_LONG_LONG_INT
=0
16871 if test $ac_cv_header_wchar_h = yes; then
16878 if test $ac_cv_header_inttypes_h = yes; then
16885 if test $ac_cv_header_sys_types_h = yes; then
16901 if test $gl_cv_have_include_next = yes; then
16902 gl_cv_next_stdint_h
='<'stdint.h
'>'
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16905 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16906 if test "${gl_cv_next_stdint_h+set}" = set; then :
16907 $as_echo_n "(cached) " >&6
16910 if test $ac_cv_header_stdint_h = yes; then
16913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 #include <stdint.h>
16919 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16920 *) gl_absname_cpp
="$ac_cpp" ;;
16922 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16923 sed -n '\#/stdint.h#{
16924 s#.*"\(.*/stdint.h\)".*#\1#
16930 gl_cv_next_stdint_h
='<'stdint.h
'>'
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16936 $as_echo "$gl_cv_next_stdint_h" >&6; }
16938 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16940 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16942 gl_next_as_first_directive
='<'stdint.h
'>'
16944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16945 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16947 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16952 if test $ac_cv_header_stdint_h = yes; then
16959 if test $ac_cv_header_stdint_h = yes; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16961 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16962 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16963 $as_echo_n "(cached) " >&6
16965 gl_cv_header_working_stdint_h
=no
16966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16970 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16971 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16972 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16973 #include <stdint.h>
16974 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16975 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16976 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16980 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16981 included before <wchar.h>. */
16982 #include <stddef.h>
16983 #include <signal.h>
16985 # include <stdio.h>
16987 # include <wchar.h>
16992 int8_t a1 = INT8_MAX;
16993 int8_t a1min = INT8_MIN;
16996 int16_t a2 = INT16_MAX;
16997 int16_t a2min = INT16_MIN;
17000 int32_t a3 = INT32_MAX;
17001 int32_t a3min = INT32_MIN;
17004 int64_t a4 = INT64_MAX;
17005 int64_t a4min = INT64_MIN;
17008 uint8_t b1 = UINT8_MAX;
17010 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17013 uint16_t b2 = UINT16_MAX;
17016 uint32_t b3 = UINT32_MAX;
17019 uint64_t b4 = UINT64_MAX;
17021 int_least8_t c1 = INT8_C (0x7f);
17022 int_least8_t c1max = INT_LEAST8_MAX;
17023 int_least8_t c1min = INT_LEAST8_MIN;
17024 int_least16_t c2 = INT16_C (0x7fff);
17025 int_least16_t c2max = INT_LEAST16_MAX;
17026 int_least16_t c2min = INT_LEAST16_MIN;
17027 int_least32_t c3 = INT32_C (0x7fffffff);
17028 int_least32_t c3max = INT_LEAST32_MAX;
17029 int_least32_t c3min = INT_LEAST32_MIN;
17030 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17031 int_least64_t c4max = INT_LEAST64_MAX;
17032 int_least64_t c4min = INT_LEAST64_MIN;
17033 uint_least8_t d1 = UINT8_C (0xff);
17034 uint_least8_t d1max = UINT_LEAST8_MAX;
17035 uint_least16_t d2 = UINT16_C (0xffff);
17036 uint_least16_t d2max = UINT_LEAST16_MAX;
17037 uint_least32_t d3 = UINT32_C (0xffffffff);
17038 uint_least32_t d3max = UINT_LEAST32_MAX;
17039 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17040 uint_least64_t d4max = UINT_LEAST64_MAX;
17041 int_fast8_t e1 = INT_FAST8_MAX;
17042 int_fast8_t e1min = INT_FAST8_MIN;
17043 int_fast16_t e2 = INT_FAST16_MAX;
17044 int_fast16_t e2min = INT_FAST16_MIN;
17045 int_fast32_t e3 = INT_FAST32_MAX;
17046 int_fast32_t e3min = INT_FAST32_MIN;
17047 int_fast64_t e4 = INT_FAST64_MAX;
17048 int_fast64_t e4min = INT_FAST64_MIN;
17049 uint_fast8_t f1 = UINT_FAST8_MAX;
17050 uint_fast16_t f2 = UINT_FAST16_MAX;
17051 uint_fast32_t f3 = UINT_FAST32_MAX;
17052 uint_fast64_t f4 = UINT_FAST64_MAX;
17054 intptr_t g = INTPTR_MAX;
17055 intptr_t gmin = INTPTR_MIN;
17058 uintptr_t h = UINTPTR_MAX;
17060 intmax_t i = INTMAX_MAX;
17061 uintmax_t j = UINTMAX_MAX;
17063 #include <limits.h> /* for CHAR_BIT */
17064 #define TYPE_MINIMUM(t) \
17065 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17066 #define TYPE_MAXIMUM(t) \
17067 ((t) ((t) 0 < (t) -1 \
17069 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17072 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17073 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17075 /* Detect bug in FreeBSD 6.0 / ia64. */
17076 int check_SIG_ATOMIC:
17077 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17078 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17080 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17082 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17083 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17085 /* Detect bug in mingw. */
17087 WINT_MIN == TYPE_MINIMUM (wint_t)
17088 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17091 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17093 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17094 int check_UINT16_C:
17095 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17097 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17099 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17102 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17105 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17108 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17110 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17111 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17112 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17113 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17114 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17115 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17116 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17117 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17118 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17119 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17120 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17131 if ac_fn_c_try_compile
"$LINENO"; then :
17132 if test "$cross_compiling" = yes; then :
17133 gl_cv_header_working_stdint_h
=yes
17136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17140 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17141 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17143 #include <stdint.h>
17146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17147 included before <wchar.h>. */
17148 #include <stddef.h>
17149 #include <signal.h>
17151 # include <stdio.h>
17153 # include <wchar.h>
17158 #include <string.h>
17159 #define MVAL(macro) MVAL1(macro)
17160 #define MVAL1(expression) #expression
17161 static const char *macro_values[] =
17195 for (mv = macro_values; *mv != NULL; mv++)
17197 const char *value = *mv;
17198 /* Test whether it looks like a cast expression. */
17199 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17200 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17201 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17202 || strncmp (value, "((int)"/*)*/, 6) == 0
17203 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17204 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17205 return mv - macro_values + 1;
17213 if ac_fn_c_try_run
"$LINENO"; then :
17214 gl_cv_header_working_stdint_h
=yes
17216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17226 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17228 if test "$gl_cv_header_working_stdint_h" = yes; then
17231 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17233 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17234 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17235 eval as_val
=\$
$as_ac_Header
17236 if test "x$as_val" = x
""yes; then :
17237 cat >>confdefs.h
<<_ACEOF
17238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17245 if test $ac_cv_header_sys_inttypes_h = yes; then
17246 HAVE_SYS_INTTYPES_H
=1
17248 HAVE_SYS_INTTYPES_H
=0
17251 if test $ac_cv_header_sys_bitypes_h = yes; then
17252 HAVE_SYS_BITYPES_H
=1
17254 HAVE_SYS_BITYPES_H
=0
17260 if test $APPLE_UNIVERSAL_BUILD = 0; then
17263 for gltype
in ptrdiff_t size_t
; do
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17265 $as_echo_n "checking for bit size of $gltype... " >&6; }
17266 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17267 $as_echo_n "(cached) " >&6
17269 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17270 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17271 included before <wchar.h>. */
17272 #include <stddef.h>
17273 #include <signal.h>
17275 # include <stdio.h>
17277 # include <wchar.h>
17280 #include <limits.h>"; then :
17286 eval gl_cv_bitsizeof_
${gltype}=\
$result
17289 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17291 $as_echo "$ac_res" >&6; }
17292 eval result
=\
$gl_cv_bitsizeof_${gltype}
17293 if test $result = unknown
; then
17296 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17297 cat >>confdefs.h
<<_ACEOF
17298 #define BITSIZEOF_${GLTYPE} $result
17301 eval BITSIZEOF_
${GLTYPE}=\
$result
17308 for gltype
in sig_atomic_t wchar_t wint_t
; do
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17310 $as_echo_n "checking for bit size of $gltype... " >&6; }
17311 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17312 $as_echo_n "(cached) " >&6
17314 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17315 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17316 included before <wchar.h>. */
17317 #include <stddef.h>
17318 #include <signal.h>
17320 # include <stdio.h>
17322 # include <wchar.h>
17325 #include <limits.h>"; then :
17331 eval gl_cv_bitsizeof_
${gltype}=\
$result
17334 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17336 $as_echo "$ac_res" >&6; }
17337 eval result
=\
$gl_cv_bitsizeof_${gltype}
17338 if test $result = unknown
; then
17341 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17342 cat >>confdefs.h
<<_ACEOF
17343 #define BITSIZEOF_${GLTYPE} $result
17346 eval BITSIZEOF_
${GLTYPE}=\
$result
17352 for gltype
in sig_atomic_t wchar_t wint_t
; do
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17354 $as_echo_n "checking whether $gltype is signed... " >&6; }
17355 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17356 $as_echo_n "(cached) " >&6
17358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17361 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17362 included before <wchar.h>. */
17363 #include <stddef.h>
17364 #include <signal.h>
17366 # include <stdio.h>
17368 # include <wchar.h>
17371 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17380 if ac_fn_c_try_compile
"$LINENO"; then :
17385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17386 eval gl_cv_type_
${gltype}_signed
=\
$result
17389 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17391 $as_echo "$ac_res" >&6; }
17392 eval result
=\
$gl_cv_type_${gltype}_signed
17393 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17394 if test "$result" = yes; then
17395 cat >>confdefs.h
<<_ACEOF
17396 #define HAVE_SIGNED_${GLTYPE} 1
17399 eval HAVE_SIGNED_
${GLTYPE}=1
17401 eval HAVE_SIGNED_
${GLTYPE}=0
17406 gl_cv_type_ptrdiff_t_signed
=yes
17407 gl_cv_type_size_t_signed
=no
17408 if test $APPLE_UNIVERSAL_BUILD = 0; then
17411 for gltype
in ptrdiff_t size_t
; do
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17413 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17414 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17415 $as_echo_n "(cached) " >&6
17417 eval gl_cv_type_
${gltype}_suffix
=no
17418 eval result
=\
$gl_cv_type_${gltype}_signed
17419 if test "$result" = yes; then
17424 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17426 '') gltype1
='int';;
17427 l
) gltype1
='long int';;
17428 ll
) gltype1
='long long int';;
17429 i64
) gltype1
='__int64';;
17430 u
) gltype1
='unsigned int';;
17431 ul
) gltype1
='unsigned long int';;
17432 ull
) gltype1
='unsigned long long int';;
17433 ui64
)gltype1
='unsigned __int64';;
17435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17439 included before <wchar.h>. */
17440 #include <stddef.h>
17441 #include <signal.h>
17443 # include <stdio.h>
17445 # include <wchar.h>
17448 extern $gltype foo;
17449 extern $gltype1 foo;
17458 if ac_fn_c_try_compile
"$LINENO"; then :
17459 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17462 eval result
=\
$gl_cv_type_${gltype}_suffix
17463 test "$result" != no
&& break
17466 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17468 $as_echo "$ac_res" >&6; }
17469 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17470 eval result
=\
$gl_cv_type_${gltype}_suffix
17471 test "$result" = no
&& result
=
17472 eval ${GLTYPE}_SUFFIX
=\
$result
17473 cat >>confdefs.h
<<_ACEOF
17474 #define ${GLTYPE}_SUFFIX $result
17483 for gltype
in sig_atomic_t wchar_t wint_t
; do
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17485 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17486 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17487 $as_echo_n "(cached) " >&6
17489 eval gl_cv_type_
${gltype}_suffix
=no
17490 eval result
=\
$gl_cv_type_${gltype}_signed
17491 if test "$result" = yes; then
17496 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17498 '') gltype1
='int';;
17499 l
) gltype1
='long int';;
17500 ll
) gltype1
='long long int';;
17501 i64
) gltype1
='__int64';;
17502 u
) gltype1
='unsigned int';;
17503 ul
) gltype1
='unsigned long int';;
17504 ull
) gltype1
='unsigned long long int';;
17505 ui64
)gltype1
='unsigned __int64';;
17507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17510 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17511 included before <wchar.h>. */
17512 #include <stddef.h>
17513 #include <signal.h>
17515 # include <stdio.h>
17517 # include <wchar.h>
17520 extern $gltype foo;
17521 extern $gltype1 foo;
17530 if ac_fn_c_try_compile
"$LINENO"; then :
17531 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17534 eval result
=\
$gl_cv_type_${gltype}_suffix
17535 test "$result" != no
&& break
17538 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17540 $as_echo "$ac_res" >&6; }
17541 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17542 eval result
=\
$gl_cv_type_${gltype}_suffix
17543 test "$result" = no
&& result
=
17544 eval ${GLTYPE}_SUFFIX
=\
$result
17545 cat >>confdefs.h
<<_ACEOF
17546 #define ${GLTYPE}_SUFFIX $result
17556 if test -n "$STDINT_H"; then
17557 GL_GENERATE_STDINT_H_TRUE
=
17558 GL_GENERATE_STDINT_H_FALSE
='#'
17560 GL_GENERATE_STDINT_H_TRUE
='#'
17561 GL_GENERATE_STDINT_H_FALSE
=
17565 # Code from module stdio:
17577 if test $gl_cv_have_include_next = yes; then
17578 gl_cv_next_stdio_h
='<'stdio.h
'>'
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17581 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17582 if test "${gl_cv_next_stdio_h+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17592 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17593 *) gl_absname_cpp
="$ac_cpp" ;;
17595 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17596 sed -n '\#/stdio.h#{
17597 s#.*"\(.*/stdio.h\)".*#\1#
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17606 $as_echo "$gl_cv_next_stdio_h" >&6; }
17608 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17610 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17612 gl_next_as_first_directive
='<'stdio.h
'>'
17614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17615 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17617 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17636 # Code from module stdlib:
17647 if test $gl_cv_have_include_next = yes; then
17648 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17651 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17652 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17653 $as_echo_n "(cached) " >&6
17656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658 #include <stdlib.h>
17662 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17663 *) gl_absname_cpp
="$ac_cpp" ;;
17665 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17666 sed -n '\#/stdlib.h#{
17667 s#.*"\(.*/stdlib.h\)".*#\1#
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17676 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17678 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17680 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17682 gl_next_as_first_directive
='<'stdlib.h
'>'
17684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17685 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17687 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17695 # Code from module strftime:
17706 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17709 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17717 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17721 # Code from module symlink:
17725 if test $ac_cv_func_symlink = no
; then
17735 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17739 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17740 if test "${gl_cv_func_symlink_works+set}" = set; then :
17741 $as_echo_n "(cached) " >&6
17743 if test "$cross_compiling" = yes; then :
17744 gl_cv_func_symlink_works
="guessing no"
17746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #include <unistd.h>
17754 if (!symlink ("a", "conftest.link/"))
17756 if (symlink ("conftest.f", "conftest.lnk2"))
17758 else if (!symlink ("a", "conftest.lnk2/"))
17766 if ac_fn_c_try_run
"$LINENO"; then :
17767 gl_cv_func_symlink_works
=yes
17769 gl_cv_func_symlink_works
=no
17771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17775 rm -f conftest.f conftest.link conftest.lnk2
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17778 $as_echo "$gl_cv_func_symlink_works" >&6; }
17779 if test "$gl_cv_func_symlink_works" != yes; then
17789 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17801 # Code from module sys_stat:
17818 if test $gl_cv_have_include_next = yes; then
17819 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17822 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17823 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17824 $as_echo_n "(cached) " >&6
17827 if test $ac_cv_header_sys_stat_h = yes; then
17830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 #include <sys/stat.h>
17836 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17837 *) gl_absname_cpp
="$ac_cpp" ;;
17839 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17840 sed -n '\#/sys/stat.h#{
17841 s#.*"\(.*/sys/stat.h\)".*#\1#
17847 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17853 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17855 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17857 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17859 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17862 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17864 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17870 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17871 #include <sys/stat.h>
17873 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
17877 $as_echo "#define nlink_t int" >>confdefs.h
17885 # Code from module time:
17889 # Code from module time_r:
17897 if test $ac_cv_have_decl_localtime_r = no
; then
17898 HAVE_DECL_LOCALTIME_R
=0
17902 if test $ac_cv_func_localtime_r = yes; then
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17905 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17906 if test "${gl_cv_time_r_posix+set}" = set; then :
17907 $as_echo_n "(cached) " >&6
17909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17915 /* We don't need to append 'restrict's to the argument types,
17916 even though the POSIX signature has the 'restrict's,
17917 since C99 says they can't affect type compatibility. */
17918 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17920 /* Check the return type is a pointer.
17921 On HP-UX 10 it is 'int'. */
17922 *localtime_r (0, 0);
17928 if ac_fn_c_try_compile
"$LINENO"; then :
17929 gl_cv_time_r_posix
=yes
17931 gl_cv_time_r_posix
=no
17933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17937 $as_echo "$gl_cv_time_r_posix" >&6; }
17938 if test $gl_cv_time_r_posix = yes; then
17939 REPLACE_LOCALTIME_R
=0
17941 REPLACE_LOCALTIME_R
=1
17946 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17955 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17969 # Code from module unistd:
17983 if test $gl_cv_have_include_next = yes; then
17984 gl_cv_next_unistd_h
='<'unistd.h
'>'
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17987 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17988 if test "${gl_cv_next_unistd_h+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17992 if test $ac_cv_header_unistd_h = yes; then
17995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 #include <unistd.h>
18001 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18002 *) gl_absname_cpp
="$ac_cpp" ;;
18004 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18005 sed -n '\#/unistd.h#{
18006 s#.*"\(.*/unistd.h\)".*#\1#
18012 gl_cv_next_unistd_h
='<'unistd.h
'>'
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18018 $as_echo "$gl_cv_next_unistd_h" >&6; }
18020 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
18022 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18024 gl_next_as_first_directive
='<'unistd.h
'>'
18026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18027 gl_next_as_first_directive
=$gl_cv_next_unistd_h
18029 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
18034 if test $ac_cv_header_unistd_h = yes; then
18043 # Code from module warn-on-use:
18044 # End of code from modules
18065 gl_source_base
='tests'
18066 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
18068 gl_module_indicator_condition
=$gltests_WITNESS
18078 LIBGNU_LIBDEPS
="$gl_libdeps"
18080 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
18085 for ac_func
in grantpt
18087 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18088 if test "x$ac_cv_func_grantpt" = x
""yes; then :
18089 cat >>confdefs.h
<<_ACEOF
18090 #define HAVE_GRANTPT 1
18097 # PTY-related GNU extensions.
18098 for ac_func
in getpt
18100 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
18101 if test "x$ac_cv_func_getpt" = x
""yes; then :
18102 cat >>confdefs.h
<<_ACEOF
18103 #define HAVE_GETPT 1
18110 # Check this now, so that we will NOT find the above functions in ncurses.
18111 # That is because we have not set up to link ncurses in lib-src.
18112 # It's better to believe a function is not available
18113 # than to expect to find it in ncurses.
18114 # Also we need tputs and friends to be able to build at all.
18115 have_tputs_et_al
=true
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18117 $as_echo_n "checking for library containing tputs... " >&6; }
18118 if test "${ac_cv_search_tputs+set}" = set; then :
18119 $as_echo_n "(cached) " >&6
18121 ac_func_search_save_LIBS
=$LIBS
18122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18140 for ac_lib
in '' ncurses terminfo termcap
; do
18141 if test -z "$ac_lib"; then
18142 ac_res
="none required"
18145 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18147 if ac_fn_c_try_link
"$LINENO"; then :
18148 ac_cv_search_tputs
=$ac_res
18150 rm -f core conftest.err conftest.
$ac_objext \
18152 if test "${ac_cv_search_tputs+set}" = set; then :
18156 if test "${ac_cv_search_tputs+set}" = set; then :
18159 ac_cv_search_tputs
=no
18161 rm conftest.
$ac_ext
18162 LIBS
=$ac_func_search_save_LIBS
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18165 $as_echo "$ac_cv_search_tputs" >&6; }
18166 ac_res
=$ac_cv_search_tputs
18167 if test "$ac_res" != no
; then :
18168 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18171 have_tputs_et_al
=false
18174 if test "$have_tputs_et_al" != true
; then
18175 as_fn_error
"I couldn't find termcap functions (tputs and friends).
18176 Maybe some development libraries/packages are missing? Try installing
18177 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18179 # Must define this when any termcap library is found.
18181 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18183 ## FIXME This was the cpp logic, but I am not sure it is right.
18184 ## The above test has not necessarily found libncurses.
18185 HAVE_LIBNCURSES
=yes
18187 ## Use terminfo instead of termcap?
18188 ## Note only system files NOT using terminfo are:
18189 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18190 ## darwin|gnu without ncurses.
18194 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18195 ## hpux10-20: Use the system provided termcap(3) library.
18196 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18197 ## is necessary. Otherwise Emacs dumps core when run -nw.
18198 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
18200 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18201 ## The ncurses library has been moved out of the System framework in
18202 ## Mac OS X 10.2. So if configure detects it, set the command-line
18203 ## option to use it.
18205 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18206 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18208 LIBS_TERMCAP
="-lncurses"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18214 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18215 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18216 $as_echo_n "(cached) " >&6
18218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 #include <osreldate.h>
18224 #if __FreeBSD_version < 400000
18232 if ac_fn_c_try_link
"$LINENO"; then :
18233 emacs_cv_freebsd_terminfo
=yes
18235 emacs_cv_freebsd_terminfo
=no
18237 rm -f core conftest.err conftest.
$ac_objext \
18238 conftest
$ac_exeext conftest.
$ac_ext
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18243 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18245 if test $emacs_cv_freebsd_terminfo = yes; then
18247 LIBS_TERMCAP
="-lncurses"
18249 LIBS_TERMCAP
="-ltermcap"
18254 if test $ac_cv_search_tputs = -lterminfo; then
18256 LIBS_TERMCAP
="-lterminfo"
18258 LIBS_TERMCAP
="-ltermcap"
18265 ## hpux: Make sure we get select from libc rather than from libcurses
18266 ## because libcurses on HPUX 10.10 has a broken version of select.
18267 ## We used to use -lc -lcurses, but this may be cleaner.
18268 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
18270 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
18272 ## Must use system termcap, if we use any termcap. It does special things.
18273 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
18276 TERMCAP_OBJ
=tparam.o
18277 if test $TERMINFO = yes; then
18279 $as_echo "#define TERMINFO 1" >>confdefs.h
18282 ## Default used to be -ltermcap. Add a case above if need something else.
18283 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
18285 TERMCAP_OBJ
=terminfo.o
18291 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18295 #include <netinet/in.h>
18296 #include <arpa/nameser.h>
18297 #include <resolv.h>
18306 if ac_fn_c_try_link
"$LINENO"; then :
18311 rm -f core conftest.err conftest.
$ac_objext \
18312 conftest
$ac_exeext conftest.
$ac_ext
18313 if test "$have_res_init" = no
; then
18315 LIBS
="$LIBS -lresolv"
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18317 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <netinet/in.h>
18321 #include <arpa/nameser.h>
18322 #include <resolv.h>
18331 if ac_fn_c_try_link
"$LINENO"; then :
18336 rm -f core conftest.err conftest.
$ac_objext \
18337 conftest
$ac_exeext conftest.
$ac_ext
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18339 $as_echo "$have_res_init" >&6; }
18340 if test "$have_res_init" = yes ; then
18346 if test "$have_res_init" = yes; then
18348 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18352 # Do we need the Hesiod library to provide the support routines?
18354 if test "$with_hesiod" != no
; then
18355 # Don't set $LIBS here -- see comments above. FIXME which comments?
18356 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
18357 if test "x$ac_cv_func_res_send" = x
""yes; then :
18360 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18361 if test "x$ac_cv_func___res_send" = x
""yes; then :
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18365 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18366 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18369 ac_check_lib_save_LIBS
=$LIBS
18370 LIBS
="-lresolv $LIBS"
18371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18384 return res_send ();
18389 if ac_fn_c_try_link
"$LINENO"; then :
18390 ac_cv_lib_resolv_res_send
=yes
18392 ac_cv_lib_resolv_res_send
=no
18394 rm -f core conftest.err conftest.
$ac_objext \
18395 conftest
$ac_exeext conftest.
$ac_ext
18396 LIBS
=$ac_check_lib_save_LIBS
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18399 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18400 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18404 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18405 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18406 $as_echo_n "(cached) " >&6
18408 ac_check_lib_save_LIBS
=$LIBS
18409 LIBS
="-lresolv $LIBS"
18410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18419 char __res_send ();
18423 return __res_send ();
18428 if ac_fn_c_try_link
"$LINENO"; then :
18429 ac_cv_lib_resolv___res_send
=yes
18431 ac_cv_lib_resolv___res_send
=no
18433 rm -f core conftest.err conftest.
$ac_objext \
18434 conftest
$ac_exeext conftest.
$ac_ext
18435 LIBS
=$ac_check_lib_save_LIBS
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18438 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18439 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
18449 if test "$resolv" = yes ; then
18454 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18455 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18459 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18460 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18463 ac_check_lib_save_LIBS
=$LIBS
18464 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18474 char hes_getmailhost ();
18478 return hes_getmailhost ();
18483 if ac_fn_c_try_link
"$LINENO"; then :
18484 ac_cv_lib_hesiod_hes_getmailhost
=yes
18486 ac_cv_lib_hesiod_hes_getmailhost
=no
18488 rm -f core conftest.err conftest.
$ac_objext \
18489 conftest
$ac_exeext conftest.
$ac_ext
18490 LIBS
=$ac_check_lib_save_LIBS
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18493 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18494 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
18503 if test x
"$hesiod" = xyes
; then
18505 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18512 # Do we need libresolv (due to res_init or Hesiod)?
18513 if test "$resolv" = yes ; then
18515 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18523 # These tell us which Kerberos-related libraries to use.
18530 if test "${with_kerberos}" != no
; then
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18532 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18533 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18536 ac_check_lib_save_LIBS
=$LIBS
18537 LIBS
="-lcom_err $LIBS"
18538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18556 if ac_fn_c_try_link
"$LINENO"; then :
18557 ac_cv_lib_com_err_com_err
=yes
18559 ac_cv_lib_com_err_com_err
=no
18561 rm -f core conftest.err conftest.
$ac_objext \
18562 conftest
$ac_exeext conftest.
$ac_ext
18563 LIBS
=$ac_check_lib_save_LIBS
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18566 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18567 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
18573 if test $have_com_err = yes; then
18574 COM_ERRLIB
=-lcom_err
18575 LIBS
="$COM_ERRLIB $LIBS"
18577 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18581 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18582 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18583 $as_echo_n "(cached) " >&6
18585 ac_check_lib_save_LIBS
=$LIBS
18586 LIBS
="-lcrypto $LIBS"
18587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18590 /* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18596 char mit_des_cbc_encrypt ();
18600 return mit_des_cbc_encrypt ();
18605 if ac_fn_c_try_link
"$LINENO"; then :
18606 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18608 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18610 rm -f core conftest.err conftest.
$ac_objext \
18611 conftest
$ac_exeext conftest.
$ac_ext
18612 LIBS
=$ac_check_lib_save_LIBS
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18615 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18616 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
18622 if test $have_crypto = yes; then
18624 LIBS
="$CRYPTOLIB $LIBS"
18626 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18630 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18631 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18632 $as_echo_n "(cached) " >&6
18634 ac_check_lib_save_LIBS
=$LIBS
18635 LIBS
="-lk5crypto $LIBS"
18636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18637 /* end confdefs.h. */
18639 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18645 char mit_des_cbc_encrypt ();
18649 return mit_des_cbc_encrypt ();
18654 if ac_fn_c_try_link
"$LINENO"; then :
18655 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18657 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18659 rm -f core conftest.err conftest.
$ac_objext \
18660 conftest
$ac_exeext conftest.
$ac_ext
18661 LIBS
=$ac_check_lib_save_LIBS
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18664 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18665 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
18671 if test $have_k5crypto = yes; then
18672 CRYPTOLIB
=-lk5crypto
18673 LIBS
="$CRYPTOLIB $LIBS"
18675 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18679 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18680 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18681 $as_echo_n "(cached) " >&6
18683 ac_check_lib_save_LIBS
=$LIBS
18684 LIBS
="-lkrb5 $LIBS"
18685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18688 /* Override any GCC internal prototype to avoid an error.
18689 Use char because int might match the return type of a GCC
18690 builtin and then its argument prototype would still apply. */
18694 char krb5_init_context ();
18698 return krb5_init_context ();
18703 if ac_fn_c_try_link
"$LINENO"; then :
18704 ac_cv_lib_krb5_krb5_init_context
=yes
18706 ac_cv_lib_krb5_krb5_init_context
=no
18708 rm -f core conftest.err conftest.
$ac_objext \
18709 conftest
$ac_exeext conftest.
$ac_ext
18710 LIBS
=$ac_check_lib_save_LIBS
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18713 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18714 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
18720 if test $have_krb5=yes; then
18722 LIBS
="$KRB5LIB $LIBS"
18724 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18727 if test "${with_kerberos5}" = no
; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18729 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18730 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18731 $as_echo_n "(cached) " >&6
18733 ac_check_lib_save_LIBS
=$LIBS
18734 LIBS
="-ldes425 $LIBS"
18735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18744 char des_cbc_encrypt ();
18748 return des_cbc_encrypt ();
18753 if ac_fn_c_try_link
"$LINENO"; then :
18754 ac_cv_lib_des425_des_cbc_encrypt
=yes
18756 ac_cv_lib_des425_des_cbc_encrypt
=no
18758 rm -f core conftest.err conftest.
$ac_objext \
18759 conftest
$ac_exeext conftest.
$ac_ext
18760 LIBS
=$ac_check_lib_save_LIBS
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18763 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18764 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
18770 if test $have_des425 = yes; then
18772 LIBS
="$DESLIB $LIBS"
18774 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18778 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18779 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18782 ac_check_lib_save_LIBS
=$LIBS
18784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18793 char des_cbc_encrypt ();
18797 return des_cbc_encrypt ();
18802 if ac_fn_c_try_link
"$LINENO"; then :
18803 ac_cv_lib_des_des_cbc_encrypt
=yes
18805 ac_cv_lib_des_des_cbc_encrypt
=no
18807 rm -f core conftest.err conftest.
$ac_objext \
18808 conftest
$ac_exeext conftest.
$ac_ext
18809 LIBS
=$ac_check_lib_save_LIBS
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18812 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18813 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
18819 if test $have_des = yes; then
18821 LIBS
="$DESLIB $LIBS"
18823 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18828 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18829 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18830 $as_echo_n "(cached) " >&6
18832 ac_check_lib_save_LIBS
=$LIBS
18833 LIBS
="-lkrb4 $LIBS"
18834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18843 char krb_get_cred ();
18847 return krb_get_cred ();
18852 if ac_fn_c_try_link
"$LINENO"; then :
18853 ac_cv_lib_krb4_krb_get_cred
=yes
18855 ac_cv_lib_krb4_krb_get_cred
=no
18857 rm -f core conftest.err conftest.
$ac_objext \
18858 conftest
$ac_exeext conftest.
$ac_ext
18859 LIBS
=$ac_check_lib_save_LIBS
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18862 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18863 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
18869 if test $have_krb4 = yes; then
18871 LIBS
="$KRB4LIB $LIBS"
18873 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18877 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18878 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18879 $as_echo_n "(cached) " >&6
18881 ac_check_lib_save_LIBS
=$LIBS
18883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18892 char krb_get_cred ();
18896 return krb_get_cred ();
18901 if ac_fn_c_try_link
"$LINENO"; then :
18902 ac_cv_lib_krb_krb_get_cred
=yes
18904 ac_cv_lib_krb_krb_get_cred
=no
18906 rm -f core conftest.err conftest.
$ac_objext \
18907 conftest
$ac_exeext conftest.
$ac_ext
18908 LIBS
=$ac_check_lib_save_LIBS
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18911 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18912 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18918 if test $have_krb = yes; then
18920 LIBS
="$KRB4LIB $LIBS"
18922 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18928 if test "${with_kerberos5}" != no
; then
18929 for ac_header
in krb5.h
18931 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18932 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18933 cat >>confdefs.h
<<_ACEOF
18934 #define HAVE_KRB5_H 1
18936 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18938 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18940 cat >>confdefs.h
<<_ACEOF
18941 #define HAVE_KRB5_ERROR_TEXT 1
18946 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18948 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18950 cat >>confdefs.h
<<_ACEOF
18951 #define HAVE_KRB5_ERROR_E_TEXT 1
18962 for ac_header
in des.h
18964 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18965 if test "x$ac_cv_header_des_h" = x
""yes; then :
18966 cat >>confdefs.h
<<_ACEOF
18967 #define HAVE_DES_H 1
18971 for ac_header
in kerberosIV
/des.h
18973 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18974 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18975 cat >>confdefs.h
<<_ACEOF
18976 #define HAVE_KERBEROSIV_DES_H 1
18980 for ac_header
in kerberos
/des.h
18982 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18983 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18984 cat >>confdefs.h
<<_ACEOF
18985 #define HAVE_KERBEROS_DES_H 1
19000 for ac_header
in krb.h
19002 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
19003 if test "x$ac_cv_header_krb_h" = x
""yes; then :
19004 cat >>confdefs.h
<<_ACEOF
19005 #define HAVE_KRB_H 1
19009 for ac_header
in kerberosIV
/krb.h
19011 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19012 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
19013 cat >>confdefs.h
<<_ACEOF
19014 #define HAVE_KERBEROSIV_KRB_H 1
19018 for ac_header
in kerberos
/krb.h
19020 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19021 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
19022 cat >>confdefs.h
<<_ACEOF
19023 #define HAVE_KERBEROS_KRB_H 1
19039 for ac_header
in com_err.h
19041 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19042 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
19043 cat >>confdefs.h
<<_ACEOF
19044 #define HAVE_COM_ERR_H 1
19059 # Solaris requires -lintl if you want strerror (which calls dgettext)
19060 # to return localized messages.
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19062 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19063 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19066 ac_check_lib_save_LIBS
=$LIBS
19067 LIBS
="-lintl $LIBS"
19068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19069 /* end confdefs.h. */
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19081 return dgettext ();
19086 if ac_fn_c_try_link
"$LINENO"; then :
19087 ac_cv_lib_intl_dgettext
=yes
19089 ac_cv_lib_intl_dgettext
=no
19091 rm -f core conftest.err conftest.
$ac_objext \
19092 conftest
$ac_exeext conftest.
$ac_ext
19093 LIBS
=$ac_check_lib_save_LIBS
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19096 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19097 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
19098 cat >>confdefs.h
<<_ACEOF
19099 #define HAVE_LIBINTL 1
19102 LIBS
="-lintl $LIBS"
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19108 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19109 if test "${emacs_cv_localtime_cache+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19112 if test x
$ac_cv_func_tzset = xyes
; then
19113 if test "$cross_compiling" = yes; then :
19114 # If we have tzset, assume the worst when cross-compiling.
19115 emacs_cv_localtime_cache
=yes
19117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19120 char TZ_GMT0[] = "TZ=GMT0";
19121 char TZ_PST8[] = "TZ=PST8";
19124 time_t now = time ((time_t *) 0);
19125 int hour_GMT0, hour_unset;
19126 if (putenv (TZ_GMT0) != 0)
19128 hour_GMT0 = localtime (&now)->tm_hour;
19130 hour_unset = localtime (&now)->tm_hour;
19131 if (putenv (TZ_PST8) != 0)
19133 if (localtime (&now)->tm_hour == hour_GMT0)
19136 if (localtime (&now)->tm_hour != hour_unset)
19141 if ac_fn_c_try_run
"$LINENO"; then :
19142 emacs_cv_localtime_cache
=no
19144 emacs_cv_localtime_cache
=yes
19146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19151 # If we lack tzset, report that localtime does not cache TZ,
19152 # since we can't invalidate the cache if we don't have tzset.
19153 emacs_cv_localtime_cache
=no
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19157 $as_echo "$emacs_cv_localtime_cache" >&6; }
19158 if test $emacs_cv_localtime_cache = yes; then
19160 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19164 if test "x$HAVE_TIMEVAL" = xyes
; then
19165 for ac_func
in gettimeofday
19167 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19168 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
19169 cat >>confdefs.h
<<_ACEOF
19170 #define HAVE_GETTIMEOFDAY 1
19176 if test $ac_cv_func_gettimeofday = yes; then
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19178 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19179 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19180 $as_echo_n "(cached) " >&6
19182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19185 #ifdef TIME_WITH_SYS_TIME
19186 #include <sys/time.h>
19189 #ifdef HAVE_SYS_TIME_H
19190 #include <sys/time.h>
19198 struct timeval time;
19199 gettimeofday (&time, 0);
19204 if ac_fn_c_try_compile
"$LINENO"; then :
19205 emacs_cv_gettimeofday_two_arguments
=yes
19207 emacs_cv_gettimeofday_two_arguments
=no
19209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19212 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19213 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19215 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19222 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
19223 if test "x$ac_cv_func_socket" = x
""yes; then :
19229 if test $ok_so_far = yes; then
19230 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19231 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
19239 if test $ok_so_far = yes; then
19240 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19241 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
19249 if test $ok_so_far = yes; then
19251 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19255 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19257 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19262 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19263 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19267 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271 $as_echo "no" >&6; }
19274 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19275 if test "x$ac_cv_type_pid_t" = x
""yes; then :
19279 cat >>confdefs.h
<<_ACEOF
19285 for ac_header
in vfork.h
19287 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19288 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
19289 cat >>confdefs.h
<<_ACEOF
19290 #define HAVE_VFORK_H 1
19297 for ac_func
in fork vfork
19299 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19300 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19301 eval as_val
=\$
$as_ac_var
19302 if test "x$as_val" = x
""yes; then :
19303 cat >>confdefs.h
<<_ACEOF
19304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19310 if test "x$ac_cv_func_fork" = xyes
; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19312 $as_echo_n "checking for working fork... " >&6; }
19313 if test "${ac_cv_func_fork_works+set}" = set; then :
19314 $as_echo_n "(cached) " >&6
19316 if test "$cross_compiling" = yes; then :
19317 ac_cv_func_fork_works
=cross
19319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321 $ac_includes_default
19326 /* By Ruediger Kuhlmann. */
19327 return fork () < 0;
19333 if ac_fn_c_try_run
"$LINENO"; then :
19334 ac_cv_func_fork_works
=yes
19336 ac_cv_func_fork_works
=no
19338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19344 $as_echo "$ac_cv_func_fork_works" >&6; }
19347 ac_cv_func_fork_works
=$ac_cv_func_fork
19349 if test "x$ac_cv_func_fork_works" = xcross
; then
19351 *-*-amigaos* |
*-*-msdosdjgpp*)
19352 # Override, as these systems have only a dummy fork() stub
19353 ac_cv_func_fork_works
=no
19356 ac_cv_func_fork_works
=yes
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19360 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19362 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19363 if test "x$ac_cv_func_vfork" = xyes
; then
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19365 $as_echo_n "checking for working vfork... " >&6; }
19366 if test "${ac_cv_func_vfork_works+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19369 if test "$cross_compiling" = yes; then :
19370 ac_cv_func_vfork_works
=cross
19372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19373 /* end confdefs.h. */
19374 /* Thanks to Paul Eggert for this test. */
19375 $ac_includes_default
19376 #include <sys/wait.h>
19377 #ifdef HAVE_VFORK_H
19378 # include <vfork.h>
19380 /* On some sparc systems, changes by the child to local and incoming
19381 argument registers are propagated back to the parent. The compiler
19382 is told about this with #include <vfork.h>, but some compilers
19383 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19384 static variable whose address is put into a register that is
19385 clobbered by the vfork. */
19388 sparc_address_test (int arg)
19390 sparc_address_test (arg) int arg;
19393 static pid_t child;
19411 pid_t parent = getpid ();
19414 sparc_address_test (0);
19419 /* Here is another test for sparc vfork register problems. This
19420 test uses lots of local variables, at least as many local
19421 variables as main has allocated so far including compiler
19422 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19423 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19424 reuse the register of parent for one of the local variables,
19425 since it will think that parent can't possibly be used any more
19426 in this routine. Assigning to the local variable will thus
19427 munge parent in the parent process. */
19429 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19430 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19431 /* Convince the compiler that p..p7 are live; otherwise, it might
19432 use the same hardware register for all 8 local variables. */
19433 if (p != p1 || p != p2 || p != p3 || p != p4
19434 || p != p5 || p != p6 || p != p7)
19437 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19438 from child file descriptors. If the child closes a descriptor
19439 before it execs or exits, this munges the parent's descriptor
19440 as well. Test for this by closing stdout in the child. */
19441 _exit(close(fileno(stdout)) != 0);
19446 while (wait(&status) != child)
19449 /* Was there some problem with vforking? */
19452 /* Did the child fail? (This shouldn't happen.) */
19455 /* Did the vfork/compiler bug occur? */
19456 || parent != getpid()
19458 /* Did the file descriptor bug occur? */
19459 || fstat(fileno(stdout), &st) != 0
19464 if ac_fn_c_try_run
"$LINENO"; then :
19465 ac_cv_func_vfork_works
=yes
19467 ac_cv_func_vfork_works
=no
19469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19475 $as_echo "$ac_cv_func_vfork_works" >&6; }
19478 if test "x$ac_cv_func_fork_works" = xcross
; then
19479 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19481 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19484 if test "x$ac_cv_func_vfork_works" = xyes
; then
19486 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19490 $as_echo "#define vfork fork" >>confdefs.h
19493 if test "x$ac_cv_func_fork_works" = xyes
; then
19495 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19501 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19502 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19503 $as_echo_n "(cached) " >&6
19505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19506 /* end confdefs.h. */
19507 #include <langinfo.h>
19511 char* cs = nl_langinfo(CODESET);
19516 if ac_fn_c_try_link
"$LINENO"; then :
19517 emacs_cv_langinfo_codeset
=yes
19519 emacs_cv_langinfo_codeset
=no
19521 rm -f core conftest.err conftest.
$ac_objext \
19522 conftest
$ac_exeext conftest.
$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19526 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19527 if test $emacs_cv_langinfo_codeset = yes; then
19529 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19533 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19534 if test "x$ac_cv_type_size_t" = x
""yes; then :
19536 cat >>confdefs.h
<<_ACEOF
19537 #define HAVE_SIZE_T 1
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19545 $as_echo_n "checking for mbstate_t... " >&6; }
19546 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 $ac_includes_default
19552 # include <wchar.h>
19556 mbstate_t x; return sizeof x;
19561 if ac_fn_c_try_compile
"$LINENO"; then :
19562 ac_cv_type_mbstate_t
=yes
19564 ac_cv_type_mbstate_t
=no
19566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19569 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19570 if test $ac_cv_type_mbstate_t = yes; then
19572 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19576 $as_echo "#define mbstate_t int" >>confdefs.h
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19581 $as_echo_n "checking for C restricted array declarations... " >&6; }
19582 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19583 $as_echo_n "(cached) " >&6
19585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587 void fred (int x[__restrict]);
19596 if ac_fn_c_try_compile
"$LINENO"; then :
19597 emacs_cv_c_restrict_arr
=yes
19599 emacs_cv_c_restrict_arr
=no
19601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19604 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19605 if test "$emacs_cv_c_restrict_arr" = yes; then
19607 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19613 # Set up the CFLAGS for real compilation, so we can substitute it.
19614 CFLAGS
="$REAL_CFLAGS"
19615 CPPFLAGS
="$REAL_CPPFLAGS"
19617 ## Hack to detect a buggy GCC version.
19618 if test "x$GCC" = xyes \
19619 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19620 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19621 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19622 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19625 version
=$PACKAGE_VERSION
19627 ### Specify what sort of things we'll be editing into Makefile and config.h.
19628 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19652 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19653 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19654 ## end of LIBX_BASE, but nothing ever set it.
19659 ## Used in lwlib/Makefile.in.
19661 if test -n "${machfile}"; then
19662 M_FILE
="\$(srcdir)/${machfile}"
19666 S_FILE
="\$(srcdir)/${opsysfile}"
19677 cat >>confdefs.h
<<_ACEOF
19678 #define EMACS_CONFIGURATION "${canonical}"
19682 cat >>confdefs.h
<<_ACEOF
19683 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19686 if test -n "$machfile"; then
19688 cat >>confdefs.h
<<_ACEOF
19689 #define config_machfile "${machfile}"
19694 cat >>confdefs.h
<<_ACEOF
19695 #define config_opsysfile "${opsysfile}"
19702 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19704 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19707 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19709 if test "$HAVE_XFT" = "yes"; then
19710 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19711 elif test "$HAVE_FREETYPE" = "yes"; then
19712 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19722 if test "${USE_X_TOOLKIT}" != "none" ; then
19723 WIDGET_OBJ
=widget.o
19725 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19727 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19729 $as_echo "#define USE_LUCID 1" >>confdefs.h
19731 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19733 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19738 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19739 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19743 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19744 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19745 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19749 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19750 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19753 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19759 case "$USE_X_TOOLKIT" in
19760 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19761 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19762 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19766 if test "$USE_X_TOOLKIT" = "none"; then
19767 LIBXT_OTHER
="\$(LIBXSM)"
19768 OLDXMENU_TARGET
="really-oldXMenu"
19770 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19771 OLDXMENU_TARGET
="really-lwlib"
19775 ## The X Menu stuff is present in the X10 distribution, but missing
19776 ## from X11. If we have X10, just use the installed library;
19777 ## otherwise, use our own copy.
19778 if test "${HAVE_X11}" = "yes" ; then
19780 $as_echo "#define HAVE_X11 1" >>confdefs.h
19783 if test "$USE_X_TOOLKIT" = "none"; then
19784 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19786 OLDXMENU
="\${lwlibdir}/liblw.a"
19788 LIBXMENU
="\$(OLDXMENU)"
19789 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19790 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19792 ## For a syntactically valid Makefile; not actually used for anything.
19793 ## See comments in src/Makefile.in.
19795 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19796 if test "${HAVE_X_WINDOWS}" = "yes"; then
19805 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19818 if test "${HAVE_MENUS}" = "yes" ; then
19820 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19824 if test "${GNU_MALLOC}" = "yes" ; then
19826 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19831 if test "${REL_ALLOC}" = "yes" ; then
19833 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19836 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19840 if test "$opsys" = "cygwin"; then
19841 CYGWIN_OBJ
="sheap.o"
19842 ## Cygwin differs because of its unexec().
19844 POST_ALLOC_OBJ
=lastfile.o
19847 PRE_ALLOC_OBJ
=lastfile.o
19856 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19859 ## The -headerpad option tells ld (see man page) to leave room at the
19860 ## end of the header for adding load commands. Needed for dumping.
19861 ## 0x690 is the total size of 30 segment load commands (at 56
19862 ## each); under Cocoa 31 commands are required.
19863 if test "$HAVE_NS" = "yes"; then
19864 libs_nsgui
="-framework AppKit"
19865 headerpad_extra
=6C8
19868 headerpad_extra
=690
19870 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19872 ## This is here because src/Makefile.in did some extra fiddling around
19873 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19874 ## #ifndef LD_SWITCH_SYSTEM
19875 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19876 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19877 ## not using gcc, darwin system not on an alpha (ie darwin, since
19878 ## darwin + alpha does not occur).
19879 ## Because this was done in src/Makefile.in, the resulting part of
19880 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19881 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19882 ## rather than LD_SWITCH_SYSTEM.
19883 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19884 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19887 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19888 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19889 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19890 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19891 ## had different values in configure (in ac_link) and src/Makefile.in.
19892 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19893 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19895 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19898 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19899 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19908 ## gnu: GNU needs its own crt0.
19909 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19911 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19912 ## library search parth, i.e. it won't search /usr/lib for libc and
19913 ## friends. Using -nostartfiles instead avoids this problem, and
19914 ## will also work on earlier NetBSD releases.
19915 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19917 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19918 ## MkLinux/LinuxPPC needs this.
19919 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19922 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19928 if test "x$ORDINARY_LINK" = "xyes"; then
19932 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19935 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19936 ## freebsd, gnu-* not on macppc|ibms390x.
19937 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19939 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19940 ## places that are difficult to figure out at make time. Fortunately,
19941 ## these same versions allow you to pass arbitrary flags on to the
19942 ## linker, so there is no reason not to use it as a linker.
19944 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19945 ## searching for libraries in its internal directories, so we have to
19946 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19947 LD_FIRSTFLAG
="-nostdlib"
19950 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19951 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19956 ## FIXME? The logic here is not precisely the same as that above.
19957 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19958 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19960 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19963 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19966 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19967 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19973 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19974 ## immediately undefine it again and redefine it to empty.
19975 ## Was the C_SWITCH_X_SITE part really necessary?
19976 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19982 ## Ask GCC where to find libgcc.a.
19983 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19990 ## If we're using X11/GNUstep, define some consequences.
19991 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19993 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19996 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19998 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19999 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
20001 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
20002 test "$HAVE_X_WINDOWS" = "yes" && \
20003 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
20013 #### Report on what we decided to do.
20014 #### Report GTK as a toolkit, even if it doesn't use Xt.
20015 #### It makes printing result more understandable as using GTK sets
20016 #### toolkit_scroll_bars to yes by default.
20017 if test "${HAVE_GTK}" = "yes"; then
20022 if test -n "$machfile"; then
20023 and_machfile
=" and \`${machfile}'"
20027 Configured for \`${canonical}'.
20029 Where should the build process find the source code? ${srcdir}
20030 What operating system and machine description files should Emacs use?
20031 \`${opsysfile}'${and_machfile}
20032 What compiler should emacs be built with? ${CC} ${CFLAGS}
20033 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20034 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20035 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20036 What window system should Emacs use? ${window_system}
20037 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20039 if test -n "${x_includes}"; then
20040 echo " Where do we find X Windows header files? ${x_includes}"
20042 echo " Where do we find X Windows header files? Standard dirs"
20044 if test -n "${x_libraries}"; then
20045 echo " Where do we find X Windows libraries? ${x_libraries}"
20047 echo " Where do we find X Windows libraries? Standard dirs"
20050 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20051 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20052 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20053 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20054 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20055 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20056 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20057 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20059 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20060 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20061 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20062 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20063 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20064 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20066 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20067 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20068 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20069 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20071 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20074 if test $USE_XASSERTS = yes; then
20075 echo " Compiling with asserts turned on."
20076 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20081 if test "$HAVE_NS" = "yes"; then
20083 echo "You must run \"make install\" in order to test the built application.
20084 The installed application will go to nextstep/Emacs.app and can be
20085 run or moved from there."
20086 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20087 echo "The application will be fully self-contained."
20089 echo "The lisp resources for the application will be installed under ${prefix}.
20090 You may need to run \"make install\" with sudo. The application will fail
20091 to run if these resources are not installed."
20097 # Remove any trailing slashes in these variables.
20098 test "${prefix}" != NONE
&&
20099 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20100 test "${exec_prefix}" != NONE
&&
20101 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20103 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 test/automated/Makefile"
20106 ac_config_commands
="$ac_config_commands mkdirs"
20109 ac_config_commands
="$ac_config_commands epaths"
20112 ac_config_commands
="$ac_config_commands gdbinit"
20115 cat >confcache
<<\_ACEOF
20116 # This file is a shell script that caches the results of configure
20117 # tests run on this system so they can be shared between configure
20118 # scripts and configure runs, see configure's option --config-cache.
20119 # It is not useful on other systems. If it contains results you don't
20120 # want to keep, you may remove or edit it.
20122 # config.status only pays attention to the cache file if you give it
20123 # the --recheck option to rerun configure.
20125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20127 # following values.
20131 # The following way of writing the cache mishandles newlines in values,
20132 # but we know of no workaround that is simple, portable, and efficient.
20133 # So, we kill variables containing newlines.
20134 # Ultrix sh set writes to stderr and can't be redirected directly,
20135 # and sets the high bit in the cache file unless we assign to the vars.
20137 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20138 eval ac_val
=\$
$ac_var
20142 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20146 _ | IFS | as_nl
) ;; #(
20147 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20148 *) { eval $ac_var=; unset $ac_var;} ;;
20154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20155 *${as_nl}ac_space
=\
*)
20156 # `set' does not quote correctly, so add quotes: double-quote
20157 # substitution turns \\\\ into \\, and sed turns \\ into \.
20160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20163 # `set' quotes correctly as required by POSIX, so do not add quotes.
20164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20177 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20178 if test -w "$cache_file"; then
20179 test "x$cache_file" != "x/dev/null" &&
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20181 $as_echo "$as_me: updating cache $cache_file" >&6;}
20182 cat confcache
>$cache_file
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20190 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20191 # Let make expand exec_prefix.
20192 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20194 DEFS
=-DHAVE_CONFIG_H
20198 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20199 # 1. Remove the extension, and $U if already installed.
20200 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20201 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20203 # will be set to the directory where LIBOBJS objects are built.
20204 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20205 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20207 LIBOBJS
=$ac_libobjs
20209 LTLIBOBJS
=$ac_ltlibobjs
20212 if test -n "$EXEEXT"; then
20214 am__EXEEXT_FALSE
='#'
20216 am__EXEEXT_TRUE
='#'
20220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20221 as_fn_error
"conditional \"AMDEP\" was never defined.
20222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20225 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20229 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20230 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20234 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20235 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20238 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20239 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20242 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20243 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
20244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20249 if test -n "$gl_LIBOBJS"; then
20250 # Remove the extension.
20251 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20252 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20253 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20254 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20257 gl_LIBOBJS
=$gl_libobjs
20259 gl_LTLIBOBJS
=$gl_ltlibobjs
20265 if test -n "$gltests_LIBOBJS"; then
20266 # Remove the extension.
20267 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20268 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20269 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20270 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20273 gltests_LIBOBJS
=$gltests_libobjs
20275 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20279 : ${CONFIG_STATUS=./config.status}
20281 ac_clean_files_save
=$ac_clean_files
20282 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20288 # Generated by $as_me.
20289 # Run this file to recreate the current configuration.
20290 # Compiler output produced by configure, useful for debugging
20291 # configure, is in config.log if it exists.
20294 ac_cs_recheck=false
20297 SHELL=\${CONFIG_SHELL-$SHELL}
20300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20301 ## -------------------- ##
20302 ## M4sh Initialization. ##
20303 ## -------------------- ##
20305 # Be more Bourne compatible
20306 DUALCASE
=1; export DUALCASE
# for MKS sh
20307 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20310 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20311 # is contrary to our usage. Disable this feature.
20312 alias -g '${1+"$@"}'='"$@"'
20313 setopt NO_GLOB_SUBST
20315 case `(set -o) 2>/dev/null` in #(
20327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20328 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20331 # Prefer a ksh shell builtin over an external printf program on Solaris,
20332 # but without wasting forks for bash or zsh.
20333 if test -z "$BASH_VERSION$ZSH_VERSION" \
20334 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20335 as_echo='print
-r --'
20336 as_echo_n='print
-rn --'
20337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20338 as_echo='printf %s
\n'
20339 as_echo_n='printf %s
'
20341 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20342 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20343 as_echo_n='/usr
/ucb
/echo -n'
20345 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20346 as_echo_n_body='eval
20350 expr "X$arg" : "X\\(.*\\)$as_nl";
20351 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20353 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20355 export as_echo_n_body
20356 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20358 export as_echo_body
20359 as_echo='sh
-c $as_echo_body as_echo
'
20362 # The user is always right.
20363 if test "${PATH_SEPARATOR+set}" != set; then
20365 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20366 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20373 # We need space, tab and new line, in precisely that order. Quoting is
20374 # there to prevent editors from complaining about space-tab.
20375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20376 # splitting by setting IFS to empty value.)
20379 # Find who we are. Look in the path if we contain no directory separator.
20381 *[\\/]* ) as_myself=$0 ;;
20382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383 for as_dir in $PATH
20386 test -z "$as_dir" && as_dir=.
20387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20393 # We did not find ourselves, most probably we were run as `sh COMMAND'
20394 # in which case we are not to be found in the path.
20395 if test "x$as_myself" = x
; then
20398 if test ! -f "$as_myself"; then
20399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20403 # Unset variables that we do not need and which cause bugs (e.g. in
20404 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20405 # suppresses any "Segmentation fault" message there. '((' could
20406 # trigger a bug in pdksh 5.2.14.
20407 for as_var
in BASH_ENV ENV MAIL MAILPATH
20408 do eval test x\
${$as_var+set} = xset \
20409 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20422 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20425 # as_fn_error ERROR [LINENO LOG_FD]
20426 # ---------------------------------
20427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20429 # script with status $?, using 1 if that was 0.
20432 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20434 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20437 $as_echo "$as_me: error: $1" >&2
20438 as_fn_exit
$as_status
20442 # as_fn_set_status STATUS
20443 # -----------------------
20444 # Set $? to STATUS, without forking.
20445 as_fn_set_status
()
20448 } # as_fn_set_status
20450 # as_fn_exit STATUS
20451 # -----------------
20452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20456 as_fn_set_status
$1
20462 # Portably unset VAR.
20465 { eval $1=; unset $1;}
20467 as_unset
=as_fn_unset
20468 # as_fn_append VAR VALUE
20469 # ----------------------
20470 # Append the text in VALUE to the end of the definition contained in VAR. Take
20471 # advantage of any shell optimizations that allow amortized linear growth over
20472 # repeated appends, instead of the typical quadratic growth present in naive
20474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20475 eval 'as_fn_append ()
20486 # as_fn_arith ARG...
20487 # ------------------
20488 # Perform arithmetic evaluation on the ARGs, and store the result in the
20489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20490 # must be portable across $(()) and expr.
20491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20492 eval 'as_fn_arith ()
20499 as_val
=`expr "$@" || test $? -eq 1`
20504 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20505 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20511 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20512 as_basename
=basename
20517 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20523 as_me
=`$as_basename -- "$0" ||
20524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20525 X"$0" : 'X\(//\)$' \| \
20526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20528 sed '/^.*\/\([^/][^/]*\)\/*$/{
20542 # Avoid depending upon Character Ranges.
20543 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20544 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20545 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20546 as_cr_digits
='0123456789'
20547 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20549 ECHO_C
= ECHO_N
= ECHO_T
=
20550 case `echo -n x` in #(((((
20552 case `echo 'xy\c'` in
20553 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20555 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20562 rm -f conf$$ conf$$.exe conf$$.
file
20563 if test -d conf$$.dir
; then
20564 rm -f conf$$.dir
/conf$$.
file
20567 mkdir conf$$.dir
2>/dev
/null
20569 if (echo >conf$$.
file) 2>/dev
/null
; then
20570 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20572 # ... but there are two gotchas:
20573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20575 # In both cases, we have to default to `cp -p'.
20576 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20578 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20586 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20587 rmdir conf$$.dir
2>/dev
/null
20592 # Create "$as_dir" as a directory, including parents if necessary.
20597 -*) as_dir
=.
/$as_dir;;
20599 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20603 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20604 *) as_qdir
=$as_dir;;
20606 as_dirs
="'$as_qdir' $as_dirs"
20607 as_dir
=`$as_dirname -- "$as_dir" ||
20608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20609 X"$as_dir" : 'X\(//\)[^/]' \| \
20610 X"$as_dir" : 'X\(//\)$' \| \
20611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20612 $as_echo X"$as_dir" |
20613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20617 /^X\(\/\/\)[^/].*/{
20630 test -d "$as_dir" && break
20632 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20633 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20637 if mkdir
-p .
2>/dev
/null
; then
20638 as_mkdir_p
='mkdir -p "$as_dir"'
20640 test -d .
/-p && rmdir .
/-p
20644 if test -x / >/dev
/null
2>&1; then
20645 as_test_x
='test -x'
20647 if ls -dL / >/dev
/null
2>&1; then
20654 if test -d "$1"; then
20660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20661 ???[sx]*):;;*)false;;esac;fi
20665 as_executable_p
=$as_test_x
20667 # Sed expression to map a string onto a valid CPP name.
20668 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20670 # Sed expression to map a string onto a valid variable name.
20671 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20675 ## ----------------------------------- ##
20676 ## Main body of $CONFIG_STATUS script. ##
20677 ## ----------------------------------- ##
20679 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20682 # Save the log message, to keep $0 and so on meaningful, and to
20683 # report actual input values of CONFIG_FILES etc. instead of their
20684 # values after options handling.
20686 This file was extended by emacs $as_me 24.0.50, which was
20687 generated by GNU Autoconf 2.65. Invocation command line was
20689 CONFIG_FILES = $CONFIG_FILES
20690 CONFIG_HEADERS = $CONFIG_HEADERS
20691 CONFIG_LINKS = $CONFIG_LINKS
20692 CONFIG_COMMANDS = $CONFIG_COMMANDS
20695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20700 case $ac_config_files in *"
20701 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20704 case $ac_config_headers in *"
20705 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20710 # Files that config.status was made for.
20711 config_files="$ac_config_files"
20712 config_headers="$ac_config_headers"
20713 config_commands="$ac_config_commands"
20717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20719 \`$as_me' instantiates files and other configuration actions
20720 from templates according to the current configuration. Unless the files
20721 and actions are specified as TAGs, all are instantiated by default.
20723 Usage: $0 [OPTION]... [TAG]...
20725 -h, --help print this help, then exit
20726 -V, --version print version number and configuration settings, then exit
20727 --config print configuration, then exit
20728 -q, --quiet, --silent
20729 do not print progress messages
20730 -d, --debug don't remove temporary files
20731 --recheck update $as_me by reconfiguring in the same conditions
20732 --file=FILE[:TEMPLATE]
20733 instantiate the configuration file FILE
20734 --header=FILE[:TEMPLATE]
20735 instantiate the configuration header FILE
20737 Configuration files:
20740 Configuration headers:
20743 Configuration commands:
20746 Report bugs to the package provider."
20749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20750 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20752 emacs config.status 24.0.50
20753 configured by $0, generated by GNU Autoconf 2.65,
20754 with options \\"\$ac_cs_config\\"
20756 Copyright (C) 2009 Free Software Foundation, Inc.
20757 This config.status script is free software; the Free Software Foundation
20758 gives unlimited permission to copy, distribute and modify it."
20765 test -n "\$AWK" || AWK=awk
20768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20769 # The default lists apply if the user does not specify any file.
20775 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20776 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20787 # Handling of the options.
20788 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20790 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20791 $as_echo "$ac_cs_version"; exit ;;
20792 --config |
--confi |
--conf |
--con |
--co |
--c )
20793 $as_echo "$ac_cs_config"; exit ;;
20794 --debug |
--debu |
--deb |
--de |
--d |
-d )
20796 --file |
--fil |
--fi |
--f )
20799 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20801 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20802 ac_need_defaults
=false
;;
20803 --header |
--heade |
--head |
--hea )
20806 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20808 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20809 ac_need_defaults
=false
;;
20811 # Conflict between --help and --header
20812 as_fn_error
"ambiguous option: \`$1'
20813 Try \`$0 --help' for more information.";;
20814 --help |
--hel |
-h )
20815 $as_echo "$ac_cs_usage"; exit ;;
20816 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20817 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20820 # This is an error.
20821 -*) as_fn_error
"unrecognized option: \`$1'
20822 Try \`$0 --help' for more information." ;;
20824 *) as_fn_append ac_config_targets
" $1"
20825 ac_need_defaults
=false
;;
20831 ac_configure_extra_args
=
20833 if $ac_cs_silent; then
20835 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20840 if \$ac_cs_recheck; then
20841 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20843 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20844 CONFIG_SHELL='$SHELL'
20845 export CONFIG_SHELL
20850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20855 ## Running $as_me. ##
20861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20865 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20866 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20872 # Handling of arguments.
20873 for ac_config_target
in $ac_config_targets
20875 case $ac_config_target in
20876 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20877 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20878 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20879 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20880 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20881 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20882 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20883 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20884 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20885 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20886 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20887 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20888 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20889 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20890 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20891 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20892 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20893 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20895 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20900 # If the user did not use the arguments to specify the items to instantiate,
20901 # then the envvar interface is used. Set only those that are not.
20902 # We use the long form for the default assignment because of an extremely
20903 # bizarre bug on SunOS 4.1.3.
20904 if $ac_need_defaults; then
20905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20910 # Have a temporary directory for convenience. Make it in the build tree
20911 # simply because there is no reason against having it here, and in addition,
20912 # creating and moving files from /tmp can sometimes cause problems.
20913 # Hook for its removal unless debugging.
20914 # Note that there is a small window in which the directory will not be cleaned:
20915 # after its creation but before its name has been assigned to `$tmp'.
20919 trap 'exit_status=$?
20920 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20922 trap 'as_fn_exit 1' 1 2 13 15
20924 # Create a (secure) tmp directory for tmp files.
20927 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20928 test -n "$tmp" && test -d "$tmp"
20931 tmp
=.
/conf$$
-$RANDOM
20932 (umask 077 && mkdir
"$tmp")
20933 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20935 # Set up the scripts for CONFIG_FILES section.
20936 # No need to generate them if there are no CONFIG_FILES.
20937 # This happens for instance with `./config.status config.h'.
20938 if test -n "$CONFIG_FILES"; then
20940 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20941 ac_cs_awk_getline
=:
20942 ac_cs_awk_pipe_init
=
20943 ac_cs_awk_read_file
='
20944 while ((getline aline < (F[key])) > 0)
20947 ac_cs_awk_pipe_fini
=
20949 ac_cs_awk_getline
=false
20950 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20951 ac_cs_awk_read_file
='
20953 print "cat " F[key] " &&"
20954 '$ac_cs_awk_pipe_init
20955 # The final `:' finishes the AND list.
20956 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20958 ac_cr
=`echo X | tr X '\015'`
20959 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20960 # But we know of no other shell where ac_cr would be empty at this
20961 # point, so we can use a bashism as a fallback.
20962 if test "x$ac_cr" = x
; then
20963 eval ac_cr
=\$
\'\\r
\'
20965 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20966 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20969 ac_cs_awk_cr
=$ac_cr
20972 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20975 # Create commands to substitute file output variables.
20977 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20978 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20979 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20982 } >conf$
$files.sh
&&
20983 . .
/conf$
$files.sh ||
20984 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
20985 rm -f conf$
$files.sh
20988 echo "cat >conf$$subs.awk <<_ACEOF" &&
20989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20991 } >conf$$subs.sh ||
20992 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20995 for ac_last_try in false false false false false :; do
20996 . ./conf$$subs.sh ||
20997 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20999 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21000 if test $ac_delim_n = $ac_delim_num; then
21002 elif $ac_last_try; then
21003 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21005 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21008 rm -f conf$$subs.sh
21010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
21015 s/^/S["/; s
/!.
*/"]=/
21025 s/\(.\{148\}\)..*/\1/
21027 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21032 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21039 s/\(.\{148\}\)..*/\1/
21041 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21045 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21050 ' <conf$$subs.awk | sed '
21055 ' >>$CONFIG_STATUS || ac_write_fail=1
21056 rm -f conf$$subs.awk
21057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21059 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21060 for (key in S) S_is_set[key] = 1
21062 \$ac_cs_awk_pipe_init
21066 nfields = split(line, field, "@
")
21068 len = length(field[1])
21069 for (i = 2; i < nfields; i++) {
21071 keylen = length(key)
21072 if (S_is_set[key]) {
21074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21075 len += length(value) + length(field[++i])
21080 if (nfields == 3 && !substed) {
21082 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21083 \$ac_cs_awk_read_file
21089 \$ac_cs_awk_pipe_fini
21092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21093 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21094 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21097 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21098 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
21101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21103 # trailing colons and then remove the whole line if VPATH becomes empty
21104 # (actually we leave an empty line to preserve line numbers).
21105 if test "x
$srcdir" = x.; then
21106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21107 s/:*\$(srcdir):*/:/
21108 s/:*\${srcdir}:*/:/
21110 s/^\([^=]*=[ ]*\):*/\1/
21116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21117 fi # test -n "$CONFIG_FILES"
21119 # Set up the scripts for CONFIG_HEADERS section.
21120 # No need to generate them if there are no CONFIG_HEADERS.
21121 # This happens for instance with `./config.status Makefile'.
21122 if test -n "$CONFIG_HEADERS"; then
21123 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21127 # Transform confdefs.h into an awk script `defines.awk', embedded as
21128 # here-document in config.status, that substitutes the proper values into
21129 # config.h.in to produce config.h.
21131 # Create a delimiter string that does not exist in confdefs.h, to ease
21132 # handling of long lines.
21134 for ac_last_try in false false :; do
21135 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21136 if test -z "$ac_t"; then
21138 elif $ac_last_try; then
21139 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21141 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21145 # For the awk script, D is an array of macro values keyed by name,
21146 # likewise P contains macro parameters if any. Preserve backslash
21147 # newline sequences.
21149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21151 s/.\{148\}/&'"$ac_delim"'/g
21154 s/^[ ]*#[ ]*define[ ][ ]*/ /
21161 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21163 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21168 D["\
1"]=" \
3\\\\\\n
"\\/p
21170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21175 s/.\{148\}/&'"$ac_delim"'/g
21180 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21183 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21185 ' <confdefs.h | sed '
21186 s/'"$ac_delim"'/"\\\
21187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21190 for (key in D) D_is_set[key] = 1
21193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21195 split(line, arg, " ")
21196 if (arg[1] == "#") {
21200 defundef
= substr
(arg
[1], 2)
21203 split(mac1
, mac2
, "(") #)
21205 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21206 if (D_is_set
[macro
]) {
21207 # Preserve the white space surrounding the "#".
21208 print prefix
"define", macro P
[macro
] D
[macro
]
21211 # Replace #undef with comments. This is necessary, for example,
21212 # in the case of _POSIX_SOURCE, which is predefined and required
21213 # on some systems where configure will not decide to define it.
21214 if (defundef
== "undef") {
21215 print
"/*", prefix defundef
, macro
, "*/"
21223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21224 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21225 fi # test -n "$CONFIG_HEADERS"
21228 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21233 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21235 case $ac_mode$ac_tag in
21237 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21238 :[FH
]-) ac_tag
=-:-;;
21239 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21256 -) ac_f
="$tmp/stdin";;
21257 *) # Look for the file first in the build tree, then in the source tree
21258 # (if the path is not absolute). The absolute path cannot be DOS-style,
21259 # because $ac_f cannot contain `:'.
21263 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21265 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21267 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21268 as_fn_append ac_file_inputs
" '$ac_f'"
21271 # Let's still pretend it is `configure' which instantiates (i.e., don't
21272 # use $as_me), people would be surprised to read:
21273 # /* config.h. Generated by config.status. */
21274 configure_input
='Generated from '`
21275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21277 if test x
"$ac_file" != x-
; then
21278 configure_input
="$ac_file. $configure_input"
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21280 $as_echo "$as_me: creating $ac_file" >&6;}
21282 # Neutralize special characters interpreted by sed in replacement strings.
21283 case $configure_input in #(
21284 *\
&* |
*\|
* |
*\\* )
21285 ac_sed_conf_input
=`$as_echo "$configure_input" |
21286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21287 *) ac_sed_conf_input
=$configure_input;;
21291 *:-:* |
*:-) cat >"$tmp/stdin" \
21292 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21297 ac_dir
=`$as_dirname -- "$ac_file" ||
21298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299 X"$ac_file" : 'X\(//\)[^/]' \| \
21300 X"$ac_file" : 'X\(//\)$' \| \
21301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21302 $as_echo X"$ac_file" |
21303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21307 /^X\(\/\/\)[^/].*/{
21320 as_dir
="$ac_dir"; as_fn_mkdir_p
21324 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21326 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21327 # A ".." for each directory in $ac_dir_suffix.
21328 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21329 case $ac_top_builddir_sub in
21330 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21331 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21334 ac_abs_top_builddir
=$ac_pwd
21335 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21336 # for backward compatibility:
21337 ac_top_builddir
=$ac_top_build_prefix
21340 .
) # We are building in place.
21342 ac_top_srcdir
=$ac_top_builddir_sub
21343 ac_abs_top_srcdir
=$ac_pwd ;;
21344 [\\/]* | ?
:[\\/]* ) # Absolute name.
21345 ac_srcdir
=$srcdir$ac_dir_suffix;
21346 ac_top_srcdir
=$srcdir
21347 ac_abs_top_srcdir
=$srcdir ;;
21348 *) # Relative name.
21349 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21350 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21351 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21353 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21363 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21364 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21366 ac_MKDIR_P
=$MKDIR_P
21368 [\\/$
]* | ?
:[\\/]* ) ;;
21369 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21374 # If the template does not know about datarootdir, expand it.
21375 # FIXME: This hack should be removed a few years after 2.60.
21376 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21387 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21388 *datarootdir
*) ac_datarootdir_seen
=yes;;
21389 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21391 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21394 ac_datarootdir_hack='
21395 s&@datadir@&$datadir&g
21396 s&@docdir@&$docdir&g
21397 s&@infodir@&$infodir&g
21398 s&@localedir@&$localedir&g
21399 s&@mandir@&$mandir&g
21400 s&\\\${datarootdir}&$datarootdir&g' ;;
21404 # Neutralize VPATH when `$srcdir' = `.'.
21405 # Shell code in configure.ac might set extrasub.
21406 # FIXME: do we really want to maintain this feature?
21407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21408 ac_sed_extra="$ac_vpsub
21411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21413 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21414 s|@configure_input@|
$ac_sed_conf_input|
;t t
21415 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21416 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21417 s
&@srcdir@
&$ac_srcdir&;t t
21418 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21419 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21420 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21421 s
&@builddir@
&$ac_builddir&;t t
21422 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21423 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21424 s
&@INSTALL@
&$ac_INSTALL&;t t
21425 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21426 $ac_datarootdir_hack
21428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21429 if $ac_cs_awk_getline; then
21430 $AWK -f "$tmp/subs.
awk"
21432 $AWK -f "$tmp/subs.
awk" | $SHELL
21434 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21440 which seems to be undefined. Please make sure it is defined." >&5
21441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21442 which seems to be undefined. Please make sure it is defined." >&2;}
21446 -) cat "$tmp/out" && rm -f "$tmp/out";;
21447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21449 || as_fn_error "could not create $ac_file" "$LINENO" 5
21455 if test x"$ac_file" != x-; then
21457 $as_echo "/* $configure_input */" \
21458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21459 } >"$tmp/config.h" \
21460 || as_fn_error "could not create $ac_file" "$LINENO" 5
21461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21466 mv "$tmp/config.h" "$ac_file" \
21467 || as_fn_error "could not create $ac_file" "$LINENO" 5
21470 $as_echo "/* $configure_input */" \
21471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21472 || as_fn_error "could not create -" "$LINENO" 5
21474 # Compute "$ac_file"'s index
in $config_headers.
21477 for _am_header
in $config_headers :; do
21478 case $_am_header in
21479 $_am_arg |
$_am_arg:* )
21482 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487 X"$_am_arg" : 'X\(//\)[^/]' \| \
21488 X"$_am_arg" : 'X\(//\)$' \| \
21489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21490 $as_echo X"$_am_arg" |
21491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21495 /^X\(\/\/\)[^/].*/{
21507 s/.*/./; q'`/stamp-h
$_am_stamp_count
21510 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21511 $as_echo "$as_me: executing $ac_file commands" >&6;}
21516 case $ac_file$ac_mode in
21517 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21519 # are listed without --file. Let's play safe and only enable the eval
21520 # if we detect the quoting.
21521 case $CONFIG_FILES in
21522 *\'*) eval set x
"$CONFIG_FILES" ;;
21523 *) set x
$CONFIG_FILES ;;
21528 # Strip MF so we end up with the name of the file.
21529 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21530 # Check whether this is an Automake generated Makefile or not.
21531 # We used to match only the files named `Makefile.in', but
21532 # some people rename them; so instead we look at the file content.
21533 # Grep'ing the first line is not enough: some people post-process
21534 # each Makefile.in and add a new line on top of each file to say so.
21535 # Grep'ing the whole file is not good either: AIX grep has a line
21536 # limit of 2048, but all sed's we know have understand at least 4000.
21537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21538 dirpart
=`$as_dirname -- "$mf" ||
21539 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21540 X"$mf" : 'X\(//\)[^/]' \| \
21541 X"$mf" : 'X\(//\)$' \| \
21542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21548 /^X\(\/\/\)[^/].*/{
21564 # Extract the definition of DEPDIR, am__include, and am__quote
21565 # from the Makefile without running `make'.
21566 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21567 test -z "$DEPDIR" && continue
21568 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21569 test -z "am__include" && continue
21570 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21571 # When using ansi2knr, U may be empty or an underscore; expand it
21572 U
=`sed -n 's/^U = //p' < "$mf"`
21573 # Find all dependency output files, they are included files with
21574 # $(DEPDIR) in their names. We invoke sed twice because it is the
21575 # simplest approach to changing $(DEPDIR) to its actual value in the
21577 for file in `sed -n "
21578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21580 # Make sure the directory exists.
21581 test -f "$dirpart/$file" && continue
21582 fdir
=`$as_dirname -- "$file" ||
21583 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21584 X"$file" : 'X\(//\)[^/]' \| \
21585 X"$file" : 'X\(//\)$' \| \
21586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21587 $as_echo X"$file" |
21588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21592 /^X\(\/\/\)[^/].*/{
21605 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21606 # echo "creating $dirpart/$file"
21607 echo '# dummy' > "$dirpart/$file"
21613 for dir
in etc lisp
; do
21614 test -d ${dir} || mkdir
${dir}
21618 echo creating src
/epaths.h
21619 ${MAKE-make} epaths-force
21622 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21623 echo creating src
/.gdbinit
21624 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21634 ac_clean_files
=$ac_clean_files_save
21636 test $ac_write_fail = 0 ||
21637 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21640 # configure is writing to config.log, and then calls config.status.
21641 # config.status does its own redirection, appending to config.log.
21642 # Unfortunately, on DOS this fails, as config.log is still kept open
21643 # by configure, so config.status won't be able to write to it; its
21644 # output is simply discarded. So we exec the FD to /dev/null,
21645 # effectively closing config.log, so it can be properly (re)opened and
21646 # appended to by config.status. When coming back to configure, we
21647 # need to make the FD available again.
21648 if test "$no_create" != yes; then
21650 ac_config_status_args
=
21651 test "$silent" = yes &&
21652 ac_config_status_args
="$ac_config_status_args --quiet"
21654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21657 # would make configure fail if this is the last instruction.
21658 $ac_cs_success || as_fn_exit $?
21660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}