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>
595 gl_getopt_required
=POSIX
596 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
771 HAVE_SIGNED_SIG_ATOMIC_T
774 BITSIZEOF_SIG_ATOMIC_T
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
785 HAVE_UNSIGNED_LONG_LONG_INT
787 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
794 APPLE_UNIVERSAL_BUILD
802 HAVE_DECL_LOCALTIME_R
844 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
848 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
850 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
851 UNISTD_H_HAVE_WINSOCK2_H
870 REPLACE_GETDOMAINNAME
880 HAVE_DECL_GETUSERSHELL
881 HAVE_DECL_GETPAGESIZE
883 HAVE_DECL_GETDOMAINNAME
918 GNULIB_UNISTD_H_SIGPIPE
919 GNULIB_UNISTD_H_GETOPT
966 REPLACE_CANONICALIZE_FILE_NAME
971 HAVE_STRUCT_RANDOM_DATA
990 HAVE_CANONICALIZE_FILE_NAME
1003 GNULIB_REALLOC_POSIX
1017 GNULIB_CANONICALIZE_FILE_NAME
1021 GL_COND_LIBTOOL_FALSE
1022 GL_COND_LIBTOOL_TRUE
1071 LD_SWITCH_X_SITE_AUX_RPATH
1072 LD_SWITCH_X_SITE_AUX
1133 INSTALL_STRIP_PROGRAM
1175 program_transform_name
1186 ac_subst_files
='deps_frag
1189 enable_option_checking
1211 with_toolkit_scroll_bars
1222 with_pkg_config_prog
1226 enable_ns_self_contained
1228 enable_maintainer_mode
1229 enable_locallisppath
1231 enable_use_lisp_union_type
1234 enable_dependency_tracking
1238 ac_precious_vars
='build_alias
1250 # Initialize some variables set by options.
1252 ac_init_version
=false
1253 ac_unrecognized_opts
=
1254 ac_unrecognized_sep
=
1255 # The variables have the same names as the options, with
1256 # dashes changed to underlines.
1257 cache_file
=/dev
/null
1264 program_transform_name
=s
,x
,x
,
1272 # Installation directory options.
1273 # These are left unexpanded so users can "make install exec_prefix=/foo"
1274 # and all the variables that are supposed to be based on exec_prefix
1275 # by default will actually change.
1276 # Use braces instead of parens because sh, perl, etc. also accept them.
1277 # (The list follows the same order as the GNU Coding Standards.)
1278 bindir
='${exec_prefix}/bin'
1279 sbindir
='${exec_prefix}/sbin'
1280 libexecdir
='${exec_prefix}/libexec'
1281 datarootdir
='${prefix}/share'
1282 datadir
='${datarootdir}'
1283 sysconfdir
='${prefix}/etc'
1284 sharedstatedir
='${prefix}/com'
1285 localstatedir
='${prefix}/var'
1286 includedir
='${prefix}/include'
1287 oldincludedir
='/usr/include'
1288 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1289 infodir
='${datarootdir}/info'
1294 libdir
='${exec_prefix}/lib'
1295 localedir
='${datarootdir}/locale'
1296 mandir
='${datarootdir}/man'
1302 # If the previous option needs an argument, assign it.
1303 if test -n "$ac_prev"; then
1304 eval $ac_prev=\
$ac_option
1310 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1314 # Accept the important Cygnus configure options, so we can diagnose typos.
1316 case $ac_dashdash$ac_option in
1320 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1322 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1323 bindir
=$ac_optarg ;;
1325 -build |
--build |
--buil |
--bui |
--bu)
1326 ac_prev
=build_alias
;;
1327 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1328 build_alias
=$ac_optarg ;;
1330 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1331 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1332 ac_prev
=cache_file
;;
1333 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1334 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1335 cache_file
=$ac_optarg ;;
1337 --config-cache |
-C)
1338 cache_file
=config.cache
;;
1340 -datadir |
--datadir |
--datadi |
--datad)
1342 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1343 datadir
=$ac_optarg ;;
1345 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1346 |
--dataroo |
--dataro |
--datar)
1347 ac_prev
=datarootdir
;;
1348 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1349 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1350 datarootdir
=$ac_optarg ;;
1352 -disable-* |
--disable-*)
1353 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1356 as_fn_error
"invalid feature name: $ac_useropt"
1357 ac_useropt_orig
=$ac_useropt
1358 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1361 "enable_
$ac_useropt"
1363 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1364 ac_unrecognized_sep
=', ';;
1366 eval enable_
$ac_useropt=no
;;
1368 -docdir |
--docdir |
--docdi |
--doc |
--do)
1370 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1371 docdir
=$ac_optarg ;;
1373 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1375 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1376 dvidir
=$ac_optarg ;;
1378 -enable-* |
--enable-*)
1379 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1382 as_fn_error
"invalid feature name: $ac_useropt"
1383 ac_useropt_orig
=$ac_useropt
1384 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1387 "enable_
$ac_useropt"
1389 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1390 ac_unrecognized_sep
=', ';;
1392 eval enable_
$ac_useropt=\
$ac_optarg ;;
1394 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1395 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1396 |
--exec |
--exe |
--ex)
1397 ac_prev
=exec_prefix
;;
1398 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1399 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1400 |
--exec=* |
--exe=* |
--ex=*)
1401 exec_prefix
=$ac_optarg ;;
1403 -gas |
--gas |
--ga |
--g)
1404 # Obsolete; use --with-gas.
1407 -help |
--help |
--hel |
--he |
-h)
1408 ac_init_help
=long
;;
1409 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1410 ac_init_help
=recursive
;;
1411 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1412 ac_init_help
=short
;;
1414 -host |
--host |
--hos |
--ho)
1415 ac_prev
=host_alias
;;
1416 -host=* |
--host=* |
--hos=* |
--ho=*)
1417 host_alias
=$ac_optarg ;;
1419 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1421 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1423 htmldir
=$ac_optarg ;;
1425 -includedir |
--includedir |
--includedi |
--included |
--include \
1426 |
--includ |
--inclu |
--incl |
--inc)
1427 ac_prev
=includedir
;;
1428 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1429 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1430 includedir
=$ac_optarg ;;
1432 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1434 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1435 infodir
=$ac_optarg ;;
1437 -libdir |
--libdir |
--libdi |
--libd)
1439 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1440 libdir
=$ac_optarg ;;
1442 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1443 |
--libexe |
--libex |
--libe)
1444 ac_prev
=libexecdir
;;
1445 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1446 |
--libexe=* |
--libex=* |
--libe=*)
1447 libexecdir
=$ac_optarg ;;
1449 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1450 ac_prev
=localedir
;;
1451 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1452 localedir
=$ac_optarg ;;
1454 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1455 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1456 ac_prev
=localstatedir
;;
1457 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1458 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1459 localstatedir
=$ac_optarg ;;
1461 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1463 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1464 mandir
=$ac_optarg ;;
1466 -nfp |
--nfp |
--nf)
1467 # Obsolete; use --without-fp.
1470 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1471 |
--no-cr |
--no-c |
-n)
1474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1478 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1479 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1480 |
--oldin |
--oldi |
--old |
--ol |
--o)
1481 ac_prev
=oldincludedir
;;
1482 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1483 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1484 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1485 oldincludedir
=$ac_optarg ;;
1487 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1489 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1490 prefix
=$ac_optarg ;;
1492 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1493 |
--program-pre |
--program-pr |
--program-p)
1494 ac_prev
=program_prefix
;;
1495 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1496 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1497 program_prefix
=$ac_optarg ;;
1499 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1500 |
--program-suf |
--program-su |
--program-s)
1501 ac_prev
=program_suffix
;;
1502 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1503 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1504 program_suffix
=$ac_optarg ;;
1506 -program-transform-name |
--program-transform-name \
1507 |
--program-transform-nam |
--program-transform-na \
1508 |
--program-transform-n |
--program-transform- \
1509 |
--program-transform |
--program-transfor \
1510 |
--program-transfo |
--program-transf \
1511 |
--program-trans |
--program-tran \
1512 |
--progr-tra |
--program-tr |
--program-t)
1513 ac_prev
=program_transform_name
;;
1514 -program-transform-name=* |
--program-transform-name=* \
1515 |
--program-transform-nam=* |
--program-transform-na=* \
1516 |
--program-transform-n=* |
--program-transform-=* \
1517 |
--program-transform=* |
--program-transfor=* \
1518 |
--program-transfo=* |
--program-transf=* \
1519 |
--program-trans=* |
--program-tran=* \
1520 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1521 program_transform_name
=$ac_optarg ;;
1523 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1525 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1526 pdfdir
=$ac_optarg ;;
1528 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1530 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1533 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1534 |
-silent |
--silent |
--silen |
--sile |
--sil)
1537 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1539 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1541 sbindir
=$ac_optarg ;;
1543 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1544 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1545 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1547 ac_prev
=sharedstatedir
;;
1548 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1549 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1550 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1552 sharedstatedir
=$ac_optarg ;;
1554 -site |
--site |
--sit)
1556 -site=* |
--site=* |
--sit=*)
1559 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1561 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1562 srcdir
=$ac_optarg ;;
1564 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1565 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1566 ac_prev
=sysconfdir
;;
1567 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1568 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1569 sysconfdir
=$ac_optarg ;;
1571 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1572 ac_prev
=target_alias
;;
1573 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1574 target_alias
=$ac_optarg ;;
1576 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1579 -version |
--version |
--versio |
--versi |
--vers |
-V)
1580 ac_init_version
=: ;;
1583 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1584 # Reject names that are not valid shell variable names.
1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1586 as_fn_error
"invalid package name: $ac_useropt"
1587 ac_useropt_orig
=$ac_useropt
1588 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589 case $ac_user_opts in
1593 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1594 ac_unrecognized_sep
=', ';;
1596 eval with_
$ac_useropt=\
$ac_optarg ;;
1598 -without-* |
--without-*)
1599 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1600 # Reject names that are not valid shell variable names.
1601 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1602 as_fn_error
"invalid package name: $ac_useropt"
1603 ac_useropt_orig
=$ac_useropt
1604 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1605 case $ac_user_opts in
1609 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1610 ac_unrecognized_sep
=', ';;
1612 eval with_
$ac_useropt=no
;;
1615 # Obsolete; use --with-x.
1618 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1619 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1620 ac_prev
=x_includes
;;
1621 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1622 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1623 x_includes
=$ac_optarg ;;
1625 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1626 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1627 ac_prev
=x_libraries
;;
1628 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1629 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1630 x_libraries
=$ac_optarg ;;
1632 -*) as_fn_error
"unrecognized option: \`$ac_option'
1633 Try \`$0 --help' for more information."
1637 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1638 # Reject names that are not valid shell variable names.
1639 case $ac_envvar in #(
1640 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1641 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1643 eval $ac_envvar=\
$ac_optarg
1644 export $ac_envvar ;;
1647 # FIXME: should be removed in autoconf 3.0.
1648 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1650 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1657 if test -n "$ac_prev"; then
1658 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1659 as_fn_error
"missing argument to $ac_option"
1662 if test -n "$ac_unrecognized_opts"; then
1663 case $enable_option_checking in
1665 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1666 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670 # Check all directory arguments for consistency.
1671 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1672 datadir sysconfdir sharedstatedir localstatedir includedir \
1673 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1674 libdir localedir mandir
1676 eval ac_val
=\$
$ac_var
1677 # Remove trailing slashes.
1680 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1681 eval $ac_var=\
$ac_val;;
1683 # Be sure to have absolute directory names.
1685 [\\/$
]* | ?
:[\\/]* ) continue;;
1686 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1688 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1691 # There might be people who depend on the old broken behavior: `$host'
1692 # used to hold the argument of --host etc.
1693 # FIXME: To remove some day.
1696 target
=$target_alias
1698 # FIXME: To remove some day.
1699 if test "x$host_alias" != x
; then
1700 if test "x$build_alias" = x
; then
1701 cross_compiling
=maybe
1702 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1703 If a cross compiler is detected then cross compile mode will be used." >&2
1704 elif test "x$build_alias" != "x$host_alias"; then
1710 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1712 test "$silent" = yes && exec 6>/dev
/null
1715 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1716 ac_ls_di
=`ls -di .` &&
1717 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1718 as_fn_error
"working directory cannot be determined"
1719 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1720 as_fn_error
"pwd does not report name of working directory"
1723 # Find the source files, if location was not specified.
1724 if test -z "$srcdir"; then
1725 ac_srcdir_defaulted
=yes
1726 # Try the directory containing this script, then the parent directory.
1727 ac_confdir
=`$as_dirname -- "$as_myself" ||
1728 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1729 X"$as_myself" : 'X\(//\)[^/]' \| \
1730 X"$as_myself" : 'X\(//\)$' \| \
1731 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1732 $as_echo X"$as_myself" |
1733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1751 if test ! -r "$srcdir/$ac_unique_file"; then
1755 ac_srcdir_defaulted
=no
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1759 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1761 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1763 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1765 # When building in place, set srcdir=.
1766 if test "$ac_abs_confdir" = "$ac_pwd"; then
1769 # Remove unnecessary trailing slashes from srcdir.
1770 # Double slashes in file names in object file debugging info
1771 # mess up M-x gdb in Emacs.
1773 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775 for ac_var
in $ac_precious_vars; do
1776 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1777 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1778 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1779 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1783 # Report the --help message.
1785 if test "$ac_init_help" = "long"; then
1786 # Omit some internal or obsolete options to make the list less imposing.
1787 # This message is too long to be a string in the A/UX 3.1 sh.
1789 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1791 Usage: $0 [OPTION]... [VAR=VALUE]...
1793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1794 VAR=VALUE. See below for descriptions of some of the useful variables.
1796 Defaults for the options are specified in brackets.
1799 -h, --help display this help and exit
1800 --help=short display options specific to this package
1801 --help=recursive display the short help of all the included packages
1802 -V, --version display version information and exit
1803 -q, --quiet, --silent do not print \`checking...' messages
1804 --cache-file=FILE cache test results in FILE [disabled]
1805 -C, --config-cache alias for \`--cache-file=config.cache'
1806 -n, --no-create do not create output files
1807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809 Installation directories:
1810 --prefix=PREFIX install architecture-independent files in PREFIX
1811 [$ac_default_prefix]
1812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1815 By default, \`make install' will install all the files in
1816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1818 for instance \`--prefix=\$HOME'.
1820 For better control, use the options below.
1822 Fine tuning of the installation directories:
1823 --bindir=DIR user executables [EPREFIX/bin]
1824 --sbindir=DIR system admin executables [EPREFIX/sbin]
1825 --libexecdir=DIR program executables [EPREFIX/libexec]
1826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1829 --libdir=DIR object code libraries [EPREFIX/lib]
1830 --includedir=DIR C header files [PREFIX/include]
1831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1832 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1833 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1834 --infodir=DIR info documentation [DATAROOTDIR/info]
1835 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1836 --mandir=DIR man documentation [DATAROOTDIR/man]
1837 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1838 --htmldir=DIR html documentation [DOCDIR]
1839 --dvidir=DIR dvi documentation [DOCDIR]
1840 --pdfdir=DIR pdf documentation [DOCDIR]
1841 --psdir=DIR ps documentation [DOCDIR]
1847 --program-prefix=PREFIX prepend PREFIX to installed program names
1848 --program-suffix=SUFFIX append SUFFIX to installed program names
1849 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1852 --x-includes=DIR X include files are
in DIR
1853 --x-libraries=DIR X library files are
in DIR
1856 --build=BUILD configure
for building on BUILD
[guessed
]
1857 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1861 if test -n "$ac_init_help"; then
1862 case $ac_init_help in
1863 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1868 --disable-option-checking ignore unrecognized
--enable/--with options
1869 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1870 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1871 --disable-ns-self-contained
1872 disable self contained build under NeXTstep
1873 --enable-asserts compile code with asserts enabled
1874 --enable-maintainer-mode
1875 enable make rules and dependencies not useful
(and
1876 sometimes confusing
) to the casual installer
1877 --enable-locallisppath=PATH
1878 directories Emacs should search
for lisp files
1879 specific to this site
1880 --enable-checking[=LIST
]
1881 enable expensive run-time checks. With LIST
, enable
1882 only specific categories of checks. Categories are
:
1883 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1884 stringfreelist
, xmallocoverrun
, conslist
1885 --enable-use-lisp-union-type
1886 use a union
for the Lisp_Object data
type. This is
1887 only useful
for development
for catching certain
1889 --enable-profiling build emacs with profiling support. This might not
1890 work on all platforms
1891 --enable-autodepend automatically generate dependencies to .h-files.
1892 Requires GNU Make and Gcc. Enabled
if GNU Make and
1894 --disable-dependency-tracking speeds up one-time build
1895 --enable-dependency-tracking do not reject slow dependency extractors
1896 --disable-largefile omit support
for large files
1899 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1900 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1901 --without-pop don
't support POP mail retrieval with movemail
1902 --with-kerberos support Kerberos-authenticated POP
1903 --with-kerberos5 support Kerberos version 5 authenticated POP
1904 --with-hesiod support Hesiod to get the POP server host
1905 --with-mmdf support MMDF mailboxes
1906 --with-mail-unlink unlink, rather than empty, mail spool after reading
1907 --with-mailhost=HOSTNAME
1908 string giving default POP mail host
1909 --without-sound don't compile with sound support
1910 --without-sync-input process async input synchronously
1911 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1912 lucid or athena
, motif
, no
)
1913 --without-xpm don
't compile with XPM image support
1914 --without-jpeg don't compile with JPEG image support
1915 --without-tiff don
't compile with TIFF image support
1916 --without-gif don't compile with GIF image support
1917 --without-png don
't compile with PNG image support
1918 --without-rsvg don't compile with SVG image support
1919 --without-xml2 don
't compile with XML parsing support
1920 --without-imagemagick don't compile with ImageMagick image support
1921 --without-xft don
't use XFT for anti aliased fonts
1922 --without-libotf don't use libotf
for OpenType font support
1923 --without-m17n-flt don
't use m17n-flt for text shaping
1924 --without-toolkit-scroll-bars
1925 don't use Motif or Xaw3d scroll bars
1926 --without-xaw3d don
't use Xaw3d
1927 --without-xim don't use X11 XIM
1928 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1929 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1931 --without-dbus don't compile with D-Bus support
1932 --without-gconf don
't compile with GConf support
1933 --without-selinux don't compile with SELinux support
1934 --without-gnutls don
't use -lgnutls for SSL/TLS support
1935 --without-makeinfo don't require makeinfo
for building manuals
1936 --without-compress-info don
't compress the installed Info pages
1937 --with-pkg-config-prog=PATH
1938 path to pkg-config for finding GTK and librsvg
1939 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1940 /usr/lib, or /usr/lib64 on some platforms.
1941 --with-gameuser=USER user for shared game score files
1942 --with-gnustep-conf=PATH
1943 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1944 or /etc/GNUstep/GNUstep.conf
1945 --with-x use the X Window System
1947 Some influential environment variables:
1948 CC C compiler command
1949 CFLAGS C compiler flags
1950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1951 nonstandard directory <lib dir>
1952 LIBS libraries to pass to the linker, e.g. -l<library>
1953 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1954 you have headers in a nonstandard directory <include dir>
1956 XMKMF Path to xmkmf, Makefile generator for X Window System
1958 Use these variables to override the choices made by `configure' or to
help
1959 it to
find libraries and programs with nonstandard names
/locations.
1961 Report bugs to the package provider.
1966 if test "$ac_init_help" = "recursive"; then
1967 # If there are subdirs, report their specific --help.
1968 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1969 test -d "$ac_dir" ||
1970 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1975 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1977 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1978 # A ".." for each directory in $ac_dir_suffix.
1979 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1980 case $ac_top_builddir_sub in
1981 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1982 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1985 ac_abs_top_builddir
=$ac_pwd
1986 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1987 # for backward compatibility:
1988 ac_top_builddir
=$ac_top_build_prefix
1991 .
) # We are building in place.
1993 ac_top_srcdir
=$ac_top_builddir_sub
1994 ac_abs_top_srcdir
=$ac_pwd ;;
1995 [\\/]* | ?
:[\\/]* ) # Absolute name.
1996 ac_srcdir
=$srcdir$ac_dir_suffix;
1997 ac_top_srcdir
=$srcdir
1998 ac_abs_top_srcdir
=$srcdir ;;
2000 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2002 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2004 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2006 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2007 # Check for guested configure.
2008 if test -f "$ac_srcdir/configure.gnu"; then
2010 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011 elif test -f "$ac_srcdir/configure"; then
2013 $SHELL "$ac_srcdir/configure" --help=recursive
2015 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2017 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2021 test -n "$ac_init_help" && exit $ac_status
2022 if $ac_init_version; then
2024 emacs configure
24.0.50
2025 generated by GNU Autoconf
2.65
2027 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2028 This configure
script is free software
; the Free Software Foundation
2029 gives unlimited permission to copy
, distribute and modify it.
2034 ## ------------------------ ##
2035 ## Autoconf initialization. ##
2036 ## ------------------------ ##
2038 # ac_fn_c_try_compile LINENO
2039 # --------------------------
2040 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_compile
()
2043 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2044 rm -f conftest.
$ac_objext
2045 if { { ac_try
="$ac_compile"
2047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_compile") 2>conftest.err
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest.$ac_objext; then :
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_compile
2076 # ac_fn_c_try_cpp LINENO
2077 # ----------------------
2078 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 if { { ac_try="$ac_cpp conftest.$ac_ext"
2084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2085 *) ac_try_echo
=$ac_try;;
2087 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091 if test -s conftest.err
; then
2092 grep -v '^ *+' conftest.err
>conftest.er1
2093 cat conftest.er1
>&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } >/dev
/null
&& {
2098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.
$ac_ext >&5
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2109 as_fn_set_status
$ac_retval
2113 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116 # the include files in INCLUDES and setting the cache variable VAR
2118 ac_fn_c_check_header_mongrel
()
2120 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2121 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2131 # Is the header compilable?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133 $as_echo_n "checking $2 usability... " >&6; }
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2140 ac_header_compiler
=yes
2142 ac_header_compiler
=no
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146 $as_echo "$ac_header_compiler" >&6; }
2148 # Is the header present?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150 $as_echo_n "checking $2 presence... " >&6; }
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 if ac_fn_c_try_cpp
"$LINENO"; then :
2156 ac_header_preproc
=yes
2158 ac_header_preproc
=no
2160 rm -f conftest.err conftest.
$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162 $as_echo "$ac_header_preproc" >&6; }
2164 # So? What about this header?
2165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2190 eval "$3=\$ac_header_compiler"
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2198 } # ac_fn_c_check_header_mongrel
2200 # ac_fn_c_try_run LINENO
2201 # ----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2203 # that executables *can* be run.
2206 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2207 if { { ac_try
="$ac_link"
2209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>&5
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218 { { case "(($ac_try" in
2219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2220 *) ac_try_echo
=$ac_try;;
2222 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_try") 2>&5
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; }; }; then :
2230 $as_echo "$as_me: program exited with status $ac_status" >&5
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.
$ac_ext >&5
2234 ac_retval
=$ac_status
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2238 as_fn_set_status
$ac_retval
2242 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2243 # -------------------------------------------------------
2244 # Tests whether HEADER exists and can be compiled using the include files in
2245 # INCLUDES, setting the cache variable VAR accordingly.
2246 ac_fn_c_check_header_compile
()
2248 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2259 if ac_fn_c_try_compile
"$LINENO"; then :
2264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2271 } # ac_fn_c_check_header_compile
2273 # ac_fn_c_try_link LINENO
2274 # -----------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2278 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2279 rm -f conftest.
$ac_objext conftest
$ac_exeext
2280 if { { ac_try
="$ac_link"
2282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 $as_test_x conftest$ac_exeext
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_try_link
2319 # ac_fn_c_check_decl LINENO SYMBOL VAR
2320 # ------------------------------------
2321 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2322 ac_fn_c_check_decl ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2326 $as_echo_n "checking whether $2 is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2344 if ac_fn_c_try_compile "$LINENO"; then :
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_check_decl
2358 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2359 # ----------------------------------------------
2360 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2361 ac_fn_c_check_header_preproc ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 if ac_fn_c_try_cpp "$LINENO"; then :
2378 rm -f conftest.err conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_check_header_preproc
2387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2388 # ----------------------------------------------------
2389 # Tries to find if the field MEMBER exists in type AGGR, after including
2390 # INCLUDES, setting cache variable VAR accordingly.
2391 ac_fn_c_check_member ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2395 $as_echo_n "checking for $2.$3... " >&6; }
2396 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2412 if ac_fn_c_try_compile "$LINENO"; then :
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2422 if (sizeof ac_aggr.$3)
2428 if ac_fn_c_try_compile "$LINENO"; then :
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_member
2444 # ac_fn_c_check_func LINENO FUNC VAR
2445 # ----------------------------------
2446 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2447 ac_fn_c_check_func ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2459 #define $2 innocuous_$2
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $2 (); below.
2463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 <limits.h> exists even on freestanding compilers. */
2467 # include <limits.h>
2469 # include <assert.h>
2474 /* Override any GCC internal prototype to avoid an error.
2475 Use char because int might match the return type of a GCC
2476 builtin and then its argument prototype would still apply. */
2481 /* The GNU C library defines this for functions which it implements
2482 to always fail with ENOSYS. Some functions are actually named
2483 something starting with __ and the normal name is an alias. */
2484 #if defined __stub_$2 || defined __stub___$2
2496 if ac_fn_c_try_link "$LINENO"; then :
2501 rm -f core conftest.err conftest.$ac_objext \
2502 conftest$ac_exeext conftest.$ac_ext
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_func
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2549 if ac_fn_c_try_compile "$LINENO"; then :
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_type
2565 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2566 # --------------------------------------------
2567 # Tries to find the compile-time value of EXPR in a program that includes
2568 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2570 ac_fn_c_compute_int ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 if test "$cross_compiling" = yes; then
2574 # Depending upon the size, compute the lo and hi bounds.
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2581 static int test_array [1 - 2 * !(($2) >= 0)];
2588 if ac_fn_c_try_compile "$LINENO"; then :
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2623 static int test_array [1 - 2 * !(($2) < 0)];
2630 if ac_fn_c_try_compile "$LINENO"; then :
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=$ac_mid; break
2649 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2650 if test $ac_mid -le $ac_hi; then
2654 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 # Binary search between lo and hi bounds.
2665 while test "x$ac_lo" != "x$ac_hi"; do
2666 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2680 if ac_fn_c_try_compile "$LINENO"; then :
2683 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2695 static long int longval () { return $2; }
2696 static unsigned long int ulongval () { return $2; }
2703 FILE *f = fopen ("conftest.val", "w");
2708 long int i = longval ();
2711 fprintf (f, "%ld", i);
2715 unsigned long int i = ulongval ();
2718 fprintf (f, "%lu", i);
2720 /* Do not output a trailing newline, as this causes \r\n confusion
2721 on some platforms. */
2722 return ferror (f) || fclose (f) != 0;
2728 if ac_fn_c_try_run "$LINENO"; then :
2729 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2734 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 as_fn_set_status $ac_retval
2741 } # ac_fn_c_compute_int
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by emacs $as_me 24.0.50, which was
2747 generated by GNU Autoconf 2.65. Invocation command line was
2759 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2760 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2761 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2762 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2763 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2765 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2766 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2768 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2769 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2770 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2771 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2772 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2773 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2774 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_must_keep_next=false
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2818 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2836 -* ) ac_must_keep_next=true ;;
2839 as_fn_append ac_configure_args " '$ac_arg'"
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2866 eval ac_val=\$$ac_var
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2881 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2905 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907 $as_echo "$ac_var='\''$ac_val'\''"
2911 if test -n "$ac_subst_files"; then
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2922 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 $as_echo "$ac_var='\''$ac_val'\''"
2929 if test -s confdefs.h; then
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special files
3010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025 as_fn_append ac_header_list " stdlib.h"
3026 as_fn_append ac_header_list " unistd.h"
3027 as_fn_append ac_header_list " sys/param.h"
3028 gl_getopt_required=GNU
3029 as_fn_append ac_header_list " getopt.h"
3030 as_fn_append ac_func_list " lstat"
3031 as_fn_append ac_func_list " alarm"
3032 as_fn_append ac_func_list " readlink"
3033 as_fn_append ac_header_list " sys/socket.h"
3034 as_fn_append ac_header_list " wchar.h"
3035 as_fn_append ac_header_list " stdint.h"
3036 as_fn_append ac_func_list " tzset"
3037 as_fn_append ac_func_list " symlink"
3038 as_fn_append ac_header_list " sys/stat.h"
3039 as_fn_append ac_header_list " sys/time.h"
3040 as_fn_append ac_func_list " localtime_r"
3041 # Check that the precious variables saved in the cache have kept the same
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046 eval ac_new_set=\$ac_env_${ac_var}_set
3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048 eval ac_new_val=\$ac_env_${ac_var}_value
3049 case $ac_old_set,$ac_new_set in
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3052 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053 ac_cache_corrupted=: ;;
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3056 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3060 if test "x$ac_old_val" != "x$ac_new_val"; then
3061 # differences in whitespace do not lead to failure.
3062 ac_old_val_w=`echo x
$ac_old_val`
3063 ac_new_val_w=`echo x
$ac_new_val`
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3067 ac_cache_corrupted=:
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3074 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3091 if $ac_cache_corrupted; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3112 am__api_version='1.11'
3115 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3116 for ac_t in install-sh install.sh shtool; do
3117 if test -f "$ac_dir/$ac_t"; then
3119 ac_install_sh="$ac_aux_dir/$ac_t -c"
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3144 # AmigaOS /C/install, which installs bootblocks on floppy discs
3145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3148 # OS/2's system install, which has a completely different semantic
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 # Reject install programs that cannot install multiple files.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3152 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3153 if test -z "$INSTALL"; then
3154 if test "${ac_cv_path_install+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 # Account for people who put trailing slashes in PATH elements.
3163 case $as_dir/ in #((
3164 ./ | .// | /[cC]/* | \
3165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3166 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3169 # OSF1 and SCO ODT 3.0 have their own names for install.
3170 # Don't use installbsd from OSF since it installs stuff as root
3172 for ac_prog in ginstall scoinst install; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3175 if test $ac_prog = install &&
3176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # AIX install. It has an incompatible calling convention.
3179 elif test $ac_prog = install &&
3180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3181 # program-specific install script used by HP pwplus--don't use.
3184 rm -rf conftest.one conftest.two conftest.dir
3185 echo one > conftest.one
3186 echo two > conftest.two
3188 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3189 test -s conftest.one && test -s conftest.two &&
3190 test -s conftest.dir/conftest.one &&
3191 test -s conftest.dir/conftest.two
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3206 rm -rf conftest.one conftest.two conftest.dir
3209 if test "${ac_cv_path_install+set}" = set; then
3210 INSTALL=$ac_cv_path_install
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for INSTALL within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 INSTALL=$ac_install_sh
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3220 $as_echo "$INSTALL" >&6; }
3222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3223 # It thinks the first close brace ends the variable substitution.
3224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3231 $as_echo_n "checking whether build environment is sane... " >&6; }
3234 echo timestamp > conftest.file
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3244 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3245 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3248 # Do `set' in a subshell so we don't clobber the current shell's
3249 # arguments. Must try -L first in case configure is actually a
3250 # symlink; some systems play weird games with the mod time of symlinks
3251 # (eg FreeBSD returns the mod time of the symlink's containing
3254 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3255 if test "$*" = "X"; then
3257 set X
`ls -t "$srcdir/configure" conftest.file`
3260 if test "$*" != "X $srcdir/configure conftest.file" \
3261 && test "$*" != "X conftest.file $srcdir/configure"; then
3263 # If neither matched, then we have a broken ls. This can happen
3264 # if, for instance, CONFIG_SHELL is bash and it inherits a
3265 # broken ls alias from the environment. This has actually
3266 # happened. Such a system could not be considered "sane".
3267 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3268 alias in your environment" "$LINENO" 5
3271 test "$2" = conftest.
file
3277 as_fn_error
"newly created file is older than distributed files!
3278 Check your system clock" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 test "$program_prefix" != NONE
&&
3283 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE
&&
3286 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3292 # expand $ac_aux_dir to an absolute path
3293 am_aux_dir
=`cd $ac_aux_dir && pwd`
3295 if test x
"${MISSING+set}" != xset
; then
3298 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3300 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3303 # Use eval to expand $SHELL
3304 if eval "$MISSING --run true"; then
3305 am_missing_run
="$MISSING --run "
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3309 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3312 if test x
"${install_sh}" != xset
; then
3315 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3317 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'. However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no
; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_STRIP+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$STRIP"; then
3335 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 STRIP
=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_STRIP"; then
3367 # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip
; ac_word
=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir
=.
3382 for ac_exec_ext
in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_STRIP
="strip"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_STRIP" = x
; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned
=yes ;;
3415 STRIP
="$ac_cv_prog_STRIP"
3419 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3423 if test -z "$MKDIR_P"; then
3424 if test "${ac_cv_path_mkdir+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3428 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_prog
in mkdir gmkdir
; do
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3436 'mkdir (GNU coreutils) '* | \
3437 'mkdir (coreutils) '* | \
3438 'mkdir (fileutils) '4.1*)
3439 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3449 test -d .
/--version && rmdir .
/--version
3450 if test "${ac_cv_path_mkdir+set}" = set; then
3451 MKDIR_P
="$ac_cv_path_mkdir -p"
3453 # As a last resort, use the slow shell script. Don't cache a
3454 # value for MKDIR_P within a source directory, because that will
3455 # break other packages using the cache if that directory is
3456 # removed, or if the value is a relative name.
3457 MKDIR_P
="$ac_install_sh -d"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3461 $as_echo "$MKDIR_P" >&6; }
3466 [\\/$
]* | ?
:[\\/]*) ;;
3467 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3470 for ac_prog
in gawk mawk nawk
awk
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy
$ac_prog; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_AWK+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$AWK"; then
3480 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_AWK
="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$AWK"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3502 $as_echo "$AWK" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$AWK" && break
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3515 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3516 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3517 $as_echo_n "(cached) " >&6
3519 cat >conftest.
make <<\_ACEOF
3522 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3527 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3529 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3533 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 SET_MAKE
="MAKE=${MAKE-make}"
3543 rm -rf .tst
2>/dev
/null
3544 mkdir .tst
2>/dev
/null
3545 if test -d .tst
; then
3550 rmdir .tst
2>/dev
/null
3552 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3553 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3554 # is not polluted with repeated "-I."
3555 am__isrc
=' -I$(srcdir)'
3556 # test to see if srcdir already configured
3557 if test -f $srcdir/config.status
; then
3558 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3562 # test whether we have cygpath
3563 if test -z "$CYGPATH_W"; then
3564 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3565 CYGPATH_W
='cygpath -w'
3572 # Define the identity of the package.
3577 cat >>confdefs.h
<<_ACEOF
3578 #define PACKAGE "$PACKAGE"
3582 cat >>confdefs.h
<<_ACEOF
3583 #define VERSION "$VERSION"
3586 # Some tools Automake needs.
3588 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3591 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3594 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3597 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3600 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3602 # We need awk for the "check" target. The system "awk" is bad on
3604 # Always define AMTAR for backward compatibility.
3606 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3608 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3617 lispdir
='${datadir}/emacs/${version}/lisp'
3618 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3619 '${datadir}/emacs/site-lisp'
3620 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3621 etcdir
='${datadir}/emacs/${version}/etc'
3622 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3623 docdir
='${datadir}/emacs/${version}/etc'
3624 gamedir
='${localstatedir}/games/emacs'
3629 # Check whether --with-pop was given.
3630 if test "${with_pop+set}" = set; then :
3636 if test "$with_pop" = yes; then
3637 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3642 # Check whether --with-kerberos was given.
3643 if test "${with_kerberos+set}" = set; then :
3644 withval
=$with_kerberos;
3649 if test "$with_kerberos" != no
; then
3650 $as_echo "#define KERBEROS 1" >>confdefs.h
3655 # Check whether --with-kerberos5 was given.
3656 if test "${with_kerberos5+set}" = set; then :
3657 withval
=$with_kerberos5;
3662 if test "${with_kerberos5}" != no
; then
3663 if test "${with_kerberos}" = no
; then
3665 $as_echo "#define KERBEROS 1" >>confdefs.h
3669 $as_echo "#define KERBEROS5 1" >>confdefs.h
3674 # Check whether --with-hesiod was given.
3675 if test "${with_hesiod+set}" = set; then :
3676 withval
=$with_hesiod;
3681 if test "$with_hesiod" != no
; then
3683 $as_echo "#define HESIOD 1" >>confdefs.h
3688 # Check whether --with-mmdf was given.
3689 if test "${with_mmdf+set}" = set; then :
3695 if test "$with_mmdf" != no
; then
3697 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3702 # Check whether --with-mail-unlink was given.
3703 if test "${with_mail_unlink+set}" = set; then :
3704 withval
=$with_mail_unlink;
3709 if test "$with_mail_unlink" != no
; then
3711 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3716 # Check whether --with-mailhost was given.
3717 if test "${with_mailhost+set}" = set; then :
3718 withval
=$with_mailhost;
3719 cat >>confdefs.h
<<_ACEOF
3720 #define MAILHOST "$withval"
3727 # Check whether --with-sound was given.
3728 if test "${with_sound+set}" = set; then :
3729 withval
=$with_sound;
3736 # Check whether --with-sync-input was given.
3737 if test "${with_sync_input+set}" = set; then :
3738 withval
=$with_sync_input;
3743 if test "$with_sync_input" = yes; then
3745 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3750 # Check whether --with-x-toolkit was given.
3751 if test "${with_x_toolkit+set}" = set; then :
3752 withval
=$with_x_toolkit; case "${withval}" in
3753 y | ye |
yes ) val
=gtk
;;
3755 l | lu | luc | luci | lucid
) val
=lucid
;;
3756 a |
at | ath | athe | athen | athena
) val
=athena
;;
3757 m | mo | mot | moti | motif
) val
=motif
;;
3758 g | gt | gtk
) val
=gtk
;;
3761 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3762 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3763 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3772 # Check whether --with-xpm was given.
3773 if test "${with_xpm+set}" = set; then :
3780 # Check whether --with-jpeg was given.
3781 if test "${with_jpeg+set}" = set; then :
3788 # Check whether --with-tiff was given.
3789 if test "${with_tiff+set}" = set; then :
3796 # Check whether --with-gif was given.
3797 if test "${with_gif+set}" = set; then :
3804 # Check whether --with-png was given.
3805 if test "${with_png+set}" = set; then :
3812 # Check whether --with-rsvg was given.
3813 if test "${with_rsvg+set}" = set; then :
3820 # Check whether --with-xml2 was given.
3821 if test "${with_xml2+set}" = set; then :
3828 # Check whether --with-imagemagick was given.
3829 if test "${with_imagemagick+set}" = set; then :
3830 withval
=$with_imagemagick;
3832 with_imagemagick
=yes
3837 # Check whether --with-xft was given.
3838 if test "${with_xft+set}" = set; then :
3845 # Check whether --with-libotf was given.
3846 if test "${with_libotf+set}" = set; then :
3847 withval
=$with_libotf;
3853 # Check whether --with-m17n-flt was given.
3854 if test "${with_m17n_flt+set}" = set; then :
3855 withval
=$with_m17n_flt;
3862 # Check whether --with-toolkit-scroll-bars was given.
3863 if test "${with_toolkit_scroll_bars+set}" = set; then :
3864 withval
=$with_toolkit_scroll_bars;
3866 with_toolkit_scroll_bars
=yes
3870 # Check whether --with-xaw3d was given.
3871 if test "${with_xaw3d+set}" = set; then :
3872 withval
=$with_xaw3d;
3878 # Check whether --with-xim was given.
3879 if test "${with_xim+set}" = set; then :
3886 # Check whether --with-ns was given.
3887 if test "${with_ns+set}" = set; then :
3895 # Check whether --with-gpm was given.
3896 if test "${with_gpm+set}" = set; then :
3903 # Check whether --with-dbus was given.
3904 if test "${with_dbus+set}" = set; then :
3911 # Check whether --with-gconf was given.
3912 if test "${with_gconf+set}" = set; then :
3913 withval
=$with_gconf;
3919 # Check whether --with-selinux was given.
3920 if test "${with_selinux+set}" = set; then :
3921 withval
=$with_selinux;
3927 # Check whether --with-gnutls was given.
3928 if test "${with_gnutls+set}" = set; then :
3929 withval
=$with_gnutls;
3935 ## For the times when you want to build Emacs but don't have
3936 ## a suitable makeinfo, and can live without the manuals.
3938 # Check whether --with-makeinfo was given.
3939 if test "${with_makeinfo+set}" = set; then :
3940 withval
=$with_makeinfo;
3946 ## This is an option because I do not know if all info/man support
3947 ## compressed files, nor how to test if they do so.
3949 # Check whether --with-compress-info was given.
3950 if test "${with_compress_info+set}" = set; then :
3951 withval
=$with_compress_info;
3953 with_compress_info
=yes
3956 if test $with_compress_info = yes; then
3964 # Check whether --with-pkg-config-prog was given.
3965 if test "${with_pkg_config_prog+set}" = set; then :
3966 withval
=$with_pkg_config_prog;
3969 if test "X${with_pkg_config_prog}" != X
; then
3970 if test "${with_pkg_config_prog}" != yes; then
3971 PKG_CONFIG
="${with_pkg_config_prog}"
3977 # Check whether --with-crt-dir was given.
3978 if test "${with_crt_dir+set}" = set; then :
3979 withval
=$with_crt_dir;
3982 CRT_DIR
="${with_crt_dir}"
3985 # Check whether --with-gameuser was given.
3986 if test "${with_gameuser+set}" = set; then :
3987 withval
=$with_gameuser;
3990 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3991 && gameuser
="${with_gameuser}"
3992 test "X$gameuser" = X
&& gameuser
=games
3995 # Check whether --with-gnustep-conf was given.
3996 if test "${with_gnustep_conf+set}" = set; then :
3997 withval
=$with_gnustep_conf;
4000 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4001 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4002 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4003 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4005 # Check whether --enable-ns-self-contained was given.
4006 if test "${enable_ns_self_contained+set}" = set; then :
4007 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4009 EN_NS_SELF_CONTAINED
=yes
4013 # Check whether --enable-asserts was given.
4014 if test "${enable_asserts+set}" = set; then :
4015 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4021 # Check whether --enable-maintainer-mode was given.
4022 if test "${enable_maintainer_mode+set}" = set; then :
4023 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4025 USE_MAINTAINER_MODE
=yes
4028 if test $USE_MAINTAINER_MODE = yes; then
4035 # Check whether --enable-locallisppath was given.
4036 if test "${enable_locallisppath+set}" = set; then :
4037 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4039 elif test "${enableval}" != "yes"; then
4040 locallisppath
=${enableval}
4045 # Check whether --enable-checking was given.
4046 if test "${enable_checking+set}" = set; then :
4047 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4050 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4051 for check
in $ac_checking_flags
4054 # these set all the flags to specific states
4055 yes) ac_enable_checking
=1 ;;
4056 no
) ac_enable_checking
= ;
4057 ac_gc_check_stringbytes
= ;
4058 ac_gc_check_string_overrun
= ;
4059 ac_gc_check_string_free_list
= ;
4060 ac_xmalloc_overrun
= ;
4061 ac_gc_check_cons_list
= ;;
4062 all
) ac_enable_checking
=1 ;
4063 ac_gc_check_stringbytes
=1 ;
4064 ac_gc_check_string_overrun
=1 ;
4065 ac_gc_check_string_free_list
=1 ;
4066 ac_xmalloc_overrun
=1 ;
4067 ac_gc_check_cons_list
=1 ;;
4068 # these enable particular checks
4069 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4070 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4071 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4072 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4073 conslist
) ac_gc_check_cons_list
=1 ;;
4074 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4079 if test x
$ac_enable_checking != x
; then
4081 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4084 if test x
$ac_gc_check_stringbytes != x
; then
4086 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4089 if test x
$ac_gc_check_stringoverrun != x
; then
4091 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4094 if test x
$ac_gc_check_string_free_list != x
; then
4096 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4099 if test x
$ac_xmalloc_overrun != x
; then
4101 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4104 if test x
$ac_gc_check_cons_list != x
; then
4106 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4110 # Check whether --enable-use-lisp-union-type was given.
4111 if test "${enable_use_lisp_union_type+set}" = set; then :
4112 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4114 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4121 # Check whether --enable-profiling was given.
4122 if test "${enable_profiling+set}" = set; then :
4123 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4126 if test x
$ac_enable_profiling != x
; then
4127 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4133 # Check whether --enable-autodepend was given.
4134 if test "${enable_autodepend+set}" = set; then :
4135 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4137 ac_enable_autodepend
=yes
4141 #### Make srcdir absolute, if it isn't already. It's important to
4142 #### avoid running the path through pwd unnecessarily, since pwd can
4143 #### give you automounter prefixes, which can go away. We do all this
4144 #### so Emacs can find its files when run uninstalled.
4145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4150 ## We may be able to use the $PWD environment variable to make this
4151 ## absolute. But sometimes PWD is inaccurate.
4152 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4153 ## but that tested only for a well-formed and valid PWD,
4154 ## it did not object when PWD was well-formed and valid but just wrong.
4155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4159 srcdir
="`(cd ${srcdir}; pwd)`"
4162 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4165 #### Check if the source directory already has a configured system in it.
4166 if test `pwd` != `(cd ${srcdir} && pwd)` \
4167 && test -f "${srcdir}/src/config.h" ; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4169 as a build directory right now; it has been configured in its own
4170 right. To configure in another directory as well, you MUST
4171 use GNU make. If you do not have GNU make, then you must
4172 now do \`make distclean' in ${srcdir},
4173 and then run $0 again." >&5
4174 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4175 as a build directory right now; it has been configured in its own
4176 right. To configure in another directory as well, you MUST
4177 use GNU make. If you do not have GNU make, then you must
4178 now do \`make distclean' in ${srcdir},
4179 and then run $0 again." >&2;}
4182 #### Given the configuration name, set machfile and opsysfile to the
4183 #### names of the m/*.h and s/*.h files we should use.
4185 ### Canonicalize the configuration name.
4187 # Make sure we can run config.sub.
4188 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4189 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4192 $as_echo_n "checking build system type... " >&6; }
4193 if test "${ac_cv_build+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 ac_build_alias
=$build_alias
4197 test "x$ac_build_alias" = x
&&
4198 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4199 test "x$ac_build_alias" = x
&&
4200 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4201 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4202 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4206 $as_echo "$ac_cv_build" >&6; }
4207 case $ac_cv_build in
4209 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4212 ac_save_IFS
=$IFS; IFS
='-'
4218 # Remember, the first character of IFS is used to create $*,
4219 # except with old shells:
4222 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4226 $as_echo_n "checking host system type... " >&6; }
4227 if test "${ac_cv_host+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4230 if test "x$host_alias" = x
; then
4231 ac_cv_host
=$ac_cv_build
4233 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4234 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4239 $as_echo "$ac_cv_host" >&6; }
4242 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4245 ac_save_IFS
=$IFS; IFS
='-'
4251 # Remember, the first character of IFS is used to create $*,
4252 # except with old shells:
4255 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4259 configuration
=${host_alias-${build_alias-$host}}
4263 ### If you add support for a new configuration, add code to this
4264 ### switch statement to recognize your configuration name and select
4265 ### the appropriate operating system and machine description files.
4267 ### You would hope that you could choose an m/*.h file pretty much
4268 ### based on the machine portion of the configuration name, and an s/*.h
4269 ### file based on the operating system portion. However, it turns out
4270 ### that each m/*.h file is pretty manufacturer-specific - for
4271 ### example mips.h is MIPS
4272 ### So we basically have to have a special case for each
4273 ### configuration name.
4275 ### As far as handling version numbers on operating systems is
4276 ### concerned, make sure things will fail in a fixable way. If
4277 ### /etc/MACHINES doesn't say anything about version numbers, be
4278 ### prepared to handle anything reasonably. If version numbers
4279 ### matter, be sure /etc/MACHINES says something about it.
4281 machine
='' opsys
='' unported
=no
4282 case "${canonical}" in
4287 case ${canonical} in
4288 alpha
*) machine
=alpha
;;
4289 s390-
*) machine
=ibms390
;;
4290 s390x-
*) machine
=ibms390x
;;
4291 powerpc
*) machine
=macppc
;;
4292 sparc
*) machine
=sparc
;;
4293 ia64
*) machine
=ia64
;;
4294 m68k
*) machine
=m68k
;;
4295 x86_64
*) machine
=amdx86-64
;;
4302 case "${canonical}" in
4303 alpha
*) machine
=alpha
;;
4304 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4305 ia64-
*) machine
=ia64
;;
4306 i
[3456]86-*) machine
=intel386
;;
4307 powerpc-
*) machine
=macppc
;;
4308 sparc-
*) machine
=sparc
;;
4309 sparc64-
*) machine
=sparc
;;
4313 ## FreeBSD kernel + glibc based userland
4316 case "${canonical}" in
4317 alpha
*) machine
=alpha
;;
4318 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4319 ia64-
*) machine
=ia64
;;
4320 i
[3456]86-*) machine
=intel386
;;
4321 powerpc-
*) machine
=macppc
;;
4322 sparc-
*) machine
=sparc
;;
4323 sparc64-
*) machine
=sparc
;;
4330 case "${canonical}" in
4331 alpha
*) machine
=alpha
;;
4332 x86_64-
*) machine
=amdx86-64
;;
4333 i
[3456]86-*) machine
=intel386
;;
4334 m68k-
*) machine
=m68k
;;
4335 powerpc-
*) machine
=macppc
;;
4336 sparc
*-) machine
=sparc
;;
4337 vax-
*) machine
=vax
;;
4344 case "${canonical}" in
4345 alpha
*) machine
=alpha
;;
4346 x86_64-
*) machine
=amdx86-64
;;
4347 i386-
*) machine
=intel386
;;
4348 powerpc-
*) machine
=macppc
;;
4349 sparc
*) machine
=sparc
;;
4350 vax-
*) machine
=vax
;;
4354 ## Apple Darwin / Mac OS X
4356 case "${canonical}" in
4357 i
[3456]86-* ) machine
=intel386
;;
4358 powerpc-
* ) machine
=macppc
;;
4359 x86_64-
* ) machine
=amdx86-64
;;
4363 # Define CPP as follows to make autoconf work correctly.
4364 CPP
="${CC-cc} -E -no-cpp-precomp"
4365 # Use fink packages if available.
4366 if test -d /sw
/include
&& test -d /sw
/lib
; then
4367 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4368 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4369 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4373 ## HP 9000 series 700 and 800, running HP/UX
4374 hppa
*-hp-hpux10.2
* )
4377 hppa
*-hp-hpux1[1-9]* )
4379 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4382 ia64
*-hp-hpux1[1-9]* )
4383 machine
=hp800 opsys
=hpux11
4384 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4385 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4389 hppa
*-*-linux-gnu* )
4390 machine
=hp800 opsys
=gnu-linux
4394 rs6000-ibm-aix4.
[23]* )
4395 machine
=ibmrs6000 opsys
=aix4-2
4397 powerpc-ibm-aix4.
[23]* )
4398 machine
=ibmrs6000 opsys
=aix4-2
4400 rs6000-ibm-aix
[56]* )
4401 machine
=ibmrs6000 opsys
=aix4-2
4403 powerpc-ibm-aix
[56]* )
4404 machine
=ibmrs6000 opsys
=aix4-2
4407 ## Silicon Graphics machines
4410 machine
=iris4d opsys
=irix6-5
4411 # Without defining _LANGUAGE_C, things get masked out in the headers
4412 # so that, for instance, grepping for `free' in stdlib.h fails and
4413 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4414 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4415 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4421 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4422 case "${canonical}" in
4423 i
[3456]86-*-* ) machine
=intel386
;;
4424 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4425 sparc
* ) machine
=sparc
;;
4428 case "${canonical}" in
4429 *-sunos5.6
* |
*-solaris2.6
* )
4431 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4434 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4436 emacs_check_sunpro_c
=yes
4437 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4439 *-sunos5* |
*-solaris* )
4441 emacs_check_sunpro_c
=yes
4442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4445 ## Watch out for a compiler that we know will not work.
4446 case "${canonical}" in
4447 *-solaris* |
*-sunos5* )
4448 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4449 ## /usr/ucb/cc doesn't work;
4450 ## we should find some other compiler that does work.
4458 ## Intel 386 machines where we don't care about the manufacturer.
4461 case "${canonical}" in
4462 *-cygwin ) opsys
=cygwin
;;
4463 *-darwin* ) opsys
=darwin
4464 CPP
="${CC-cc} -E -no-cpp-precomp"
4466 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4467 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4468 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4469 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4478 ### If the code above didn't choose an operating system, just choose
4479 ### an operating system based on the configuration name. You really
4480 ### only want to use this when you have no idea what the right
4481 ### operating system is; if you know what operating systems a machine
4482 ### runs, it's cleaner to make it explicit in the case statement
4484 if test x
"${opsys}" = x
; then
4485 case "${canonical}" in
4486 *-gnu* ) opsys
=gnu
;;
4495 if test $unported = yes; then
4496 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4497 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4500 if test -n "$machine"; then
4501 machfile
="m/${machine}.h"
4505 opsysfile
="s/${opsys}.h"
4508 #### Choose a compiler.
4509 test -n "$CC" && cc_specified
=yes
4511 # Save the value of CFLAGS that the user specified.
4512 SPECIFIED_CFLAGS
="$CFLAGS"
4515 ac_cpp
='$CPP $CPPFLAGS'
4516 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4521 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC
="$CC" # Let the user override the test.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_CC"; then
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc
; ac_word
=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_CC
="gcc"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4588 if test -n "$ac_ct_CC"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4590 $as_echo "$ac_ct_CC" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_CC" = x
; then
4599 case $cross_compiling:$ac_tool_warned in
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned
=yes ;;
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4614 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC
="$CC" # Let the user override the test.
4623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir
=.
4628 for ac_exec_ext
in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643 $as_echo "$CC" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4652 if test -z "$CC"; then
4653 # Extract the first word of "cc", so it can be a program name with args.
4654 set dummy cc
; ac_word
=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC
="$CC" # Let the user override the test.
4664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir
=.
4669 for ac_exec_ext
in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4672 ac_prog_rejected
=yes
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 if test $ac_prog_rejected = yes; then
4684 # We found a bogon in the path, so make sure we never use it.
4685 set dummy
$ac_cv_prog_CC
4687 if test $# != 0; then
4688 # We chose a different compiler from the bogus one.
4689 # However, it has the same basename, so the bogon will be chosen
4690 # first if we set CC to just the basename; use the full file name.
4692 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$CC"; then
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog
in cl.exe
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC
="$CC" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$CC" && break
4752 if test -z "$CC"; then
4754 for ac_prog
in cl.exe
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy
$ac_prog; ac_word
=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$ac_ct_CC"; then
4764 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir
=.
4771 for ac_exec_ext
in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_CC
="$ac_prog"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4784 if test -n "$ac_ct_CC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4786 $as_echo "$ac_ct_CC" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_CC" && break
4796 if test "x$ac_ct_CC" = x
; then
4799 case $cross_compiling:$ac_tool_warned in
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned
=yes ;;
4812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error
"no acceptable C compiler found in \$PATH
4815 See \`config.log' for more details." "$LINENO" 5; }
4817 # Provide some information about the compiler.
4818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4821 for ac_option
in --version -v -V -qversion; do
4822 { { ac_try
="$ac_compiler $ac_option >&5"
4824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4828 $as_echo "$ac_try_echo"; } >&5
4829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4831 if test -s conftest.err; then
4833 ... rest of stderr output deleted ...
4834 10q' conftest.err >conftest.er1
4835 cat conftest.er1 >&5
4837 rm -f conftest.er1 conftest.err
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4853 ac_clean_files_save=$ac_clean_files
4854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4855 # Try to create an executable without -o first, disregard a.out.
4856 # It will help us diagnose broken compilers, and finding out an intuition
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4859 $as_echo_n "checking whether the C compiler works... " >&6; }
4860 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4862 # The possible output files:
4863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4866 for ac_file in $ac_files
4869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4875 if { { ac_try="$ac_link_default"
4877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4878 *) ac_try_echo
=$ac_try;;
4880 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 $as_echo "$ac_try_echo"; } >&5
4882 (eval "$ac_link_default") 2>&5
4884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }; then :
4886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4889 # so that the user can short-circuit this test for compilers unknown to
4891 for ac_file
in $ac_files ''
4893 test -f "$ac_file" ||
continue
4895 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4898 # We found the default executable, but exeext='' is most
4902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4904 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4906 # We set ac_cv_exeext here because the later test for it is not
4907 # safe: cross compilers may not add the suffix if given an `-o'
4908 # argument, so we may need to know it at that point already.
4909 # Even if this section looks crufty: it has the advantage of
4916 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4921 if test -z "$ac_file"; then :
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 { as_fn_set_status
77
4930 as_fn_error
"C compiler cannot create executables
4931 See \`config.log' for more details." "$LINENO" 5; }; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934 $as_echo "yes" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4937 $as_echo_n "checking for C compiler default output file name... " >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4939 $as_echo "$ac_file" >&6; }
4940 ac_exeext
=$ac_cv_exeext
4942 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4943 ac_clean_files
=$ac_clean_files_save
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4945 $as_echo_n "checking for suffix of executables... " >&6; }
4946 if { { ac_try
="$ac_link"
4948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 $as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_link") 2>&5
4955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956 test $ac_status = 0; }; then :
4957 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4958 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4959 # work properly (i.e., refer to `conftest.exe'), while it won't with
4961 for ac_file
in conftest.exe conftest conftest.
*; do
4962 test -f "$ac_file" ||
continue
4964 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4965 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4974 See \`config.log' for more details." "$LINENO" 5; }
4976 rm -f conftest conftest
$ac_cv_exeext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4978 $as_echo "$ac_cv_exeext" >&6; }
4980 rm -f conftest.
$ac_ext
4981 EXEEXT
=$ac_cv_exeext
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4989 FILE *f = fopen ("conftest.out", "w");
4990 return ferror (f) || fclose (f) != 0;
4996 ac_clean_files
="$ac_clean_files conftest.out"
4997 # Check that the compiler produces executables we can run. If not, either
4998 # the compiler is broken, or we cross compile.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5000 $as_echo_n "checking whether we are cross compiling... " >&6; }
5001 if test "$cross_compiling" != yes; then
5002 { { ac_try
="$ac_link"
5004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_link") 2>&5
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }
5013 if { ac_try='./conftest$ac_cv_exeext'
5014 { { case "(($ac_try" in
5015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5016 *) ac_try_echo
=$ac_try;;
5018 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5019 $as_echo "$ac_try_echo"; } >&5
5020 (eval "$ac_try") 2>&5
5022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5023 test $ac_status = 0; }; }; then
5026 if test "$cross_compiling" = maybe
; then
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error
"cannot run C compiled programs.
5032 If you meant to cross compile, use \`--host'.
5033 See \`config.log' for more details." "$LINENO" 5; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5038 $as_echo "$cross_compiling" >&6; }
5040 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5041 ac_clean_files
=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5043 $as_echo_n "checking for suffix of object files... " >&6; }
5044 if test "${ac_cv_objext+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5058 rm -f conftest.o conftest.obj
5059 if { { ac_try
="$ac_compile"
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_compile") 2>&5
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }; then :
5070 for ac_file in conftest.o conftest.obj conftest.*; do
5071 test -f "$ac_file" || continue;
5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "cannot compute suffix of object files
: cannot compile
5085 See \
`config.log' for more details." "$LINENO" 5; }
5087 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5090 $as_echo "$ac_cv_objext" >&6; }
5091 OBJEXT=$ac_cv_objext
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5094 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5095 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5112 if ac_fn_c_try_compile "$LINENO"; then :
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5122 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5123 if test $ac_compiler_gnu = yes; then
5128 ac_test_CFLAGS=${CFLAGS+set}
5129 ac_save_CFLAGS=$CFLAGS
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5131 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5132 if test "${ac_cv_prog_cc_g+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 ac_save_c_werror_flag=$ac_c_werror_flag
5136 ac_c_werror_flag=yes
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5150 if ac_fn_c_try_compile "$LINENO"; then :
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5165 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_c_werror_flag=$ac_save_c_werror_flag
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5181 if ac_fn_c_try_compile "$LINENO"; then :
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 ac_c_werror_flag=$ac_save_c_werror_flag
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5192 $as_echo "$ac_cv_prog_cc_g" >&6; }
5193 if test "$ac_test_CFLAGS" = set; then
5194 CFLAGS=$ac_save_CFLAGS
5195 elif test $ac_cv_prog_cc_g = yes; then
5196 if test "$GCC" = yes; then
5202 if test "$GCC" = yes; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5209 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5210 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_cv_prog_cc_c89=no
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5222 struct buf { int x; };
5223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5224 static char *e (p, i)
5230 static char *f (char * (*g) (char **, int), char **p, ...)
5235 s = g (p, va_arg (v,int));
5240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5241 function prototypes and stuff, but not '\xHH' hex character constants.
5242 These don't provoke an error unfortunately, instead are silently treated
5243 as 'x'. The following induces an error, until -std is added to get
5244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5245 array size at least. It's necessary to write '\x00'==0 to get something
5246 that's true only with -std. */
5247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5250 inside strings and character constants. */
5252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254 int test (int i, double x);
5255 struct s1 {int (*f) (int a);};
5256 struct s2 {int (*f) (double a);};
5257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 CC="$ac_save_CC $ac_arg"
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_prog_cc_c89=$ac_arg
5275 rm -f core conftest.err conftest.$ac_objext
5276 test "x$ac_cv_prog_cc_c89" != "xno" && break
5278 rm -f conftest.$ac_ext
5283 case "x$ac_cv_prog_cc_c89" in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 $as_echo "none needed" >&6; } ;;
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5289 $as_echo "unsupported" >&6; } ;;
5291 CC="$CC $ac_cv_prog_cc_c89"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5295 if test "x$ac_cv_prog_cc_c89" != xno; then :
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 DEPDIR="${am__leading_dot}deps"
5306 ac_config_commands="$ac_config_commands depfiles"
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5312 @echo this is the am__doit target
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from `make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333 echo '.include
"confinc"' > confmf
5334 case `$am_make -s -f confmf 2> /dev/null` in #(
5335 *the\ am__doit\ target*)
5336 am__include=.include
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350 enableval=$enable_dependency_tracking;
5353 if test "x$enable_dependency_tracking" != xno; then
5354 am_depcomp="$ac_aux_dir/depcomp"
5357 if test "x$enable_dependency_tracking" != xno
; then
5367 depcc
="$CC" am_compiler_list
=
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5370 $as_echo_n "checking dependency style of $depcc... " >&6; }
5371 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375 # We make a subdir and do the tests there. Otherwise we can end up
5376 # making bogus files that we don't know about and never remove. For
5377 # instance it was reported that on HP-UX the gcc test will end up
5378 # making a dummy file named `D' -- because `-MD' means `put the output
5381 # Copy depcomp to subdir because otherwise we won't find it if we're
5382 # using a relative directory.
5383 cp "$am_depcomp" conftest.dir
5385 # We will build objects and dependencies in a subdirectory because
5386 # it helps to detect inapplicable dependency modes. For instance
5387 # both Tru64's cc and ICC support -MD to output dependencies as a
5388 # side effect of compilation, but ICC will put the dependencies in
5389 # the current directory while Tru64 will put them in the object
5393 am_cv_CC_dependencies_compiler_type
=none
5394 if test "$am_compiler_list" = ""; then
5395 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5398 case " $depcc " in #(
5399 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5402 for depmode
in $am_compiler_list; do
5403 # Setup a source with many dependencies, because some compilers
5404 # like to wrap large dependency lists on column 80 (with \), and
5405 # we should not choose a depcomp mode which is confused by this.
5407 # We need to recreate these files for each test, as the compiler may
5408 # overwrite some of them when testing with obscure command lines.
5409 # This happens at least with the AIX C compiler.
5411 for i
in 1 2 3 4 5 6; do
5412 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5414 # Solaris 8's {/usr,}/bin/sh.
5415 touch sub
/conftst
$i.h
5417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this. Also, some Intel
5422 # versions had trouble with output in subdirs
5423 am__obj
=sub
/conftest.
${OBJEXT-o}
5424 am__minus_obj
="-o $am__obj"
5427 # This depmode causes a compiler race in universal mode.
5428 test "$am__universal" = false ||
continue
5431 # after this tag, mechanisms are not by side-effect, so they'll
5432 # only be used when explicitly requested
5433 if test "x$enable_dependency_tracking" = xyes
; then
5439 msvisualcpp | msvcmsys
)
5440 # This compiler won't grok `-c -o', but also, the minuso test has
5441 # not run yet. These depmodes are late enough in the game, and
5442 # so weak that their functioning should not be impacted.
5443 am__obj
=conftest.
${OBJEXT-o}
5448 if depmode
=$depmode \
5449 source=sub
/conftest.c object
=$am__obj \
5450 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5451 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5452 >/dev
/null
2>conftest.err
&&
5453 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5454 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5455 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5456 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type
=$depmode
5475 am_cv_CC_dependencies_compiler_type
=none
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5484 test "x$enable_dependency_tracking" != xno \
5485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5487 am__fastdepCC_FALSE
='#'
5489 am__fastdepCC_TRUE
='#'
5490 am__fastdepCC_FALSE
=
5494 if test "x$CC" != xcc
; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5496 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5499 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5501 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5502 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5503 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5517 # Make sure it works both with $CC and with simple cc.
5518 # We do the test twice because some compilers refuse to overwrite an
5519 # existing .o file with -o, though they will create one.
5520 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5522 if { { case "(($ac_try" in
5523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527 $as_echo "$ac_try_echo"; } >&5
5528 (eval "$ac_try") 2>&5
5530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; } &&
5532 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5534 *) ac_try_echo
=$ac_try;;
5536 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5537 $as_echo "$ac_try_echo"; } >&5
5538 (eval "$ac_try") 2>&5
5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541 test $ac_status = 0; };
5543 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5544 if test "x$CC" != xcc
; then
5545 # Test first that cc exists at all.
5546 if { ac_try
='cc -c conftest.$ac_ext >&5'
5547 { { case "(($ac_try" in
5548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5552 $as_echo "$ac_try_echo"; } >&5
5553 (eval "$ac_try") 2>&5
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }; }; then
5557 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5559 if { { case "(($ac_try" in
5560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5561 *) ac_try_echo
=$ac_try;;
5563 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; } &&
5569 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; };
5583 # cc exists but doesn't like -o.
5584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5589 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5591 rm -f core conftest*
5594 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596 $as_echo "yes" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5601 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5605 # FIXME: we rely on the cache variable name because
5606 # there is no other way.
5608 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5609 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5610 if test "$am_t" != yes; then
5611 # Losing compiler, so override with the script.
5612 # FIXME: It is wrong to rewrite CC.
5613 # But if we don't then we get into trouble of one sort or another.
5614 # A longer-term fix would be to have automake use am__CC in this case,
5615 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5616 CC="$am_aux_dir/compile $CC"
5621 # Initialize gnulib right after verifying that the C compiler works.
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$RANLIB"; then
5631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653 $as_echo "$RANLIB" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_RANLIB"; then
5662 ac_ct_RANLIB=$RANLIB
5663 # Extract the first word of "ranlib", so it can be a program name with args.
5664 set dummy ranlib; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -n "$ac_ct_RANLIB"; then
5671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_RANLIB="ranlib"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691 if test -n "$ac_ct_RANLIB"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693 $as_echo "$ac_ct_RANLIB" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_RANLIB" = x; then
5702 case $cross_compiling:$ac_tool_warned in
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5708 RANLIB=$ac_ct_RANLIB
5711 RANLIB="$ac_cv_prog_RANLIB"
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5722 # On Suns, sometimes $CPP names a directory.
5723 if test -n "$CPP" && test -d "$CPP"; then
5726 if test -z "$CPP"; then
5727 if test "${ac_cv_prog_CPP+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 # Double quotes because CPP needs to be expanded
5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 # include <limits.h>
5747 # include <assert.h>
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5754 # Broken: fails on valid input.
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5769 # Passes both tests.
5773 rm -f conftest.err conftest.$ac_ext
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.err conftest.
$ac_ext
5778 if $ac_preproc_ok; then :
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5791 $as_echo "$CPP" >&6; }
5793 for ac_c_preproc_warn_flag
in '' yes
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5804 # include <limits.h>
5806 # include <assert.h>
5810 if ac_fn_c_try_cpp
"$LINENO"; then :
5813 # Broken: fails on valid input.
5816 rm -f conftest.err conftest.
$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5824 if ac_fn_c_try_cpp
"$LINENO"; then :
5825 # Broken: success on invalid input.
5828 # Passes both tests.
5832 rm -f conftest.err conftest.
$ac_ext
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.
$ac_ext
5837 if $ac_preproc_ok; then :
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." "$LINENO" 5; }
5847 ac_cpp
='$CPP $CPPFLAGS'
5848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5855 if test "${ac_cv_path_GREP+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5858 if test -z "$GREP"; then
5859 ac_path_GREP_found
=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5862 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5865 test -z "$as_dir" && as_dir
=.
5866 for ac_prog
in grep ggrep
; do
5867 for ac_exec_ext
in '' $ac_executable_extensions; do
5868 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5870 # Check for GNU ac_path_GREP and select it if it is found.
5871 # Check for GNU $ac_path_GREP
5872 case `"$ac_path_GREP" --version 2>&1` in
5874 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5877 $as_echo_n 0123456789 >"conftest.in"
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'GREP' >> "conftest.nl"
5884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5885 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5886 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_GREP
="$ac_path_GREP"
5890 ac_path_GREP_max
=$ac_count
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5895 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5898 $ac_path_GREP_found && break 3
5903 if test -z "$ac_cv_path_GREP"; then
5904 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5907 ac_cv_path_GREP
=$GREP
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5912 $as_echo "$ac_cv_path_GREP" >&6; }
5913 GREP
="$ac_cv_path_GREP"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5917 $as_echo_n "checking for egrep... " >&6; }
5918 if test "${ac_cv_path_EGREP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5921 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5922 then ac_cv_path_EGREP
="$GREP -E"
5924 if test -z "$EGREP"; then
5925 ac_path_EGREP_found
=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5928 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5931 test -z "$as_dir" && as_dir
=.
5932 for ac_prog
in egrep; do
5933 for ac_exec_ext
in '' $ac_executable_extensions; do
5934 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5936 # Check for GNU ac_path_EGREP and select it if it is found.
5937 # Check for GNU $ac_path_EGREP
5938 case `"$ac_path_EGREP" --version 2>&1` in
5940 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5943 $as_echo_n 0123456789 >"conftest.in"
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 $as_echo 'EGREP' >> "conftest.nl"
5950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5951 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5952 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_EGREP
="$ac_path_EGREP"
5956 ac_path_EGREP_max
=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5961 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5964 $ac_path_EGREP_found && break 3
5969 if test -z "$ac_cv_path_EGREP"; then
5970 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5973 ac_cv_path_EGREP
=$EGREP
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5979 $as_echo "$ac_cv_path_EGREP" >&6; }
5980 EGREP
="$ac_cv_path_EGREP"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5984 $as_echo_n "checking for ANSI C header files... " >&6; }
5985 if test "${ac_cv_header_stdc+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
6003 if ac_fn_c_try_compile
"$LINENO"; then :
6004 ac_cv_header_stdc
=yes
6006 ac_cv_header_stdc
=no
6008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6010 if test $ac_cv_header_stdc = yes; then
6011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "memchr" >/dev
/null
2>&1; then :
6021 ac_cv_header_stdc
=no
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "free" >/dev
/null
2>&1; then :
6038 ac_cv_header_stdc
=no
6044 if test $ac_cv_header_stdc = yes; then
6045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6046 if test "$cross_compiling" = yes; then :
6049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6053 #if ((' ' & 0x0FF) == 0x020)
6054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057 # define ISLOWER(c) \
6058 (('a' <= (c) && (c) <= 'i') \
6059 || ('j' <= (c) && (c) <= 'r') \
6060 || ('s' <= (c) && (c) <= 'z'))
6061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6069 for (i = 0; i < 256; i++)
6070 if (XOR (islower (i), ISLOWER (i))
6071 || toupper (i) != TOUPPER (i))
6076 if ac_fn_c_try_run
"$LINENO"; then :
6079 ac_cv_header_stdc
=no
6081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6088 $as_echo "$ac_cv_header_stdc" >&6; }
6089 if test $ac_cv_header_stdc = yes; then
6091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6096 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6097 inttypes.h stdint.h unistd.h
6099 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6102 eval as_val
=\$
$as_ac_Header
6103 if test "x$as_val" = x
""yes; then :
6104 cat >>confdefs.h
<<_ACEOF
6105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6116 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6117 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6124 if test "$MINIX" = yes; then
6126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6132 $as_echo "#define _MINIX 1" >>confdefs.h
6139 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6146 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6147 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 # define __EXTENSIONS__ 1
6154 $ac_includes_default
6163 if ac_fn_c_try_compile
"$LINENO"; then :
6164 ac_cv_safe_to_define___extensions__
=yes
6166 ac_cv_safe_to_define___extensions__
=no
6168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6171 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6172 test $ac_cv_safe_to_define___extensions__ = yes &&
6173 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6175 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6177 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6179 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6181 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6192 # Code from module arg-nonnull:
6193 # Code from module c++defs:
6194 # Code from module crypto/md5:
6195 # Code from module dosname:
6196 # Code from module dtoastr:
6197 # Code from module extensions:
6199 # Code from module filemode:
6200 # Code from module getloadavg:
6201 # Code from module getopt-gnu:
6202 # Code from module getopt-posix:
6203 # Code from module gettext-h:
6204 # Code from module ignore-value:
6205 # Code from module include_next:
6206 # Code from module intprops:
6207 # Code from module lstat:
6208 # Code from module mktime:
6209 # Code from module multiarch:
6210 # Code from module readlink:
6211 # Code from module socklen:
6212 # Code from module stat:
6213 # Code from module stdbool:
6214 # Code from module stddef:
6215 # Code from module stdint:
6216 # Code from module stdio:
6217 # Code from module stdlib:
6218 # Code from module strftime:
6219 # Code from module symlink:
6220 # Code from module sys_stat:
6221 # Code from module time:
6222 # Code from module time_r:
6223 # Code from module unistd:
6224 # Code from module warn-on-use:
6227 # On Suns, sometimes $CPP names a directory.
6228 if test -n "$CPP" && test -d "$CPP"; then
6232 ## If not using gcc, and on Solaris, and no CPP specified, see if
6233 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6234 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6235 test x
"$CPP" = x
; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6237 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6238 if test "${emacs_cv_sunpro_c+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6255 if ac_fn_c_try_link
"$LINENO"; then :
6256 emacs_cv_sunpro_c
=yes
6258 emacs_cv_sunpro_c
=no
6260 rm -f core conftest.err conftest.
$ac_objext \
6261 conftest
$ac_exeext conftest.
$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6265 $as_echo "$emacs_cv_sunpro_c" >&6; }
6267 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6268 NON_GNU_CPP
="$CC -E -Xs"
6272 #### Some systems specify a CPP to use unless we are using GCC.
6273 #### Now that we know whether we are using GCC, we can decide whether
6274 #### to use that one.
6275 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6280 #### Some systems specify a CC to use unless we are using GCC.
6281 #### Now that we know whether we are using GCC, we can decide whether
6282 #### to use that one.
6283 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6284 test x
$cc_specified != xyes
6289 if test x
$GCC = xyes
; then
6290 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6292 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6295 ### Use -Wdeclaration-after-statement if the compiler supports it
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6297 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6298 SAVE_CFLAGS
="$CFLAGS"
6299 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6311 if ac_fn_c_try_compile
"$LINENO"; then :
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 if test $has_option = yes; then
6318 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6321 $as_echo "$has_option" >&6; }
6322 CFLAGS
="$SAVE_CFLAGS"
6326 ### Use -Wold-style-definition if the compiler supports it
6327 # This can be removed when conversion to standard C is finished.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6329 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6330 SAVE_CFLAGS
="$CFLAGS"
6331 CFLAGS
="$CFLAGS -Wold-style-definition"
6332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6343 if ac_fn_c_try_compile
"$LINENO"; then :
6348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6349 if test $has_option = yes; then
6350 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6353 $as_echo "$has_option" >&6; }
6354 CFLAGS
="$SAVE_CFLAGS"
6358 ### Use -Wimplicit-function-declaration if the compiler supports it
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6360 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6361 SAVE_CFLAGS
="$CFLAGS"
6362 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6374 if ac_fn_c_try_compile
"$LINENO"; then :
6379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 if test $has_option = yes; then
6381 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6384 $as_echo "$has_option" >&6; }
6385 CFLAGS
="$SAVE_CFLAGS"
6392 #### Some other nice autoconf tests.
6395 ac_cpp
='$CPP $CPPFLAGS'
6396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6400 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6401 # On Suns, sometimes $CPP names a directory.
6402 if test -n "$CPP" && test -d "$CPP"; then
6405 if test -z "$CPP"; then
6406 if test "${ac_cv_prog_CPP+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6409 # Double quotes because CPP needs to be expanded
6410 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6413 for ac_c_preproc_warn_flag
in '' yes
6415 # Use a header file that comes with gcc, so configuring glibc
6416 # with a fresh cross-compiler works.
6417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 # <limits.h> exists even on freestanding compilers.
6419 # On the NeXT, cc -E runs the code through the compiler's parser,
6420 # not just through cpp. "Syntax error" is here to catch this case.
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6424 # include <limits.h>
6426 # include <assert.h>
6430 if ac_fn_c_try_cpp
"$LINENO"; then :
6433 # Broken: fails on valid input.
6436 rm -f conftest.err conftest.
$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6444 if ac_fn_c_try_cpp
"$LINENO"; then :
6445 # Broken: success on invalid input.
6448 # Passes both tests.
6452 rm -f conftest.err conftest.
$ac_ext
6455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456 rm -f conftest.err conftest.
$ac_ext
6457 if $ac_preproc_ok; then :
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6470 $as_echo "$CPP" >&6; }
6472 for ac_c_preproc_warn_flag
in '' yes
6474 # Use a header file that comes with gcc, so configuring glibc
6475 # with a fresh cross-compiler works.
6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477 # <limits.h> exists even on freestanding compilers.
6478 # On the NeXT, cc -E runs the code through the compiler's parser,
6479 # not just through cpp. "Syntax error" is here to catch this case.
6480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6483 # include <limits.h>
6485 # include <assert.h>
6489 if ac_fn_c_try_cpp
"$LINENO"; then :
6492 # Broken: fails on valid input.
6495 rm -f conftest.err conftest.
$ac_ext
6497 # OK, works on sane cases. Now check whether nonexistent headers
6498 # can be detected and how.
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6503 if ac_fn_c_try_cpp
"$LINENO"; then :
6504 # Broken: success on invalid input.
6507 # Passes both tests.
6511 rm -f conftest.err conftest.
$ac_ext
6514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515 rm -f conftest.err conftest.
$ac_ext
6516 if $ac_preproc_ok; then :
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6521 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6522 See \`config.log' for more details." "$LINENO" 5; }
6526 ac_cpp
='$CPP $CPPFLAGS'
6527 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6532 if test "x$RANLIB" = x
; then
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6535 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$RANLIB"; then
6542 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir
=.
6549 for ac_exec_ext
in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 RANLIB
=$ac_cv_prog_RANLIB
6562 if test -n "$RANLIB"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6564 $as_echo "$RANLIB" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_RANLIB"; then
6573 ac_ct_RANLIB
=$RANLIB
6574 # Extract the first word of "ranlib", so it can be a program name with args.
6575 set dummy ranlib
; ac_word
=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$ac_ct_RANLIB"; then
6582 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir
=.
6589 for ac_exec_ext
in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6602 if test -n "$ac_ct_RANLIB"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6604 $as_echo "$ac_ct_RANLIB" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_RANLIB" = x
; then
6613 case $cross_compiling:$ac_tool_warned in
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned
=yes ;;
6619 RANLIB
=$ac_ct_RANLIB
6622 RANLIB
="$ac_cv_prog_RANLIB"
6627 ## Although we're running on an amd64 kernel, we're actually compiling for
6628 ## the x86 architecture. The user should probably have provided an
6629 ## explicit --build to `configure', but if everything else than the kernel
6630 ## is running in i386 mode, we can help them out.
6631 if test "$machine" = "amdx86-64"; then
6632 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6633 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6637 if test "$ac_cv_have_decl_i386" = "yes"; then
6638 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6640 machfile
="m/${machine}.h"
6644 # Extract the first word of "install-info", so it can be a program name with args.
6645 set dummy install-info
; ac_word
=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 case $INSTALL_INFO in
6653 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir
=.
6661 for ac_exec_ext
in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6675 if test -n "$INSTALL_INFO"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6677 $as_echo "$INSTALL_INFO" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6684 # Extract the first word of "install-info", so it can be a program name with args.
6685 set dummy install-info
; ac_word
=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 case $INSTALL_INFO in
6693 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6697 for as_dir
in /usr
/sbin
6700 test -z "$as_dir" && as_dir
=.
6701 for ac_exec_ext
in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6715 if test -n "$INSTALL_INFO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6717 $as_echo "$INSTALL_INFO" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6724 # Extract the first word of "install-info", so it can be a program name with args.
6725 set dummy install-info
; ac_word
=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6731 case $INSTALL_INFO in
6733 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6755 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6756 if test -n "$INSTALL_INFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6758 $as_echo "$INSTALL_INFO" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 # Extract the first word of "gzip", so it can be a program name with args.
6766 set dummy
gzip; ac_word
=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6774 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir
=.
6782 for ac_exec_ext
in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6796 if test -n "$GZIP_PROG"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6798 $as_echo "$GZIP_PROG" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6807 ## Need makeinfo >= 4.6 (?) to build the manuals.
6808 # Extract the first word of "makeinfo", so it can be a program name with args.
6809 set dummy makeinfo
; ac_word
=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6817 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir
=.
6825 for ac_exec_ext
in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6839 MAKEINFO
=$ac_cv_path_MAKEINFO
6840 if test -n "$MAKEINFO"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6842 $as_echo "$MAKEINFO" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6849 if test "$MAKEINFO" != "no" && \
6850 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
6854 ## Makeinfo is unusual. For a released Emacs, the manuals are
6855 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6856 ## therefore in the category of "special tools" not normally required, which
6857 ## configure does not have to check for (eg autoconf itself).
6858 ## In a Bazaar checkout on the other hand, the manuals are not included.
6859 ## So makeinfo is a requirement to build from Bazaar, and configure
6860 ## should test for it as it does for any other build requirement.
6861 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6862 ## with pre-built manuals, from a Bazaar checkout.
6865 if test "$MAKEINFO" = "no"; then
6867 if test "x${with_makeinfo}" = "xno"; then
6869 elif test ! -e $srcdir/info
/emacs
; then
6870 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
6871 source tree does not seem to have pre-built manuals in the \`info' directory.
6872 Either install a suitable version of makeinfo, or re-run configure
6873 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6879 if test x
$GCC = xyes
; then
6880 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6881 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6883 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6884 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6888 late_LDFLAGS
=$LDFLAGS
6889 if test x
$GCC = xyes
; then
6890 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6892 LDFLAGS
="$LDFLAGS -znocombreloc"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6896 $as_echo_n "checking for -znocombreloc... " >&6; }
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_c_try_link
"$LINENO"; then :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 $as_echo "yes" >&6; }
6912 LDFLAGS
=$late_LDFLAGS
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6916 rm -f core conftest.err conftest.
$ac_objext \
6917 conftest
$ac_exeext conftest.
$ac_ext
6920 # The value of CPP is a quoted variable reference, so we need to do this
6921 # to get its actual value...
6922 CPP
=`eval "echo $CPP"`
6925 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6927 your-opsys-here
) CANNOT_DUMP
=yes ;;
6930 test "$CANNOT_DUMP" = "yes" && \
6932 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6938 UNEXEC_OBJ
=unexelf.o
6940 # MSDOS uses unexcoff.o
6941 # MSWindows uses unexw32.o
6943 UNEXEC_OBJ
=unexaix.o
6949 UNEXEC_OBJ
=unexmacosx.o
6952 UNEXEC_OBJ
=unexhp9k800.o
6955 # Use the Solaris dldump() function, called from unexsol.c, to dump
6956 # emacs, instead of the generic ELF dump code found in unexelf.c.
6957 # The resulting binary has a complete symbol table, and is better
6958 # for debugging and other observability tools (debuggers, pstack, etc).
6960 # If you encounter a problem using dldump(), please consider sending
6961 # a message to the OpenSolaris tools-linking mailing list:
6962 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6964 # It is likely that dldump() works with older Solaris too, but this has
6965 # not been tested, so for now this change is for Solaris 10 or newer.
6966 UNEXEC_OBJ
=unexsol.o
6973 ## Let `ld' find image libs and similar things in /usr/local/lib.
6974 ## The system compiler, GCC, has apparently been modified to not
6975 ## look there, contrary to what a stock GCC would do.
6976 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6980 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6981 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6985 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6989 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6990 ## otherwise Emacs dumps core on elf systems.
6991 LD_SWITCH_SYSTEM
="-Z"
6996 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6998 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6999 ## which has not been defined yet. When this was handled with cpp,
7000 ## it was expanded to null when configure sourced the s/*.h file.
7001 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7002 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7003 ## (or somesuch), but because it is supposed to go at the _front_
7004 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7005 ## Compare with the gnu-linux case below, which added to the end
7006 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7007 ## LD_SWITCH_SYSTEM_TEMACS.
7010 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7011 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7016 if test "$machine" = "alpha"; then
7017 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7018 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7022 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7023 ## With ELF, make sure that all common symbols get allocated to in the
7024 ## data section. Otherwise, the dump of temacs may miss variables in
7025 ## the shared library that have been initialized. For example, with
7026 ## GNU libc, __malloc_initialized would normally be resolved to the
7027 ## shared library's .bss section, which is fatal.
7028 if test "x$GCC" = "xyes"; then
7029 C_SWITCH_MACHINE
="-fno-common"
7031 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7034 UNEXEC_OBJ
=unexalpha.o
7042 ## Some programs in src produce warnings saying certain subprograms
7043 ## are too complex and need a MAXMEM value greater than 2000 for
7044 ## additional optimization. --nils@exp-math.uni-essen.de
7045 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7046 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7047 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7048 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7054 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7055 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7057 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7059 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7061 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7063 ## Motif needs -lgen.
7064 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7069 ### Make sure subsequent tests use flags consistent with the build flags.
7071 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7072 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7074 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7077 # Check whether --enable-largefile was given.
7078 if test "${enable_largefile+set}" = set; then :
7079 enableval
=$enable_largefile;
7082 if test "$enable_largefile" != no
; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7085 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7086 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 ac_cv_sys_largefile_CC
=no
7090 if test "$GCC" != yes; then
7093 # IRIX 6.2 and later do not support large files by default,
7094 # so use the C compiler's -n32 option if that helps.
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7117 rm -f core conftest.err conftest.
$ac_objext
7119 if ac_fn_c_try_compile
"$LINENO"; then :
7120 ac_cv_sys_largefile_CC
=' -n32'; break
7122 rm -f core conftest.err conftest.
$ac_objext
7126 rm -f conftest.
$ac_ext
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7130 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7131 if test "$ac_cv_sys_largefile_CC" != no
; then
7132 CC
=$CC$ac_cv_sys_largefile_CC
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7136 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7160 if ac_fn_c_try_compile
"$LINENO"; then :
7161 ac_cv_sys_file_offset_bits
=no
; break
7163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #define _FILE_OFFSET_BITS 64
7167 #include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7184 if ac_fn_c_try_compile
"$LINENO"; then :
7185 ac_cv_sys_file_offset_bits
=64; break
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7188 ac_cv_sys_file_offset_bits
=unknown
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7193 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7194 case $ac_cv_sys_file_offset_bits in #(
7197 cat >>confdefs.h
<<_ACEOF
7198 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7203 if test $ac_cv_sys_file_offset_bits = unknown
; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7205 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7206 if test "${ac_cv_sys_large_files+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 /* Check that off_t can represent 2**63 - 1 correctly.
7214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7215 since some C++ compilers masquerading as C compilers
7216 incorrectly reject 9223372036854775807. */
7217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7219 && LARGE_OFF_T % 2147483647 == 1)
7229 if ac_fn_c_try_compile
"$LINENO"; then :
7230 ac_cv_sys_large_files
=no
; break
7232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #define _LARGE_FILES 1
7236 #include <sys/types.h>
7237 /* Check that off_t can represent 2**63 - 1 correctly.
7238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7239 since some C++ compilers masquerading as C compilers
7240 incorrectly reject 9223372036854775807. */
7241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7243 && LARGE_OFF_T % 2147483647 == 1)
7253 if ac_fn_c_try_compile
"$LINENO"; then :
7254 ac_cv_sys_large_files
=1; break
7256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 ac_cv_sys_large_files
=unknown
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7262 $as_echo "$ac_cv_sys_large_files" >&6; }
7263 case $ac_cv_sys_large_files in #(
7266 cat >>confdefs.h
<<_ACEOF
7267 #define _LARGE_FILES $ac_cv_sys_large_files
7277 ## If user specified a crt-dir, use that unconditionally.
7278 if test "X$CRT_DIR" = "X"; then
7280 case "$canonical" in
7281 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7282 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7283 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7284 ## For anything else (eg /usr/lib32), it is up the user to specify
7285 ## the location (bug#5655).
7286 ## Test for crtn.o, not just the directory, because sometimes the
7287 ## directory exists but does not have the relevant files (bug#1287).
7288 ## FIXME better to test for binary compatibility somehow.
7289 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7292 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7296 hpux10-20
) CRT_DIR
=/lib
;;
7299 ## Default is /usr/lib.
7300 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7304 ## Some platforms don't use any of these files, so it is not
7305 ## appropriate to put this test outside the if block.
7306 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7307 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7320 START_FILES
='pre-crt0.o'
7323 ## Adding -lm confuses the dynamic linker, so omit it.
7325 START_FILES
='pre-crt0.o'
7328 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7329 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7331 gnu-linux | gnu-kfreebsd
)
7332 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7333 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7335 hpux10-20 | hpux11
)
7337 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7340 if test -f $CRT_DIR/crti.o
; then
7341 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7342 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7344 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7345 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7356 if test "${with_sound}" != "no"; then
7357 # Sound support for GNU/Linux and the free BSDs.
7358 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7362 eval as_val
=\$
$as_ac_Header
7363 if test "x$as_val" = x
""yes; then :
7364 cat >>confdefs.h
<<_ACEOF
7365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 have_sound_header
=yes
7372 # Emulation library used on NetBSD.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7374 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7375 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 ac_check_lib_save_LIBS
=$LIBS
7379 LIBS
="-lossaudio $LIBS"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7393 return _oss_ioctl ();
7398 if ac_fn_c_try_link
"$LINENO"; then :
7399 ac_cv_lib_ossaudio__oss_ioctl
=yes
7401 ac_cv_lib_ossaudio__oss_ioctl
=no
7403 rm -f core conftest.err conftest.
$ac_objext \
7404 conftest
$ac_exeext conftest.
$ac_ext
7405 LIBS
=$ac_check_lib_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7408 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7409 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7418 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7422 # Extract the first word of "pkg-config", so it can be a program name with args.
7423 set dummy pkg-config
; ac_word
=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7431 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir
=.
7439 for ac_exec_ext
in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7453 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7454 if test -n "$PKG_CONFIG"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7456 $as_echo "$PKG_CONFIG" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test "$PKG_CONFIG" = "no" ; then
7467 PKG_CONFIG_MIN_VERSION
=0.9.0
7468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7470 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7472 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7478 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7479 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7481 $as_echo "$ALSA_CFLAGS" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7484 $as_echo_n "checking ALSA_LIBS... " >&6; }
7485 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7487 $as_echo "$ALSA_LIBS" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7493 ## If we have a custom action on failure, don't print errors, but
7494 ## do set a variable so people can do so.
7495 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7507 if test $succeeded = yes; then
7513 if test $HAVE_ALSA = yes; then
7514 SAVE_CFLAGS
="$CFLAGS"
7515 SAVE_LDFLAGS
="$LDFLAGS"
7516 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7517 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <asoundlib.h>
7524 snd_lib_error_set_handler (0);
7529 if ac_fn_c_try_compile
"$LINENO"; then :
7530 emacs_alsa_normal
=yes
7532 emacs_alsa_normal
=no
7534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 if test "$emacs_alsa_normal" != yes; then
7536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <alsa/asoundlib.h>
7542 snd_lib_error_set_handler (0);
7547 if ac_fn_c_try_compile
"$LINENO"; then :
7548 emacs_alsa_subdir
=yes
7550 emacs_alsa_subdir
=no
7552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7553 if test "$emacs_alsa_subdir" != yes; then
7554 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7556 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7559 CFLAGS
="$SAVE_CFLAGS"
7560 LDFLAGS
="$SAVE_LDFLAGS"
7561 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7562 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7564 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7568 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7570 gnu-linux|freebsd|netbsd
)
7572 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7581 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7582 linux
/version.h sys
/systeminfo.h limits.h \
7583 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7584 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7585 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7587 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7589 eval as_val
=\$
$as_ac_Header
7590 if test "x$as_val" = x
""yes; then :
7591 cat >>confdefs.h
<<_ACEOF
7592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7601 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <sys/personality.h>
7608 personality (PER_LINUX32)
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 emacs_cv_personality_linux32
=yes
7616 emacs_cv_personality_linux32
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7620 $as_echo "$emacs_cv_personality_linux32" >&6; }
7622 if test $emacs_cv_personality_linux32 = yes; then
7624 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7628 for ac_header
in term.h
7630 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7631 if test "x$ac_cv_header_term_h" = x
""yes; then :
7632 cat >>confdefs.h
<<_ACEOF
7633 #define HAVE_TERM_H 1
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7641 $as_echo_n "checking for ANSI C header files... " >&6; }
7642 if test "${ac_cv_header_stdc+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7660 if ac_fn_c_try_compile
"$LINENO"; then :
7661 ac_cv_header_stdc
=yes
7663 ac_cv_header_stdc
=no
7665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7667 if test $ac_cv_header_stdc = yes; then
7668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675 $EGREP "memchr" >/dev
/null
2>&1; then :
7678 ac_cv_header_stdc
=no
7684 if test $ac_cv_header_stdc = yes; then
7685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "free" >/dev
/null
2>&1; then :
7695 ac_cv_header_stdc
=no
7701 if test $ac_cv_header_stdc = yes; then
7702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7703 if test "$cross_compiling" = yes; then :
7706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7714 # define ISLOWER(c) \
7715 (('a' <= (c) && (c) <= 'i') \
7716 || ('j' <= (c) && (c) <= 'r') \
7717 || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7726 for (i = 0; i < 256; i++)
7727 if (XOR (islower (i), ISLOWER (i))
7728 || toupper (i) != TOUPPER (i))
7733 if ac_fn_c_try_run
"$LINENO"; then :
7736 ac_cv_header_stdc
=no
7738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7745 $as_echo "$ac_cv_header_stdc" >&6; }
7746 if test $ac_cv_header_stdc = yes; then
7748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7754 if test "${ac_cv_header_time+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7766 if ((struct tm *) 0)
7772 if ac_fn_c_try_compile
"$LINENO"; then :
7773 ac_cv_header_time
=yes
7775 ac_cv_header_time
=no
7777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7780 $as_echo "$ac_cv_header_time" >&6; }
7781 if test $ac_cv_header_time = yes; then
7783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7787 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7788 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7794 cat >>confdefs.h
<<_ACEOF
7795 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7798 if test $ac_cv_have_decl_sys_siglist != yes; then
7799 # For Tru64, at least:
7800 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7801 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7807 cat >>confdefs.h
<<_ACEOF
7808 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7811 if test $ac_cv_have_decl___sys_siglist = yes; then
7813 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7818 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7819 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <sys/types.h>
7825 #include <sys/wait.h>
7827 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7830 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7838 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7843 if ac_fn_c_try_compile
"$LINENO"; then :
7844 ac_cv_header_sys_wait_h
=yes
7846 ac_cv_header_sys_wait_h
=no
7848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7851 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7852 if test $ac_cv_header_sys_wait_h = yes; then
7854 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7860 $as_echo_n "checking for struct utimbuf... " >&6; }
7861 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7882 static struct utimbuf x; x.actime = x.modtime;
7887 if ac_fn_c_try_compile
"$LINENO"; then :
7888 emacs_cv_struct_utimbuf
=yes
7890 emacs_cv_struct_utimbuf
=no
7892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7895 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7896 if test $emacs_cv_struct_utimbuf = yes; then
7898 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7903 $as_echo_n "checking return type of signal handlers... " >&6; }
7904 if test "${ac_cv_type_signal+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <sys/types.h>
7915 return *(signal (0, 0)) (0) == 1;
7920 if ac_fn_c_try_compile
"$LINENO"; then :
7921 ac_cv_type_signal
=int
7923 ac_cv_type_signal
=void
7925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7928 $as_echo "$ac_cv_type_signal" >&6; }
7930 cat >>confdefs.h
<<_ACEOF
7931 #define RETSIGTYPE $ac_cv_type_signal
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7937 $as_echo_n "checking for speed_t... " >&6; }
7938 if test "${emacs_cv_speed_t+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <termios.h>
7952 if ac_fn_c_try_compile
"$LINENO"; then :
7953 emacs_cv_speed_t
=yes
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7960 $as_echo "$emacs_cv_speed_t" >&6; }
7961 if test $emacs_cv_speed_t = yes; then
7963 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7968 $as_echo_n "checking for struct timeval... " >&6; }
7969 if test "${emacs_cv_struct_timeval+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #ifdef TIME_WITH_SYS_TIME
7975 #include <sys/time.h>
7978 #ifdef HAVE_SYS_TIME_H
7979 #include <sys/time.h>
7987 static struct timeval x; x.tv_sec = x.tv_usec;
7992 if ac_fn_c_try_compile
"$LINENO"; then :
7993 emacs_cv_struct_timeval
=yes
7995 emacs_cv_struct_timeval
=no
7997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8000 $as_echo "$emacs_cv_struct_timeval" >&6; }
8001 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8002 if test $emacs_cv_struct_timeval = yes; then
8004 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8009 $as_echo_n "checking for struct exception... " >&6; }
8010 if test "${emacs_cv_struct_exception+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
8013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8019 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8024 if ac_fn_c_try_compile
"$LINENO"; then :
8025 emacs_cv_struct_exception
=yes
8027 emacs_cv_struct_exception
=no
8029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8032 $as_echo "$emacs_cv_struct_exception" >&6; }
8033 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8034 if test $emacs_cv_struct_exception != yes; then
8036 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8040 for ac_header
in net
/if.h
8042 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8043 #if HAVE_SYS_SOCKET_H
8044 #include <sys/socket.h>
8047 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8048 cat >>confdefs.h
<<_ACEOF
8049 #define HAVE_NET_IF_H 1
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8058 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8059 if test "${ac_cv_struct_tm+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <sys/types.h>
8071 int *p = &tm.tm_sec;
8077 if ac_fn_c_try_compile
"$LINENO"; then :
8078 ac_cv_struct_tm
=time.h
8080 ac_cv_struct_tm
=sys
/time.h
8082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8085 $as_echo "$ac_cv_struct_tm" >&6; }
8086 if test $ac_cv_struct_tm = sys
/time.h
; then
8088 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8092 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8093 #include <$ac_cv_struct_tm>
8096 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8098 cat >>confdefs.h
<<_ACEOF
8099 #define HAVE_STRUCT_TM_TM_ZONE 1
8105 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8107 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8110 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8112 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8118 cat >>confdefs.h
<<_ACEOF
8119 #define HAVE_DECL_TZNAME $ac_have_decl
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8123 $as_echo_n "checking for tzname... " >&6; }
8124 if test "${ac_cv_var_tzname+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8130 #if !HAVE_DECL_TZNAME
8131 extern char *tzname[];
8137 return tzname[0][0];
8142 if ac_fn_c_try_link
"$LINENO"; then :
8143 ac_cv_var_tzname
=yes
8147 rm -f core conftest.err conftest.
$ac_objext \
8148 conftest
$ac_exeext conftest.
$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8151 $as_echo "$ac_cv_var_tzname" >&6; }
8152 if test $ac_cv_var_tzname = yes; then
8154 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8159 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8161 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8163 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8167 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8168 #if HAVE_SYS_SOCKET_H
8169 #include <sys/socket.h>
8175 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8177 cat >>confdefs.h
<<_ACEOF
8178 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8183 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8184 #if HAVE_SYS_SOCKET_H
8185 #include <sys/socket.h>
8191 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8199 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8200 #if HAVE_SYS_SOCKET_H
8201 #include <sys/socket.h>
8207 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8209 cat >>confdefs.h
<<_ACEOF
8210 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8215 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8216 #if HAVE_SYS_SOCKET_H
8217 #include <sys/socket.h>
8223 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8225 cat >>confdefs.h
<<_ACEOF
8226 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8231 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8232 #if HAVE_SYS_SOCKET_H
8233 #include <sys/socket.h>
8239 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8241 cat >>confdefs.h
<<_ACEOF
8242 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8251 $as_echo_n "checking for function prototypes... " >&6; }
8252 if test "$ac_cv_prog_cc_c89" != no
; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8256 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8259 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8267 $as_echo_n "checking for working volatile... " >&6; }
8268 if test "${ac_cv_c_volatile+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8279 int * volatile y = (int *) 0;
8285 if ac_fn_c_try_compile
"$LINENO"; then :
8286 ac_cv_c_volatile
=yes
8290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8293 $as_echo "$ac_cv_c_volatile" >&6; }
8294 if test $ac_cv_c_volatile = no
; then
8296 $as_echo "#define volatile /**/" >>confdefs.h
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8301 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8302 if test "${ac_cv_c_const+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8311 /* FIXME: Include the comments suggested by Paul. */
8313 /* Ultrix mips cc rejects this. */
8314 typedef int charset[2];
8316 /* SunOS 4.1.1 cc rejects this. */
8317 char const *const *pcpcc;
8319 /* NEC SVR4.0.2 mips cc rejects this. */
8320 struct point {int x, y;};
8321 static struct point const zero = {0,0};
8322 /* AIX XL C 1.02.0.0 rejects this.
8323 It does not let you subtract one const X* pointer from another in
8324 an arm of an if-expression whose if-part is not a constant
8326 const char *g = "string";
8327 pcpcc = &g + (g ? g-g : 0);
8328 /* HPUX 7.0 cc rejects these. */
8330 ppc = (char**) pcpcc;
8331 pcpcc = (char const *const *) ppc;
8332 { /* SCO 3.2v4 cc rejects this. */
8334 char const *s = 0 ? (char *) 0 : (char const *) 0;
8339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8341 const int *foo = &x[0];
8344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8345 typedef const int *iptr;
8349 { /* AIX XL C 1.02.0.0 rejects this saying
8350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8351 struct s { int j; const int *ap[3]; };
8352 struct s *b; b->j = 5;
8354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8358 return !cs[0] && !zero.x;
8365 if ac_fn_c_try_compile
"$LINENO"; then :
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8373 $as_echo "$ac_cv_c_const" >&6; }
8374 if test $ac_cv_c_const = no
; then
8376 $as_echo "#define const /**/" >>confdefs.h
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8381 $as_echo_n "checking for void * support... " >&6; }
8382 if test "${emacs_cv_void_star+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8396 if ac_fn_c_try_compile
"$LINENO"; then :
8397 emacs_cv_void_star
=yes
8399 emacs_cv_void_star
=no
8401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8404 $as_echo "$emacs_cv_void_star" >&6; }
8405 if test $emacs_cv_void_star = yes; then
8406 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8409 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8414 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8415 if test "${ac_cv_c_bigendian+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8418 ac_cv_c_bigendian
=unknown
8419 # See if we're dealing with a universal compiler.
8420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #ifndef __APPLE_CC__
8423 not a universal capable compiler
8428 if ac_fn_c_try_compile
"$LINENO"; then :
8430 # Check for potential -arch flags. It is not universal unless
8431 # there are at least two -arch flags with different values.
8434 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8435 if test -n "$ac_prev"; then
8437 i?
86 | x86_64 | ppc | ppc64
)
8438 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8441 ac_cv_c_bigendian
=universal
8447 elif test "x$ac_word" = "x-arch"; then
8452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 if test $ac_cv_c_bigendian = unknown
; then
8454 # See if sys/param.h defines the BYTE_ORDER macro.
8455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <sys/types.h>
8458 #include <sys/param.h>
8463 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8464 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8473 if ac_fn_c_try_compile
"$LINENO"; then :
8474 # It does; now see whether it defined to BIG_ENDIAN or not.
8475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <sys/types.h>
8478 #include <sys/param.h>
8483 #if BYTE_ORDER != BIG_ENDIAN
8491 if ac_fn_c_try_compile
"$LINENO"; then :
8492 ac_cv_c_bigendian
=yes
8494 ac_cv_c_bigendian
=no
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 if test $ac_cv_c_bigendian = unknown
; then
8501 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8509 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8517 if ac_fn_c_try_compile
"$LINENO"; then :
8518 # It does; now see whether it defined to _BIG_ENDIAN or not.
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8534 if ac_fn_c_try_compile
"$LINENO"; then :
8535 ac_cv_c_bigendian
=yes
8537 ac_cv_c_bigendian
=no
8539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 if test $ac_cv_c_bigendian = unknown
; then
8544 # Compile a test program.
8545 if test "$cross_compiling" = yes; then :
8546 # Try to guess by grepping values from an object file.
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 short int ascii_mm[] =
8550 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8551 short int ascii_ii[] =
8552 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8553 int use_ascii (int i) {
8554 return ascii_mm[i] + ascii_ii[i];
8556 short int ebcdic_ii[] =
8557 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8558 short int ebcdic_mm[] =
8559 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8560 int use_ebcdic (int i) {
8561 return ebcdic_mm[i] + ebcdic_ii[i];
8568 return use_ascii (foo) == use_ebcdic (foo);
8573 if ac_fn_c_try_compile
"$LINENO"; then :
8574 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8575 ac_cv_c_bigendian
=yes
8577 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8578 if test "$ac_cv_c_bigendian" = unknown
; then
8579 ac_cv_c_bigendian
=no
8581 # finding both strings is unlikely to happen, but who knows?
8582 ac_cv_c_bigendian
=unknown
8586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 $ac_includes_default
8595 /* Are we little or big endian? From Harbison&Steele. */
8599 char c[sizeof (long int)];
8602 return u.c[sizeof (long int) - 1] == 1;
8608 if ac_fn_c_try_run
"$LINENO"; then :
8609 ac_cv_c_bigendian
=no
8611 ac_cv_c_bigendian
=yes
8613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8620 $as_echo "$ac_cv_c_bigendian" >&6; }
8621 case $ac_cv_c_bigendian in #(
8623 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8629 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8633 as_fn_error
"unknown endianness
8634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8639 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8640 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 char __attribute__ ((__aligned__ (1 << 3))) c;
8654 if ac_fn_c_try_compile
"$LINENO"; then :
8655 emacs_cv_attribute_aligned
=yes
8657 emacs_cv_attribute_aligned
=no
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8662 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8663 if test $emacs_cv_attribute_aligned = yes; then
8665 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8672 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8673 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8674 $as_echo_n "(cached) " >&6
8676 cat >conftest.
make <<\_ACEOF
8679 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8684 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8686 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8690 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8692 $as_echo "yes" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 SET_MAKE
="MAKE=${MAKE-make}"
8704 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8706 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8708 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8709 if test "x$testval" != x
; then
8712 ac_enable_autodepend
=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8715 $as_echo "$HAVE_GNU_MAKE" >&6; }
8716 if test $HAVE_GNU_MAKE = yes; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8718 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8719 SAVE_CFLAGS
="$CFLAGS"
8720 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8732 if ac_fn_c_try_compile
"$LINENO"; then :
8735 ac_enable_autodepend
=no
8737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8738 CFLAGS
="$SAVE_CFLAGS"
8739 test -f deps.d || ac_enable_autodepend
=no
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8742 $as_echo "$ac_enable_autodepend" >&6; }
8744 if test $ac_enable_autodepend = yes; then
8745 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8746 ## In parallel builds, another make might create depdir between
8747 ## the first test and mkdir, so stick another test on the end.
8748 ## Or use install-sh -d? mkdir -p is not portable.
8749 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8750 deps_frag
=autodeps.mk
8753 deps_frag
=$srcdir/src
/$deps_frag
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8760 $as_echo_n "checking for long file names... " >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8764 ac_cv_sys_long_file_names
=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8773 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8777 . |
/* | ?
:[\\/]*) ;; #(
8780 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8781 ac_xdir
=$ac_dir/cf$$
8782 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8783 ac_tf1
=$ac_xdir/conftest9012345
8784 ac_tf2
=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names
=no
8787 rm -f -r "$ac_xdir" 2>/dev
/null
8788 test $ac_cv_sys_long_file_names = no
&& break
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8792 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8795 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8800 #### Choose a window system.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8803 $as_echo_n "checking for X... " >&6; }
8806 # Check whether --with-x was given.
8807 if test "${with_x+set}" = set; then :
8811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8812 if test "x$with_x" = xno
; then
8813 # The user explicitly disabled X.
8816 case $x_includes,$x_libraries in #(
8817 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
8818 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8821 # One or both of the vars are not set, and there is no cached value.
8822 ac_x_includes
=no ac_x_libraries
=no
8823 rm -f -r conftest.dir
8824 if mkdir conftest.dir
; then
8826 cat >Imakefile
<<'_ACEOF'
8828 @echo incroot='${INCROOT}'
8830 @echo usrlibdir='${USRLIBDIR}'
8832 @echo libdir='${LIBDIR}'
8834 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8836 for ac_var
in incroot usrlibdir libdir
; do
8837 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8840 for ac_extension
in a so sl dylib la dll
; do
8841 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8842 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8843 ac_im_usrlibdir
=$ac_im_libdir; break
8846 # Screen out bogus values from the imake configuration. They are
8847 # bogus both because they are the default anyway, and because
8848 # using them would break gcc on systems where it needs fixed includes.
8849 case $ac_im_incroot in
8850 /usr
/include
) ac_x_includes
= ;;
8851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8853 case $ac_im_usrlibdir in
8854 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8859 rm -f -r conftest.dir
8862 # Standard set of common directories for X headers.
8863 # Check X11 before X11Rn because it is often a symlink to the current release.
8877 /usr/local/X11/include
8878 /usr/local/X11R7/include
8879 /usr/local/X11R6/include
8880 /usr/local/X11R5/include
8881 /usr/local/X11R4/include
8883 /usr/local/include/X11
8884 /usr/local/include/X11R7
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8891 /usr/XFree86/include/X11
8895 /usr/unsupported/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8903 if test "$ac_x_includes" = no
; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <X11/Xlib.h>
8910 if ac_fn_c_try_cpp
"$LINENO"; then :
8911 # We can compile using X headers with no special include directory.
8914 for ac_dir
in $ac_x_header_dirs; do
8915 if test -r "$ac_dir/X11/Xlib.h"; then
8916 ac_x_includes
=$ac_dir
8921 rm -f conftest.err conftest.
$ac_ext
8922 fi # $ac_x_includes = no
8924 if test "$ac_x_libraries" = no
; then
8925 # Check for the libraries.
8926 # See if we find them without any special options.
8927 # Don't add to $LIBS permanently.
8930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <X11/Xlib.h>
8941 if ac_fn_c_try_link
"$LINENO"; then :
8943 # We can link X programs with no special library path.
8947 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8949 # Don't even attempt the hair of trying to link an X program!
8950 for ac_extension
in a so sl dylib la dll
; do
8951 if test -r "$ac_dir/libX11.$ac_extension"; then
8952 ac_x_libraries
=$ac_dir
8958 rm -f core conftest.err conftest.
$ac_objext \
8959 conftest
$ac_exeext conftest.
$ac_ext
8960 fi # $ac_x_libraries = no
8962 case $ac_x_includes,$ac_x_libraries in #(
8964 # Didn't find X, or a directory has "'" in its name.
8965 ac_cv_have_x
="have_x=no";; #(
8967 # Record where we found X for the cache.
8968 ac_cv_have_x
="have_x=yes\
8969 ac_x_includes='$ac_x_includes'\
8970 ac_x_libraries='$ac_x_libraries'"
8976 eval "$ac_cv_have_x"
8979 if test "$have_x" != yes; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8981 $as_echo "$have_x" >&6; }
8984 # If each of the values was on the command line, it overrides each guess.
8985 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8986 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8987 # Update the cache value to reflect the command line values.
8988 ac_cv_have_x
="have_x=yes\
8989 ac_x_includes='$x_includes'\
8990 ac_x_libraries='$x_libraries'"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8992 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8995 if test "$no_x" = yes; then
9001 ## Workaround for bug in autoconf <= 2.62.
9002 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9003 ## No need to do anything special for these standard directories.
9004 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9006 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9010 LD_SWITCH_X_SITE_AUX
=
9011 LD_SWITCH_X_SITE_AUX_RPATH
=
9012 if test "${x_libraries}" != NONE
; then
9013 if test -n "${x_libraries}"; then
9014 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9015 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9016 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9018 x_default_search_path
=""
9019 x_search_path
=${x_libraries}
9020 if test -z "${x_search_path}"; then
9021 x_search_path
=/usr
/lib
9023 for x_library
in `echo ${x_search_path}: | \
9024 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9026 ${x_library}/X11/%L/%T/%N%C%S:\
9027 ${x_library}/X11/%l/%T/%N%C%S:\
9028 ${x_library}/X11/%T/%N%C%S:\
9029 ${x_library}/X11/%L/%T/%N%S:\
9030 ${x_library}/X11/%l/%T/%N%S:\
9031 ${x_library}/X11/%T/%N%S"
9032 if test x
"${x_default_search_path}" = x
; then
9033 x_default_search_path
=${x_search_path}
9035 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9042 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9043 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9046 if test x
"${x_includes}" = x
; then
9047 bitmapdir
=/usr
/include
/X11
/bitmaps
9049 # accumulate include directories that have X11 bitmap subdirectories
9051 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9052 if test -d "${bmd}/X11/bitmaps"; then
9053 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9055 if test -d "${bmd}/bitmaps"; then
9056 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9059 if test ${bmd_acc} != "dummyval"; then
9060 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9067 tmp_CPPFLAGS
="$CPPFLAGS"
9068 tmp_CFLAGS
="$CFLAGS"
9069 CPPFLAGS
="$CPPFLAGS -x objective-c"
9070 CFLAGS
="$CFLAGS -x objective-c"
9071 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9072 if test "${with_ns}" != no
; then
9073 if test "${opsys}" = darwin
; then
9075 ns_appdir
=`pwd`/nextstep
/Emacs.app
9076 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9077 ns_appresdir
=${ns_appdir}/Contents
/Resources
9078 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9079 elif test -f $GNUSTEP_CONFIG_FILE; then
9081 ns_appdir
=`pwd`/nextstep
/Emacs.app
9082 ns_appbindir
=${ns_appdir}/
9083 ns_appresdir
=${ns_appdir}/Resources
9084 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9085 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9086 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9087 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9088 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9089 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9090 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9091 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9092 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9093 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9094 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9095 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9100 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9101 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9104 as_fn_error
"\`--with-ns' was specified, but the include
9105 files are missing or cannot be compiled." "$LINENO" 5
9109 NS_HAVE_NSINTEGER
=yes
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <Foundation/NSObjCRuntime.h>
9121 if ac_fn_c_try_compile
"$LINENO"; then :
9122 ns_have_nsinteger
=yes
9124 ns_have_nsinteger
=no
9126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9127 if test $ns_have_nsinteger = no
; then
9128 NS_HAVE_NSINTEGER
=no
9137 if test "${HAVE_NS}" = yes; then
9138 window_system
=nextstep
9140 # set up packaging dirs
9141 exec_prefix
=${ns_appbindir}
9142 libexecdir
=${ns_appbindir}/libexec
9143 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9144 prefix
=${ns_appresdir}
9146 ns_frag
=$srcdir/src
/ns.mk
9147 NS_OBJ
="fontset.o fringe.o image.o"
9148 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9149 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9151 CFLAGS
="$tmp_CFLAGS"
9152 CPPFLAGS
="$tmp_CPPFLAGS"
9159 case "${window_system}" in
9163 case "${with_x_toolkit}" in
9164 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9165 motif
) USE_X_TOOLKIT
=MOTIF
;;
9167 USE_X_TOOLKIT
=none
;;
9168 gtk3
) with_gtk3
=yes
9169 USE_X_TOOLKIT
=none
;;
9170 no
) USE_X_TOOLKIT
=none
;;
9171 * ) USE_X_TOOLKIT
=maybe
;;
9181 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9182 # Extract the first word of "X", so it can be a program name with args.
9183 set dummy X
; ac_word
=$2
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 $as_echo_n "checking for $ac_word... " >&6; }
9186 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9189 if test -n "$HAVE_XSERVER"; then
9190 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9196 test -z "$as_dir" && as_dir
=.
9197 for ac_exec_ext
in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_prog_HAVE_XSERVER
="true"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9210 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9211 if test -n "$HAVE_XSERVER"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9213 $as_echo "$HAVE_XSERVER" >&6; }
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9220 if test "$HAVE_XSERVER" = true ||
9221 test -n "$DISPLAY" ||
9222 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9223 as_fn_error
"You seem to be running X, but no X development libraries
9224 were found. You should install the relevant development files for X
9225 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9226 sure you have development files for image handling, i.e.
9227 tiff, gif, jpeg, png and xpm.
9228 If you are sure you want Emacs compiled without X window support, pass
9230 to configure." "$LINENO" 5
9234 ### If we're using X11, we should use the X menu package.
9237 yes ) HAVE_MENUS
=yes ;;
9240 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9241 # Assume not, until told otherwise.
9244 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9245 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9251 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9252 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9259 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9260 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 extern void (* __after_morecore_hook)();
9269 __after_morecore_hook = 0
9274 if ac_fn_c_try_link
"$LINENO"; then :
9275 emacs_cv_var___after_morecore_hook
=yes
9277 emacs_cv_var___after_morecore_hook
=no
9279 rm -f core conftest.err conftest.
$ac_objext \
9280 conftest
$ac_exeext conftest.
$ac_ext
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9283 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9284 if test $emacs_cv_var___after_morecore_hook = no
; then
9291 ## darwin ld insists on the use of malloc routines in the System framework.
9292 darwin|sol2-10
) system_malloc
=yes ;;
9295 if test "${system_malloc}" = "yes"; then
9297 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9301 (The GNU allocators don't work with this system configuration.)"
9305 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9306 VMLIMIT_OBJ
=vm-limit.o
9311 if test "$doug_lea_malloc" = "yes" ; then
9312 if test "$GNU_MALLOC" = yes ; then
9314 (Using Doug Lea's new malloc from the GNU C Library.)"
9317 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9320 ## Use mmap directly for allocating larger buffers.
9321 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9322 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9323 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9325 gnu
*) REL_ALLOC
=no
;;
9329 if test x
"${REL_ALLOC}" = x
; then
9330 REL_ALLOC
=${GNU_MALLOC}
9333 use_mmap_for_buffers
=no
9335 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9341 for ac_header
in $ac_header_list
9343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9346 eval as_val
=\$
$as_ac_Header
9347 if test "x$as_val" = x
""yes; then :
9348 cat >>confdefs.h
<<_ACEOF
9349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9363 for ac_func
in getpagesize
9365 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9366 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9367 cat >>confdefs.h
<<_ACEOF
9368 #define HAVE_GETPAGESIZE 1
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9375 $as_echo_n "checking for working mmap... " >&6; }
9376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9379 if test "$cross_compiling" = yes; then :
9380 ac_cv_func_mmap_fixed_mapped
=no
9382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 $ac_includes_default
9385 /* malloc might have been renamed as rpl_malloc. */
9388 /* Thanks to Mike Haertel and Jim Avera for this test.
9389 Here is a matrix of mmap possibilities:
9390 mmap private not fixed
9391 mmap private fixed at somewhere currently unmapped
9392 mmap private fixed at somewhere already mapped
9393 mmap shared not fixed
9394 mmap shared fixed at somewhere currently unmapped
9395 mmap shared fixed at somewhere already mapped
9396 For private mappings, we should verify that changes cannot be read()
9397 back from the file, nor mmap's back from the file at a different
9398 address. (There have been systems where private was not correctly
9399 implemented like the infamous i386 svr4.0, and systems where the
9400 VM page cache was not coherent with the file system buffer cache
9401 like early versions of FreeBSD and possibly contemporary NetBSD.)
9402 For shared mappings, we should conversely verify that changes get
9403 propagated back to all the places they're supposed to be.
9405 Grep wants private fixed already mapped.
9406 The main things grep needs to know about mmap are:
9407 * does it exist and is it safe to write into the mmap'd area
9408 * how to use it (BSD variants) */
9411 #include <sys/mman.h>
9413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9417 /* This mess was copied from the GNU getpagesize.h. */
9418 #ifndef HAVE_GETPAGESIZE
9419 # ifdef _SC_PAGESIZE
9420 # define getpagesize() sysconf(_SC_PAGESIZE)
9421 # else /* no _SC_PAGESIZE */
9422 # ifdef HAVE_SYS_PARAM_H
9423 # include <sys/param.h>
9424 # ifdef EXEC_PAGESIZE
9425 # define getpagesize() EXEC_PAGESIZE
9426 # else /* no EXEC_PAGESIZE */
9428 # define getpagesize() NBPG * CLSIZE
9431 # endif /* no CLSIZE */
9432 # else /* no NBPG */
9434 # define getpagesize() NBPC
9435 # else /* no NBPC */
9437 # define getpagesize() PAGESIZE
9438 # endif /* PAGESIZE */
9439 # endif /* no NBPC */
9440 # endif /* no NBPG */
9441 # endif /* no EXEC_PAGESIZE */
9442 # else /* no HAVE_SYS_PARAM_H */
9443 # define getpagesize() 8192 /* punt totally */
9444 # endif /* no HAVE_SYS_PARAM_H */
9445 # endif /* no _SC_PAGESIZE */
9447 #endif /* no HAVE_GETPAGESIZE */
9452 char *data, *data2, *data3;
9457 pagesize = getpagesize ();
9459 /* First, make a file with some known garbage in it. */
9460 data = (char *) malloc (pagesize);
9463 for (i = 0; i < pagesize; ++i)
9464 *(data + i) = rand ();
9466 fd = creat ("conftest.mmap", 0600);
9469 if (write (fd, data, pagesize) != pagesize)
9473 /* Next, check that the tail of a page is zero-filled. File must have
9474 non-zero length, otherwise we risk SIGBUS for entire page. */
9475 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9479 if (write (fd2, cdata2, 1) != 1)
9481 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9482 if (data2 == MAP_FAILED)
9484 for (i = 0; i < pagesize; ++i)
9488 if (munmap (data2, pagesize))
9491 /* Next, try to mmap the file at a fixed address which already has
9492 something else allocated at it. If we can, also make sure that
9493 we see the same garbage. */
9494 fd = open ("conftest.mmap", O_RDWR);
9497 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9500 for (i = 0; i < pagesize; ++i)
9501 if (*(data + i) != *(data2 + i))
9504 /* Finally, make sure that changes to the mapped area do not
9505 percolate back to the file as seen by read(). (This is a bug on
9506 some variants of i386 svr4.0.) */
9507 for (i = 0; i < pagesize; ++i)
9508 *(data2 + i) = *(data2 + i) + 1;
9509 data3 = (char *) malloc (pagesize);
9512 if (read (fd, data3, pagesize) != pagesize)
9514 for (i = 0; i < pagesize; ++i)
9515 if (*(data + i) != *(data3 + i))
9521 if ac_fn_c_try_run
"$LINENO"; then :
9522 ac_cv_func_mmap_fixed_mapped
=yes
9524 ac_cv_func_mmap_fixed_mapped
=no
9526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9532 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9533 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9535 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9538 rm -f conftest.mmap conftest.txt
9540 if test $use_mmap_for_buffers = yes; then
9542 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9547 LIBS
="$LIBS_SYSTEM $LIBS"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9550 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9551 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 ac_check_lib_save_LIBS
=$LIBS
9556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9559 /* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
9569 return dnet_ntoa ();
9574 if ac_fn_c_try_link
"$LINENO"; then :
9575 ac_cv_lib_dnet_dnet_ntoa
=yes
9577 ac_cv_lib_dnet_dnet_ntoa
=no
9579 rm -f core conftest.err conftest.
$ac_objext \
9580 conftest
$ac_exeext conftest.
$ac_ext
9581 LIBS
=$ac_check_lib_save_LIBS
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9584 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9585 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9586 cat >>confdefs.h
<<_ACEOF
9587 #define HAVE_LIBDNET 1
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9596 $as_echo_n "checking for main in -lXbsd... " >&6; }
9597 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9600 ac_check_lib_save_LIBS
=$LIBS
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9614 if ac_fn_c_try_link
"$LINENO"; then :
9615 ac_cv_lib_Xbsd_main
=yes
9617 ac_cv_lib_Xbsd_main
=no
9619 rm -f core conftest.err conftest.
$ac_objext \
9620 conftest
$ac_exeext conftest.
$ac_ext
9621 LIBS
=$ac_check_lib_save_LIBS
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9624 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9625 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9626 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9631 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9632 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9635 ac_check_lib_save_LIBS
=$LIBS
9636 LIBS
="-lpthreads $LIBS"
9637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9655 if ac_fn_c_try_link
"$LINENO"; then :
9656 ac_cv_lib_pthreads_cma_open
=yes
9658 ac_cv_lib_pthreads_cma_open
=no
9660 rm -f core conftest.err conftest.
$ac_objext \
9661 conftest
$ac_exeext conftest.
$ac_ext
9662 LIBS
=$ac_check_lib_save_LIBS
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9665 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9666 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9667 cat >>confdefs.h
<<_ACEOF
9668 #define HAVE_LIBPTHREADS 1
9671 LIBS
="-lpthreads $LIBS"
9676 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9677 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9678 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9679 ## added to LIBS in configure would never contain the pthreads part,
9680 ## but the value used in Makefiles might. FIXME?
9682 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9683 ## be harmless on older versions of X where it happens to exist.
9684 test "$opsys" = "aix4-2" && \
9685 test $ac_cv_lib_pthreads_cma_open = yes && \
9686 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9692 $as_echo_n "checking for -bbigtoc option... " >&6; }
9693 if test "${gdb_cv_bigtoc+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9698 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9699 *) gdb_cv_bigtoc
=-bbigtoc ;;
9702 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9714 if ac_fn_c_try_link
"$LINENO"; then :
9719 rm -f core conftest.err conftest.
$ac_objext \
9720 conftest
$ac_exeext conftest.
$ac_ext
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9724 $as_echo "$gdb_cv_bigtoc" >&6; }
9728 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9729 # used for the tests that follow. We set them back to REAL_CFLAGS and
9730 # REAL_CPPFLAGS later on.
9732 REAL_CFLAGS
="$CFLAGS"
9733 REAL_CPPFLAGS
="$CPPFLAGS"
9735 if test "${HAVE_X11}" = "yes"; then
9736 DEFS
="$C_SWITCH_X_SITE $DEFS"
9737 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9739 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9740 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9742 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9743 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9744 # but it's more convenient here to set LD_RUN_PATH
9745 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9746 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9747 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9751 if test "${opsys}" = "gnu-linux"; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9753 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9760 XOpenDisplay ("foo");
9765 if ac_fn_c_try_link
"$LINENO"; then :
9766 xlinux_first_failure
=no
9768 xlinux_first_failure
=yes
9770 rm -f core conftest.err conftest.
$ac_objext \
9771 conftest
$ac_exeext conftest.
$ac_ext
9772 if test "${xlinux_first_failure}" = "yes"; then
9773 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9774 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9775 OLD_CPPFLAGS
="$CPPFLAGS"
9777 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9778 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9779 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9780 LIBS
="$LIBS -b i486-linuxaout"
9781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9787 XOpenDisplay ("foo");
9792 if ac_fn_c_try_link
"$LINENO"; then :
9793 xlinux_second_failure
=no
9795 xlinux_second_failure
=yes
9797 rm -f core conftest.err conftest.
$ac_objext \
9798 conftest
$ac_exeext conftest.
$ac_ext
9799 if test "${xlinux_second_failure}" = "yes"; then
9800 # If we get the same failure with -b, there is no use adding -b.
9801 # So take it out. This plays safe.
9802 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9803 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9804 CPPFLAGS
="$OLD_CPPFLAGS"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9810 $as_echo "yes" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9818 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9819 # header files included from there.
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9821 $as_echo_n "checking for Xkb... " >&6; }
9822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 #include <X11/Xlib.h>
9825 #include <X11/XKBlib.h>
9829 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9834 if ac_fn_c_try_link
"$LINENO"; then :
9839 rm -f core conftest.err conftest.
$ac_objext \
9840 conftest
$ac_exeext conftest.
$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9842 $as_echo "$emacs_xkb" >&6; }
9843 if test $emacs_xkb = yes; then
9845 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9849 for ac_func
in XrmSetDatabase XScreenResourceString \
9850 XScreenNumberOfScreen XSetWMProtocols
9852 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9854 eval as_val
=\$
$as_ac_var
9855 if test "x$as_val" = x
""yes; then :
9856 cat >>confdefs.h
<<_ACEOF
9857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9865 if test "${window_system}" = "x11"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9867 $as_echo_n "checking X11 version 6... " >&6; }
9868 if test "${emacs_cv_x11_version_6+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 #include <X11/Xlib.h>
9877 #if XlibSpecificationRelease < 6
9885 if ac_fn_c_try_link
"$LINENO"; then :
9886 emacs_cv_x11_version_6
=yes
9888 emacs_cv_x11_version_6
=no
9890 rm -f core conftest.err conftest.
$ac_objext \
9891 conftest
$ac_exeext conftest.
$ac_ext
9894 if test $emacs_cv_x11_version_6 = yes; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9896 $as_echo "6 or newer" >&6; }
9898 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9901 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9903 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9908 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9914 $as_echo "before 6" >&6; }
9919 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9921 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9922 if test "${with_rsvg}" != "no"; then
9923 RSVG_REQUIRED
=2.11.0
9924 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9929 # Extract the first word of "pkg-config", so it can be a program name with args.
9930 set dummy pkg-config
; ac_word
=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9938 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9945 test -z "$as_dir" && as_dir
=.
9946 for ac_exec_ext
in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9960 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9961 if test -n "$PKG_CONFIG"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9963 $as_echo "$PKG_CONFIG" >&6; }
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9971 if test "$PKG_CONFIG" = "no" ; then
9974 PKG_CONFIG_MIN_VERSION
=0.9.0
9975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9977 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9979 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9985 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9986 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9988 $as_echo "$RSVG_CFLAGS" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9991 $as_echo_n "checking RSVG_LIBS... " >&6; }
9992 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9994 $as_echo "$RSVG_LIBS" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10000 ## If we have a custom action on failure, don't print errors, but
10001 ## do set a variable so people can do so.
10002 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10014 if test $succeeded = yes; then
10023 if test $HAVE_RSVG = yes; then
10025 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10027 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10028 LIBS
="$RSVG_LIBS $LIBS"
10033 HAVE_IMAGEMAGICK
=no
10034 if test "${HAVE_X11}" = "yes"; then
10035 if test "${with_imagemagick}" != "no"; then
10036 IMAGEMAGICK_MODULE
="Wand"
10040 # Extract the first word of "pkg-config", so it can be a program name with args.
10041 set dummy pkg-config
; ac_word
=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10047 case $PKG_CONFIG in
10049 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10053 for as_dir
in $PATH
10056 test -z "$as_dir" && as_dir
=.
10057 for ac_exec_ext
in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10071 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10072 if test -n "$PKG_CONFIG"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10074 $as_echo "$PKG_CONFIG" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10082 if test "$PKG_CONFIG" = "no" ; then
10085 PKG_CONFIG_MIN_VERSION
=0.9.0
10086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10088 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10090 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10092 $as_echo "yes" >&6; }
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10096 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10097 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10099 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10102 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10103 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10105 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 IMAGEMAGICK_CFLAGS
=""
10110 IMAGEMAGICK_LIBS
=""
10111 ## If we have a custom action on failure, don't print errors, but
10112 ## do set a variable so people can do so.
10113 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10125 if test $succeeded = yes; then
10126 HAVE_IMAGEMAGICK
=yes
10134 if test $HAVE_IMAGEMAGICK = yes; then
10136 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10138 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10139 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10140 for ac_func
in MagickExportImagePixels
10142 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10143 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10144 cat >>confdefs.h
<<_ACEOF
10145 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10157 if test "${with_gtk3}" = "yes"; then
10160 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10165 # Extract the first word of "pkg-config", so it can be a program name with args.
10166 set dummy pkg-config
; ac_word
=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10172 case $PKG_CONFIG in
10174 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10178 for as_dir
in $PATH
10181 test -z "$as_dir" && as_dir
=.
10182 for ac_exec_ext
in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10196 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10197 if test -n "$PKG_CONFIG"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10199 $as_echo "$PKG_CONFIG" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10207 if test "$PKG_CONFIG" = "no" ; then
10210 PKG_CONFIG_MIN_VERSION
=0.9.0
10211 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10213 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10215 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217 $as_echo "yes" >&6; }
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10221 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10222 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10224 $as_echo "$GTK_CFLAGS" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10227 $as_echo_n "checking GTK_LIBS... " >&6; }
10228 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10230 $as_echo "$GTK_LIBS" >&6; }
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10236 ## If we have a custom action on failure, don't print errors, but
10237 ## do set a variable so people can do so.
10238 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10250 if test $succeeded = yes; then
10256 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10257 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10260 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10264 if test "$pkg_check_gtk" != "yes"; then
10266 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10269 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10274 # Extract the first word of "pkg-config", so it can be a program name with args.
10275 set dummy pkg-config
; ac_word
=$2
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10281 case $PKG_CONFIG in
10283 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10287 for as_dir
in $PATH
10290 test -z "$as_dir" && as_dir
=.
10291 for ac_exec_ext
in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10305 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10306 if test -n "$PKG_CONFIG"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10308 $as_echo "$PKG_CONFIG" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10316 if test "$PKG_CONFIG" = "no" ; then
10319 PKG_CONFIG_MIN_VERSION
=0.9.0
10320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10322 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10324 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10326 $as_echo "yes" >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10330 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10331 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10333 $as_echo "$GTK_CFLAGS" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10336 $as_echo_n "checking GTK_LIBS... " >&6; }
10337 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10339 $as_echo "$GTK_LIBS" >&6; }
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10345 ## If we have a custom action on failure, don't print errors, but
10346 ## do set a variable so people can do so.
10347 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10359 if test $succeeded = yes; then
10365 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10366 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10372 if test x
"$pkg_check_gtk" = xyes
; then
10376 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10377 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10378 LIBS
="$GTK_LIBS $LIBS"
10380 for ac_func
in gtk_main
10382 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10383 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10384 cat >>confdefs.h
<<_ACEOF
10385 #define HAVE_GTK_MAIN 1
10391 if test "${GTK_COMPILES}" != "yes"; then
10392 if test "$USE_X_TOOLKIT" != "maybe"; then
10393 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10398 $as_echo "#define USE_GTK 1" >>confdefs.h
10402 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10406 closing open displays. This is no problem if you just use
10407 one display, but if you use more than one and close one of them
10408 Emacs may crash." >&5
10409 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10410 closing open displays. This is no problem if you just use
10411 one display, but if you use more than one and close one of them
10412 Emacs may crash." >&2;}
10421 if test "${HAVE_GTK}" = "yes"; then
10423 if test "$with_toolkit_scroll_bars" != no
; then
10424 with_toolkit_scroll_bars
=yes
10427 HAVE_GTK_FILE_SELECTION
=no
10428 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10429 #include <gtk/gtk.h>
10431 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10432 HAVE_GTK_FILE_SELECTION
=yes
10434 HAVE_GTK_FILE_SELECTION
=no
10437 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10438 for ac_func
in gtk_file_selection_new
10440 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10441 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10442 cat >>confdefs.h
<<_ACEOF
10443 #define HAVE_GTK_FILE_SELECTION_NEW 1
10451 HAVE_GTK_AND_PTHREAD
=no
10452 for ac_header
in pthread.h
10454 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10455 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10456 cat >>confdefs.h
<<_ACEOF
10457 #define HAVE_PTHREAD_H 1
10464 if test "$ac_cv_header_pthread_h"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10466 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10470 ac_check_lib_save_LIBS
=$LIBS
10471 LIBS
="-lpthread $LIBS"
10472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10481 char pthread_self ();
10485 return pthread_self ();
10490 if ac_fn_c_try_link
"$LINENO"; then :
10491 ac_cv_lib_pthread_pthread_self
=yes
10493 ac_cv_lib_pthread_pthread_self
=no
10495 rm -f core conftest.err conftest.
$ac_objext \
10496 conftest
$ac_exeext conftest.
$ac_ext
10497 LIBS
=$ac_check_lib_save_LIBS
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10500 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10501 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10502 HAVE_GTK_AND_PTHREAD
=yes
10506 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10507 case "${canonical}" in
10509 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10512 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10516 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10517 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10518 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10519 gtk_orientable_set_orientation
10521 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10522 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10523 eval as_val
=\$
$as_ac_var
10524 if test "x$as_val" = x
""yes; then :
10525 cat >>confdefs.h
<<_ACEOF
10526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10537 if test "${with_dbus}" = "yes"; then
10541 # Extract the first word of "pkg-config", so it can be a program name with args.
10542 set dummy pkg-config
; ac_word
=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10548 case $PKG_CONFIG in
10550 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10554 for as_dir
in $PATH
10557 test -z "$as_dir" && as_dir
=.
10558 for ac_exec_ext
in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10572 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10573 if test -n "$PKG_CONFIG"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10575 $as_echo "$PKG_CONFIG" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10583 if test "$PKG_CONFIG" = "no" ; then
10586 PKG_CONFIG_MIN_VERSION
=0.9.0
10587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10589 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10591 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; }
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10597 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10598 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10600 $as_echo "$DBUS_CFLAGS" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10603 $as_echo_n "checking DBUS_LIBS... " >&6; }
10604 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10606 $as_echo "$DBUS_LIBS" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10612 ## If we have a custom action on failure, don't print errors, but
10613 ## do set a variable so people can do so.
10614 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10626 if test $succeeded = yes; then
10632 if test "$HAVE_DBUS" = yes; then
10633 LIBS
="$LIBS $DBUS_LIBS"
10635 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10637 for ac_func
in dbus_watch_get_unix_fd
10639 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10640 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10641 cat >>confdefs.h
<<_ACEOF
10642 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10648 DBUS_OBJ
=dbusbind.o
10654 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10658 # Extract the first word of "pkg-config", so it can be a program name with args.
10659 set dummy pkg-config
; ac_word
=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
10665 case $PKG_CONFIG in
10667 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10671 for as_dir
in $PATH
10674 test -z "$as_dir" && as_dir
=.
10675 for ac_exec_ext
in '' $ac_executable_extensions; do
10676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10677 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10689 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10690 if test -n "$PKG_CONFIG"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10692 $as_echo "$PKG_CONFIG" >&6; }
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10700 if test "$PKG_CONFIG" = "no" ; then
10703 PKG_CONFIG_MIN_VERSION
=0.9.0
10704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10706 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10708 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10710 $as_echo "yes" >&6; }
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10714 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10715 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10717 $as_echo "$GCONF_CFLAGS" >&6; }
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10720 $as_echo_n "checking GCONF_LIBS... " >&6; }
10721 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10723 $as_echo "$GCONF_LIBS" >&6; }
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10729 ## If we have a custom action on failure, don't print errors, but
10730 ## do set a variable so people can do so.
10731 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10743 if test $succeeded = yes; then
10749 if test "$HAVE_GCONF" = yes; then
10751 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10753 for ac_func
in g_type_init
10755 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10756 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10757 cat >>confdefs.h
<<_ACEOF
10758 #define HAVE_G_TYPE_INIT 1
10769 if test "${with_selinux}" = "yes"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10771 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10772 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10775 ac_check_lib_save_LIBS
=$LIBS
10776 LIBS
="-lselinux $LIBS"
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10786 char lgetfilecon ();
10790 return lgetfilecon ();
10795 if ac_fn_c_try_link
"$LINENO"; then :
10796 ac_cv_lib_selinux_lgetfilecon
=yes
10798 ac_cv_lib_selinux_lgetfilecon
=no
10800 rm -f core conftest.err conftest.
$ac_objext \
10801 conftest
$ac_exeext conftest.
$ac_ext
10802 LIBS
=$ac_check_lib_save_LIBS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10805 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10806 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10807 HAVE_LIBSELINUX
=yes
10812 if test "$HAVE_LIBSELINUX" = yes; then
10814 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10816 LIBSELINUX_LIBS
=-lselinux
10822 if test "${with_gnutls}" = "yes" ; then
10826 # Extract the first word of "pkg-config", so it can be a program name with args.
10827 set dummy pkg-config
; ac_word
=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10833 case $PKG_CONFIG in
10835 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10839 for as_dir
in $PATH
10842 test -z "$as_dir" && as_dir
=.
10843 for ac_exec_ext
in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10857 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10858 if test -n "$PKG_CONFIG"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10860 $as_echo "$PKG_CONFIG" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10868 if test "$PKG_CONFIG" = "no" ; then
10871 PKG_CONFIG_MIN_VERSION
=0.9.0
10872 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10874 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10876 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10878 $as_echo "yes" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10882 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10883 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10885 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10888 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10889 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10891 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 LIBGNUTLS_CFLAGS
=""
10897 ## If we have a custom action on failure, don't print errors, but
10898 ## do set a variable so people can do so.
10899 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10911 if test $succeeded = yes; then
10917 if test "${HAVE_GNUTLS}" = "yes"; then
10919 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10928 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10929 if test "$with_xaw3d" != no
; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10931 $as_echo_n "checking for xaw3d... " >&6; }
10932 if test "${emacs_cv_xaw3d+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 #include <X11/Intrinsic.h>
10939 #include <X11/Xaw3d/Simple.h>
10948 if ac_fn_c_try_link
"$LINENO"; then :
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10950 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10951 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10954 ac_check_lib_save_LIBS
=$LIBS
10955 LIBS
="-lXaw3d $LIBS"
10956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10965 char XawScrollbarSetThumb ();
10969 return XawScrollbarSetThumb ();
10974 if ac_fn_c_try_link
"$LINENO"; then :
10975 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10977 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10979 rm -f core conftest.err conftest.
$ac_objext \
10980 conftest
$ac_exeext conftest.
$ac_ext
10981 LIBS
=$ac_check_lib_save_LIBS
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10984 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10985 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10994 rm -f core conftest.err conftest.
$ac_objext \
10995 conftest
$ac_exeext conftest.
$ac_ext
11001 if test $emacs_cv_xaw3d = yes; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11003 $as_echo "yes; using Lucid toolkit" >&6; }
11004 USE_X_TOOLKIT
=LUCID
11008 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11014 $as_echo_n "checking for libXaw... " >&6; }
11015 if test "${emacs_cv_xaw+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 #include <X11/Intrinsic.h>
11022 #include <X11/Xaw/Simple.h>
11031 if ac_fn_c_try_link
"$LINENO"; then :
11036 rm -f core conftest.err conftest.
$ac_objext \
11037 conftest
$ac_exeext conftest.
$ac_ext
11040 if test $emacs_cv_xaw = yes; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11042 $as_echo "yes; using Lucid toolkit" >&6; }
11043 USE_X_TOOLKIT
=LUCID
11045 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11046 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11049 $as_echo "no; do not use toolkit by default" >&6; }
11055 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11058 if test "${USE_X_TOOLKIT}" != "none"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11060 $as_echo_n "checking X11 toolkit version... " >&6; }
11061 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <X11/Intrinsic.h>
11070 #if XtSpecificationRelease < 6
11078 if ac_fn_c_try_link
"$LINENO"; then :
11079 emacs_cv_x11_toolkit_version_6
=yes
11081 emacs_cv_x11_toolkit_version_6
=no
11083 rm -f core conftest.err conftest.
$ac_objext \
11084 conftest
$ac_exeext conftest.
$ac_ext
11087 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11088 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11090 $as_echo "6 or newer" >&6; }
11092 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11094 LIBXTR6
="-lSM -lICE"
11096 ## Use libw.a along with X11R6 Xt.
11097 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11101 $as_echo "before 6" >&6; }
11105 if test x
$HAVE_X11XTR6 = xyes
; then
11106 LIBS
="-lXt -lSM -lICE $LIBS"
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11111 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11112 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11115 ac_check_lib_save_LIBS
=$LIBS
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11126 char XmuConvertStandardSelection ();
11130 return XmuConvertStandardSelection ();
11135 if ac_fn_c_try_link
"$LINENO"; then :
11136 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11138 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11140 rm -f core conftest.err conftest.
$ac_objext \
11141 conftest
$ac_exeext conftest.
$ac_ext
11142 LIBS
=$ac_check_lib_save_LIBS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11145 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11146 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11147 cat >>confdefs.h
<<_ACEOF
11148 #define HAVE_LIBXMU 1
11155 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11161 ## These systems don't supply Xmu.
11163 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11168 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11169 if test "${HAVE_X11}" = "yes"; then
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11172 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11173 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 ac_check_lib_save_LIBS
=$LIBS
11177 LIBS
="-lXext $LIBS"
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11187 char XShapeQueryExtension ();
11191 return XShapeQueryExtension ();
11196 if ac_fn_c_try_link
"$LINENO"; then :
11197 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11199 ac_cv_lib_Xext_XShapeQueryExtension
=no
11201 rm -f core conftest.err conftest.
$ac_objext \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 LIBS
=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11206 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11207 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11208 cat >>confdefs.h
<<_ACEOF
11209 #define HAVE_LIBXEXT 1
11212 LIBS
="-lXext $LIBS"
11220 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11222 $as_echo_n "checking for Motif version 2.1... " >&6; }
11223 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11232 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11235 Motif version prior to 2.1.
11241 if ac_fn_c_try_compile
"$LINENO"; then :
11242 emacs_cv_motif_version_2_1
=yes
11244 emacs_cv_motif_version_2_1
=no
11246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11249 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11250 if test $emacs_cv_motif_version_2_1 = yes; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11252 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11253 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11256 ac_check_lib_save_LIBS
=$LIBS
11258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11267 char XpCreateContext ();
11271 return XpCreateContext ();
11276 if ac_fn_c_try_link
"$LINENO"; then :
11277 ac_cv_lib_Xp_XpCreateContext
=yes
11279 ac_cv_lib_Xp_XpCreateContext
=no
11281 rm -f core conftest.err conftest.
$ac_objext \
11282 conftest
$ac_exeext conftest.
$ac_ext
11283 LIBS
=$ac_check_lib_save_LIBS
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11286 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11287 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11293 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11294 if test "${emacs_cv_lesstif+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11297 # We put this in CFLAGS temporarily to precede other -I options
11298 # that might be in CFLAGS temporarily.
11299 # We put this in CPPFLAGS where it precedes the other -I options.
11300 OLD_CPPFLAGS
=$CPPFLAGS
11302 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11303 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11315 if ac_fn_c_try_compile
"$LINENO"; then :
11316 emacs_cv_lesstif
=yes
11318 emacs_cv_lesstif
=no
11320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11323 $as_echo "$emacs_cv_lesstif" >&6; }
11324 if test $emacs_cv_lesstif = yes; then
11325 # Make sure this -I option remains in CPPFLAGS after it is set
11326 # back to REAL_CPPFLAGS.
11327 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11328 # have those other -I options anyway. Ultimately, having this
11329 # directory ultimately in CPPFLAGS will be enough.
11330 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11331 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11334 CPPFLAGS
=$OLD_CPPFLAGS
11340 USE_TOOLKIT_SCROLL_BARS
=no
11341 if test "${with_toolkit_scroll_bars}" != "no"; then
11342 if test "${USE_X_TOOLKIT}" != "none"; then
11343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11344 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11347 USE_TOOLKIT_SCROLL_BARS
=yes
11348 elif test "${HAVE_XAW3D}" = "yes"; then
11349 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11351 USE_TOOLKIT_SCROLL_BARS
=yes
11353 elif test "${HAVE_GTK}" = "yes"; then
11354 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11356 USE_TOOLKIT_SCROLL_BARS
=yes
11357 elif test "${HAVE_NS}" = "yes"; then
11358 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11360 USE_TOOLKIT_SCROLL_BARS
=yes
11364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 #include <X11/Xlib.h>
11368 #include <X11/Xresource.h>
11377 if ac_fn_c_try_compile
"$LINENO"; then :
11380 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11388 if test "${with_xim}" != "no"; then
11390 $as_echo "#define USE_XIM 1" >>confdefs.h
11395 if test "${HAVE_XIM}" != "no"; then
11396 late_CFLAGS
=$CFLAGS
11397 if test "$GCC" = yes; then
11398 CFLAGS
="$CFLAGS --pedantic-errors"
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 #include <X11/Xlib.h>
11404 #include <X11/Xresource.h>
11413 XPointer *client_data;
11415 /* If we're not using GCC, it's probably not XFree86, and this is
11416 probably right, but we can't use something like --pedantic-errors. */
11417 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11418 char*, XIMProc, XPointer*);
11420 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11426 if ac_fn_c_try_compile
"$LINENO"; then :
11427 emacs_cv_arg6_star
=yes
11429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11430 if test "$emacs_cv_arg6_star" = yes; then
11431 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11434 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11437 CFLAGS
=$late_CFLAGS
11440 ### Start of font-backend (under any platform) section.
11441 # (nothing here yet -- this is a placeholder)
11442 ### End of font-backend (under any platform) section.
11444 ### Start of font-backend (under X11) section.
11445 if test "${HAVE_X11}" = "yes"; then
11449 # Extract the first word of "pkg-config", so it can be a program name with args.
11450 set dummy pkg-config
; ac_word
=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11456 case $PKG_CONFIG in
11458 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11462 for as_dir
in $PATH
11465 test -z "$as_dir" && as_dir
=.
11466 for ac_exec_ext
in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11480 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11481 if test -n "$PKG_CONFIG"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11483 $as_echo "$PKG_CONFIG" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11491 if test "$PKG_CONFIG" = "no" ; then
11494 PKG_CONFIG_MIN_VERSION
=0.9.0
11495 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11497 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11499 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11505 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11506 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11508 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11511 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11512 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11514 $as_echo "$FONTCONFIG_LIBS" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11518 FONTCONFIG_CFLAGS
=""
11520 ## If we have a custom action on failure, don't print errors, but
11521 ## do set a variable so people can do so.
11522 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11529 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11530 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11534 if test $succeeded = yes; then
11541 ## Use -lXft if available, unless `--with-xft=no'.
11543 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11546 if test "x${with_xft}" != "xno"; then
11551 # Extract the first word of "pkg-config", so it can be a program name with args.
11552 set dummy pkg-config
; ac_word
=$2
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554 $as_echo_n "checking for $ac_word... " >&6; }
11555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11558 case $PKG_CONFIG in
11560 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11564 for as_dir
in $PATH
11567 test -z "$as_dir" && as_dir
=.
11568 for ac_exec_ext
in '' $ac_executable_extensions; do
11569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11570 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11582 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11583 if test -n "$PKG_CONFIG"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11585 $as_echo "$PKG_CONFIG" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11593 if test "$PKG_CONFIG" = "no" ; then
11596 PKG_CONFIG_MIN_VERSION
=0.9.0
11597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11599 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11601 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; }
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11607 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11608 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11610 $as_echo "$XFT_CFLAGS" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11613 $as_echo_n "checking XFT_LIBS... " >&6; }
11614 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11616 $as_echo "$XFT_LIBS" >&6; }
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11622 ## If we have a custom action on failure, don't print errors, but
11623 ## do set a variable so people can do so.
11624 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11636 if test $succeeded = yes; then
11642 ## Because xftfont.c uses XRenderQueryExtension, we also
11643 ## need to link to -lXrender.
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11646 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11647 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11650 ac_check_lib_save_LIBS
=$LIBS
11651 LIBS
="-lXrender $LIBS"
11652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11661 char XRenderQueryExtension ();
11665 return XRenderQueryExtension ();
11670 if ac_fn_c_try_link
"$LINENO"; then :
11671 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11673 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11675 rm -f core conftest.err conftest.
$ac_objext \
11676 conftest
$ac_exeext conftest.
$ac_ext
11677 LIBS
=$ac_check_lib_save_LIBS
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11680 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11681 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11685 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11686 OLD_CPPFLAGS
="$CPPFLAGS"
11687 OLD_CFLAGS
="$CFLAGS"
11689 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11690 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11691 XFT_LIBS
="-lXrender $XFT_LIBS"
11692 LIBS
="$XFT_LIBS $LIBS"
11693 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11694 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11696 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11697 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 ac_check_lib_save_LIBS
=$LIBS
11701 LIBS
="-lXft $XFT_LIBS $LIBS"
11702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11711 char XftFontOpen ();
11715 return XftFontOpen ();
11720 if ac_fn_c_try_link
"$LINENO"; then :
11721 ac_cv_lib_Xft_XftFontOpen
=yes
11723 ac_cv_lib_Xft_XftFontOpen
=no
11725 rm -f core conftest.err conftest.
$ac_objext \
11726 conftest
$ac_exeext conftest.
$ac_ext
11727 LIBS
=$ac_check_lib_save_LIBS
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11730 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11731 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11739 if test "${HAVE_XFT}" = "yes"; then
11741 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11744 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11746 CPPFLAGS
="$OLD_CPPFLAGS"
11747 CFLAGS
="$OLD_CFLAGS"
11749 fi # "${HAVE_XFT}" = "yes"
11750 fi # "$HAVE_XFT" != no
11751 fi # "x${with_xft}" != "xno"
11753 ## We used to allow building with FreeType and without Xft.
11754 ## However, the ftx font backend driver is not in good shape.
11755 if test "$HAVE_XFT" != "yes"; then
11762 # Extract the first word of "pkg-config", so it can be a program name with args.
11763 set dummy pkg-config
; ac_word
=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11769 case $PKG_CONFIG in
11771 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11775 for as_dir
in $PATH
11778 test -z "$as_dir" && as_dir
=.
11779 for ac_exec_ext
in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11793 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11794 if test -n "$PKG_CONFIG"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11796 $as_echo "$PKG_CONFIG" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test "$PKG_CONFIG" = "no" ; then
11807 PKG_CONFIG_MIN_VERSION
=0.9.0
11808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11810 $as_echo_n "checking for freetype2... " >&6; }
11812 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11818 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11819 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11821 $as_echo "$FREETYPE_CFLAGS" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11824 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11825 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11827 $as_echo "$FREETYPE_LIBS" >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11833 ## If we have a custom action on failure, don't print errors, but
11834 ## do set a variable so people can do so.
11835 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11847 if test $succeeded = yes; then
11854 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11858 if test "${HAVE_FREETYPE}" = "yes"; then
11860 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11862 if test "${with_libotf}" != "no"; then
11866 # Extract the first word of "pkg-config", so it can be a program name with args.
11867 set dummy pkg-config
; ac_word
=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11873 case $PKG_CONFIG in
11875 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11879 for as_dir
in $PATH
11882 test -z "$as_dir" && as_dir
=.
11883 for ac_exec_ext
in '' $ac_executable_extensions; do
11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11897 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11898 if test -n "$PKG_CONFIG"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11900 $as_echo "$PKG_CONFIG" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11908 if test "$PKG_CONFIG" = "no" ; then
11911 PKG_CONFIG_MIN_VERSION
=0.9.0
11912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11914 $as_echo_n "checking for libotf... " >&6; }
11916 if $PKG_CONFIG --exists "libotf" 2>&5; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 $as_echo "yes" >&6; }
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11922 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11923 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11925 $as_echo "$LIBOTF_CFLAGS" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11928 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11929 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11931 $as_echo "$LIBOTF_LIBS" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11937 ## If we have a custom action on failure, don't print errors, but
11938 ## do set a variable so people can do so.
11939 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11946 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11947 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11951 if test $succeeded = yes; then
11957 if test "$HAVE_LIBOTF" = "yes"; then
11959 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11962 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11963 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11966 ac_check_lib_save_LIBS
=$LIBS
11968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11977 char OTF_get_variation_glyphs ();
11981 return OTF_get_variation_glyphs ();
11986 if ac_fn_c_try_link
"$LINENO"; then :
11987 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11989 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11991 rm -f core conftest.err conftest.
$ac_objext \
11992 conftest
$ac_exeext conftest.
$ac_ext
11993 LIBS
=$ac_check_lib_save_LIBS
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11996 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11997 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11998 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12000 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12003 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12005 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12013 if test "${HAVE_LIBOTF}" = yes; then
12014 if test "${with_m17n_flt}" != "no"; then
12018 # Extract the first word of "pkg-config", so it can be a program name with args.
12019 set dummy pkg-config
; ac_word
=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12025 case $PKG_CONFIG in
12027 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12031 for as_dir
in $PATH
12034 test -z "$as_dir" && as_dir
=.
12035 for ac_exec_ext
in '' $ac_executable_extensions; do
12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12037 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12049 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12050 if test -n "$PKG_CONFIG"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12052 $as_echo "$PKG_CONFIG" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12060 if test "$PKG_CONFIG" = "no" ; then
12063 PKG_CONFIG_MIN_VERSION
=0.9.0
12064 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12066 $as_echo_n "checking for m17n-flt... " >&6; }
12068 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12074 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12075 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12077 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12080 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12081 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12083 $as_echo "$M17N_FLT_LIBS" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12089 ## If we have a custom action on failure, don't print errors, but
12090 ## do set a variable so people can do so.
12091 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12103 if test $succeeded = yes; then
12109 if test "$HAVE_M17N_FLT" = "yes"; then
12111 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12123 ### End of font-backend (under X11) section.
12134 ### Use -lXpm if available, unless `--with-xpm=no'.
12137 if test "${HAVE_X11}" = "yes"; then
12138 if test "${with_xpm}" != "no"; then
12139 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12140 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12142 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12143 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12146 ac_check_lib_save_LIBS
=$LIBS
12147 LIBS
="-lXpm -lX11 $LIBS"
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12157 char XpmReadFileToPixmap ();
12161 return XpmReadFileToPixmap ();
12166 if ac_fn_c_try_link
"$LINENO"; then :
12167 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12169 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12171 rm -f core conftest.err conftest.
$ac_objext \
12172 conftest
$ac_exeext conftest.
$ac_ext
12173 LIBS
=$ac_check_lib_save_LIBS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12176 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12177 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12184 if test "${HAVE_XPM}" = "yes"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12186 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include "X11/xpm.h"
12190 #ifndef XpmReturnAllocPixels
12191 no_return_alloc_pixels
12195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12196 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12204 if test "${HAVE_XPM}" = "yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12214 if test "${HAVE_XPM}" = "yes"; then
12216 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12223 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12226 if test "${HAVE_X11}" = "yes"; then
12227 if test "${with_jpeg}" != "no"; then
12228 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12231 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12232 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12235 ac_check_lib_save_LIBS
=$LIBS
12236 LIBS
="-ljpeg $LIBS"
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12246 char jpeg_destroy_compress ();
12250 return jpeg_destroy_compress ();
12255 if ac_fn_c_try_link
"$LINENO"; then :
12256 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12258 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12260 rm -f core conftest.err conftest.
$ac_objext \
12261 conftest
$ac_exeext conftest.
$ac_ext
12262 LIBS
=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12265 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12266 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12275 if test "${HAVE_JPEG}" = "yes"; then
12276 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <jpeglib.h>
12281 version=JPEG_LIB_VERSION
12284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12286 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12290 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12296 if test "${HAVE_JPEG}" = "yes"; then
12302 ### Use -lpng if available, unless `--with-png=no'.
12305 if test "${HAVE_X11}" = "yes"; then
12306 if test "${with_png}" != "no"; then
12307 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12308 # in /usr/include/libpng.
12309 for ac_header
in png.h libpng
/png.h
12311 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12312 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12313 eval as_val
=\$
$as_ac_Header
12314 if test "x$as_val" = x
""yes; then :
12315 cat >>confdefs.h
<<_ACEOF
12316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12325 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12326 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12329 ac_check_lib_save_LIBS
=$LIBS
12330 LIBS
="-lpng -lz -lm $LIBS"
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12340 char png_get_channels ();
12344 return png_get_channels ();
12349 if ac_fn_c_try_link
"$LINENO"; then :
12350 ac_cv_lib_png_png_get_channels
=yes
12352 ac_cv_lib_png_png_get_channels
=no
12354 rm -f core conftest.err conftest.
$ac_objext \
12355 conftest
$ac_exeext conftest.
$ac_ext
12356 LIBS
=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12359 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12360 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12367 if test "${HAVE_PNG}" = "yes"; then
12369 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12371 LIBPNG
="-lpng -lz -lm"
12376 ### Use -ltiff if available, unless `--with-tiff=no'.
12379 if test "${HAVE_X11}" = "yes"; then
12380 if test "${with_tiff}" != "no"; then
12381 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12382 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12384 # At least one tiff package requires the jpeg library.
12385 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12387 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12388 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12391 ac_check_lib_save_LIBS
=$LIBS
12392 LIBS
="-ltiff $tifflibs $LIBS"
12393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12402 char TIFFGetVersion ();
12406 return TIFFGetVersion ();
12411 if ac_fn_c_try_link
"$LINENO"; then :
12412 ac_cv_lib_tiff_TIFFGetVersion
=yes
12414 ac_cv_lib_tiff_TIFFGetVersion
=no
12416 rm -f core conftest.err conftest.
$ac_objext \
12417 conftest
$ac_exeext conftest.
$ac_ext
12418 LIBS
=$ac_check_lib_save_LIBS
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12421 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12422 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12431 if test "${HAVE_TIFF}" = "yes"; then
12433 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12440 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12443 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12444 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12445 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12446 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12447 # Earlier versions can crash Emacs.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12449 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12450 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12453 ac_check_lib_save_LIBS
=$LIBS
12455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12464 char EGifPutExtensionLast ();
12468 return EGifPutExtensionLast ();
12473 if ac_fn_c_try_link
"$LINENO"; then :
12474 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12476 ac_cv_lib_gif_EGifPutExtensionLast
=no
12478 rm -f core conftest.err conftest.
$ac_objext \
12479 conftest
$ac_exeext conftest.
$ac_ext
12480 LIBS
=$ac_check_lib_save_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12483 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12484 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12494 if test "$HAVE_GIF" = yes; then
12496 elif test "$HAVE_GIF" = maybe
; then
12497 # If gif_lib.h but no libgif, try libungif.
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12499 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12500 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12503 ac_check_lib_save_LIBS
=$LIBS
12504 LIBS
="-lungif $LIBS"
12505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12514 char EGifPutExtensionLast ();
12518 return EGifPutExtensionLast ();
12523 if ac_fn_c_try_link
"$LINENO"; then :
12524 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12526 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12528 rm -f core conftest.err conftest.
$ac_objext \
12529 conftest
$ac_exeext conftest.
$ac_ext
12530 LIBS
=$ac_check_lib_save_LIBS
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12533 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12534 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12540 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12543 if test "${HAVE_GIF}" = "yes"; then
12545 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12551 if test "${HAVE_X11}" = "yes"; then
12554 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12555 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12556 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12557 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12558 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12559 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12560 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12561 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12562 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12563 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12565 if test "X${MISSING}" != X
; then
12566 as_fn_error
"The following required libraries were not found:
12568 Maybe some development libraries/packages are missing?
12569 If you don't want to link with them give
12571 as options to configure" "$LINENO" 5
12575 ### Use -lgpm if available, unless `--with-gpm=no'.
12579 if test "${with_gpm}" != "no"; then
12580 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12581 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12583 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12584 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12587 ac_check_lib_save_LIBS
=$LIBS
12589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12602 return Gpm_Open ();
12607 if ac_fn_c_try_link
"$LINENO"; then :
12608 ac_cv_lib_gpm_Gpm_Open
=yes
12610 ac_cv_lib_gpm_Gpm_Open
=no
12612 rm -f core conftest.err conftest.
$ac_objext \
12613 conftest
$ac_exeext conftest.
$ac_ext
12614 LIBS
=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12617 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12618 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12626 if test "${HAVE_GPM}" = "yes"; then
12628 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12631 ## May be reset below.
12632 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12637 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12638 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12640 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12647 ### Use NeXTstep API to implement GUI.
12648 if test "${HAVE_NS}" = "yes"; then
12650 $as_echo "#define HAVE_NS 1" >>confdefs.h
12652 if test "${NS_IMPL_COCOA}" = "yes"; then
12654 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12658 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12660 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12662 # See also .m.o rule in Makefile.in */
12663 # FIXME: are all these flags really needed? Document here why. */
12664 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12665 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12667 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12669 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12672 # We also have mouse menus.
12678 ### Use session management (-lSM -lICE) if available
12681 if test "${HAVE_X11}" = "yes"; then
12682 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12683 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12685 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12686 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12689 ac_check_lib_save_LIBS
=$LIBS
12690 LIBS
="-lSM -lICE $LIBS"
12691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12700 char SmcOpenConnection ();
12704 return SmcOpenConnection ();
12709 if ac_fn_c_try_link
"$LINENO"; then :
12710 ac_cv_lib_SM_SmcOpenConnection
=yes
12712 ac_cv_lib_SM_SmcOpenConnection
=no
12714 rm -f core conftest.err conftest.
$ac_objext \
12715 conftest
$ac_exeext conftest.
$ac_ext
12716 LIBS
=$ac_check_lib_save_LIBS
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12719 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12720 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12728 if test "${HAVE_X_SM}" = "yes"; then
12730 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12732 LIBXSM
="-lSM -lICE"
12735 *) LIBS
="$LIBXSM $LIBS" ;;
12741 ### Use libxml (-lxml2) if available
12742 if test "${with_xml2}" != "no"; then
12743 ### I'm not sure what the version number should be, so I just guessed.
12747 # Extract the first word of "pkg-config", so it can be a program name with args.
12748 set dummy pkg-config
; ac_word
=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12754 case $PKG_CONFIG in
12756 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12760 for as_dir
in $PATH
12763 test -z "$as_dir" && as_dir
=.
12764 for ac_exec_ext
in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12778 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12779 if test -n "$PKG_CONFIG"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12781 $as_echo "$PKG_CONFIG" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12789 if test "$PKG_CONFIG" = "no" ; then
12792 PKG_CONFIG_MIN_VERSION
=0.9.0
12793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12795 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12797 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799 $as_echo "yes" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12803 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12804 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12806 $as_echo "$LIBXML2_CFLAGS" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12809 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12810 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12812 $as_echo "$LIBXML2_LIBS" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12818 ## If we have a custom action on failure, don't print errors, but
12819 ## do set a variable so people can do so.
12820 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12832 if test $succeeded = yes; then
12838 if test "${HAVE_LIBXML2}" = "yes"; then
12839 LIBS
="$LIBXML2_LIBS $LIBS"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12841 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12842 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12845 ac_check_lib_save_LIBS
=$LIBS
12846 LIBS
="-lxml2 $LIBS"
12847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12856 char htmlReadMemory ();
12860 return htmlReadMemory ();
12865 if ac_fn_c_try_link
"$LINENO"; then :
12866 ac_cv_lib_xml2_htmlReadMemory
=yes
12868 ac_cv_lib_xml2_htmlReadMemory
=no
12870 rm -f core conftest.err conftest.
$ac_objext \
12871 conftest
$ac_exeext conftest.
$ac_ext
12872 LIBS
=$ac_check_lib_save_LIBS
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12875 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12876 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12882 if test "${HAVE_LIBXML2}" = "yes"; then
12884 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12895 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12897 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12898 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12912 if ac_fn_c_try_link
"$LINENO"; then :
12913 emacs_cv_netdb_declares_h_errno
=yes
12915 emacs_cv_netdb_declares_h_errno
=no
12917 rm -f core conftest.err conftest.
$ac_objext \
12918 conftest
$ac_exeext conftest.
$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12921 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12922 if test $emacs_cv_netdb_declares_h_errno = yes; then
12924 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12929 # for constant arguments. Useless!
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12931 $as_echo_n "checking for working alloca.h... " >&6; }
12932 if test "${ac_cv_working_alloca_h+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 #include <alloca.h>
12941 char *p = (char *) alloca (2 * sizeof (int));
12947 if ac_fn_c_try_link
"$LINENO"; then :
12948 ac_cv_working_alloca_h
=yes
12950 ac_cv_working_alloca_h
=no
12952 rm -f core conftest.err conftest.
$ac_objext \
12953 conftest
$ac_exeext conftest.
$ac_ext
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12956 $as_echo "$ac_cv_working_alloca_h" >&6; }
12957 if test $ac_cv_working_alloca_h = yes; then
12959 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12964 $as_echo_n "checking for alloca... " >&6; }
12965 if test "${ac_cv_func_alloca_works+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12971 # define alloca __builtin_alloca
12974 # include <malloc.h>
12975 # define alloca _alloca
12977 # ifdef HAVE_ALLOCA_H
12978 # include <alloca.h>
12983 # ifndef alloca /* predefined by HP cc +Olibcalls */
12994 char *p = (char *) alloca (1);
13000 if ac_fn_c_try_link
"$LINENO"; then :
13001 ac_cv_func_alloca_works
=yes
13003 ac_cv_func_alloca_works
=no
13005 rm -f core conftest.err conftest.
$ac_objext \
13006 conftest
$ac_exeext conftest.
$ac_ext
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13009 $as_echo "$ac_cv_func_alloca_works" >&6; }
13011 if test $ac_cv_func_alloca_works = yes; then
13013 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13016 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13017 # that cause trouble. Some versions do not even contain alloca or
13018 # contain a buggy version. If you still want to use their alloca,
13019 # use ar to extract alloca.o from them instead of compiling alloca.c.
13021 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13023 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13027 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13028 if test "${ac_cv_os_cray+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #if defined CRAY && ! defined CRAY2
13040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13041 $EGREP "webecray" >/dev
/null
2>&1; then :
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13050 $as_echo "$ac_cv_os_cray" >&6; }
13051 if test $ac_cv_os_cray = yes; then
13052 for ac_func
in _getb67 GETB67 getb67
; do
13053 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13054 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13055 eval as_val
=\$
$as_ac_var
13056 if test "x$as_val" = x
""yes; then :
13058 cat >>confdefs.h
<<_ACEOF
13059 #define CRAY_STACKSEG_END $ac_func
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13069 $as_echo_n "checking stack direction for C alloca... " >&6; }
13070 if test "${ac_cv_c_stack_direction+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13073 if test "$cross_compiling" = yes; then :
13074 ac_cv_c_stack_direction
=0
13076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078 $ac_includes_default
13080 find_stack_direction ()
13082 static char *addr = 0;
13087 return find_stack_direction ();
13090 return (&dummy > addr) ? 1 : -1;
13096 return find_stack_direction () < 0;
13099 if ac_fn_c_try_run
"$LINENO"; then :
13100 ac_cv_c_stack_direction
=1
13102 ac_cv_c_stack_direction
=-1
13104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13110 $as_echo "$ac_cv_c_stack_direction" >&6; }
13111 cat >>confdefs.h
<<_ACEOF
13112 #define STACK_DIRECTION $ac_cv_c_stack_direction
13119 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13120 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
13123 # fmod, logb, and frexp are found in -lm on most systems.
13124 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13126 $as_echo_n "checking for sqrt in -lm... " >&6; }
13127 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13130 ac_check_lib_save_LIBS
=$LIBS
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13150 if ac_fn_c_try_link
"$LINENO"; then :
13151 ac_cv_lib_m_sqrt
=yes
13153 ac_cv_lib_m_sqrt
=no
13155 rm -f core conftest.err conftest.
$ac_objext \
13156 conftest
$ac_exeext conftest.
$ac_ext
13157 LIBS
=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13160 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13161 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13162 cat >>confdefs.h
<<_ACEOF
13163 #define HAVE_LIBM 1
13171 # Check for mail-locking functions in a "mail" library. Probably this should
13172 # have the same check as for liblockfile below.
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13174 $as_echo_n "checking for maillock in -lmail... " >&6; }
13175 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13178 ac_check_lib_save_LIBS
=$LIBS
13179 LIBS
="-lmail $LIBS"
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13193 return maillock ();
13198 if ac_fn_c_try_link
"$LINENO"; then :
13199 ac_cv_lib_mail_maillock
=yes
13201 ac_cv_lib_mail_maillock
=no
13203 rm -f core conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 LIBS
=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13208 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13209 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13215 if test $have_mail = yes; then
13217 LIBS
="$LIBS_MAIL $LIBS"
13219 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13225 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13226 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13229 ac_check_lib_save_LIBS
=$LIBS
13230 LIBS
="-llockfile $LIBS"
13231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13244 return maillock ();
13249 if ac_fn_c_try_link
"$LINENO"; then :
13250 ac_cv_lib_lockfile_maillock
=yes
13252 ac_cv_lib_lockfile_maillock
=no
13254 rm -f core conftest.err conftest.
$ac_objext \
13255 conftest
$ac_exeext conftest.
$ac_ext
13256 LIBS
=$ac_check_lib_save_LIBS
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13259 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13260 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13266 if test $have_lockfile = yes; then
13267 LIBS_MAIL
=-llockfile
13268 LIBS
="$LIBS_MAIL $LIBS"
13270 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13273 # If we have the shared liblockfile, assume we must use it for mail
13274 # locking (e.g. Debian). If we couldn't link against liblockfile
13275 # (no liblockfile.a installed), ensure that we don't need to.
13276 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13277 set dummy liblockfile.so
; ac_word
=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13283 if test -n "$liblockfile"; then
13284 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13287 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13288 for as_dir
in $as_dummy
13291 test -z "$as_dir" && as_dir
=.
13292 for ac_exec_ext
in '' $ac_executable_extensions; do
13293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13294 ac_cv_prog_liblockfile
="yes"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13305 liblockfile
=$ac_cv_prog_liblockfile
13306 if test -n "$liblockfile"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13308 $as_echo "$liblockfile" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13315 if test $ac_cv_prog_liblockfile = yes; then
13316 as_fn_error
"Shared liblockfile found but can't link against it.
13317 This probably means that movemail could lose mail.
13318 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13321 for ac_func
in touchlock
13323 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13324 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13325 cat >>confdefs.h
<<_ACEOF
13326 #define HAVE_TOUCHLOCK 1
13332 for ac_header
in maillock.h
13334 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13335 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13336 cat >>confdefs.h
<<_ACEOF
13337 #define HAVE_MAILLOCK_H 1
13346 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13347 ## interlock access to the mail spool. The alternative is a lock file named
13348 ## /usr/spool/mail/$USER.lock.
13351 aix4-2
) mail_lock
="lockf" ;;
13353 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13355 ## On GNU/Linux systems, both methods are used by various mail programs.
13356 ## I assume most people are using newer mailers that have heard of flock.
13357 ## Change this if you need to.
13358 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13359 ## configure gets the right answers, and that means *NOT* using flock.
13360 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13361 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13362 ## Debian maintainer hasn't provided a clean fix for Emacs.
13363 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13364 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13365 ## correct logic. -- fx
13366 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13367 ## liblockfile is a Free Software replacement for libmail, used on
13368 ## Debian systems and elsewhere. -rfr.
13371 if test $have_mail = yes ||
test $have_lockfile = yes; then
13372 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13378 case "$mail_lock" in
13380 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13384 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13387 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13392 for ac_func
in gethostname getdomainname dup2 \
13393 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13394 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13395 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13396 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13397 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13398 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13399 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13400 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13401 cfmakeraw cfsetspeed isnan copysign __executable_start
13403 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13404 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13405 eval as_val
=\$
$as_ac_var
13406 if test "x$as_val" = x
""yes; then :
13407 cat >>confdefs.h
<<_ACEOF
13408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13416 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13417 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13426 __builtin_unwind_init ();
13431 if ac_fn_c_try_link
"$LINENO"; then :
13432 emacs_cv_func___builtin_unwind_init
=yes
13434 emacs_cv_func___builtin_unwind_init
=no
13436 rm -f core conftest.err conftest.
$ac_objext \
13437 conftest
$ac_exeext conftest.
$ac_ext
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13440 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13441 if test $emacs_cv_func___builtin_unwind_init = yes; then
13443 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13447 for ac_header
in sys
/un.h
13449 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13450 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13451 cat >>confdefs.h
<<_ACEOF
13452 #define HAVE_SYS_UN_H 1
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13461 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13462 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #include <sys/types.h> /* for off_t */
13473 int (*fp) (FILE *, off_t, int) = fseeko;
13474 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13479 if ac_fn_c_try_link
"$LINENO"; then :
13480 ac_cv_sys_largefile_source
=no
; break
13482 rm -f core conftest.err conftest.
$ac_objext \
13483 conftest
$ac_exeext conftest.
$ac_ext
13484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486 #define _LARGEFILE_SOURCE 1
13487 #include <sys/types.h> /* for off_t */
13492 int (*fp) (FILE *, off_t, int) = fseeko;
13493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13498 if ac_fn_c_try_link
"$LINENO"; then :
13499 ac_cv_sys_largefile_source
=1; break
13501 rm -f core conftest.err conftest.
$ac_objext \
13502 conftest
$ac_exeext conftest.
$ac_ext
13503 ac_cv_sys_largefile_source
=unknown
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13508 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13509 case $ac_cv_sys_largefile_source in #(
13512 cat >>confdefs.h
<<_ACEOF
13513 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13519 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13520 # in glibc 2.1.3, but that breaks too many other things.
13521 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13522 if test $ac_cv_sys_largefile_source != unknown
; then
13524 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13530 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13531 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13534 # Use it with a single arg.
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 $ac_includes_default
13546 if ac_fn_c_try_compile
"$LINENO"; then :
13547 ac_cv_func_getpgrp_void
=no
13549 ac_cv_func_getpgrp_void
=yes
13551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13555 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13556 if test $ac_cv_func_getpgrp_void = yes; then
13558 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13563 # Configure gnulib.
13574 LIBC_FATAL_STDERR_
=1
13575 export LIBC_FATAL_STDERR_
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13579 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13580 if test "${ac_cv_c_bigendian+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13583 ac_cv_c_bigendian
=unknown
13584 # See if we're dealing with a universal compiler.
13585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 #ifndef __APPLE_CC__
13588 not a universal capable compiler
13593 if ac_fn_c_try_compile
"$LINENO"; then :
13595 # Check for potential -arch flags. It is not universal unless
13596 # there are at least two -arch flags with different values.
13599 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13600 if test -n "$ac_prev"; then
13602 i?
86 | x86_64 | ppc | ppc64
)
13603 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13606 ac_cv_c_bigendian
=universal
13612 elif test "x$ac_word" = "x-arch"; then
13617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13618 if test $ac_cv_c_bigendian = unknown
; then
13619 # See if sys/param.h defines the BYTE_ORDER macro.
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13623 #include <sys/param.h>
13628 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13629 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13631 bogus endian macros
13638 if ac_fn_c_try_compile
"$LINENO"; then :
13639 # It does; now see whether it defined to BIG_ENDIAN or not.
13640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <sys/types.h>
13643 #include <sys/param.h>
13648 #if BYTE_ORDER != BIG_ENDIAN
13656 if ac_fn_c_try_compile
"$LINENO"; then :
13657 ac_cv_c_bigendian
=yes
13659 ac_cv_c_bigendian
=no
13661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13665 if test $ac_cv_c_bigendian = unknown
; then
13666 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <limits.h>
13674 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13675 bogus endian macros
13682 if ac_fn_c_try_compile
"$LINENO"; then :
13683 # It does; now see whether it defined to _BIG_ENDIAN or not.
13684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13686 #include <limits.h>
13691 #ifndef _BIG_ENDIAN
13699 if ac_fn_c_try_compile
"$LINENO"; then :
13700 ac_cv_c_bigendian
=yes
13702 ac_cv_c_bigendian
=no
13704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13708 if test $ac_cv_c_bigendian = unknown
; then
13709 # Compile a test program.
13710 if test "$cross_compiling" = yes; then :
13711 # Try to guess by grepping values from an object file.
13712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 short int ascii_mm[] =
13715 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13716 short int ascii_ii[] =
13717 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13718 int use_ascii (int i) {
13719 return ascii_mm[i] + ascii_ii[i];
13721 short int ebcdic_ii[] =
13722 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13723 short int ebcdic_mm[] =
13724 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13725 int use_ebcdic (int i) {
13726 return ebcdic_mm[i] + ebcdic_ii[i];
13733 return use_ascii (foo) == use_ebcdic (foo);
13738 if ac_fn_c_try_compile
"$LINENO"; then :
13739 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13740 ac_cv_c_bigendian
=yes
13742 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13743 if test "$ac_cv_c_bigendian" = unknown
; then
13744 ac_cv_c_bigendian
=no
13746 # finding both strings is unlikely to happen, but who knows?
13747 ac_cv_c_bigendian
=unknown
13751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 $ac_includes_default
13760 /* Are we little or big endian? From Harbison&Steele. */
13764 char c[sizeof (long int)];
13767 return u.c[sizeof (long int) - 1] == 1;
13773 if ac_fn_c_try_run
"$LINENO"; then :
13774 ac_cv_c_bigendian
=no
13776 ac_cv_c_bigendian
=yes
13778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13785 $as_echo "$ac_cv_c_bigendian" >&6; }
13786 case $ac_cv_c_bigendian in #(
13788 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13794 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13798 as_fn_error
"unknown endianness
13799 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13804 $as_echo_n "checking for inline... " >&6; }
13805 if test "${ac_cv_c_inline+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13809 for ac_kw
in inline __inline__ __inline
; do
13810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 #ifndef __cplusplus
13814 static $ac_kw foo_t static_foo () {return 0; }
13815 $ac_kw foo_t foo () {return 0; }
13819 if ac_fn_c_try_compile
"$LINENO"; then :
13820 ac_cv_c_inline
=$ac_kw
13822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13823 test "$ac_cv_c_inline" != no
&& break
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13828 $as_echo "$ac_cv_c_inline" >&6; }
13830 case $ac_cv_c_inline in
13833 case $ac_cv_c_inline in
13835 *) ac_val
=$ac_cv_c_inline;;
13837 cat >>confdefs.h
<<_ACEOF
13838 #ifndef __cplusplus
13839 #define inline $ac_val
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13847 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13848 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 /* On HP-UX before 11.23, strtold returns a struct instead of
13854 long double. Reject implementations like that, by requiring
13855 compatibility with the C99 prototype. */
13856 #include <stdlib.h>
13857 static long double (*p) (char const *, char **) = strtold;
13859 test (char const *nptr, char **endptr)
13862 r = strtold (nptr, endptr);
13868 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13873 if ac_fn_c_try_link
"$LINENO"; then :
13874 gl_cv_func_c99_strtold
=yes
13876 gl_cv_func_c99_strtold
=no
13878 rm -f core conftest.err conftest.
$ac_objext \
13879 conftest
$ac_exeext conftest.
$ac_ext
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13882 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13883 if test $gl_cv_func_c99_strtold = yes; then
13885 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13890 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13891 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <sys/stat.h>
13902 struct stat s; s.st_dm_mode;
13907 if ac_fn_c_try_compile
"$LINENO"; then :
13908 ac_cv_struct_st_dm_mode
=yes
13910 ac_cv_struct_st_dm_mode
=no
13912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13915 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13917 if test $ac_cv_struct_st_dm_mode = yes; then
13919 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13924 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13925 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13931 cat >>confdefs.h
<<_ACEOF
13932 #define HAVE_DECL_STRMODE $ac_have_decl
13938 GNULIB_CALLOC_POSIX
=0;
13939 GNULIB_CANONICALIZE_FILE_NAME
=0;
13940 GNULIB_GETLOADAVG
=0;
13941 GNULIB_GETSUBOPT
=0;
13943 GNULIB_MALLOC_POSIX
=0;
13947 GNULIB_MKOSTEMPS
=0;
13953 GNULIB_REALLOC_POSIX
=0;
13960 GNULIB_SYSTEM_POSIX
=0;
13966 HAVE_CANONICALIZE_FILE_NAME
=1;
13967 HAVE_DECL_GETLOADAVG
=1;
13981 HAVE_DECL_SETENV
=1;
13985 HAVE_STRUCT_RANDOM_DATA
=1;
13986 HAVE_SYS_LOADAVG_H
=0;
13988 HAVE_DECL_UNSETENV
=1;
13990 REPLACE_CANONICALIZE_FILE_NAME
=0;
13996 REPLACE_REALPATH
=0;
13999 REPLACE_UNSETENV
=0;
14008 GNULIB_EUIDACCESS
=0;
14009 GNULIB_FACCESSAT
=0;
14013 GNULIB_FTRUNCATE
=0;
14015 GNULIB_GETDOMAINNAME
=0;
14016 GNULIB_GETDTABLESIZE
=0;
14017 GNULIB_GETGROUPS
=0;
14018 GNULIB_GETHOSTNAME
=0;
14020 GNULIB_GETLOGIN_R
=0;
14021 GNULIB_GETPAGESIZE
=0;
14022 GNULIB_GETUSERSHELL
=0;
14032 GNULIB_READLINKAT
=0;
14036 GNULIB_SYMLINKAT
=0;
14037 GNULIB_TTYNAME_R
=0;
14038 GNULIB_UNISTD_H_GETOPT
=0;
14039 GNULIB_UNISTD_H_SIGPIPE
=0;
14053 HAVE_GETDTABLESIZE
=1;
14055 HAVE_GETHOSTNAME
=1;
14057 HAVE_GETPAGESIZE
=1;
14072 HAVE_DECL_ENVIRON
=1;
14073 HAVE_DECL_FCHDIR
=1;
14074 HAVE_DECL_GETDOMAINNAME
=1;
14075 HAVE_DECL_GETLOGIN_R
=1;
14076 HAVE_DECL_GETPAGESIZE
=1;
14077 HAVE_DECL_GETUSERSHELL
=1;
14078 HAVE_DECL_TTYNAME_R
=1;
14080 HAVE_SYS_PARAM_H
=0;
14085 REPLACE_FCHOWNAT
=0;
14087 REPLACE_GETDOMAINNAME
=0;
14088 REPLACE_GETLOGIN_R
=0;
14089 REPLACE_GETGROUPS
=0;
14090 REPLACE_GETPAGESIZE
=0;
14097 REPLACE_READLINK
=0;
14101 REPLACE_TTYNAME_R
=0;
14103 REPLACE_UNLINKAT
=0;
14106 UNISTD_H_HAVE_WINSOCK2_H
=0;
14107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14113 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14114 if test "${gl_cv_have_include_next+set}" = set; then :
14115 $as_echo_n "(cached) " >&6
14117 rm -rf conftestd1a conftestd1b conftestd2
14118 mkdir conftestd1a conftestd1b conftestd2
14119 cat <<EOF > conftestd1a/conftest.h
14120 #define DEFINED_IN_CONFTESTD1
14121 #include_next <conftest.h>
14122 #ifdef DEFINED_IN_CONFTESTD2
14125 #error "include_next doesn't work"
14128 cat <<EOF > conftestd1b/conftest.h
14129 #define DEFINED_IN_CONFTESTD1
14131 #include_next <conftest.h>
14132 #ifdef DEFINED_IN_CONFTESTD2
14135 #error "include_next doesn't work"
14138 cat <<EOF > conftestd2/conftest.h
14139 #ifndef DEFINED_IN_CONFTESTD1
14140 #error "include_next test doesn't work"
14142 #define DEFINED_IN_CONFTESTD2
14144 gl_save_CPPFLAGS
="$CPPFLAGS"
14145 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <conftest.h>
14150 if ac_fn_c_try_compile
"$LINENO"; then :
14151 gl_cv_have_include_next
=yes
14153 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156 #include <conftest.h>
14158 if ac_fn_c_try_compile
"$LINENO"; then :
14159 gl_cv_have_include_next
=buggy
14161 gl_cv_have_include_next
=no
14163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14167 CPPFLAGS
="$gl_save_CPPFLAGS"
14168 rm -rf conftestd1a conftestd1b conftestd2
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14172 $as_echo "$gl_cv_have_include_next" >&6; }
14173 PRAGMA_SYSTEM_HEADER
=
14174 if test $gl_cv_have_include_next = yes; then
14175 INCLUDE_NEXT
=include_next
14176 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14177 if test -n "$GCC"; then
14178 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14181 if test $gl_cv_have_include_next = buggy
; then
14182 INCLUDE_NEXT
=include
14183 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14185 INCLUDE_NEXT
=include
14186 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14193 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14194 if test "${gl_cv_pragma_columns+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14206 $EGREP "choke me" >/dev
/null
2>&1; then :
14207 gl_cv_pragma_columns
=yes
14209 gl_cv_pragma_columns
=no
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14216 $as_echo "$gl_cv_pragma_columns" >&6; }
14217 if test $gl_cv_pragma_columns = yes; then
14218 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14239 if test $gl_cv_have_include_next = yes; then
14240 gl_cv_next_getopt_h
='<'getopt.h
'>'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14243 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14244 if test "${gl_cv_next_getopt_h+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14248 if test $ac_cv_header_getopt_h = yes; then
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 #include <getopt.h>
14257 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14258 *) gl_absname_cpp
="$ac_cpp" ;;
14260 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14261 sed -n '\#/getopt.h#{
14262 s#.*"\(.*/getopt.h\)".*#\1#
14268 gl_cv_next_getopt_h
='<'getopt.h
'>'
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14274 $as_echo "$gl_cv_next_getopt_h" >&6; }
14276 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14278 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14280 gl_next_as_first_directive
='<'getopt.h
'>'
14282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14283 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14285 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14290 if test $ac_cv_header_getopt_h = yes; then
14299 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14300 for ac_header
in getopt.h
14302 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14304 cat >>confdefs.h
<<_ACEOF
14305 #define HAVE_GETOPT_H 1
14309 gl_replace_getopt
=yes
14316 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14317 for ac_func
in getopt_long_only
14319 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14320 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14321 cat >>confdefs.h
<<_ACEOF
14322 #define HAVE_GETOPT_LONG_ONLY 1
14326 gl_replace_getopt
=yes
14332 if test -z "$gl_replace_getopt"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14334 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14335 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 #include <unistd.h>
14345 int *p = &optreset; return optreset;
14350 if ac_fn_c_try_compile
"$LINENO"; then :
14353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 #include <getopt.h>
14359 return !getopt_clip;
14364 if ac_fn_c_try_compile
"$LINENO"; then :
14369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14373 gl_save_CPPFLAGS
=$CPPFLAGS
14374 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14375 if test "$cross_compiling" = yes; then :
14377 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14378 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14379 *) gl_cv_func_getopt_posix
="guessing yes";;
14383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14386 #include <unistd.h>
14387 #include <stdlib.h>
14388 #include <string.h>
14398 argv[argc++] = "program";
14399 argv[argc++] = "-a";
14400 argv[argc++] = "foo";
14401 argv[argc++] = "bar";
14403 optind = OPTIND_MIN;
14406 c = getopt (argc, argv, "ab");
14409 c = getopt (argc, argv, "ab");
14412 if (!(optind == 2))
14415 /* Some internal state exists at this point. */
14421 argv[argc++] = "program";
14422 argv[argc++] = "donald";
14423 argv[argc++] = "-p";
14424 argv[argc++] = "billy";
14425 argv[argc++] = "duck";
14426 argv[argc++] = "-a";
14427 argv[argc++] = "bar";
14429 optind = OPTIND_MIN;
14432 c = getopt (argc, argv, "+abp:q:");
14435 if (!(strcmp (argv[0], "program") == 0))
14437 if (!(strcmp (argv[1], "donald") == 0))
14439 if (!(strcmp (argv[2], "-p") == 0))
14441 if (!(strcmp (argv[3], "billy") == 0))
14443 if (!(strcmp (argv[4], "duck") == 0))
14445 if (!(strcmp (argv[5], "-a") == 0))
14447 if (!(strcmp (argv[6], "bar") == 0))
14449 if (!(optind == 1))
14452 /* Detect MacOS 10.5, AIX 7.1 bug. */
14454 char *argv[3] = { "program", "-ab", NULL };
14455 optind = OPTIND_MIN;
14457 if (getopt (2, argv, "ab:") != 'a')
14459 if (getopt (2, argv, "ab:") != '?')
14471 if ac_fn_c_try_run
"$LINENO"; then :
14472 gl_cv_func_getopt_posix
=yes
14474 gl_cv_func_getopt_posix
=no
14476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14480 CPPFLAGS
=$gl_save_CPPFLAGS
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14484 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14485 case "$gl_cv_func_getopt_posix" in
14486 *no
) gl_replace_getopt
=yes ;;
14490 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14492 $as_echo_n "checking for working GNU getopt function... " >&6; }
14493 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14496 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14497 # optstring is necessary for programs like m4 that have POSIX-mandated
14498 # semantics for supporting options interspersed with files.
14499 # Also, since getopt_long is a GNU extension, we require optind=0.
14500 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14501 # so take care to revert to the correct (non-)export state.
14502 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14503 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14504 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14505 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14506 *) gl_had_POSIXLY_CORRECT
= ;;
14509 export POSIXLY_CORRECT
14510 if test "$cross_compiling" = yes; then :
14511 case $host_os:$ac_cv_have_decl_optreset in
14512 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14513 *:yes) gl_cv_func_getopt_gnu
=no
;;
14514 *) gl_cv_func_getopt_gnu
=yes;;
14518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #include <getopt.h>
14521 #include <stddef.h>
14522 #include <string.h>
14529 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14530 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14531 OSF/1 5.1, Solaris 10. */
14534 myargv[0] = "conftest";
14538 if (getopt (2, myargv, "+a") != '?')
14541 /* This code succeeds on glibc 2.8, mingw,
14542 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14543 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14545 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14548 if (getopt (4, argv, "p::") != 'p')
14550 else if (optarg != NULL)
14552 else if (getopt (4, argv, "p::") != -1)
14554 else if (optind != 2)
14557 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14559 char *argv[] = { "program", "foo", "-p", NULL };
14561 if (getopt (3, argv, "-p") != 1)
14563 else if (getopt (3, argv, "-p") != 'p')
14566 /* This code fails on glibc 2.11. */
14568 char *argv[] = { "program", "-b", "-a", NULL };
14569 optind = opterr = 0;
14570 if (getopt (3, argv, "+:a:b") != 'b')
14572 else if (getopt (3, argv, "+:a:b") != ':')
14581 if ac_fn_c_try_run
"$LINENO"; then :
14582 gl_cv_func_getopt_gnu
=yes
14584 gl_cv_func_getopt_gnu
=no
14586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14590 case $gl_had_POSIXLY_CORRECT in
14592 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14593 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14598 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14599 if test "$gl_cv_func_getopt_gnu" = "no"; then
14600 gl_replace_getopt
=yes
14604 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14605 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14611 cat >>confdefs.h
<<_ACEOF
14612 #define HAVE_DECL_GETENV $ac_have_decl
14620 if test -n "$gl_replace_getopt"; then :
14626 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14630 GNULIB_UNISTD_H_GETOPT
=1
14639 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14649 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14671 GNULIB_UTIMENSAT
=0;
14685 REPLACE_FUTIMENS
=0;
14691 REPLACE_UTIMENSAT
=0;
14696 for ac_func
in $ac_func_list
14698 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14700 eval as_val
=\$
$as_ac_var
14701 if test "x$as_val" = x
""yes; then :
14702 cat >>confdefs.h
<<_ACEOF
14703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14713 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14714 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14717 rm -f conftest.sym conftest.
file
14718 echo >conftest.
file
14719 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14720 if test "$cross_compiling" = yes; then :
14721 # When cross-compiling, be pessimistic so we will end up using the
14722 # replacement version of lstat that checks for trailing slashes and
14723 # calls lstat a second time when necessary.
14724 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 $ac_includes_default
14734 /* Linux will dereference the symlink and fail, as required by
14735 POSIX. That is better in the sense that it means we will not
14736 have to compile and use the lstat wrapper. */
14737 return lstat ("conftest.sym/", &sbuf) == 0;
14743 if ac_fn_c_try_run
"$LINENO"; then :
14744 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14746 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14753 # If the 'ln -s' command failed, then we probably don't even
14754 # have an lstat function.
14755 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14757 rm -f conftest.sym conftest.
file
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14761 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14762 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14764 cat >>confdefs.h
<<_ACEOF
14765 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14768 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14777 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14783 GNULIB_NANOSLEEP
=0;
14787 HAVE_DECL_LOCALTIME_R
=1;
14791 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14792 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14793 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14794 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14799 gl_cv_c_multiarch
=no
14800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #ifndef __APPLE_CC__
14803 not a universal capable compiler
14808 if ac_fn_c_try_compile
"$LINENO"; then :
14812 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14813 if test -n "$prev"; then
14815 i?
86 | x86_64 | ppc | ppc64
)
14816 if test -z "$arch" ||
test "$arch" = "$word"; then
14819 gl_cv_c_multiarch
=yes
14825 if test "x$word" = "x-arch"; then
14832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14833 if test $gl_cv_c_multiarch = yes; then
14834 APPLE_UNIVERSAL_BUILD
=1
14836 APPLE_UNIVERSAL_BUILD
=0
14845 if test $ac_cv_header_sys_socket_h = no
; then
14846 for ac_header
in ws2tcpip.h
14848 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
14850 cat >>confdefs.h
<<_ACEOF
14851 #define HAVE_WS2TCPIP_H 1
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14861 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14862 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 #include <stdbool.h>
14870 "error: bool is not defined"
14873 "error: false is not defined"
14876 "error: false is not 0"
14879 "error: true is not defined"
14882 "error: true is not 1"
14884 #ifndef __bool_true_false_are_defined
14885 "error: __bool_true_false_are_defined is not defined"
14888 struct s { _Bool s: 1; _Bool t; } s;
14890 char a[true == 1 ? 1 : -1];
14891 char b[false == 0 ? 1 : -1];
14892 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14893 char d[(bool) 0.5 == true ? 1 : -1];
14894 /* See body of main program for 'e'. */
14895 char f[(_Bool) 0.0 == false ? 1 : -1];
14897 char h[sizeof (_Bool)];
14898 char i[sizeof s.t];
14899 enum { j = false, k = true, l = false * true, m = true * 256 };
14900 /* The following fails for
14901 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14903 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14904 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14905 /* Catch a bug in an HP-UX C compiler. See
14906 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14907 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14919 /* Refer to every declared value, to avoid compiler optimizations. */
14920 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14921 + !m + !n + !o + !p + !q + !pq);
14927 if ac_fn_c_try_compile
"$LINENO"; then :
14928 ac_cv_header_stdbool_h
=yes
14930 ac_cv_header_stdbool_h
=no
14932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14935 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14936 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14937 if test "x$ac_cv_type__Bool" = x
""yes; then :
14939 cat >>confdefs.h
<<_ACEOF
14940 #define HAVE__BOOL 1
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14954 $as_echo_n "checking for wchar_t... " >&6; }
14955 if test "${gt_cv_c_wchar_t+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 #include <stddef.h>
14961 wchar_t foo = (wchar_t)'\0';
14970 if ac_fn_c_try_compile
"$LINENO"; then :
14971 gt_cv_c_wchar_t
=yes
14975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14978 $as_echo "$gt_cv_c_wchar_t" >&6; }
14979 if test $gt_cv_c_wchar_t = yes; then
14981 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14987 $as_echo_n "checking for unsigned long long int... " >&6; }
14988 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14991 ac_cv_type_unsigned_long_long_int
=yes
14992 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14996 /* For now, do not test the preprocessor; as of 2007 there are too many
14997 implementations with broken preprocessors. Perhaps this can
14998 be revisited in 2012. In the meantime, code should not expect
14999 #if to work with literals wider than 32 bits. */
15000 /* Test literals. */
15001 long long int ll = 9223372036854775807ll;
15002 long long int nll = -9223372036854775807LL;
15003 unsigned long long int ull = 18446744073709551615ULL;
15004 /* Test constant expressions. */
15005 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15007 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15013 /* Test availability of runtime routines for shift and division. */
15014 long long int llmax = 9223372036854775807ll;
15015 unsigned long long int ullmax = 18446744073709551615ull;
15016 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15017 | (llmax / ll) | (llmax % ll)
15018 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15019 | (ullmax / ull) | (ullmax % ull));
15025 if ac_fn_c_try_link
"$LINENO"; then :
15028 ac_cv_type_unsigned_long_long_int
=no
15030 rm -f core conftest.err conftest.
$ac_objext \
15031 conftest
$ac_exeext conftest.
$ac_ext
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15035 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15036 if test $ac_cv_type_unsigned_long_long_int = yes; then
15038 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15045 $as_echo_n "checking for long long int... " >&6; }
15046 if test "${ac_cv_type_long_long_int+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15049 ac_cv_type_long_long_int
=yes
15050 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15051 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
15052 if test $ac_cv_type_long_long_int = yes; then
15053 if test "$cross_compiling" = yes; then :
15056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #include <limits.h>
15061 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15062 # define LLONG_MAX (HALF - 1 + HALF)
15067 long long int n = 1;
15071 long long int m = n << i;
15074 if (LLONG_MAX / 2 < m)
15082 if ac_fn_c_try_run
"$LINENO"; then :
15085 ac_cv_type_long_long_int
=no
15087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15095 $as_echo "$ac_cv_type_long_long_int" >&6; }
15096 if test $ac_cv_type_long_long_int = yes; then
15098 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15112 GNULIB_FPRINTF_POSIX
=0;
15124 GNULIB_OBSTACK_PRINTF
=0;
15125 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15129 GNULIB_PRINTF_POSIX
=0;
15137 GNULIB_SPRINTF_POSIX
=0;
15138 GNULIB_STDIO_H_SIGPIPE
=0;
15140 GNULIB_VASPRINTF
=0;
15143 GNULIB_VFPRINTF_POSIX
=0;
15145 GNULIB_VPRINTF_POSIX
=0;
15146 GNULIB_VSNPRINTF
=0;
15147 GNULIB_VSPRINTF_POSIX
=0;
15148 HAVE_DECL_FPURGE
=1;
15149 HAVE_DECL_FSEEKO
=1;
15150 HAVE_DECL_FTELLO
=1;
15151 HAVE_DECL_GETDELIM
=1;
15152 HAVE_DECL_GETLINE
=1;
15153 HAVE_DECL_OBSTACK_PRINTF
=1;
15154 HAVE_DECL_SNPRINTF
=1;
15155 HAVE_DECL_VSNPRINTF
=1;
15173 REPLACE_GETDELIM
=0;
15175 REPLACE_OBSTACK_PRINTF
=0;
15181 REPLACE_RENAMEAT
=0;
15182 REPLACE_SNPRINTF
=0;
15184 REPLACE_STDIO_WRITE_FUNCS
=0;
15186 REPLACE_VASPRINTF
=0;
15187 REPLACE_VDPRINTF
=0;
15188 REPLACE_VFPRINTF
=0;
15190 REPLACE_VSNPRINTF
=0;
15191 REPLACE_VSPRINTF
=0;
15194 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15196 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15198 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15208 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15209 if test "${ac_cv_header_stat_broken+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #include <sys/types.h>
15215 #include <sys/stat.h>
15217 #if defined S_ISBLK && defined S_IFDIR
15218 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15221 #if defined S_ISBLK && defined S_IFCHR
15222 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15225 #if defined S_ISLNK && defined S_IFREG
15226 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15229 #if defined S_ISSOCK && defined S_IFREG
15230 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15234 if ac_fn_c_try_compile
"$LINENO"; then :
15235 ac_cv_header_stat_broken
=no
15237 ac_cv_header_stat_broken
=yes
15239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15242 $as_echo "$ac_cv_header_stat_broken" >&6; }
15243 if test $ac_cv_header_stat_broken = yes; then
15245 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15252 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15253 if test "${ac_cv_c_restrict+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15256 ac_cv_c_restrict
=no
15257 # The order here caters to the fact that C++ does not require restrict.
15258 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 typedef int * int_ptr;
15262 int foo (int_ptr $ac_kw ip) {
15269 int * $ac_kw t = s;
15276 if ac_fn_c_try_compile
"$LINENO"; then :
15277 ac_cv_c_restrict
=$ac_kw
15279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15280 test "$ac_cv_c_restrict" != no
&& break
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15285 $as_echo "$ac_cv_c_restrict" >&6; }
15287 case $ac_cv_c_restrict in
15289 no
) $as_echo "#define restrict /**/" >>confdefs.h
15291 *) cat >>confdefs.h
<<_ACEOF
15292 #define restrict $ac_cv_c_restrict
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15302 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15303 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15304 $as_echo_n "(cached) " >&6
15306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15313 static struct timespec x; x.tv_sec = x.tv_nsec;
15318 if ac_fn_c_try_compile
"$LINENO"; then :
15319 gl_cv_sys_struct_timespec_in_time_h
=yes
15321 gl_cv_sys_struct_timespec_in_time_h
=no
15323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15326 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15328 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15329 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15330 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15331 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15332 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15335 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15336 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 #include <sys/time.h>
15346 static struct timespec x; x.tv_sec = x.tv_nsec;
15351 if ac_fn_c_try_compile
"$LINENO"; then :
15352 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15354 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15359 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15360 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15361 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15364 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15365 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15366 $as_echo_n "(cached) " >&6
15368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 #include <pthread.h>
15375 static struct timespec x; x.tv_sec = x.tv_nsec;
15380 if ac_fn_c_try_compile
"$LINENO"; then :
15381 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15383 gl_cv_sys_struct_timespec_in_pthread_h
=no
15385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15388 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15389 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15390 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15409 if test $gl_cv_have_include_next = yes; then
15410 gl_cv_next_time_h
='<'time.h
'>'
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15413 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15414 if test "${gl_cv_next_time_h+set}" = set; then :
15415 $as_echo_n "(cached) " >&6
15418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15424 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15425 *) gl_absname_cpp
="$ac_cpp" ;;
15427 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15428 sed -n '\#/time.h#{
15429 s#.*"\(.*/time.h\)".*#\1#
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15438 $as_echo "$gl_cv_next_time_h" >&6; }
15440 NEXT_TIME_H
=$gl_cv_next_time_h
15442 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15444 gl_next_as_first_directive
='<'time.h
'>'
15446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15447 gl_next_as_first_directive
=$gl_cv_next_time_h
15449 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15456 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15457 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15463 cat >>confdefs.h
<<_ACEOF
15464 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15471 GL_COND_LIBTOOL_TRUE
=
15472 GL_COND_LIBTOOL_FALSE
='#'
15474 GL_COND_LIBTOOL_TRUE
='#'
15475 GL_COND_LIBTOOL_FALSE
=
15478 gl_cond_libtool
=false
15491 gl_source_base
='lib'
15492 # Code from module arg-nonnull:
15493 # Code from module c++defs:
15494 # Code from module crypto/md5:
15504 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15511 # Code from module dosname:
15512 # Code from module dtoastr:
15514 # Code from module extensions:
15515 # Code from module filemode:
15526 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15530 # Code from module getloadavg:
15533 # Persuade glibc <stdlib.h> to declare getloadavg().
15536 # Make sure getloadavg.c is where it belongs, at configure-time.
15537 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15538 as_fn_error
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15542 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15543 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15544 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15545 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15550 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15551 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15552 # to get the right answer into the cache.
15553 # For kstat on solaris, we need to test for libelf and libkvm to force the
15554 # definition of SVR4 below.
15555 if test $gl_have_func = no
; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15557 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15558 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15561 ac_check_lib_save_LIBS
=$LIBS
15563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15566 /* Override any GCC internal prototype to avoid an error.
15567 Use char because int might match the return type of a GCC
15568 builtin and then its argument prototype would still apply. */
15576 return elf_begin ();
15581 if ac_fn_c_try_link
"$LINENO"; then :
15582 ac_cv_lib_elf_elf_begin
=yes
15584 ac_cv_lib_elf_elf_begin
=no
15586 rm -f core conftest.err conftest.
$ac_objext \
15587 conftest
$ac_exeext conftest.
$ac_ext
15588 LIBS
=$ac_check_lib_save_LIBS
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15591 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15592 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15597 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15598 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15599 $as_echo_n "(cached) " >&6
15601 ac_check_lib_save_LIBS
=$LIBS
15603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15616 return kvm_open ();
15621 if ac_fn_c_try_link
"$LINENO"; then :
15622 ac_cv_lib_kvm_kvm_open
=yes
15624 ac_cv_lib_kvm_kvm_open
=no
15626 rm -f core conftest.err conftest.
$ac_objext \
15627 conftest
$ac_exeext conftest.
$ac_ext
15628 LIBS
=$ac_check_lib_save_LIBS
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15631 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15632 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15636 # Check for the 4.4BSD definition of getloadavg.
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15638 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15639 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15642 ac_check_lib_save_LIBS
=$LIBS
15643 LIBS
="-lutil $LIBS"
15644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15653 char getloadavg ();
15657 return getloadavg ();
15662 if ac_fn_c_try_link
"$LINENO"; then :
15663 ac_cv_lib_util_getloadavg
=yes
15665 ac_cv_lib_util_getloadavg
=no
15667 rm -f core conftest.err conftest.
$ac_objext \
15668 conftest
$ac_exeext conftest.
$ac_ext
15669 LIBS
=$ac_check_lib_save_LIBS
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15672 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15673 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15674 LIBS
="-lutil $LIBS" gl_have_func
=yes
15679 if test $gl_have_func = no
; then
15680 # There is a commonly available library for RS/6000 AIX.
15681 # Since it is not a standard part of AIX, it might be installed locally.
15682 gl_getloadavg_LIBS
=$LIBS
15683 LIBS
="-L/usr/local/lib $LIBS"
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15685 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15686 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15689 ac_check_lib_save_LIBS
=$LIBS
15690 LIBS
="-lgetloadavg $LIBS"
15691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15700 char getloadavg ();
15704 return getloadavg ();
15709 if ac_fn_c_try_link
"$LINENO"; then :
15710 ac_cv_lib_getloadavg_getloadavg
=yes
15712 ac_cv_lib_getloadavg_getloadavg
=no
15714 rm -f core conftest.err conftest.
$ac_objext \
15715 conftest
$ac_exeext conftest.
$ac_ext
15716 LIBS
=$ac_check_lib_save_LIBS
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15719 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15720 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15721 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15723 LIBS
=$gl_getloadavg_LIBS
15728 # Set up the replacement function if necessary.
15729 if test $gl_have_func = no
; then
15738 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15741 # Figure out what our getloadavg.c needs.
15743 # Solaris has libkstat which does not require root.
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15745 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15746 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15749 ac_check_lib_save_LIBS
=$LIBS
15750 LIBS
="-lkstat $LIBS"
15751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15754 /* Override any GCC internal prototype to avoid an error.
15755 Use char because int might match the return type of a GCC
15756 builtin and then its argument prototype would still apply. */
15760 char kstat_open ();
15764 return kstat_open ();
15769 if ac_fn_c_try_link
"$LINENO"; then :
15770 ac_cv_lib_kstat_kstat_open
=yes
15772 ac_cv_lib_kstat_kstat_open
=no
15774 rm -f core conftest.err conftest.
$ac_objext \
15775 conftest
$ac_exeext conftest.
$ac_ext
15776 LIBS
=$ac_check_lib_save_LIBS
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15779 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15780 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15781 cat >>confdefs.h
<<_ACEOF
15782 #define HAVE_LIBKSTAT 1
15785 LIBS
="-lkstat $LIBS"
15789 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15791 # On HPUX9, an unprivileged user can get load averages this way.
15792 if test $gl_have_func = no
; then
15793 for ac_func
in pstat_getdynamic
15795 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15796 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15797 cat >>confdefs.h
<<_ACEOF
15798 #define HAVE_PSTAT_GETDYNAMIC 1
15806 # AIX has libperfstat which does not require root
15807 if test $gl_have_func = no
; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15809 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15810 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15813 ac_check_lib_save_LIBS
=$LIBS
15814 LIBS
="-lperfstat $LIBS"
15815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15818 /* Override any GCC internal prototype to avoid an error.
15819 Use char because int might match the return type of a GCC
15820 builtin and then its argument prototype would still apply. */
15824 char perfstat_cpu_total ();
15828 return perfstat_cpu_total ();
15833 if ac_fn_c_try_link
"$LINENO"; then :
15834 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15836 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15838 rm -f core conftest.err conftest.
$ac_objext \
15839 conftest
$ac_exeext conftest.
$ac_ext
15840 LIBS
=$ac_check_lib_save_LIBS
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15843 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15844 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15845 cat >>confdefs.h
<<_ACEOF
15846 #define HAVE_LIBPERFSTAT 1
15849 LIBS
="-lperfstat $LIBS"
15853 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15856 if test $gl_have_func = no
; then
15857 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15858 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15861 $as_echo "#define DGUX 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15864 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15865 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15868 ac_check_lib_save_LIBS
=$LIBS
15870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15873 /* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15879 char dg_sys_info ();
15883 return dg_sys_info ();
15888 if ac_fn_c_try_link
"$LINENO"; then :
15889 ac_cv_lib_dgc_dg_sys_info
=yes
15891 ac_cv_lib_dgc_dg_sys_info
=no
15893 rm -f core conftest.err conftest.
$ac_objext \
15894 conftest
$ac_exeext conftest.
$ac_ext
15895 LIBS
=$ac_check_lib_save_LIBS
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15898 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15899 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15900 cat >>confdefs.h
<<_ACEOF
15901 #define HAVE_LIBDGC 1
15913 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15914 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15915 # Irix 4.0.5F has the header but not the library.
15916 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15917 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15920 $as_echo "#define SVR4 1" >>confdefs.h
15924 if test $gl_have_func = no
; then
15925 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15926 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15929 $as_echo "#define UMAX 1" >>confdefs.h
15932 $as_echo "#define UMAX4_3 1" >>confdefs.h
15939 if test $gl_have_func = no
; then
15940 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15941 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15942 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15949 if test $gl_have_func = no
; then
15950 for ac_header
in mach
/mach.h
15952 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15953 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15954 cat >>confdefs.h
<<_ACEOF
15955 #define HAVE_MACH_MACH_H 1
15964 for ac_header
in nlist.h
15966 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15967 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15968 cat >>confdefs.h
<<_ACEOF
15969 #define HAVE_NLIST_H 1
15971 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15973 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15975 cat >>confdefs.h
<<_ACEOF
15976 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15989 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15990 x.n_un.n_name = "";
15998 if ac_fn_c_try_link
"$LINENO"; then :
16000 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16003 rm -f core conftest.err conftest.
$ac_objext \
16004 conftest
$ac_exeext conftest.
$ac_ext
16014 if test "x$gl_save_LIBS" = x
; then
16015 GETLOADAVG_LIBS
=$LIBS
16017 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16022 # Test whether the system declares getloadavg. Solaris has the function
16023 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16024 for ac_header
in sys
/loadavg.h
16026 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16027 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
16028 cat >>confdefs.h
<<_ACEOF
16029 #define HAVE_SYS_LOADAVG_H 1
16036 if test $ac_cv_header_sys_loadavg_h = yes; then
16037 HAVE_SYS_LOADAVG_H
=1
16039 HAVE_SYS_LOADAVG_H
=0
16041 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16042 # include <sys/loadavg.h>
16044 #include <stdlib.h>
16046 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
16049 HAVE_DECL_GETLOADAVG
=0
16056 GNULIB_GETLOADAVG
=1
16060 # Code from module getopt-gnu:
16067 # Code from module getopt-posix:
16073 if test -n "$gl_replace_getopt"; then :
16079 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16083 GNULIB_UNISTD_H_GETOPT
=1
16092 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16102 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16112 # Code from module gettext-h:
16115 # Code from module ignore-value:
16117 # Code from module include_next:
16118 # Code from module intprops:
16119 # Code from module lstat:
16123 if test $ac_cv_func_lstat = yes; then
16125 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
16128 # Prerequisites of lib/lstat.c.
16141 # Code from module mktime:
16147 if test $APPLE_UNIVERSAL_BUILD = 1; then
16148 # A universal build on Apple MacOS X platforms.
16149 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16150 # But we need a configuration result that is valid in both modes.
16151 ac_cv_func_working_mktime
=no
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16154 $as_echo_n "checking for working mktime... " >&6; }
16155 if test "${ac_cv_func_working_mktime+set}" = set; then :
16156 $as_echo_n "(cached) " >&6
16158 if test "$cross_compiling" = yes; then :
16159 ac_cv_func_working_mktime
=no
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 /* Test program from Paul Eggert and Tony Leneis. */
16164 #include <limits.h>
16165 #include <stdlib.h>
16168 #ifdef HAVE_UNISTD_H
16169 # include <unistd.h>
16173 # define alarm(X) /* empty */
16176 /* Work around redefinition to rpl_putenv by other config tests. */
16179 static time_t time_t_max;
16180 static time_t time_t_min;
16182 /* Values we'll use to set the TZ environment variable. */
16183 static char *tz_strings[] = {
16184 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16185 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16187 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16189 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16190 Based on a problem report from Andreas Jaeger. */
16192 spring_forward_gap ()
16194 /* glibc (up to about 1998-10-07) failed this test. */
16197 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16198 instead of "TZ=America/Vancouver" in order to detect the bug even
16199 on systems that don't support the Olson extension, or don't have the
16200 full zoneinfo tables installed. */
16201 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16210 return mktime (&tm) != (time_t) -1;
16214 mktime_test1 (time_t now)
16217 return ! (lt = localtime (&now)) || mktime (lt) == now;
16221 mktime_test (time_t now)
16223 return (mktime_test1 (now)
16224 && mktime_test1 ((time_t) (time_t_max - now))
16225 && mktime_test1 ((time_t) (time_t_min + now)));
16231 /* Based on code from Ariel Faigon. */
16241 return tm.tm_mon == 2 && tm.tm_mday == 31;
16245 bigtime_test (int j)
16249 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16250 now = mktime (&tm);
16251 if (now != (time_t) -1)
16253 struct tm *lt = localtime (&now);
16255 && lt->tm_year == tm.tm_year
16256 && lt->tm_mon == tm.tm_mon
16257 && lt->tm_mday == tm.tm_mday
16258 && lt->tm_hour == tm.tm_hour
16259 && lt->tm_min == tm.tm_min
16260 && lt->tm_sec == tm.tm_sec
16261 && lt->tm_yday == tm.tm_yday
16262 && lt->tm_wday == tm.tm_wday
16263 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16264 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16273 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16274 ignoring leap seconds. */
16275 unsigned long int answer = 2527315200UL;
16279 tm.tm_year = 2050 - 1900;
16282 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16285 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16286 instead of "TZ=America/Vancouver" in order to detect the bug even
16287 on systems that don't support the Olson extension, or don't have the
16288 full zoneinfo tables installed. */
16289 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16293 /* Check that the result is either a failure, or close enough
16294 to the correct answer that we can assume the discrepancy is
16295 due to leap seconds. */
16296 return (t == (time_t) -1
16297 || (0 < t && answer - 120 <= t && t <= answer + 120));
16306 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16307 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16309 /* This test makes some buggy mktime implementations loop.
16310 Give up after 60 seconds; a mktime slower than that
16311 isn't worth using anyway. */
16314 time_t_max = (! time_t_signed
16316 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16318 time_t_min = (! time_t_signed
16320 : time_t_signed_magnitude
16324 delta = time_t_max / 997; /* a suitable prime number */
16325 for (i = 0; i < N_STRINGS; i++)
16328 putenv (tz_strings[i]);
16330 for (t = 0; t <= time_t_max - delta; t += delta)
16331 if (! mktime_test (t))
16333 if (! (mktime_test ((time_t) 1)
16334 && mktime_test ((time_t) (60 * 60))
16335 && mktime_test ((time_t) (60 * 60 * 24))))
16338 for (j = 1; ; j <<= 1)
16339 if (! bigtime_test (j))
16341 else if (INT_MAX / 2 < j)
16343 if (! bigtime_test (INT_MAX))
16346 if (! irix_6_4_bug ())
16348 if (! spring_forward_gap ())
16350 if (! year_2050_test ())
16355 if ac_fn_c_try_run
"$LINENO"; then :
16356 ac_cv_func_working_mktime
=yes
16358 ac_cv_func_working_mktime
=no
16360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16366 $as_echo "$ac_cv_func_working_mktime" >&6; }
16367 if test $ac_cv_func_working_mktime = no
; then
16376 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16380 if test $ac_cv_func_working_mktime = no
; then
16396 # Code from module multiarch:
16398 # Code from module readlink:
16402 if test $ac_cv_func_readlink = no
; then
16412 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16419 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16420 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16421 $as_echo_n "(cached) " >&6
16423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 #include <unistd.h>
16426 /* Cause compilation failure if original declaration has wrong type. */
16427 ssize_t readlink (const char *, char *, size_t);
16436 if ac_fn_c_try_compile
"$LINENO"; then :
16437 gl_cv_decl_readlink_works
=yes
16439 gl_cv_decl_readlink_works
=no
16441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16444 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16446 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16447 if test "${gl_cv_func_readlink_works+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16450 # We have readlink, so assume ln -s works.
16451 ln -s conftest.no-such conftest.link
16452 ln -s conftest.link conftest.lnk2
16453 if test "$cross_compiling" = yes; then :
16454 gl_cv_func_readlink_works
="guessing no"
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include <unistd.h>
16464 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16469 if ac_fn_c_try_run
"$LINENO"; then :
16470 gl_cv_func_readlink_works
=yes
16472 gl_cv_func_readlink_works
=no
16474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16478 rm -f conftest.link conftest.lnk2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16481 $as_echo "$gl_cv_func_readlink_works" >&6; }
16482 if test "$gl_cv_func_readlink_works" != yes; then
16484 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16495 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16497 elif test "$gl_cv_decl_readlink_works" != yes; then
16507 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16519 # Code from module socklen:
16520 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16521 /* <sys/types.h> is not needed according to POSIX, but the
16522 <sys/socket.h> in i386-unknown-freebsd4.10 and
16523 powerpc-apple-darwin5.5 required it. */
16524 #include <sys/types.h>
16525 #if HAVE_SYS_SOCKET_H
16526 # include <sys/socket.h>
16527 #elif HAVE_WS2TCPIP_H
16528 # include <ws2tcpip.h>
16532 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16536 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16537 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16538 $as_echo_n "(cached) " >&6
16540 # Systems have either "struct sockaddr *" or
16541 # "void *" as the second argument to getpeername
16542 gl_cv_socklen_t_equiv
=
16543 for arg2
in "struct sockaddr" void
; do
16544 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
16545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 #include <sys/types.h>
16548 #include <sys/socket.h>
16550 int getpeername (int, $arg2 *, $t *);
16555 getpeername (0, 0, &len);
16560 if ac_fn_c_try_compile
"$LINENO"; then :
16561 gl_cv_socklen_t_equiv
="$t"
16563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16564 test "$gl_cv_socklen_t_equiv" != "" && break
16566 test "$gl_cv_socklen_t_equiv" != "" && break
16571 if test "$gl_cv_socklen_t_equiv" = ""; then
16572 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16575 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16577 cat >>confdefs.h
<<_ACEOF
16578 #define socklen_t $gl_cv_socklen_t_equiv
16583 # Code from module stat:
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16588 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16589 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16590 $as_echo_n "(cached) " >&6
16592 if test "$cross_compiling" = yes; then :
16594 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16595 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 #include <sys/stat.h>
16605 struct stat st; return stat (".", &st) != stat ("./", &st);
16610 if ac_fn_c_try_run
"$LINENO"; then :
16611 gl_cv_func_stat_dir_slash
=yes
16613 gl_cv_func_stat_dir_slash
=no
16615 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16616 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16621 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16623 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16624 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
16628 # Assume that if we have lstat, we can also check symlinks.
16629 if test $ac_cv_func_lstat = yes; then
16630 ln -s conftest.tmp conftest.lnk
16632 if test "$cross_compiling" = yes; then :
16633 gl_cv_func_stat_file_slash
="guessing no"
16635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16637 #include <sys/stat.h>
16644 if (!stat ("conftest.tmp/", &st))
16647 if (!stat ("conftest.lnk/", &st))
16656 if ac_fn_c_try_run
"$LINENO"; then :
16657 gl_cv_func_stat_file_slash
=yes
16659 gl_cv_func_stat_file_slash
=no
16661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16665 rm -f conftest.tmp conftest.lnk
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16668 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16669 case $gl_cv_func_stat_dir_slash in
16670 *no
) REPLACE_STAT
=1
16672 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16675 case $gl_cv_func_stat_file_slash in
16676 *no
) REPLACE_STAT
=1
16678 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16681 if test $REPLACE_STAT = 1; then
16690 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16702 # Code from module stdbool:
16706 # Define two additional variables used in the Makefile substitution.
16708 if test "$ac_cv_header_stdbool_h" = yes; then
16711 STDBOOL_H
='stdbool.h'
16715 if test "$ac_cv_type__Bool" = yes; then
16722 # Code from module stddef:
16726 if test $gt_cv_c_wchar_t = no
; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16731 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16732 if test "${gl_cv_decl_null_works+set}" = set; then :
16733 $as_echo_n "(cached) " >&6
16735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 #include <stddef.h>
16738 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16748 if ac_fn_c_try_compile
"$LINENO"; then :
16749 gl_cv_decl_null_works
=yes
16751 gl_cv_decl_null_works
=no
16753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16756 $as_echo "$gl_cv_decl_null_works" >&6; }
16757 if test $gl_cv_decl_null_works = no
; then
16761 if test -n "$STDDEF_H"; then
16770 if test $gl_cv_have_include_next = yes; then
16771 gl_cv_next_stddef_h
='<'stddef.h
'>'
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16774 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16775 if test "${gl_cv_next_stddef_h+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <stddef.h>
16785 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16786 *) gl_absname_cpp
="$ac_cpp" ;;
16788 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16789 sed -n '\#/stddef.h#{
16790 s#.*"\(.*/stddef.h\)".*#\1#
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16799 $as_echo "$gl_cv_next_stddef_h" >&6; }
16801 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16803 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16805 gl_next_as_first_directive
='<'stddef.h
'>'
16807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16808 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16810 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16817 # Code from module stdint:
16821 if test $ac_cv_type_long_long_int = yes; then
16822 HAVE_LONG_LONG_INT
=1
16824 HAVE_LONG_LONG_INT
=0
16828 if test $ac_cv_type_unsigned_long_long_int = yes; then
16829 HAVE_UNSIGNED_LONG_LONG_INT
=1
16831 HAVE_UNSIGNED_LONG_LONG_INT
=0
16836 if test $ac_cv_header_wchar_h = yes; then
16843 if test $ac_cv_header_inttypes_h = yes; then
16850 if test $ac_cv_header_sys_types_h = yes; then
16866 if test $gl_cv_have_include_next = yes; then
16867 gl_cv_next_stdint_h
='<'stdint.h
'>'
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16870 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16871 if test "${gl_cv_next_stdint_h+set}" = set; then :
16872 $as_echo_n "(cached) " >&6
16875 if test $ac_cv_header_stdint_h = yes; then
16878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <stdint.h>
16884 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16885 *) gl_absname_cpp
="$ac_cpp" ;;
16887 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16888 sed -n '\#/stdint.h#{
16889 s#.*"\(.*/stdint.h\)".*#\1#
16895 gl_cv_next_stdint_h
='<'stdint.h
'>'
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16901 $as_echo "$gl_cv_next_stdint_h" >&6; }
16903 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16905 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16907 gl_next_as_first_directive
='<'stdint.h
'>'
16909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16910 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16912 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16917 if test $ac_cv_header_stdint_h = yes; then
16924 if test $ac_cv_header_stdint_h = yes; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16926 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16927 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16928 $as_echo_n "(cached) " >&6
16930 gl_cv_header_working_stdint_h
=no
16931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16935 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16936 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16937 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16938 #include <stdint.h>
16939 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16940 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16941 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16945 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16946 included before <wchar.h>. */
16947 #include <stddef.h>
16948 #include <signal.h>
16950 # include <stdio.h>
16952 # include <wchar.h>
16957 int8_t a1 = INT8_MAX;
16958 int8_t a1min = INT8_MIN;
16961 int16_t a2 = INT16_MAX;
16962 int16_t a2min = INT16_MIN;
16965 int32_t a3 = INT32_MAX;
16966 int32_t a3min = INT32_MIN;
16969 int64_t a4 = INT64_MAX;
16970 int64_t a4min = INT64_MIN;
16973 uint8_t b1 = UINT8_MAX;
16975 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16978 uint16_t b2 = UINT16_MAX;
16981 uint32_t b3 = UINT32_MAX;
16984 uint64_t b4 = UINT64_MAX;
16986 int_least8_t c1 = INT8_C (0x7f);
16987 int_least8_t c1max = INT_LEAST8_MAX;
16988 int_least8_t c1min = INT_LEAST8_MIN;
16989 int_least16_t c2 = INT16_C (0x7fff);
16990 int_least16_t c2max = INT_LEAST16_MAX;
16991 int_least16_t c2min = INT_LEAST16_MIN;
16992 int_least32_t c3 = INT32_C (0x7fffffff);
16993 int_least32_t c3max = INT_LEAST32_MAX;
16994 int_least32_t c3min = INT_LEAST32_MIN;
16995 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16996 int_least64_t c4max = INT_LEAST64_MAX;
16997 int_least64_t c4min = INT_LEAST64_MIN;
16998 uint_least8_t d1 = UINT8_C (0xff);
16999 uint_least8_t d1max = UINT_LEAST8_MAX;
17000 uint_least16_t d2 = UINT16_C (0xffff);
17001 uint_least16_t d2max = UINT_LEAST16_MAX;
17002 uint_least32_t d3 = UINT32_C (0xffffffff);
17003 uint_least32_t d3max = UINT_LEAST32_MAX;
17004 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17005 uint_least64_t d4max = UINT_LEAST64_MAX;
17006 int_fast8_t e1 = INT_FAST8_MAX;
17007 int_fast8_t e1min = INT_FAST8_MIN;
17008 int_fast16_t e2 = INT_FAST16_MAX;
17009 int_fast16_t e2min = INT_FAST16_MIN;
17010 int_fast32_t e3 = INT_FAST32_MAX;
17011 int_fast32_t e3min = INT_FAST32_MIN;
17012 int_fast64_t e4 = INT_FAST64_MAX;
17013 int_fast64_t e4min = INT_FAST64_MIN;
17014 uint_fast8_t f1 = UINT_FAST8_MAX;
17015 uint_fast16_t f2 = UINT_FAST16_MAX;
17016 uint_fast32_t f3 = UINT_FAST32_MAX;
17017 uint_fast64_t f4 = UINT_FAST64_MAX;
17019 intptr_t g = INTPTR_MAX;
17020 intptr_t gmin = INTPTR_MIN;
17023 uintptr_t h = UINTPTR_MAX;
17025 intmax_t i = INTMAX_MAX;
17026 uintmax_t j = UINTMAX_MAX;
17028 #include <limits.h> /* for CHAR_BIT */
17029 #define TYPE_MINIMUM(t) \
17030 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17031 #define TYPE_MAXIMUM(t) \
17032 ((t) ((t) 0 < (t) -1 \
17034 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17037 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17038 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17040 /* Detect bug in FreeBSD 6.0 / ia64. */
17041 int check_SIG_ATOMIC:
17042 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17043 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17045 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17047 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17048 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17050 /* Detect bug in mingw. */
17052 WINT_MIN == TYPE_MINIMUM (wint_t)
17053 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17056 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17058 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17059 int check_UINT16_C:
17060 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17062 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17064 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17067 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17070 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17073 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17075 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17076 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17077 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17078 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17079 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17080 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17081 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17082 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17083 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17084 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17085 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17096 if ac_fn_c_try_compile
"$LINENO"; then :
17097 if test "$cross_compiling" = yes; then :
17098 gl_cv_header_working_stdint_h
=yes
17101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17105 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17106 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17107 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17108 #include <stdint.h>
17111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17112 included before <wchar.h>. */
17113 #include <stddef.h>
17114 #include <signal.h>
17116 # include <stdio.h>
17118 # include <wchar.h>
17123 #include <string.h>
17124 #define MVAL(macro) MVAL1(macro)
17125 #define MVAL1(expression) #expression
17126 static const char *macro_values[] =
17160 for (mv = macro_values; *mv != NULL; mv++)
17162 const char *value = *mv;
17163 /* Test whether it looks like a cast expression. */
17164 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17165 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17166 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17167 || strncmp (value, "((int)"/*)*/, 6) == 0
17168 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17169 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17170 return mv - macro_values + 1;
17178 if ac_fn_c_try_run
"$LINENO"; then :
17179 gl_cv_header_working_stdint_h
=yes
17181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17182 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17191 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17193 if test "$gl_cv_header_working_stdint_h" = yes; then
17196 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17198 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17199 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17200 eval as_val
=\$
$as_ac_Header
17201 if test "x$as_val" = x
""yes; then :
17202 cat >>confdefs.h
<<_ACEOF
17203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17210 if test $ac_cv_header_sys_inttypes_h = yes; then
17211 HAVE_SYS_INTTYPES_H
=1
17213 HAVE_SYS_INTTYPES_H
=0
17216 if test $ac_cv_header_sys_bitypes_h = yes; then
17217 HAVE_SYS_BITYPES_H
=1
17219 HAVE_SYS_BITYPES_H
=0
17225 if test $APPLE_UNIVERSAL_BUILD = 0; then
17228 for gltype
in ptrdiff_t size_t
; do
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17230 $as_echo_n "checking for bit size of $gltype... " >&6; }
17231 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17232 $as_echo_n "(cached) " >&6
17234 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17235 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17236 included before <wchar.h>. */
17237 #include <stddef.h>
17238 #include <signal.h>
17240 # include <stdio.h>
17242 # include <wchar.h>
17245 #include <limits.h>"; then :
17251 eval gl_cv_bitsizeof_
${gltype}=\
$result
17254 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17256 $as_echo "$ac_res" >&6; }
17257 eval result
=\
$gl_cv_bitsizeof_${gltype}
17258 if test $result = unknown
; then
17261 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17262 cat >>confdefs.h
<<_ACEOF
17263 #define BITSIZEOF_${GLTYPE} $result
17266 eval BITSIZEOF_
${GLTYPE}=\
$result
17273 for gltype
in sig_atomic_t wchar_t wint_t
; do
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17275 $as_echo_n "checking for bit size of $gltype... " >&6; }
17276 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17277 $as_echo_n "(cached) " >&6
17279 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17281 included before <wchar.h>. */
17282 #include <stddef.h>
17283 #include <signal.h>
17285 # include <stdio.h>
17287 # include <wchar.h>
17290 #include <limits.h>"; then :
17296 eval gl_cv_bitsizeof_
${gltype}=\
$result
17299 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17301 $as_echo "$ac_res" >&6; }
17302 eval result
=\
$gl_cv_bitsizeof_${gltype}
17303 if test $result = unknown
; then
17306 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17307 cat >>confdefs.h
<<_ACEOF
17308 #define BITSIZEOF_${GLTYPE} $result
17311 eval BITSIZEOF_
${GLTYPE}=\
$result
17317 for gltype
in sig_atomic_t wchar_t wint_t
; do
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17319 $as_echo_n "checking whether $gltype is signed... " >&6; }
17320 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17321 $as_echo_n "(cached) " >&6
17323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17326 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17327 included before <wchar.h>. */
17328 #include <stddef.h>
17329 #include <signal.h>
17331 # include <stdio.h>
17333 # include <wchar.h>
17336 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17345 if ac_fn_c_try_compile
"$LINENO"; then :
17350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17351 eval gl_cv_type_
${gltype}_signed
=\
$result
17354 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17356 $as_echo "$ac_res" >&6; }
17357 eval result
=\
$gl_cv_type_${gltype}_signed
17358 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17359 if test "$result" = yes; then
17360 cat >>confdefs.h
<<_ACEOF
17361 #define HAVE_SIGNED_${GLTYPE} 1
17364 eval HAVE_SIGNED_
${GLTYPE}=1
17366 eval HAVE_SIGNED_
${GLTYPE}=0
17371 gl_cv_type_ptrdiff_t_signed
=yes
17372 gl_cv_type_size_t_signed
=no
17373 if test $APPLE_UNIVERSAL_BUILD = 0; then
17376 for gltype
in ptrdiff_t size_t
; do
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17378 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17379 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17380 $as_echo_n "(cached) " >&6
17382 eval gl_cv_type_
${gltype}_suffix
=no
17383 eval result
=\
$gl_cv_type_${gltype}_signed
17384 if test "$result" = yes; then
17389 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17391 '') gltype1
='int';;
17392 l
) gltype1
='long int';;
17393 ll
) gltype1
='long long int';;
17394 i64
) gltype1
='__int64';;
17395 u
) gltype1
='unsigned int';;
17396 ul
) gltype1
='unsigned long int';;
17397 ull
) gltype1
='unsigned long long int';;
17398 ui64
)gltype1
='unsigned __int64';;
17400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17403 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17404 included before <wchar.h>. */
17405 #include <stddef.h>
17406 #include <signal.h>
17408 # include <stdio.h>
17410 # include <wchar.h>
17413 extern $gltype foo;
17414 extern $gltype1 foo;
17423 if ac_fn_c_try_compile
"$LINENO"; then :
17424 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17427 eval result
=\
$gl_cv_type_${gltype}_suffix
17428 test "$result" != no
&& break
17431 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17433 $as_echo "$ac_res" >&6; }
17434 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17435 eval result
=\
$gl_cv_type_${gltype}_suffix
17436 test "$result" = no
&& result
=
17437 eval ${GLTYPE}_SUFFIX
=\
$result
17438 cat >>confdefs.h
<<_ACEOF
17439 #define ${GLTYPE}_SUFFIX $result
17448 for gltype
in sig_atomic_t wchar_t wint_t
; do
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17450 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17451 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17452 $as_echo_n "(cached) " >&6
17454 eval gl_cv_type_
${gltype}_suffix
=no
17455 eval result
=\
$gl_cv_type_${gltype}_signed
17456 if test "$result" = yes; then
17461 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17463 '') gltype1
='int';;
17464 l
) gltype1
='long int';;
17465 ll
) gltype1
='long long int';;
17466 i64
) gltype1
='__int64';;
17467 u
) gltype1
='unsigned int';;
17468 ul
) gltype1
='unsigned long int';;
17469 ull
) gltype1
='unsigned long long int';;
17470 ui64
)gltype1
='unsigned __int64';;
17472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17476 included before <wchar.h>. */
17477 #include <stddef.h>
17478 #include <signal.h>
17480 # include <stdio.h>
17482 # include <wchar.h>
17485 extern $gltype foo;
17486 extern $gltype1 foo;
17495 if ac_fn_c_try_compile
"$LINENO"; then :
17496 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17499 eval result
=\
$gl_cv_type_${gltype}_suffix
17500 test "$result" != no
&& break
17503 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17505 $as_echo "$ac_res" >&6; }
17506 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17507 eval result
=\
$gl_cv_type_${gltype}_suffix
17508 test "$result" = no
&& result
=
17509 eval ${GLTYPE}_SUFFIX
=\
$result
17510 cat >>confdefs.h
<<_ACEOF
17511 #define ${GLTYPE}_SUFFIX $result
17522 # Code from module stdio:
17534 if test $gl_cv_have_include_next = yes; then
17535 gl_cv_next_stdio_h
='<'stdio.h
'>'
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17538 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17539 if test "${gl_cv_next_stdio_h+set}" = set; then :
17540 $as_echo_n "(cached) " >&6
17543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17549 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17550 *) gl_absname_cpp
="$ac_cpp" ;;
17552 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17553 sed -n '\#/stdio.h#{
17554 s#.*"\(.*/stdio.h\)".*#\1#
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17563 $as_echo "$gl_cv_next_stdio_h" >&6; }
17565 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17567 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17568 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17569 gl_next_as_first_directive
='<'stdio.h
'>'
17571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17572 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17574 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17593 # Code from module stdlib:
17604 if test $gl_cv_have_include_next = yes; then
17605 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17608 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17609 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17610 $as_echo_n "(cached) " >&6
17613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 #include <stdlib.h>
17619 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17620 *) gl_absname_cpp
="$ac_cpp" ;;
17622 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17623 sed -n '\#/stdlib.h#{
17624 s#.*"\(.*/stdlib.h\)".*#\1#
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17633 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17635 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17637 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17639 gl_next_as_first_directive
='<'stdlib.h
'>'
17641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17642 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17644 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17652 # Code from module strftime:
17663 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17666 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17674 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17678 # Code from module symlink:
17682 if test $ac_cv_func_symlink = no
; then
17692 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17696 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17697 if test "${gl_cv_func_symlink_works+set}" = set; then :
17698 $as_echo_n "(cached) " >&6
17700 if test "$cross_compiling" = yes; then :
17701 gl_cv_func_symlink_works
="guessing no"
17703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17705 #include <unistd.h>
17711 if (!symlink ("a", "conftest.link/"))
17713 if (symlink ("conftest.f", "conftest.lnk2"))
17715 else if (!symlink ("a", "conftest.lnk2/"))
17723 if ac_fn_c_try_run
"$LINENO"; then :
17724 gl_cv_func_symlink_works
=yes
17726 gl_cv_func_symlink_works
=no
17728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17732 rm -f conftest.f conftest.link conftest.lnk2
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17735 $as_echo "$gl_cv_func_symlink_works" >&6; }
17736 if test "$gl_cv_func_symlink_works" != yes; then
17746 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17758 # Code from module sys_stat:
17775 if test $gl_cv_have_include_next = yes; then
17776 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17779 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17780 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17784 if test $ac_cv_header_sys_stat_h = yes; then
17787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/stat.h>
17793 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17794 *) gl_absname_cpp
="$ac_cpp" ;;
17796 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17797 sed -n '\#/sys/stat.h#{
17798 s#.*"\(.*/sys/stat.h\)".*#\1#
17804 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17810 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17812 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17814 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17816 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17819 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17821 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17827 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17828 #include <sys/stat.h>
17830 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
17834 $as_echo "#define nlink_t int" >>confdefs.h
17842 # Code from module time:
17846 # Code from module time_r:
17854 if test $ac_cv_have_decl_localtime_r = no
; then
17855 HAVE_DECL_LOCALTIME_R
=0
17859 if test $ac_cv_func_localtime_r = yes; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17862 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17863 if test "${gl_cv_time_r_posix+set}" = set; then :
17864 $as_echo_n "(cached) " >&6
17866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17872 /* We don't need to append 'restrict's to the argument types,
17873 even though the POSIX signature has the 'restrict's,
17874 since C99 says they can't affect type compatibility. */
17875 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17877 /* Check the return type is a pointer.
17878 On HP-UX 10 it is 'int'. */
17879 *localtime_r (0, 0);
17885 if ac_fn_c_try_compile
"$LINENO"; then :
17886 gl_cv_time_r_posix
=yes
17888 gl_cv_time_r_posix
=no
17890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17894 $as_echo "$gl_cv_time_r_posix" >&6; }
17895 if test $gl_cv_time_r_posix = yes; then
17896 REPLACE_LOCALTIME_R
=0
17898 REPLACE_LOCALTIME_R
=1
17903 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17912 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17926 # Code from module unistd:
17940 if test $gl_cv_have_include_next = yes; then
17941 gl_cv_next_unistd_h
='<'unistd.h
'>'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17944 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17945 if test "${gl_cv_next_unistd_h+set}" = set; then :
17946 $as_echo_n "(cached) " >&6
17949 if test $ac_cv_header_unistd_h = yes; then
17952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17954 #include <unistd.h>
17958 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17959 *) gl_absname_cpp
="$ac_cpp" ;;
17961 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17962 sed -n '\#/unistd.h#{
17963 s#.*"\(.*/unistd.h\)".*#\1#
17969 gl_cv_next_unistd_h
='<'unistd.h
'>'
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17975 $as_echo "$gl_cv_next_unistd_h" >&6; }
17977 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17979 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17981 gl_next_as_first_directive
='<'unistd.h
'>'
17983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17984 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17986 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17991 if test $ac_cv_header_unistd_h = yes; then
18000 # Code from module warn-on-use:
18001 # End of code from modules
18022 gl_source_base
='tests'
18023 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
18025 gl_module_indicator_condition
=$gltests_WITNESS
18035 LIBGNU_LIBDEPS
="$gl_libdeps"
18037 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
18042 for ac_func
in grantpt
18044 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18045 if test "x$ac_cv_func_grantpt" = x
""yes; then :
18046 cat >>confdefs.h
<<_ACEOF
18047 #define HAVE_GRANTPT 1
18054 # PTY-related GNU extensions.
18055 for ac_func
in getpt
18057 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
18058 if test "x$ac_cv_func_getpt" = x
""yes; then :
18059 cat >>confdefs.h
<<_ACEOF
18060 #define HAVE_GETPT 1
18067 # Check this now, so that we will NOT find the above functions in ncurses.
18068 # That is because we have not set up to link ncurses in lib-src.
18069 # It's better to believe a function is not available
18070 # than to expect to find it in ncurses.
18071 # Also we need tputs and friends to be able to build at all.
18072 have_tputs_et_al
=true
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18074 $as_echo_n "checking for library containing tputs... " >&6; }
18075 if test "${ac_cv_search_tputs+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18078 ac_func_search_save_LIBS
=$LIBS
18079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18097 for ac_lib
in '' ncurses terminfo termcap
; do
18098 if test -z "$ac_lib"; then
18099 ac_res
="none required"
18102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18104 if ac_fn_c_try_link
"$LINENO"; then :
18105 ac_cv_search_tputs
=$ac_res
18107 rm -f core conftest.err conftest.
$ac_objext \
18109 if test "${ac_cv_search_tputs+set}" = set; then :
18113 if test "${ac_cv_search_tputs+set}" = set; then :
18116 ac_cv_search_tputs
=no
18118 rm conftest.
$ac_ext
18119 LIBS
=$ac_func_search_save_LIBS
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18122 $as_echo "$ac_cv_search_tputs" >&6; }
18123 ac_res
=$ac_cv_search_tputs
18124 if test "$ac_res" != no
; then :
18125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18128 have_tputs_et_al
=false
18131 if test "$have_tputs_et_al" != true
; then
18132 as_fn_error
"I couldn't find termcap functions (tputs and friends).
18133 Maybe some development libraries/packages are missing? Try installing
18134 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18136 # Must define this when any termcap library is found.
18138 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18140 ## FIXME This was the cpp logic, but I am not sure it is right.
18141 ## The above test has not necessarily found libncurses.
18142 HAVE_LIBNCURSES
=yes
18144 ## Use terminfo instead of termcap?
18145 ## Note only system files NOT using terminfo are:
18146 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18147 ## darwin|gnu without ncurses.
18151 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18152 ## hpux10-20: Use the system provided termcap(3) library.
18153 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18154 ## is necessary. Otherwise Emacs dumps core when run -nw.
18155 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
18157 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18158 ## The ncurses library has been moved out of the System framework in
18159 ## Mac OS X 10.2. So if configure detects it, set the command-line
18160 ## option to use it.
18162 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18163 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18165 LIBS_TERMCAP
="-lncurses"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18171 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18172 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 #include <osreldate.h>
18181 #if __FreeBSD_version < 400000
18189 if ac_fn_c_try_link
"$LINENO"; then :
18190 emacs_cv_freebsd_terminfo
=yes
18192 emacs_cv_freebsd_terminfo
=no
18194 rm -f core conftest.err conftest.
$ac_objext \
18195 conftest
$ac_exeext conftest.
$ac_ext
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18200 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18202 if test $emacs_cv_freebsd_terminfo = yes; then
18204 LIBS_TERMCAP
="-lncurses"
18206 LIBS_TERMCAP
="-ltermcap"
18211 if test $ac_cv_search_tputs = -lterminfo; then
18213 LIBS_TERMCAP
="-lterminfo"
18215 LIBS_TERMCAP
="-ltermcap"
18222 ## hpux: Make sure we get select from libc rather than from libcurses
18223 ## because libcurses on HPUX 10.10 has a broken version of select.
18224 ## We used to use -lc -lcurses, but this may be cleaner.
18225 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
18227 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
18229 ## Must use system termcap, if we use any termcap. It does special things.
18230 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
18233 TERMCAP_OBJ
=tparam.o
18234 if test $TERMINFO = yes; then
18236 $as_echo "#define TERMINFO 1" >>confdefs.h
18239 ## Default used to be -ltermcap. Add a case above if need something else.
18240 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
18242 TERMCAP_OBJ
=terminfo.o
18248 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18252 #include <netinet/in.h>
18253 #include <arpa/nameser.h>
18254 #include <resolv.h>
18263 if ac_fn_c_try_link
"$LINENO"; then :
18268 rm -f core conftest.err conftest.
$ac_objext \
18269 conftest
$ac_exeext conftest.
$ac_ext
18270 if test "$have_res_init" = no
; then
18272 LIBS
="$LIBS -lresolv"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18274 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #include <netinet/in.h>
18278 #include <arpa/nameser.h>
18279 #include <resolv.h>
18288 if ac_fn_c_try_link
"$LINENO"; then :
18293 rm -f core conftest.err conftest.
$ac_objext \
18294 conftest
$ac_exeext conftest.
$ac_ext
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18296 $as_echo "$have_res_init" >&6; }
18297 if test "$have_res_init" = yes ; then
18303 if test "$have_res_init" = yes; then
18305 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18309 # Do we need the Hesiod library to provide the support routines?
18311 if test "$with_hesiod" != no
; then
18312 # Don't set $LIBS here -- see comments above. FIXME which comments?
18313 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
18314 if test "x$ac_cv_func_res_send" = x
""yes; then :
18317 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18318 if test "x$ac_cv_func___res_send" = x
""yes; then :
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18322 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18323 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18324 $as_echo_n "(cached) " >&6
18326 ac_check_lib_save_LIBS
=$LIBS
18327 LIBS
="-lresolv $LIBS"
18328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18341 return res_send ();
18346 if ac_fn_c_try_link
"$LINENO"; then :
18347 ac_cv_lib_resolv_res_send
=yes
18349 ac_cv_lib_resolv_res_send
=no
18351 rm -f core conftest.err conftest.
$ac_objext \
18352 conftest
$ac_exeext conftest.
$ac_ext
18353 LIBS
=$ac_check_lib_save_LIBS
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18356 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18357 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18361 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18362 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18363 $as_echo_n "(cached) " >&6
18365 ac_check_lib_save_LIBS
=$LIBS
18366 LIBS
="-lresolv $LIBS"
18367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18376 char __res_send ();
18380 return __res_send ();
18385 if ac_fn_c_try_link
"$LINENO"; then :
18386 ac_cv_lib_resolv___res_send
=yes
18388 ac_cv_lib_resolv___res_send
=no
18390 rm -f core conftest.err conftest.
$ac_objext \
18391 conftest
$ac_exeext conftest.
$ac_ext
18392 LIBS
=$ac_check_lib_save_LIBS
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18395 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18396 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
18406 if test "$resolv" = yes ; then
18411 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18412 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18416 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18417 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18420 ac_check_lib_save_LIBS
=$LIBS
18421 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18431 char hes_getmailhost ();
18435 return hes_getmailhost ();
18440 if ac_fn_c_try_link
"$LINENO"; then :
18441 ac_cv_lib_hesiod_hes_getmailhost
=yes
18443 ac_cv_lib_hesiod_hes_getmailhost
=no
18445 rm -f core conftest.err conftest.
$ac_objext \
18446 conftest
$ac_exeext conftest.
$ac_ext
18447 LIBS
=$ac_check_lib_save_LIBS
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18450 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18451 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
18460 if test x
"$hesiod" = xyes
; then
18462 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18469 # Do we need libresolv (due to res_init or Hesiod)?
18470 if test "$resolv" = yes ; then
18472 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18480 # These tell us which Kerberos-related libraries to use.
18487 if test "${with_kerberos}" != no
; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18489 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18490 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18493 ac_check_lib_save_LIBS
=$LIBS
18494 LIBS
="-lcom_err $LIBS"
18495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18513 if ac_fn_c_try_link
"$LINENO"; then :
18514 ac_cv_lib_com_err_com_err
=yes
18516 ac_cv_lib_com_err_com_err
=no
18518 rm -f core conftest.err conftest.
$ac_objext \
18519 conftest
$ac_exeext conftest.
$ac_ext
18520 LIBS
=$ac_check_lib_save_LIBS
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18523 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18524 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
18530 if test $have_com_err = yes; then
18531 COM_ERRLIB
=-lcom_err
18532 LIBS
="$COM_ERRLIB $LIBS"
18534 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18538 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18539 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18540 $as_echo_n "(cached) " >&6
18542 ac_check_lib_save_LIBS
=$LIBS
18543 LIBS
="-lcrypto $LIBS"
18544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18553 char mit_des_cbc_encrypt ();
18557 return mit_des_cbc_encrypt ();
18562 if ac_fn_c_try_link
"$LINENO"; then :
18563 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18565 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18567 rm -f core conftest.err conftest.
$ac_objext \
18568 conftest
$ac_exeext conftest.
$ac_ext
18569 LIBS
=$ac_check_lib_save_LIBS
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18572 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18573 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
18579 if test $have_crypto = yes; then
18581 LIBS
="$CRYPTOLIB $LIBS"
18583 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18587 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18588 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18589 $as_echo_n "(cached) " >&6
18591 ac_check_lib_save_LIBS
=$LIBS
18592 LIBS
="-lk5crypto $LIBS"
18593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18596 /* Override any GCC internal prototype to avoid an error.
18597 Use char because int might match the return type of a GCC
18598 builtin and then its argument prototype would still apply. */
18602 char mit_des_cbc_encrypt ();
18606 return mit_des_cbc_encrypt ();
18611 if ac_fn_c_try_link
"$LINENO"; then :
18612 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18616 rm -f core conftest.err conftest.
$ac_objext \
18617 conftest
$ac_exeext conftest.
$ac_ext
18618 LIBS
=$ac_check_lib_save_LIBS
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18621 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18622 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
18628 if test $have_k5crypto = yes; then
18629 CRYPTOLIB
=-lk5crypto
18630 LIBS
="$CRYPTOLIB $LIBS"
18632 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18636 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18637 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18640 ac_check_lib_save_LIBS
=$LIBS
18641 LIBS
="-lkrb5 $LIBS"
18642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18651 char krb5_init_context ();
18655 return krb5_init_context ();
18660 if ac_fn_c_try_link
"$LINENO"; then :
18661 ac_cv_lib_krb5_krb5_init_context
=yes
18663 ac_cv_lib_krb5_krb5_init_context
=no
18665 rm -f core conftest.err conftest.
$ac_objext \
18666 conftest
$ac_exeext conftest.
$ac_ext
18667 LIBS
=$ac_check_lib_save_LIBS
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18670 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18671 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
18677 if test $have_krb5=yes; then
18679 LIBS
="$KRB5LIB $LIBS"
18681 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18684 if test "${with_kerberos5}" = no
; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18686 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18687 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18690 ac_check_lib_save_LIBS
=$LIBS
18691 LIBS
="-ldes425 $LIBS"
18692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18695 /* Override any GCC internal prototype to avoid an error.
18696 Use char because int might match the return type of a GCC
18697 builtin and then its argument prototype would still apply. */
18701 char des_cbc_encrypt ();
18705 return des_cbc_encrypt ();
18710 if ac_fn_c_try_link
"$LINENO"; then :
18711 ac_cv_lib_des425_des_cbc_encrypt
=yes
18713 ac_cv_lib_des425_des_cbc_encrypt
=no
18715 rm -f core conftest.err conftest.
$ac_objext \
18716 conftest
$ac_exeext conftest.
$ac_ext
18717 LIBS
=$ac_check_lib_save_LIBS
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18720 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18721 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
18727 if test $have_des425 = yes; then
18729 LIBS
="$DESLIB $LIBS"
18731 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18735 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18736 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18737 $as_echo_n "(cached) " >&6
18739 ac_check_lib_save_LIBS
=$LIBS
18741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18750 char des_cbc_encrypt ();
18754 return des_cbc_encrypt ();
18759 if ac_fn_c_try_link
"$LINENO"; then :
18760 ac_cv_lib_des_des_cbc_encrypt
=yes
18762 ac_cv_lib_des_des_cbc_encrypt
=no
18764 rm -f core conftest.err conftest.
$ac_objext \
18765 conftest
$ac_exeext conftest.
$ac_ext
18766 LIBS
=$ac_check_lib_save_LIBS
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18769 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18770 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
18776 if test $have_des = yes; then
18778 LIBS
="$DESLIB $LIBS"
18780 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18785 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18786 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18787 $as_echo_n "(cached) " >&6
18789 ac_check_lib_save_LIBS
=$LIBS
18790 LIBS
="-lkrb4 $LIBS"
18791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18800 char krb_get_cred ();
18804 return krb_get_cred ();
18809 if ac_fn_c_try_link
"$LINENO"; then :
18810 ac_cv_lib_krb4_krb_get_cred
=yes
18812 ac_cv_lib_krb4_krb_get_cred
=no
18814 rm -f core conftest.err conftest.
$ac_objext \
18815 conftest
$ac_exeext conftest.
$ac_ext
18816 LIBS
=$ac_check_lib_save_LIBS
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18819 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18820 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
18826 if test $have_krb4 = yes; then
18828 LIBS
="$KRB4LIB $LIBS"
18830 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18834 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18835 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18836 $as_echo_n "(cached) " >&6
18838 ac_check_lib_save_LIBS
=$LIBS
18840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18849 char krb_get_cred ();
18853 return krb_get_cred ();
18858 if ac_fn_c_try_link
"$LINENO"; then :
18859 ac_cv_lib_krb_krb_get_cred
=yes
18861 ac_cv_lib_krb_krb_get_cred
=no
18863 rm -f core conftest.err conftest.
$ac_objext \
18864 conftest
$ac_exeext conftest.
$ac_ext
18865 LIBS
=$ac_check_lib_save_LIBS
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18868 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18869 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18875 if test $have_krb = yes; then
18877 LIBS
="$KRB4LIB $LIBS"
18879 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18885 if test "${with_kerberos5}" != no
; then
18886 for ac_header
in krb5.h
18888 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18889 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18890 cat >>confdefs.h
<<_ACEOF
18891 #define HAVE_KRB5_H 1
18893 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18895 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18897 cat >>confdefs.h
<<_ACEOF
18898 #define HAVE_KRB5_ERROR_TEXT 1
18903 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18905 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18907 cat >>confdefs.h
<<_ACEOF
18908 #define HAVE_KRB5_ERROR_E_TEXT 1
18919 for ac_header
in des.h
18921 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18922 if test "x$ac_cv_header_des_h" = x
""yes; then :
18923 cat >>confdefs.h
<<_ACEOF
18924 #define HAVE_DES_H 1
18928 for ac_header
in kerberosIV
/des.h
18930 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18931 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18932 cat >>confdefs.h
<<_ACEOF
18933 #define HAVE_KERBEROSIV_DES_H 1
18937 for ac_header
in kerberos
/des.h
18939 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18940 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18941 cat >>confdefs.h
<<_ACEOF
18942 #define HAVE_KERBEROS_DES_H 1
18957 for ac_header
in krb.h
18959 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18960 if test "x$ac_cv_header_krb_h" = x
""yes; then :
18961 cat >>confdefs.h
<<_ACEOF
18962 #define HAVE_KRB_H 1
18966 for ac_header
in kerberosIV
/krb.h
18968 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18969 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
18970 cat >>confdefs.h
<<_ACEOF
18971 #define HAVE_KERBEROSIV_KRB_H 1
18975 for ac_header
in kerberos
/krb.h
18977 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18978 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
18979 cat >>confdefs.h
<<_ACEOF
18980 #define HAVE_KERBEROS_KRB_H 1
18996 for ac_header
in com_err.h
18998 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18999 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
19000 cat >>confdefs.h
<<_ACEOF
19001 #define HAVE_COM_ERR_H 1
19016 # Solaris requires -lintl if you want strerror (which calls dgettext)
19017 # to return localized messages.
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19019 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19020 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19023 ac_check_lib_save_LIBS
=$LIBS
19024 LIBS
="-lintl $LIBS"
19025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19038 return dgettext ();
19043 if ac_fn_c_try_link
"$LINENO"; then :
19044 ac_cv_lib_intl_dgettext
=yes
19046 ac_cv_lib_intl_dgettext
=no
19048 rm -f core conftest.err conftest.
$ac_objext \
19049 conftest
$ac_exeext conftest.
$ac_ext
19050 LIBS
=$ac_check_lib_save_LIBS
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19053 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19054 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
19055 cat >>confdefs.h
<<_ACEOF
19056 #define HAVE_LIBINTL 1
19059 LIBS
="-lintl $LIBS"
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19065 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19066 if test "${emacs_cv_localtime_cache+set}" = set; then :
19067 $as_echo_n "(cached) " >&6
19069 if test x
$ac_cv_func_tzset = xyes
; then
19070 if test "$cross_compiling" = yes; then :
19071 # If we have tzset, assume the worst when cross-compiling.
19072 emacs_cv_localtime_cache
=yes
19074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19077 char TZ_GMT0[] = "TZ=GMT0";
19078 char TZ_PST8[] = "TZ=PST8";
19081 time_t now = time ((time_t *) 0);
19082 int hour_GMT0, hour_unset;
19083 if (putenv (TZ_GMT0) != 0)
19085 hour_GMT0 = localtime (&now)->tm_hour;
19087 hour_unset = localtime (&now)->tm_hour;
19088 if (putenv (TZ_PST8) != 0)
19090 if (localtime (&now)->tm_hour == hour_GMT0)
19093 if (localtime (&now)->tm_hour != hour_unset)
19098 if ac_fn_c_try_run
"$LINENO"; then :
19099 emacs_cv_localtime_cache
=no
19101 emacs_cv_localtime_cache
=yes
19103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19108 # If we lack tzset, report that localtime does not cache TZ,
19109 # since we can't invalidate the cache if we don't have tzset.
19110 emacs_cv_localtime_cache
=no
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19114 $as_echo "$emacs_cv_localtime_cache" >&6; }
19115 if test $emacs_cv_localtime_cache = yes; then
19117 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19121 if test "x$HAVE_TIMEVAL" = xyes
; then
19122 for ac_func
in gettimeofday
19124 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19125 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
19126 cat >>confdefs.h
<<_ACEOF
19127 #define HAVE_GETTIMEOFDAY 1
19133 if test $ac_cv_func_gettimeofday = yes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19135 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19136 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19137 $as_echo_n "(cached) " >&6
19139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19142 #ifdef TIME_WITH_SYS_TIME
19143 #include <sys/time.h>
19146 #ifdef HAVE_SYS_TIME_H
19147 #include <sys/time.h>
19155 struct timeval time;
19156 gettimeofday (&time, 0);
19161 if ac_fn_c_try_compile
"$LINENO"; then :
19162 emacs_cv_gettimeofday_two_arguments
=yes
19164 emacs_cv_gettimeofday_two_arguments
=no
19166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19169 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19170 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19172 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19179 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
19180 if test "x$ac_cv_func_socket" = x
""yes; then :
19186 if test $ok_so_far = yes; then
19187 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19188 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
19196 if test $ok_so_far = yes; then
19197 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19198 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
19206 if test $ok_so_far = yes; then
19208 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19212 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19214 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19219 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19220 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222 $as_echo "yes" >&6; }
19224 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19231 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19232 if test "x$ac_cv_type_pid_t" = x
""yes; then :
19236 cat >>confdefs.h
<<_ACEOF
19242 for ac_header
in vfork.h
19244 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19245 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
19246 cat >>confdefs.h
<<_ACEOF
19247 #define HAVE_VFORK_H 1
19254 for ac_func
in fork vfork
19256 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19257 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19258 eval as_val
=\$
$as_ac_var
19259 if test "x$as_val" = x
""yes; then :
19260 cat >>confdefs.h
<<_ACEOF
19261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19267 if test "x$ac_cv_func_fork" = xyes
; then
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19269 $as_echo_n "checking for working fork... " >&6; }
19270 if test "${ac_cv_func_fork_works+set}" = set; then :
19271 $as_echo_n "(cached) " >&6
19273 if test "$cross_compiling" = yes; then :
19274 ac_cv_func_fork_works
=cross
19276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19278 $ac_includes_default
19283 /* By Ruediger Kuhlmann. */
19284 return fork () < 0;
19290 if ac_fn_c_try_run
"$LINENO"; then :
19291 ac_cv_func_fork_works
=yes
19293 ac_cv_func_fork_works
=no
19295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19301 $as_echo "$ac_cv_func_fork_works" >&6; }
19304 ac_cv_func_fork_works
=$ac_cv_func_fork
19306 if test "x$ac_cv_func_fork_works" = xcross
; then
19308 *-*-amigaos* |
*-*-msdosdjgpp*)
19309 # Override, as these systems have only a dummy fork() stub
19310 ac_cv_func_fork_works
=no
19313 ac_cv_func_fork_works
=yes
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19317 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19319 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19320 if test "x$ac_cv_func_vfork" = xyes
; then
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19322 $as_echo_n "checking for working vfork... " >&6; }
19323 if test "${ac_cv_func_vfork_works+set}" = set; then :
19324 $as_echo_n "(cached) " >&6
19326 if test "$cross_compiling" = yes; then :
19327 ac_cv_func_vfork_works
=cross
19329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331 /* Thanks to Paul Eggert for this test. */
19332 $ac_includes_default
19333 #include <sys/wait.h>
19334 #ifdef HAVE_VFORK_H
19335 # include <vfork.h>
19337 /* On some sparc systems, changes by the child to local and incoming
19338 argument registers are propagated back to the parent. The compiler
19339 is told about this with #include <vfork.h>, but some compilers
19340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19341 static variable whose address is put into a register that is
19342 clobbered by the vfork. */
19345 sparc_address_test (int arg)
19347 sparc_address_test (arg) int arg;
19350 static pid_t child;
19368 pid_t parent = getpid ();
19371 sparc_address_test (0);
19376 /* Here is another test for sparc vfork register problems. This
19377 test uses lots of local variables, at least as many local
19378 variables as main has allocated so far including compiler
19379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19381 reuse the register of parent for one of the local variables,
19382 since it will think that parent can't possibly be used any more
19383 in this routine. Assigning to the local variable will thus
19384 munge parent in the parent process. */
19386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19388 /* Convince the compiler that p..p7 are live; otherwise, it might
19389 use the same hardware register for all 8 local variables. */
19390 if (p != p1 || p != p2 || p != p3 || p != p4
19391 || p != p5 || p != p6 || p != p7)
19394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19395 from child file descriptors. If the child closes a descriptor
19396 before it execs or exits, this munges the parent's descriptor
19397 as well. Test for this by closing stdout in the child. */
19398 _exit(close(fileno(stdout)) != 0);
19403 while (wait(&status) != child)
19406 /* Was there some problem with vforking? */
19409 /* Did the child fail? (This shouldn't happen.) */
19412 /* Did the vfork/compiler bug occur? */
19413 || parent != getpid()
19415 /* Did the file descriptor bug occur? */
19416 || fstat(fileno(stdout), &st) != 0
19421 if ac_fn_c_try_run
"$LINENO"; then :
19422 ac_cv_func_vfork_works
=yes
19424 ac_cv_func_vfork_works
=no
19426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19432 $as_echo "$ac_cv_func_vfork_works" >&6; }
19435 if test "x$ac_cv_func_fork_works" = xcross
; then
19436 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19438 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19441 if test "x$ac_cv_func_vfork_works" = xyes
; then
19443 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19447 $as_echo "#define vfork fork" >>confdefs.h
19450 if test "x$ac_cv_func_fork_works" = xyes
; then
19452 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19458 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19459 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #include <langinfo.h>
19468 char* cs = nl_langinfo(CODESET);
19473 if ac_fn_c_try_link
"$LINENO"; then :
19474 emacs_cv_langinfo_codeset
=yes
19476 emacs_cv_langinfo_codeset
=no
19478 rm -f core conftest.err conftest.
$ac_objext \
19479 conftest
$ac_exeext conftest.
$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19483 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19484 if test $emacs_cv_langinfo_codeset = yes; then
19486 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19490 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19491 if test "x$ac_cv_type_size_t" = x
""yes; then :
19493 cat >>confdefs.h
<<_ACEOF
19494 #define HAVE_SIZE_T 1
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19502 $as_echo_n "checking for mbstate_t... " >&6; }
19503 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19504 $as_echo_n "(cached) " >&6
19506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 $ac_includes_default
19509 # include <wchar.h>
19513 mbstate_t x; return sizeof x;
19518 if ac_fn_c_try_compile
"$LINENO"; then :
19519 ac_cv_type_mbstate_t
=yes
19521 ac_cv_type_mbstate_t
=no
19523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19526 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19527 if test $ac_cv_type_mbstate_t = yes; then
19529 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19533 $as_echo "#define mbstate_t int" >>confdefs.h
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19538 $as_echo_n "checking for C restricted array declarations... " >&6; }
19539 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544 void fred (int x[__restrict]);
19553 if ac_fn_c_try_compile
"$LINENO"; then :
19554 emacs_cv_c_restrict_arr
=yes
19556 emacs_cv_c_restrict_arr
=no
19558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19561 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19562 if test "$emacs_cv_c_restrict_arr" = yes; then
19564 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19570 # Set up the CFLAGS for real compilation, so we can substitute it.
19571 CFLAGS
="$REAL_CFLAGS"
19572 CPPFLAGS
="$REAL_CPPFLAGS"
19574 ## Hack to detect a buggy GCC version.
19575 if test "x$GCC" = xyes \
19576 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19577 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19578 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19579 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19582 version
=$PACKAGE_VERSION
19584 ### Specify what sort of things we'll be editing into Makefile and config.h.
19585 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19609 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19610 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19611 ## end of LIBX_BASE, but nothing ever set it.
19616 ## Used in lwlib/Makefile.in.
19618 if test -n "${machfile}"; then
19619 M_FILE
="\$(srcdir)/${machfile}"
19623 S_FILE
="\$(srcdir)/${opsysfile}"
19634 cat >>confdefs.h
<<_ACEOF
19635 #define EMACS_CONFIGURATION "${canonical}"
19639 cat >>confdefs.h
<<_ACEOF
19640 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19643 if test -n "$machfile"; then
19645 cat >>confdefs.h
<<_ACEOF
19646 #define config_machfile "${machfile}"
19651 cat >>confdefs.h
<<_ACEOF
19652 #define config_opsysfile "${opsysfile}"
19659 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19661 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19664 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19666 if test "$HAVE_XFT" = "yes"; then
19667 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19668 elif test "$HAVE_FREETYPE" = "yes"; then
19669 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19679 if test "${USE_X_TOOLKIT}" != "none" ; then
19680 WIDGET_OBJ
=widget.o
19682 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19684 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19686 $as_echo "#define USE_LUCID 1" >>confdefs.h
19688 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19690 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19695 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19696 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19700 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19701 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19702 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19706 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19707 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19710 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19716 case "$USE_X_TOOLKIT" in
19717 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19718 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19719 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19723 if test "$USE_X_TOOLKIT" = "none"; then
19724 LIBXT_OTHER
="\$(LIBXSM)"
19725 OLDXMENU_TARGET
="really-oldXMenu"
19727 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19728 OLDXMENU_TARGET
="really-lwlib"
19732 ## The X Menu stuff is present in the X10 distribution, but missing
19733 ## from X11. If we have X10, just use the installed library;
19734 ## otherwise, use our own copy.
19735 if test "${HAVE_X11}" = "yes" ; then
19737 $as_echo "#define HAVE_X11 1" >>confdefs.h
19740 if test "$USE_X_TOOLKIT" = "none"; then
19741 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19743 OLDXMENU
="\${lwlibdir}/liblw.a"
19745 LIBXMENU
="\$(OLDXMENU)"
19746 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19747 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19749 ## For a syntactically valid Makefile; not actually used for anything.
19750 ## See comments in src/Makefile.in.
19752 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19753 if test "${HAVE_X_WINDOWS}" = "yes"; then
19762 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19775 if test "${HAVE_MENUS}" = "yes" ; then
19777 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19781 if test "${GNU_MALLOC}" = "yes" ; then
19783 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19788 if test "${REL_ALLOC}" = "yes" ; then
19790 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19793 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19797 if test "$opsys" = "cygwin"; then
19798 CYGWIN_OBJ
="sheap.o"
19799 ## Cygwin differs because of its unexec().
19801 POST_ALLOC_OBJ
=lastfile.o
19804 PRE_ALLOC_OBJ
=lastfile.o
19813 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19816 ## The -headerpad option tells ld (see man page) to leave room at the
19817 ## end of the header for adding load commands. Needed for dumping.
19818 ## 0x690 is the total size of 30 segment load commands (at 56
19819 ## each); under Cocoa 31 commands are required.
19820 if test "$HAVE_NS" = "yes"; then
19821 libs_nsgui
="-framework AppKit"
19822 headerpad_extra
=6C8
19825 headerpad_extra
=690
19827 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19829 ## This is here because src/Makefile.in did some extra fiddling around
19830 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19831 ## #ifndef LD_SWITCH_SYSTEM
19832 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19833 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19834 ## not using gcc, darwin system not on an alpha (ie darwin, since
19835 ## darwin + alpha does not occur).
19836 ## Because this was done in src/Makefile.in, the resulting part of
19837 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19838 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19839 ## rather than LD_SWITCH_SYSTEM.
19840 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19841 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19844 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19845 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19846 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19847 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19848 ## had different values in configure (in ac_link) and src/Makefile.in.
19849 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19850 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19852 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19855 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19856 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19865 ## gnu: GNU needs its own crt0.
19866 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19868 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19869 ## library search parth, i.e. it won't search /usr/lib for libc and
19870 ## friends. Using -nostartfiles instead avoids this problem, and
19871 ## will also work on earlier NetBSD releases.
19872 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19874 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19875 ## MkLinux/LinuxPPC needs this.
19876 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19879 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19885 if test "x$ORDINARY_LINK" = "xyes"; then
19889 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19892 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19893 ## freebsd, gnu-* not on macppc|ibms390x.
19894 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19896 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19897 ## places that are difficult to figure out at make time. Fortunately,
19898 ## these same versions allow you to pass arbitrary flags on to the
19899 ## linker, so there is no reason not to use it as a linker.
19901 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19902 ## searching for libraries in its internal directories, so we have to
19903 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19904 LD_FIRSTFLAG
="-nostdlib"
19907 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19908 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19913 ## FIXME? The logic here is not precisely the same as that above.
19914 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19915 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19917 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19920 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19923 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19924 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19930 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19931 ## immediately undefine it again and redefine it to empty.
19932 ## Was the C_SWITCH_X_SITE part really necessary?
19933 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19939 ## Ask GCC where to find libgcc.a.
19940 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19947 ## If we're using X11/GNUstep, define some consequences.
19948 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19950 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19953 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19955 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19956 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19958 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19959 test "$HAVE_X_WINDOWS" = "yes" && \
19960 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19970 #### Report on what we decided to do.
19971 #### Report GTK as a toolkit, even if it doesn't use Xt.
19972 #### It makes printing result more understandable as using GTK sets
19973 #### toolkit_scroll_bars to yes by default.
19974 if test "${HAVE_GTK}" = "yes"; then
19979 if test -n "$machfile"; then
19980 and_machfile
=" and \`${machfile}'"
19984 Configured for \`${canonical}'.
19986 Where should the build process find the source code? ${srcdir}
19987 What operating system and machine description files should Emacs use?
19988 \`${opsysfile}'${and_machfile}
19989 What compiler should emacs be built with? ${CC} ${CFLAGS}
19990 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19991 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19992 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19993 What window system should Emacs use? ${window_system}
19994 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19996 if test -n "${x_includes}"; then
19997 echo " Where do we find X Windows header files? ${x_includes}"
19999 echo " Where do we find X Windows header files? Standard dirs"
20001 if test -n "${x_libraries}"; then
20002 echo " Where do we find X Windows libraries? ${x_libraries}"
20004 echo " Where do we find X Windows libraries? Standard dirs"
20007 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20008 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20009 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20010 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20011 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20012 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20013 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20014 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20016 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20017 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20018 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20019 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20020 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20021 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20023 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20024 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20025 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20026 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20028 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20031 if test $USE_XASSERTS = yes; then
20032 echo " Compiling with asserts turned on."
20033 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20038 if test "$HAVE_NS" = "yes"; then
20040 echo "You must run \"make install\" in order to test the built application.
20041 The installed application will go to nextstep/Emacs.app and can be
20042 run or moved from there."
20043 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20044 echo "The application will be fully self-contained."
20046 echo "The lisp resources for the application will be installed under ${prefix}.
20047 You may need to run \"make install\" with sudo. The application will fail
20048 to run if these resources are not installed."
20054 # Remove any trailing slashes in these variables.
20055 test "${prefix}" != NONE
&&
20056 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20057 test "${exec_prefix}" != NONE
&&
20058 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20060 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"
20063 ac_config_commands
="$ac_config_commands mkdirs"
20066 ac_config_commands
="$ac_config_commands epaths"
20069 ac_config_commands
="$ac_config_commands gdbinit"
20072 cat >confcache
<<\_ACEOF
20073 # This file is a shell script that caches the results of configure
20074 # tests run on this system so they can be shared between configure
20075 # scripts and configure runs, see configure's option --config-cache.
20076 # It is not useful on other systems. If it contains results you don't
20077 # want to keep, you may remove or edit it.
20079 # config.status only pays attention to the cache file if you give it
20080 # the --recheck option to rerun configure.
20082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20084 # following values.
20088 # The following way of writing the cache mishandles newlines in values,
20089 # but we know of no workaround that is simple, portable, and efficient.
20090 # So, we kill variables containing newlines.
20091 # Ultrix sh set writes to stderr and can't be redirected directly,
20092 # and sets the high bit in the cache file unless we assign to the vars.
20094 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20095 eval ac_val
=\$
$ac_var
20099 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20103 _ | IFS | as_nl
) ;; #(
20104 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20105 *) { eval $ac_var=; unset $ac_var;} ;;
20111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20112 *${as_nl}ac_space
=\
*)
20113 # `set' does not quote correctly, so add quotes: double-quote
20114 # substitution turns \\\\ into \\, and sed turns \\ into \.
20117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20120 # `set' quotes correctly as required by POSIX, so do not add quotes.
20121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20134 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20135 if test -w "$cache_file"; then
20136 test "x$cache_file" != "x/dev/null" &&
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20138 $as_echo "$as_me: updating cache $cache_file" >&6;}
20139 cat confcache
>$cache_file
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20142 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20147 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20148 # Let make expand exec_prefix.
20149 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20151 DEFS
=-DHAVE_CONFIG_H
20155 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20156 # 1. Remove the extension, and $U if already installed.
20157 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20158 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20160 # will be set to the directory where LIBOBJS objects are built.
20161 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20162 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20164 LIBOBJS
=$ac_libobjs
20166 LTLIBOBJS
=$ac_ltlibobjs
20169 if test -n "$EXEEXT"; then
20171 am__EXEEXT_FALSE
='#'
20173 am__EXEEXT_TRUE
='#'
20177 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20178 as_fn_error
"conditional \"AMDEP\" was never defined.
20179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20182 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20186 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20187 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20194 if test -n "$gl_LIBOBJS"; then
20195 # Remove the extension.
20196 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20197 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20198 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20199 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20202 gl_LIBOBJS
=$gl_libobjs
20204 gl_LTLIBOBJS
=$gl_ltlibobjs
20210 if test -n "$gltests_LIBOBJS"; then
20211 # Remove the extension.
20212 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20213 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20214 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20215 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20218 gltests_LIBOBJS
=$gltests_libobjs
20220 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20224 : ${CONFIG_STATUS=./config.status}
20226 ac_clean_files_save
=$ac_clean_files
20227 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20229 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20231 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20233 # Generated by $as_me.
20234 # Run this file to recreate the current configuration.
20235 # Compiler output produced by configure, useful for debugging
20236 # configure, is in config.log if it exists.
20239 ac_cs_recheck=false
20242 SHELL=\${CONFIG_SHELL-$SHELL}
20245 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20246 ## -------------------- ##
20247 ## M4sh Initialization. ##
20248 ## -------------------- ##
20250 # Be more Bourne compatible
20251 DUALCASE
=1; export DUALCASE
# for MKS sh
20252 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20255 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20256 # is contrary to our usage. Disable this feature.
20257 alias -g '${1+"$@"}'='"$@"'
20258 setopt NO_GLOB_SUBST
20260 case `(set -o) 2>/dev/null` in #(
20272 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20273 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20276 # Prefer a ksh shell builtin over an external printf program on Solaris,
20277 # but without wasting forks for bash or zsh.
20278 if test -z "$BASH_VERSION$ZSH_VERSION" \
20279 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20280 as_echo='print
-r --'
20281 as_echo_n='print
-rn --'
20282 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20283 as_echo='printf %s
\n'
20284 as_echo_n='printf %s
'
20286 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20287 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20288 as_echo_n='/usr
/ucb
/echo -n'
20290 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20291 as_echo_n_body='eval
20295 expr "X$arg" : "X\\(.*\\)$as_nl";
20296 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20298 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20300 export as_echo_n_body
20301 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20303 export as_echo_body
20304 as_echo='sh
-c $as_echo_body as_echo
'
20307 # The user is always right.
20308 if test "${PATH_SEPARATOR+set}" != set; then
20310 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20311 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20318 # We need space, tab and new line, in precisely that order. Quoting is
20319 # there to prevent editors from complaining about space-tab.
20320 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20321 # splitting by setting IFS to empty value.)
20324 # Find who we are. Look in the path if we contain no directory separator.
20326 *[\\/]* ) as_myself=$0 ;;
20327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328 for as_dir in $PATH
20331 test -z "$as_dir" && as_dir=.
20332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20338 # We did not find ourselves, most probably we were run as `sh COMMAND'
20339 # in which case we are not to be found in the path.
20340 if test "x$as_myself" = x
; then
20343 if test ! -f "$as_myself"; then
20344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20348 # Unset variables that we do not need and which cause bugs (e.g. in
20349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20350 # suppresses any "Segmentation fault" message there. '((' could
20351 # trigger a bug in pdksh 5.2.14.
20352 for as_var
in BASH_ENV ENV MAIL MAILPATH
20353 do eval test x\
${$as_var+set} = xset \
20354 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20367 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20370 # as_fn_error ERROR [LINENO LOG_FD]
20371 # ---------------------------------
20372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20374 # script with status $?, using 1 if that was 0.
20377 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20379 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20382 $as_echo "$as_me: error: $1" >&2
20383 as_fn_exit
$as_status
20387 # as_fn_set_status STATUS
20388 # -----------------------
20389 # Set $? to STATUS, without forking.
20390 as_fn_set_status
()
20393 } # as_fn_set_status
20395 # as_fn_exit STATUS
20396 # -----------------
20397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20401 as_fn_set_status
$1
20407 # Portably unset VAR.
20410 { eval $1=; unset $1;}
20412 as_unset
=as_fn_unset
20413 # as_fn_append VAR VALUE
20414 # ----------------------
20415 # Append the text in VALUE to the end of the definition contained in VAR. Take
20416 # advantage of any shell optimizations that allow amortized linear growth over
20417 # repeated appends, instead of the typical quadratic growth present in naive
20419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20420 eval 'as_fn_append ()
20431 # as_fn_arith ARG...
20432 # ------------------
20433 # Perform arithmetic evaluation on the ARGs, and store the result in the
20434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20435 # must be portable across $(()) and expr.
20436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20437 eval 'as_fn_arith ()
20444 as_val
=`expr "$@" || test $? -eq 1`
20449 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20450 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20456 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20457 as_basename
=basename
20462 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20468 as_me
=`$as_basename -- "$0" ||
20469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20470 X"$0" : 'X\(//\)$' \| \
20471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20473 sed '/^.*\/\([^/][^/]*\)\/*$/{
20487 # Avoid depending upon Character Ranges.
20488 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20489 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20490 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20491 as_cr_digits
='0123456789'
20492 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20494 ECHO_C
= ECHO_N
= ECHO_T
=
20495 case `echo -n x` in #(((((
20497 case `echo 'xy\c'` in
20498 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20500 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20507 rm -f conf$$ conf$$.exe conf$$.
file
20508 if test -d conf$$.dir
; then
20509 rm -f conf$$.dir
/conf$$.
file
20512 mkdir conf$$.dir
2>/dev
/null
20514 if (echo >conf$$.
file) 2>/dev
/null
; then
20515 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20517 # ... but there are two gotchas:
20518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20520 # In both cases, we have to default to `cp -p'.
20521 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20523 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20531 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20532 rmdir conf$$.dir
2>/dev
/null
20537 # Create "$as_dir" as a directory, including parents if necessary.
20542 -*) as_dir
=.
/$as_dir;;
20544 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20548 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20549 *) as_qdir
=$as_dir;;
20551 as_dirs
="'$as_qdir' $as_dirs"
20552 as_dir
=`$as_dirname -- "$as_dir" ||
20553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20554 X"$as_dir" : 'X\(//\)[^/]' \| \
20555 X"$as_dir" : 'X\(//\)$' \| \
20556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20557 $as_echo X"$as_dir" |
20558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20562 /^X\(\/\/\)[^/].*/{
20575 test -d "$as_dir" && break
20577 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20578 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20582 if mkdir
-p .
2>/dev
/null
; then
20583 as_mkdir_p
='mkdir -p "$as_dir"'
20585 test -d .
/-p && rmdir .
/-p
20589 if test -x / >/dev
/null
2>&1; then
20590 as_test_x
='test -x'
20592 if ls -dL / >/dev
/null
2>&1; then
20599 if test -d "$1"; then
20605 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20606 ???[sx]*):;;*)false;;esac;fi
20610 as_executable_p
=$as_test_x
20612 # Sed expression to map a string onto a valid CPP name.
20613 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20615 # Sed expression to map a string onto a valid variable name.
20616 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20620 ## ----------------------------------- ##
20621 ## Main body of $CONFIG_STATUS script. ##
20622 ## ----------------------------------- ##
20624 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20627 # Save the log message, to keep $0 and so on meaningful, and to
20628 # report actual input values of CONFIG_FILES etc. instead of their
20629 # values after options handling.
20631 This file was extended by emacs $as_me 24.0.50, which was
20632 generated by GNU Autoconf 2.65. Invocation command line was
20634 CONFIG_FILES = $CONFIG_FILES
20635 CONFIG_HEADERS = $CONFIG_HEADERS
20636 CONFIG_LINKS = $CONFIG_LINKS
20637 CONFIG_COMMANDS = $CONFIG_COMMANDS
20640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20645 case $ac_config_files in *"
20646 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20649 case $ac_config_headers in *"
20650 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20655 # Files that config.status was made for.
20656 config_files="$ac_config_files"
20657 config_headers="$ac_config_headers"
20658 config_commands="$ac_config_commands"
20662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20664 \`$as_me' instantiates files and other configuration actions
20665 from templates according to the current configuration. Unless the files
20666 and actions are specified as TAGs, all are instantiated by default.
20668 Usage: $0 [OPTION]... [TAG]...
20670 -h, --help print this help, then exit
20671 -V, --version print version number and configuration settings, then exit
20672 --config print configuration, then exit
20673 -q, --quiet, --silent
20674 do not print progress messages
20675 -d, --debug don't remove temporary files
20676 --recheck update $as_me by reconfiguring in the same conditions
20677 --file=FILE[:TEMPLATE]
20678 instantiate the configuration file FILE
20679 --header=FILE[:TEMPLATE]
20680 instantiate the configuration header FILE
20682 Configuration files:
20685 Configuration headers:
20688 Configuration commands:
20691 Report bugs to the package provider."
20694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20695 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20697 emacs config.status 24.0.50
20698 configured by $0, generated by GNU Autoconf 2.65,
20699 with options \\"\$ac_cs_config\\"
20701 Copyright (C) 2009 Free Software Foundation, Inc.
20702 This config.status script is free software; the Free Software Foundation
20703 gives unlimited permission to copy, distribute and modify it."
20710 test -n "\$AWK" || AWK=awk
20713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20714 # The default lists apply if the user does not specify any file.
20720 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20721 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20732 # Handling of the options.
20733 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20735 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20736 $as_echo "$ac_cs_version"; exit ;;
20737 --config |
--confi |
--conf |
--con |
--co |
--c )
20738 $as_echo "$ac_cs_config"; exit ;;
20739 --debug |
--debu |
--deb |
--de |
--d |
-d )
20741 --file |
--fil |
--fi |
--f )
20744 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20746 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20747 ac_need_defaults
=false
;;
20748 --header |
--heade |
--head |
--hea )
20751 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20753 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20754 ac_need_defaults
=false
;;
20756 # Conflict between --help and --header
20757 as_fn_error
"ambiguous option: \`$1'
20758 Try \`$0 --help' for more information.";;
20759 --help |
--hel |
-h )
20760 $as_echo "$ac_cs_usage"; exit ;;
20761 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20762 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20765 # This is an error.
20766 -*) as_fn_error
"unrecognized option: \`$1'
20767 Try \`$0 --help' for more information." ;;
20769 *) as_fn_append ac_config_targets
" $1"
20770 ac_need_defaults
=false
;;
20776 ac_configure_extra_args
=
20778 if $ac_cs_silent; then
20780 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20785 if \$ac_cs_recheck; then
20786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20789 CONFIG_SHELL='$SHELL'
20790 export CONFIG_SHELL
20795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20800 ## Running $as_me. ##
20806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20811 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20817 # Handling of arguments.
20818 for ac_config_target
in $ac_config_targets
20820 case $ac_config_target in
20821 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20822 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20823 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20824 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20825 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20826 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20827 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20828 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20829 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20830 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20831 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20832 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20833 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20834 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20835 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20836 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20837 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20838 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20840 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20845 # If the user did not use the arguments to specify the items to instantiate,
20846 # then the envvar interface is used. Set only those that are not.
20847 # We use the long form for the default assignment because of an extremely
20848 # bizarre bug on SunOS 4.1.3.
20849 if $ac_need_defaults; then
20850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20855 # Have a temporary directory for convenience. Make it in the build tree
20856 # simply because there is no reason against having it here, and in addition,
20857 # creating and moving files from /tmp can sometimes cause problems.
20858 # Hook for its removal unless debugging.
20859 # Note that there is a small window in which the directory will not be cleaned:
20860 # after its creation but before its name has been assigned to `$tmp'.
20864 trap 'exit_status=$?
20865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20867 trap 'as_fn_exit 1' 1 2 13 15
20869 # Create a (secure) tmp directory for tmp files.
20872 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20873 test -n "$tmp" && test -d "$tmp"
20876 tmp
=.
/conf$$
-$RANDOM
20877 (umask 077 && mkdir
"$tmp")
20878 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20880 # Set up the scripts for CONFIG_FILES section.
20881 # No need to generate them if there are no CONFIG_FILES.
20882 # This happens for instance with `./config.status config.h'.
20883 if test -n "$CONFIG_FILES"; then
20885 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20886 ac_cs_awk_getline
=:
20887 ac_cs_awk_pipe_init
=
20888 ac_cs_awk_read_file
='
20889 while ((getline aline < (F[key])) > 0)
20892 ac_cs_awk_pipe_fini
=
20894 ac_cs_awk_getline
=false
20895 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20896 ac_cs_awk_read_file
='
20898 print "cat " F[key] " &&"
20899 '$ac_cs_awk_pipe_init
20900 # The final `:' finishes the AND list.
20901 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20903 ac_cr
=`echo X | tr X '\015'`
20904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20905 # But we know of no other shell where ac_cr would be empty at this
20906 # point, so we can use a bashism as a fallback.
20907 if test "x$ac_cr" = x
; then
20908 eval ac_cr
=\$
\'\\r
\'
20910 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20914 ac_cs_awk_cr
=$ac_cr
20917 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20920 # Create commands to substitute file output variables.
20922 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20923 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20924 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20927 } >conf$
$files.sh
&&
20928 . .
/conf$
$files.sh ||
20929 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
20930 rm -f conf$
$files.sh
20933 echo "cat >conf$$subs.awk <<_ACEOF" &&
20934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20936 } >conf$$subs.sh ||
20937 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20940 for ac_last_try in false false false false false :; do
20941 . ./conf$$subs.sh ||
20942 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20944 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20945 if test $ac_delim_n = $ac_delim_num; then
20947 elif $ac_last_try; then
20948 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20950 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20953 rm -f conf$$subs.sh
20955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20956 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20960 s/^/S["/; s
/!.
*/"]=/
20970 s/\(.\{148\}\)..*/\1/
20972 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20977 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20984 s/\(.\{148\}\)..*/\1/
20986 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20990 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20995 ' <conf$$subs.awk | sed '
21000 ' >>$CONFIG_STATUS || ac_write_fail=1
21001 rm -f conf$$subs.awk
21002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21004 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21005 for (key in S) S_is_set[key] = 1
21007 \$ac_cs_awk_pipe_init
21011 nfields = split(line, field, "@
")
21013 len = length(field[1])
21014 for (i = 2; i < nfields; i++) {
21016 keylen = length(key)
21017 if (S_is_set[key]) {
21019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21020 len += length(value) + length(field[++i])
21025 if (nfields == 3 && !substed) {
21027 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21028 \$ac_cs_awk_read_file
21034 \$ac_cs_awk_pipe_fini
21037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21038 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21039 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21042 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21043 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
21046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21048 # trailing colons and then remove the whole line if VPATH becomes empty
21049 # (actually we leave an empty line to preserve line numbers).
21050 if test "x
$srcdir" = x.; then
21051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21052 s/:*\$(srcdir):*/:/
21053 s/:*\${srcdir}:*/:/
21055 s/^\([^=]*=[ ]*\):*/\1/
21061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21062 fi # test -n "$CONFIG_FILES"
21064 # Set up the scripts for CONFIG_HEADERS section.
21065 # No need to generate them if there are no CONFIG_HEADERS.
21066 # This happens for instance with `./config.status Makefile'.
21067 if test -n "$CONFIG_HEADERS"; then
21068 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21072 # Transform confdefs.h into an awk script `defines.awk', embedded as
21073 # here-document in config.status, that substitutes the proper values into
21074 # config.h.in to produce config.h.
21076 # Create a delimiter string that does not exist in confdefs.h, to ease
21077 # handling of long lines.
21079 for ac_last_try in false false :; do
21080 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21081 if test -z "$ac_t"; then
21083 elif $ac_last_try; then
21084 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21086 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21090 # For the awk script, D is an array of macro values keyed by name,
21091 # likewise P contains macro parameters if any. Preserve backslash
21092 # newline sequences.
21094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21096 s/.\{148\}/&'"$ac_delim"'/g
21099 s/^[ ]*#[ ]*define[ ][ ]*/ /
21106 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21108 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21113 D["\
1"]=" \
3\\\\\\n
"\\/p
21115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21120 s/.\{148\}/&'"$ac_delim"'/g
21125 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21128 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21130 ' <confdefs.h | sed '
21131 s/'"$ac_delim"'/"\\\
21132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21135 for (key in D) D_is_set[key] = 1
21138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21140 split(line, arg, " ")
21141 if (arg[1] == "#") {
21145 defundef
= substr
(arg
[1], 2)
21148 split(mac1
, mac2
, "(") #)
21150 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21151 if (D_is_set
[macro
]) {
21152 # Preserve the white space surrounding the "#".
21153 print prefix
"define", macro P
[macro
] D
[macro
]
21156 # Replace #undef with comments. This is necessary, for example,
21157 # in the case of _POSIX_SOURCE, which is predefined and required
21158 # on some systems where configure will not decide to define it.
21159 if (defundef
== "undef") {
21160 print
"/*", prefix defundef
, macro
, "*/"
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21169 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21170 fi # test -n "$CONFIG_HEADERS"
21173 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21178 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21180 case $ac_mode$ac_tag in
21182 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21183 :[FH
]-) ac_tag
=-:-;;
21184 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21201 -) ac_f
="$tmp/stdin";;
21202 *) # Look for the file first in the build tree, then in the source tree
21203 # (if the path is not absolute). The absolute path cannot be DOS-style,
21204 # because $ac_f cannot contain `:'.
21208 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21210 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21212 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21213 as_fn_append ac_file_inputs
" '$ac_f'"
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
21219 configure_input
='Generated from '`
21220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21222 if test x
"$ac_file" != x-
; then
21223 configure_input
="$ac_file. $configure_input"
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21225 $as_echo "$as_me: creating $ac_file" >&6;}
21227 # Neutralize special characters interpreted by sed in replacement strings.
21228 case $configure_input in #(
21229 *\
&* |
*\|
* |
*\\* )
21230 ac_sed_conf_input
=`$as_echo "$configure_input" |
21231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21232 *) ac_sed_conf_input
=$configure_input;;
21236 *:-:* |
*:-) cat >"$tmp/stdin" \
21237 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21242 ac_dir
=`$as_dirname -- "$ac_file" ||
21243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21244 X"$ac_file" : 'X\(//\)[^/]' \| \
21245 X"$ac_file" : 'X\(//\)$' \| \
21246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21247 $as_echo X"$ac_file" |
21248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21252 /^X\(\/\/\)[^/].*/{
21265 as_dir
="$ac_dir"; as_fn_mkdir_p
21269 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21271 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21272 # A ".." for each directory in $ac_dir_suffix.
21273 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21274 case $ac_top_builddir_sub in
21275 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21276 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21279 ac_abs_top_builddir
=$ac_pwd
21280 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21281 # for backward compatibility:
21282 ac_top_builddir
=$ac_top_build_prefix
21285 .
) # We are building in place.
21287 ac_top_srcdir
=$ac_top_builddir_sub
21288 ac_abs_top_srcdir
=$ac_pwd ;;
21289 [\\/]* | ?
:[\\/]* ) # Absolute name.
21290 ac_srcdir
=$srcdir$ac_dir_suffix;
21291 ac_top_srcdir
=$srcdir
21292 ac_abs_top_srcdir
=$srcdir ;;
21293 *) # Relative name.
21294 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21295 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21296 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21298 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21308 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21309 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21311 ac_MKDIR_P
=$MKDIR_P
21313 [\\/$
]* | ?
:[\\/]* ) ;;
21314 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21319 # If the template does not know about datarootdir, expand it.
21320 # FIXME: This hack should be removed a few years after 2.60.
21321 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21333 *datarootdir
*) ac_datarootdir_seen
=yes;;
21334 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21339 ac_datarootdir_hack='
21340 s&@datadir@&$datadir&g
21341 s&@docdir@&$docdir&g
21342 s&@infodir@&$infodir&g
21343 s&@localedir@&$localedir&g
21344 s&@mandir@&$mandir&g
21345 s&\\\${datarootdir}&$datarootdir&g' ;;
21349 # Neutralize VPATH when `$srcdir' = `.'.
21350 # Shell code in configure.ac might set extrasub.
21351 # FIXME: do we really want to maintain this feature?
21352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21353 ac_sed_extra="$ac_vpsub
21356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21358 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21359 s|@configure_input@|
$ac_sed_conf_input|
;t t
21360 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21361 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21362 s
&@srcdir@
&$ac_srcdir&;t t
21363 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21364 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21365 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21366 s
&@builddir@
&$ac_builddir&;t t
21367 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21368 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21369 s
&@INSTALL@
&$ac_INSTALL&;t t
21370 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21371 $ac_datarootdir_hack
21373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21374 if $ac_cs_awk_getline; then
21375 $AWK -f "$tmp/subs.
awk"
21377 $AWK -f "$tmp/subs.
awk" | $SHELL
21379 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21385 which seems to be undefined. Please make sure it is defined." >&5
21386 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21387 which seems to be undefined. Please make sure it is defined." >&2;}
21391 -) cat "$tmp/out" && rm -f "$tmp/out";;
21392 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21394 || as_fn_error "could not create $ac_file" "$LINENO" 5
21400 if test x"$ac_file" != x-; then
21402 $as_echo "/* $configure_input */" \
21403 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21404 } >"$tmp/config.h" \
21405 || as_fn_error "could not create $ac_file" "$LINENO" 5
21406 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21408 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21411 mv "$tmp/config.h" "$ac_file" \
21412 || as_fn_error "could not create $ac_file" "$LINENO" 5
21415 $as_echo "/* $configure_input */" \
21416 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21417 || as_fn_error "could not create -" "$LINENO" 5
21419 # Compute "$ac_file"'s index
in $config_headers.
21422 for _am_header
in $config_headers :; do
21423 case $_am_header in
21424 $_am_arg |
$_am_arg:* )
21427 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21430 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21431 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21432 X"$_am_arg" : 'X\(//\)[^/]' \| \
21433 X"$_am_arg" : 'X\(//\)$' \| \
21434 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21435 $as_echo X"$_am_arg" |
21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21440 /^X\(\/\/\)[^/].*/{
21452 s/.*/./; q'`/stamp-h
$_am_stamp_count
21455 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21456 $as_echo "$as_me: executing $ac_file commands" >&6;}
21461 case $ac_file$ac_mode in
21462 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21463 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21464 # are listed without --file. Let's play safe and only enable the eval
21465 # if we detect the quoting.
21466 case $CONFIG_FILES in
21467 *\'*) eval set x
"$CONFIG_FILES" ;;
21468 *) set x
$CONFIG_FILES ;;
21473 # Strip MF so we end up with the name of the file.
21474 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21475 # Check whether this is an Automake generated Makefile or not.
21476 # We used to match only the files named `Makefile.in', but
21477 # some people rename them; so instead we look at the file content.
21478 # Grep'ing the first line is not enough: some people post-process
21479 # each Makefile.in and add a new line on top of each file to say so.
21480 # Grep'ing the whole file is not good either: AIX grep has a line
21481 # limit of 2048, but all sed's we know have understand at least 4000.
21482 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21483 dirpart
=`$as_dirname -- "$mf" ||
21484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485 X"$mf" : 'X\(//\)[^/]' \| \
21486 X"$mf" : 'X\(//\)$' \| \
21487 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21493 /^X\(\/\/\)[^/].*/{
21509 # Extract the definition of DEPDIR, am__include, and am__quote
21510 # from the Makefile without running `make'.
21511 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21512 test -z "$DEPDIR" && continue
21513 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21514 test -z "am__include" && continue
21515 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21516 # When using ansi2knr, U may be empty or an underscore; expand it
21517 U
=`sed -n 's/^U = //p' < "$mf"`
21518 # Find all dependency output files, they are included files with
21519 # $(DEPDIR) in their names. We invoke sed twice because it is the
21520 # simplest approach to changing $(DEPDIR) to its actual value in the
21522 for file in `sed -n "
21523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21525 # Make sure the directory exists.
21526 test -f "$dirpart/$file" && continue
21527 fdir
=`$as_dirname -- "$file" ||
21528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21529 X"$file" : 'X\(//\)[^/]' \| \
21530 X"$file" : 'X\(//\)$' \| \
21531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21532 $as_echo X"$file" |
21533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21537 /^X\(\/\/\)[^/].*/{
21550 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21551 # echo "creating $dirpart/$file"
21552 echo '# dummy' > "$dirpart/$file"
21558 for dir
in etc lisp
; do
21559 test -d ${dir} || mkdir
${dir}
21563 echo creating src
/epaths.h
21564 ${MAKE-make} epaths-force
21567 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21568 echo creating src
/.gdbinit
21569 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21579 ac_clean_files
=$ac_clean_files_save
21581 test $ac_write_fail = 0 ||
21582 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21585 # configure is writing to config.log, and then calls config.status.
21586 # config.status does its own redirection, appending to config.log.
21587 # Unfortunately, on DOS this fails, as config.log is still kept open
21588 # by configure, so config.status won't be able to write to it; its
21589 # output is simply discarded. So we exec the FD to /dev/null,
21590 # effectively closing config.log, so it can be properly (re)opened and
21591 # appended to by config.status. When coming back to configure, we
21592 # need to make the FD available again.
21593 if test "$no_create" != yes; then
21595 ac_config_status_args
=
21596 test "$silent" = yes &&
21597 ac_config_status_args
="$ac_config_status_args --quiet"
21599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21602 # would make configure fail if this is the last instruction.
21603 $ac_cs_success || as_fn_exit $?
21605 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21607 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}