2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
685 REPLACE_STDIO_WRITE_FUNCS
694 REPLACE_OBSTACK_PRINTF
716 HAVE_DECL_OBSTACK_PRINTF
722 GNULIB_VSPRINTF_POSIX
726 GNULIB_VFPRINTF_POSIX
731 GNULIB_STDIO_H_SIGPIPE
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
763 GL_GENERATE_STDINT_H_FALSE
764 GL_GENERATE_STDINT_H_TRUE
773 HAVE_SIGNED_SIG_ATOMIC_T
776 BITSIZEOF_SIG_ATOMIC_T
782 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
787 HAVE_UNSIGNED_LONG_LONG_INT
789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
791 GL_GENERATE_STDDEF_H_FALSE
792 GL_GENERATE_STDDEF_H_TRUE
797 GL_GENERATE_STDBOOL_H_FALSE
798 GL_GENERATE_STDBOOL_H_TRUE
800 APPLE_UNIVERSAL_BUILD
808 HAVE_DECL_LOCALTIME_R
850 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
854 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
856 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
857 UNISTD_H_HAVE_WINSOCK2_H
876 REPLACE_GETDOMAINNAME
886 HAVE_DECL_GETUSERSHELL
887 HAVE_DECL_GETPAGESIZE
889 HAVE_DECL_GETDOMAINNAME
924 GNULIB_UNISTD_H_SIGPIPE
925 GNULIB_UNISTD_H_GETOPT
972 REPLACE_CANONICALIZE_FILE_NAME
977 HAVE_STRUCT_RANDOM_DATA
996 HAVE_CANONICALIZE_FILE_NAME
1009 GNULIB_REALLOC_POSIX
1023 GNULIB_CANONICALIZE_FILE_NAME
1027 GL_COND_LIBTOOL_FALSE
1028 GL_COND_LIBTOOL_TRUE
1077 LD_SWITCH_X_SITE_AUX_RPATH
1078 LD_SWITCH_X_SITE_AUX
1139 INSTALL_STRIP_PROGRAM
1181 program_transform_name
1192 ac_subst_files
='deps_frag
1195 enable_option_checking
1217 with_toolkit_scroll_bars
1228 with_pkg_config_prog
1232 enable_ns_self_contained
1234 enable_maintainer_mode
1235 enable_locallisppath
1237 enable_use_lisp_union_type
1240 enable_dependency_tracking
1244 ac_precious_vars
='build_alias
1256 # Initialize some variables set by options.
1258 ac_init_version
=false
1259 ac_unrecognized_opts
=
1260 ac_unrecognized_sep
=
1261 # The variables have the same names as the options, with
1262 # dashes changed to underlines.
1263 cache_file
=/dev
/null
1270 program_transform_name
=s
,x
,x
,
1278 # Installation directory options.
1279 # These are left unexpanded so users can "make install exec_prefix=/foo"
1280 # and all the variables that are supposed to be based on exec_prefix
1281 # by default will actually change.
1282 # Use braces instead of parens because sh, perl, etc. also accept them.
1283 # (The list follows the same order as the GNU Coding Standards.)
1284 bindir
='${exec_prefix}/bin'
1285 sbindir
='${exec_prefix}/sbin'
1286 libexecdir
='${exec_prefix}/libexec'
1287 datarootdir
='${prefix}/share'
1288 datadir
='${datarootdir}'
1289 sysconfdir
='${prefix}/etc'
1290 sharedstatedir
='${prefix}/com'
1291 localstatedir
='${prefix}/var'
1292 includedir
='${prefix}/include'
1293 oldincludedir
='/usr/include'
1294 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1295 infodir
='${datarootdir}/info'
1300 libdir
='${exec_prefix}/lib'
1301 localedir
='${datarootdir}/locale'
1302 mandir
='${datarootdir}/man'
1308 # If the previous option needs an argument, assign it.
1309 if test -n "$ac_prev"; then
1310 eval $ac_prev=\
$ac_option
1316 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1320 # Accept the important Cygnus configure options, so we can diagnose typos.
1322 case $ac_dashdash$ac_option in
1326 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1328 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1329 bindir
=$ac_optarg ;;
1331 -build |
--build |
--buil |
--bui |
--bu)
1332 ac_prev
=build_alias
;;
1333 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1334 build_alias
=$ac_optarg ;;
1336 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1337 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1338 ac_prev
=cache_file
;;
1339 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1340 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1341 cache_file
=$ac_optarg ;;
1343 --config-cache |
-C)
1344 cache_file
=config.cache
;;
1346 -datadir |
--datadir |
--datadi |
--datad)
1348 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1349 datadir
=$ac_optarg ;;
1351 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1352 |
--dataroo |
--dataro |
--datar)
1353 ac_prev
=datarootdir
;;
1354 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1355 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1356 datarootdir
=$ac_optarg ;;
1358 -disable-* |
--disable-*)
1359 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1362 as_fn_error
"invalid feature name: $ac_useropt"
1363 ac_useropt_orig
=$ac_useropt
1364 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "enable_
$ac_useropt"
1369 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1370 ac_unrecognized_sep
=', ';;
1372 eval enable_
$ac_useropt=no
;;
1374 -docdir |
--docdir |
--docdi |
--doc |
--do)
1376 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1377 docdir
=$ac_optarg ;;
1379 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1381 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1382 dvidir
=$ac_optarg ;;
1384 -enable-* |
--enable-*)
1385 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1388 as_fn_error
"invalid feature name: $ac_useropt"
1389 ac_useropt_orig
=$ac_useropt
1390 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1393 "enable_
$ac_useropt"
1395 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1396 ac_unrecognized_sep
=', ';;
1398 eval enable_
$ac_useropt=\
$ac_optarg ;;
1400 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1401 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1402 |
--exec |
--exe |
--ex)
1403 ac_prev
=exec_prefix
;;
1404 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1405 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1406 |
--exec=* |
--exe=* |
--ex=*)
1407 exec_prefix
=$ac_optarg ;;
1409 -gas |
--gas |
--ga |
--g)
1410 # Obsolete; use --with-gas.
1413 -help |
--help |
--hel |
--he |
-h)
1414 ac_init_help
=long
;;
1415 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1416 ac_init_help
=recursive
;;
1417 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1418 ac_init_help
=short
;;
1420 -host |
--host |
--hos |
--ho)
1421 ac_prev
=host_alias
;;
1422 -host=* |
--host=* |
--hos=* |
--ho=*)
1423 host_alias
=$ac_optarg ;;
1425 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1427 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1429 htmldir
=$ac_optarg ;;
1431 -includedir |
--includedir |
--includedi |
--included |
--include \
1432 |
--includ |
--inclu |
--incl |
--inc)
1433 ac_prev
=includedir
;;
1434 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1435 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1436 includedir
=$ac_optarg ;;
1438 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1440 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1441 infodir
=$ac_optarg ;;
1443 -libdir |
--libdir |
--libdi |
--libd)
1445 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1446 libdir
=$ac_optarg ;;
1448 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1449 |
--libexe |
--libex |
--libe)
1450 ac_prev
=libexecdir
;;
1451 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1452 |
--libexe=* |
--libex=* |
--libe=*)
1453 libexecdir
=$ac_optarg ;;
1455 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1456 ac_prev
=localedir
;;
1457 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1458 localedir
=$ac_optarg ;;
1460 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1461 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1462 ac_prev
=localstatedir
;;
1463 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1464 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1465 localstatedir
=$ac_optarg ;;
1467 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1469 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1470 mandir
=$ac_optarg ;;
1472 -nfp |
--nfp |
--nf)
1473 # Obsolete; use --without-fp.
1476 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1477 |
--no-cr |
--no-c |
-n)
1480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1484 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1485 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1486 |
--oldin |
--oldi |
--old |
--ol |
--o)
1487 ac_prev
=oldincludedir
;;
1488 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1489 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1490 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1491 oldincludedir
=$ac_optarg ;;
1493 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1495 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1496 prefix
=$ac_optarg ;;
1498 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1499 |
--program-pre |
--program-pr |
--program-p)
1500 ac_prev
=program_prefix
;;
1501 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1502 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1503 program_prefix
=$ac_optarg ;;
1505 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1506 |
--program-suf |
--program-su |
--program-s)
1507 ac_prev
=program_suffix
;;
1508 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1509 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1510 program_suffix
=$ac_optarg ;;
1512 -program-transform-name |
--program-transform-name \
1513 |
--program-transform-nam |
--program-transform-na \
1514 |
--program-transform-n |
--program-transform- \
1515 |
--program-transform |
--program-transfor \
1516 |
--program-transfo |
--program-transf \
1517 |
--program-trans |
--program-tran \
1518 |
--progr-tra |
--program-tr |
--program-t)
1519 ac_prev
=program_transform_name
;;
1520 -program-transform-name=* |
--program-transform-name=* \
1521 |
--program-transform-nam=* |
--program-transform-na=* \
1522 |
--program-transform-n=* |
--program-transform-=* \
1523 |
--program-transform=* |
--program-transfor=* \
1524 |
--program-transfo=* |
--program-transf=* \
1525 |
--program-trans=* |
--program-tran=* \
1526 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1527 program_transform_name
=$ac_optarg ;;
1529 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1531 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1532 pdfdir
=$ac_optarg ;;
1534 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1536 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1540 |
-silent |
--silent |
--silen |
--sile |
--sil)
1543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1547 sbindir
=$ac_optarg ;;
1549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1553 ac_prev
=sharedstatedir
;;
1554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1558 sharedstatedir
=$ac_optarg ;;
1560 -site |
--site |
--sit)
1562 -site=* |
--site=* |
--sit=*)
1565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1568 srcdir
=$ac_optarg ;;
1570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1572 ac_prev
=sysconfdir
;;
1573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1575 sysconfdir
=$ac_optarg ;;
1577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1578 ac_prev
=target_alias
;;
1579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1580 target_alias
=$ac_optarg ;;
1582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1585 -version |
--version |
--versio |
--versi |
--vers |
-V)
1586 ac_init_version
=: ;;
1589 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1592 as_fn_error
"invalid package name: $ac_useropt"
1593 ac_useropt_orig
=$ac_useropt
1594 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1599 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep
=', ';;
1602 eval with_
$ac_useropt=\
$ac_optarg ;;
1604 -without-* |
--without-*)
1605 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1608 as_fn_error
"invalid package name: $ac_useropt"
1609 ac_useropt_orig
=$ac_useropt
1610 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1615 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep
=', ';;
1618 eval with_
$ac_useropt=no
;;
1621 # Obsolete; use --with-x.
1624 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1625 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1626 ac_prev
=x_includes
;;
1627 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1628 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1629 x_includes
=$ac_optarg ;;
1631 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1632 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1633 ac_prev
=x_libraries
;;
1634 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1635 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1636 x_libraries
=$ac_optarg ;;
1638 -*) as_fn_error
"unrecognized option: \`$ac_option'
1639 Try \`$0 --help' for more information."
1643 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1647 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1649 eval $ac_envvar=\
$ac_optarg
1650 export $ac_envvar ;;
1653 # FIXME: should be removed in autoconf 3.0.
1654 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1656 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1663 if test -n "$ac_prev"; then
1664 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error
"missing argument to $ac_option"
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1671 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1672 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1676 # Check all directory arguments for consistency.
1677 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir
1682 eval ac_val
=\$
$ac_var
1683 # Remove trailing slashes.
1686 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\
$ac_val;;
1689 # Be sure to have absolute directory names.
1691 [\\/$
]* | ?
:[\\/]* ) continue;;
1692 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1694 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1697 # There might be people who depend on the old broken behavior: `$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1702 target
=$target_alias
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x
; then
1706 if test "x$build_alias" = x
; then
1707 cross_compiling
=maybe
1708 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1709 If a cross compiler is detected then cross compile mode will be used." >&2
1710 elif test "x$build_alias" != "x$host_alias"; then
1716 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1718 test "$silent" = yes && exec 6>/dev
/null
1721 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1722 ac_ls_di
=`ls -di .` &&
1723 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1724 as_fn_error
"working directory cannot be determined"
1725 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1726 as_fn_error
"pwd does not report name of working directory"
1729 # Find the source files, if location was not specified.
1730 if test -z "$srcdir"; then
1731 ac_srcdir_defaulted
=yes
1732 # Try the directory containing this script, then the parent directory.
1733 ac_confdir
=`$as_dirname -- "$as_myself" ||
1734 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1735 X"$as_myself" : 'X\(//\)[^/]' \| \
1736 X"$as_myself" : 'X\(//\)$' \| \
1737 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1738 $as_echo X"$as_myself" |
1739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1761 ac_srcdir_defaulted
=no
1763 if test ! -r "$srcdir/$ac_unique_file"; then
1764 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1765 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1767 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1769 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1771 # When building in place, set srcdir=.
1772 if test "$ac_abs_confdir" = "$ac_pwd"; then
1775 # Remove unnecessary trailing slashes from srcdir.
1776 # Double slashes in file names in object file debugging info
1777 # mess up M-x gdb in Emacs.
1779 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1781 for ac_var
in $ac_precious_vars; do
1782 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1783 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1784 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1785 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1789 # Report the --help message.
1791 if test "$ac_init_help" = "long"; then
1792 # Omit some internal or obsolete options to make the list less imposing.
1793 # This message is too long to be a string in the A/UX 3.1 sh.
1795 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1797 Usage: $0 [OPTION]... [VAR=VALUE]...
1799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1800 VAR=VALUE. See below for descriptions of some of the useful variables.
1802 Defaults for the options are specified in brackets.
1805 -h, --help display this help and exit
1806 --help=short display options specific to this package
1807 --help=recursive display the short help of all the included packages
1808 -V, --version display version information and exit
1809 -q, --quiet, --silent do not print \`checking...' messages
1810 --cache-file=FILE cache test results in FILE [disabled]
1811 -C, --config-cache alias for \`--cache-file=config.cache'
1812 -n, --no-create do not create output files
1813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1815 Installation directories:
1816 --prefix=PREFIX install architecture-independent files in PREFIX
1817 [$ac_default_prefix]
1818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1821 By default, \`make install' will install all the files in
1822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1824 for instance \`--prefix=\$HOME'.
1826 For better control, use the options below.
1828 Fine tuning of the installation directories:
1829 --bindir=DIR user executables [EPREFIX/bin]
1830 --sbindir=DIR system admin executables [EPREFIX/sbin]
1831 --libexecdir=DIR program executables [EPREFIX/libexec]
1832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1835 --libdir=DIR object code libraries [EPREFIX/lib]
1836 --includedir=DIR C header files [PREFIX/include]
1837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1838 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1839 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1840 --infodir=DIR info documentation [DATAROOTDIR/info]
1841 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1842 --mandir=DIR man documentation [DATAROOTDIR/man]
1843 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1844 --htmldir=DIR html documentation [DOCDIR]
1845 --dvidir=DIR dvi documentation [DOCDIR]
1846 --pdfdir=DIR pdf documentation [DOCDIR]
1847 --psdir=DIR ps documentation [DOCDIR]
1853 --program-prefix=PREFIX prepend PREFIX to installed program names
1854 --program-suffix=SUFFIX append SUFFIX to installed program names
1855 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1858 --x-includes=DIR X include files are
in DIR
1859 --x-libraries=DIR X library files are
in DIR
1862 --build=BUILD configure
for building on BUILD
[guessed
]
1863 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1867 if test -n "$ac_init_help"; then
1868 case $ac_init_help in
1869 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1874 --disable-option-checking ignore unrecognized
--enable/--with options
1875 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1876 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1877 --disable-ns-self-contained
1878 disable self contained build under NeXTstep
1879 --enable-asserts compile code with asserts enabled
1880 --enable-maintainer-mode
1881 enable make rules and dependencies not useful
(and
1882 sometimes confusing
) to the casual installer
1883 --enable-locallisppath=PATH
1884 directories Emacs should search
for lisp files
1885 specific to this site
1886 --enable-checking[=LIST
]
1887 enable expensive run-time checks. With LIST
, enable
1888 only specific categories of checks. Categories are
:
1889 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1890 stringfreelist
, xmallocoverrun
, conslist
1891 --enable-use-lisp-union-type
1892 use a union
for the Lisp_Object data
type. This is
1893 only useful
for development
for catching certain
1895 --enable-profiling build emacs with profiling support. This might not
1896 work on all platforms
1897 --enable-autodepend automatically generate dependencies to .h-files.
1898 Requires GNU Make and Gcc. Enabled
if GNU Make and
1900 --disable-dependency-tracking speeds up one-time build
1901 --enable-dependency-tracking do not reject slow dependency extractors
1902 --disable-largefile omit support
for large files
1905 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1906 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1907 --without-pop don
't support POP mail retrieval with movemail
1908 --with-kerberos support Kerberos-authenticated POP
1909 --with-kerberos5 support Kerberos version 5 authenticated POP
1910 --with-hesiod support Hesiod to get the POP server host
1911 --with-mmdf support MMDF mailboxes
1912 --with-mail-unlink unlink, rather than empty, mail spool after reading
1913 --with-mailhost=HOSTNAME
1914 string giving default POP mail host
1915 --without-sound don't compile with sound support
1916 --without-sync-input process async input synchronously
1917 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1918 lucid or athena
, motif
, no
)
1919 --without-xpm don
't compile with XPM image support
1920 --without-jpeg don't compile with JPEG image support
1921 --without-tiff don
't compile with TIFF image support
1922 --without-gif don't compile with GIF image support
1923 --without-png don
't compile with PNG image support
1924 --without-rsvg don't compile with SVG image support
1925 --without-xml2 don
't compile with XML parsing support
1926 --without-imagemagick don't compile with ImageMagick image support
1927 --without-xft don
't use XFT for anti aliased fonts
1928 --without-libotf don't use libotf
for OpenType font support
1929 --without-m17n-flt don
't use m17n-flt for text shaping
1930 --without-toolkit-scroll-bars
1931 don't use Motif or Xaw3d scroll bars
1932 --without-xaw3d don
't use Xaw3d
1933 --without-xim don't use X11 XIM
1934 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1935 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1937 --without-dbus don't compile with D-Bus support
1938 --without-gconf don
't compile with GConf support
1939 --without-selinux don't compile with SELinux support
1940 --without-gnutls don
't use -lgnutls for SSL/TLS support
1941 --without-makeinfo don't require makeinfo
for building manuals
1942 --without-compress-info don
't compress the installed Info pages
1943 --with-pkg-config-prog=PATH
1944 path to pkg-config for finding GTK and librsvg
1945 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1946 /usr/lib, or /usr/lib64 on some platforms.
1947 --with-gameuser=USER user for shared game score files
1948 --with-gnustep-conf=PATH
1949 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1950 or /etc/GNUstep/GNUstep.conf
1951 --with-x use the X Window System
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1962 XMKMF Path to xmkmf, Makefile generator for X Window System
1964 Use these variables to override the choices made by `configure' or to
help
1965 it to
find libraries and programs with nonstandard names
/locations.
1967 Report bugs to the package provider.
1972 if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1981 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1983 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1988 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1991 ac_abs_top_builddir
=$ac_pwd
1992 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir
=$ac_top_build_prefix
1997 .
) # We are building in place.
1999 ac_top_srcdir
=$ac_top_builddir_sub
2000 ac_abs_top_srcdir
=$ac_pwd ;;
2001 [\\/]* | ?
:[\\/]* ) # Absolute name.
2002 ac_srcdir
=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir
=$srcdir
2004 ac_abs_top_srcdir
=$srcdir ;;
2006 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2010 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2012 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2030 emacs configure
24.0.50
2031 generated by GNU Autoconf
2.65
2033 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2034 This configure
script is free software
; the Free Software Foundation
2035 gives unlimited permission to copy
, distribute and modify it.
2040 ## ------------------------ ##
2041 ## Autoconf initialization. ##
2042 ## ------------------------ ##
2044 # ac_fn_c_try_compile LINENO
2045 # --------------------------
2046 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_compile
()
2049 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2050 rm -f conftest.
$ac_objext
2051 if { { ac_try
="$ac_compile"
2053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_c_try_compile
2082 # ac_fn_c_try_cpp LINENO
2083 # ----------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2091 *) ac_try_echo
=$ac_try;;
2093 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 if test -s conftest.err
; then
2098 grep -v '^ *+' conftest.err
>conftest.er1
2099 cat conftest.er1
>&5
2100 mv -f conftest.er1 conftest.err
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } >/dev
/null
&& {
2104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.
$ac_ext >&5
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2115 as_fn_set_status
$ac_retval
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2124 ac_fn_c_check_header_mongrel
()
2126 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2127 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2146 ac_header_compiler
=yes
2148 ac_header_compiler
=no
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 if ac_fn_c_try_cpp
"$LINENO"; then :
2162 ac_header_preproc
=yes
2164 ac_header_preproc
=no
2166 rm -f conftest.err conftest.
$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2196 eval "$3=\$ac_header_compiler"
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2204 } # ac_fn_c_check_header_mongrel
2206 # ac_fn_c_try_run LINENO
2207 # ----------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2209 # that executables *can* be run.
2212 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2213 if { { ac_try
="$ac_link"
2215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2224 { { case "(($ac_try" in
2225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2226 *) ac_try_echo
=$ac_try;;
2228 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_try") 2>&5
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; }; }; then :
2236 $as_echo "$as_me: program exited with status $ac_status" >&5
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 ac_retval
=$ac_status
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2244 as_fn_set_status
$ac_retval
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile
()
2254 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2277 } # ac_fn_c_check_header_compile
2279 # ac_fn_c_try_link LINENO
2280 # -----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded.
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 rm -f conftest.
$ac_objext conftest
$ac_exeext
2286 if { { ac_try
="$ac_link"
2288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>conftest.err
2295 if test -s conftest.err; then
2296 grep -v '^ *+' conftest.err >conftest.er1
2297 cat conftest.er1 >&5
2298 mv -f conftest.er1 conftest.err
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && {
2302 test -z "$ac_c_werror_flag" ||
2303 test ! -s conftest.err
2304 } && test -s conftest$ac_exeext && {
2305 test "$cross_compiling" = yes ||
2306 $as_test_x conftest$ac_exeext
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2316 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2317 # interfere with the next link command; also delete a directory that is
2318 # left behind by Apple's compiler. We do this before executing the actions.
2319 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_c_try_link
2325 # ac_fn_c_check_decl LINENO SYMBOL VAR
2326 # ------------------------------------
2327 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2328 ac_fn_c_check_decl ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2332 $as_echo_n "checking whether $2 is declared... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2350 if ac_fn_c_try_compile "$LINENO"; then :
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 } # ac_fn_c_check_decl
2364 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2365 # ----------------------------------------------
2366 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2367 ac_fn_c_check_header_preproc ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2379 if ac_fn_c_try_cpp "$LINENO"; then :
2384 rm -f conftest.err conftest.$ac_ext
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_check_header_preproc
2393 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2394 # ----------------------------------------------------
2395 # Tries to find if the field MEMBER exists in type AGGR, after including
2396 # INCLUDES, setting cache variable VAR accordingly.
2397 ac_fn_c_check_member ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2401 $as_echo_n "checking for $2.$3... " >&6; }
2402 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2418 if ac_fn_c_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2428 if (sizeof ac_aggr.$3)
2434 if ac_fn_c_try_compile "$LINENO"; then :
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_check_member
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2473 # include <limits.h>
2475 # include <assert.h>
2480 /* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2487 /* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490 #if defined __stub_$2 || defined __stub___$2
2502 if ac_fn_c_try_link "$LINENO"; then :
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515 } # ac_fn_c_check_func
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2555 if ac_fn_c_try_compile "$LINENO"; then :
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_type
2571 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2572 # --------------------------------------------
2573 # Tries to find the compile-time value of EXPR in a program that includes
2574 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2576 ac_fn_c_compute_int ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if test "$cross_compiling" = yes; then
2580 # Depending upon the size, compute the lo and hi bounds.
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2587 static int test_array [1 - 2 * !(($2) >= 0)];
2594 if ac_fn_c_try_compile "$LINENO"; then :
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2603 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 ac_hi=$ac_mid; break
2613 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614 if test $ac_lo -le $ac_mid; then
2618 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) < 0)];
2636 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2645 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 ac_lo=$ac_mid; break
2655 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2656 if test $ac_mid -le $ac_hi; then
2660 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 # Binary search between lo and hi bounds.
2671 while test "x$ac_lo" != "x$ac_hi"; do
2672 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2679 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2686 if ac_fn_c_try_compile "$LINENO"; then :
2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2709 FILE *f = fopen ("conftest.val", "w");
2714 long int i = longval ();
2717 fprintf (f, "%ld", i);
2721 unsigned long int i = ulongval ();
2724 fprintf (f, "%lu", i);
2726 /* Do not output a trailing newline, as this causes \r\n confusion
2727 on some platforms. */
2728 return ferror (f) || fclose (f) != 0;
2734 if ac_fn_c_try_run "$LINENO"; then :
2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740 conftest.$ac_objext conftest.beam conftest.$ac_ext
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 as_fn_set_status $ac_retval
2747 } # ac_fn_c_compute_int
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2752 It was created by emacs $as_me 24.0.50, which was
2753 generated by GNU Autoconf 2.65. Invocation command line was
2765 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2766 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2767 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2768 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2769 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2771 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2772 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2774 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2775 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2776 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2777 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2778 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2779 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2780 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2813 ac_must_keep_next=false
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2824 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2842 -* ) ac_must_keep_next=true ;;
2845 as_fn_append ac_configure_args " '$ac_arg'"
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2864 ## ---------------- ##
2865 ## Cache variables. ##
2866 ## ---------------- ##
2869 # The following way of writing the cache mishandles newlines in values,
2871 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2872 eval ac_val=\$$ac_var
2876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2880 _ | IFS | as_nl) ;; #(
2881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2882 *) { eval $ac_var=; unset $ac_var;} ;;
2887 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2888 *${as_nl}ac_space=\ *)
2890 "s/'\''/'\''\\\\'\'''\''/g;
2891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2902 ## ----------------- ##
2903 ## Output variables. ##
2904 ## ----------------- ##
2907 for ac_var in $ac_subst_vars
2909 eval ac_val=\$$ac_var
2911 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913 $as_echo "$ac_var='\''$ac_val'\''"
2917 if test -n "$ac_subst_files"; then
2919 ## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##
2924 for ac_var in $ac_subst_files
2926 eval ac_val=\$$ac_var
2928 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2930 $as_echo "$ac_var='\''$ac_val'\''"
2935 if test -s confdefs.h; then
2945 test "$ac_signal" != 0 &&
2946 $as_echo "$as_me: caught signal $ac_signal"
2947 $as_echo "$as_me: exit $exit_status"
2949 rm -f core *.core core.conftest.* &&
2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2953 for ac_signal in 1 2 13 15; do
2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2961 $as_echo "/* confdefs.h */" > confdefs.h
2963 # Predefined preprocessor variables.
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2994 if test -n "$CONFIG_SITE"; then
2995 ac_site_file1=$CONFIG_SITE
2996 elif test "x$prefix" != xNONE; then
2997 ac_site_file1=$prefix/share/config.site
2998 ac_site_file2=$prefix/etc/config.site
3000 ac_site_file1=$ac_default_prefix/share/config.site
3001 ac_site_file2=$ac_default_prefix/etc/config.site
3003 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3005 test "x$ac_site_file" = xNONE && continue
3006 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3008 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3009 sed 's/^/| /' "$ac_site_file" >&5
3014 if test -r "$cache_file"; then
3015 # Some versions of bash will fail to source /dev/null (special files
3016 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3017 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3019 $as_echo "$as_me: loading cache $cache_file" >&6;}
3021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3022 *) . "./$cache_file";;
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3027 $as_echo "$as_me: creating cache $cache_file" >&6;}
3031 as_fn_append ac_header_list " stdlib.h"
3032 as_fn_append ac_header_list " unistd.h"
3033 as_fn_append ac_header_list " sys/param.h"
3034 as_fn_append ac_func_list " readlinkat"
3035 gl_getopt_required=GNU
3036 as_fn_append ac_header_list " getopt.h"
3037 as_fn_append ac_func_list " lstat"
3038 as_fn_append ac_func_list " alarm"
3039 as_fn_append ac_func_list " readlink"
3040 as_fn_append ac_header_list " sys/socket.h"
3041 as_fn_append ac_header_list " wchar.h"
3042 as_fn_append ac_header_list " stdint.h"
3043 as_fn_append ac_func_list " tzset"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_header_list " sys/stat.h"
3046 as_fn_append ac_header_list " sys/time.h"
3047 as_fn_append ac_func_list " localtime_r"
3048 # Check that the precious variables saved in the cache have kept the same
3050 ac_cache_corrupted=false
3051 for ac_var in $ac_precious_vars; do
3052 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3053 eval ac_new_set=\$ac_env_${ac_var}_set
3054 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3055 eval ac_new_val=\$ac_env_${ac_var}_value
3056 case $ac_old_set,$ac_new_set in
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3059 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3063 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3067 if test "x$ac_old_val" != "x$ac_new_val"; then
3068 # differences in whitespace do not lead to failure.
3069 ac_old_val_w=`echo x
$ac_old_val`
3070 ac_new_val_w=`echo x
$ac_new_val`
3071 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3073 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3074 ac_cache_corrupted=:
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3077 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3078 eval $ac_var=\$ac_old_val
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3081 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3083 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3086 # Pass precious variables to config.status.
3087 if test "$ac_new_set" = set; then
3089 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3090 *) ac_arg=$ac_var=$ac_new_val ;;
3092 case " $ac_configure_args " in
3093 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3094 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3098 if $ac_cache_corrupted; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3102 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3103 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3105 ## -------------------- ##
3106 ## Main body of script. ##
3107 ## -------------------- ##
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3119 am__api_version='1.11'
3122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3123 for ac_t in install-sh install.sh shtool; do
3124 if test -f "$ac_dir/$ac_t"; then
3126 ac_install_sh="$ac_aux_dir/$ac_t -c"
3131 if test -z "$ac_aux_dir"; then
3132 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3135 # These three variables are undocumented and unsupported,
3136 # and are intended to be withdrawn in a future Autoconf release.
3137 # They can cause serious problems if a builder's source tree is in a directory
3138 # whose full name contains unusual characters.
3139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3144 # Find a good install program. We prefer a C program (faster),
3145 # so one script is as good as another. But avoid the broken or
3146 # incompatible versions:
3147 # SysV /etc/install, /usr/sbin/install
3148 # SunOS /usr/etc/install
3149 # IRIX /sbin/install
3151 # AmigaOS /C/install, which installs bootblocks on floppy discs
3152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3155 # OS/2's system install, which has a completely different semantic
3156 # ./install, which can be erroneously created by make from ./install.sh.
3157 # Reject install programs that cannot install multiple files.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3160 if test -z "$INSTALL"; then
3161 if test "${ac_cv_path_install+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 # Account for people who put trailing slashes in PATH elements.
3170 case $as_dir/ in #((
3171 ./ | .// | /[cC]/* | \
3172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3176 # OSF1 and SCO ODT 3.0 have their own names for install.
3177 # Don't use installbsd from OSF since it installs stuff as root
3179 for ac_prog in ginstall scoinst install; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3182 if test $ac_prog = install &&
3183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # AIX install. It has an incompatible calling convention.
3186 elif test $ac_prog = install &&
3187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # program-specific install script used by HP pwplus--don't use.
3191 rm -rf conftest.one conftest.two conftest.dir
3192 echo one > conftest.one
3193 echo two > conftest.two
3195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3196 test -s conftest.one && test -s conftest.two &&
3197 test -s conftest.dir/conftest.one &&
3198 test -s conftest.dir/conftest.two
3200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3213 rm -rf conftest.one conftest.two conftest.dir
3216 if test "${ac_cv_path_install+set}" = set; then
3217 INSTALL=$ac_cv_path_install
3219 # As a last resort, use the slow shell script. Don't cache a
3220 # value for INSTALL within a source directory, because that will
3221 # break other packages using the cache if that directory is
3222 # removed, or if the value is a relative name.
3223 INSTALL=$ac_install_sh
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3227 $as_echo "$INSTALL" >&6; }
3229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3230 # It thinks the first close brace ends the variable substitution.
3231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3238 $as_echo_n "checking whether build environment is sane... " >&6; }
3241 echo timestamp > conftest.file
3242 # Reject unsafe characters in $srcdir or the absolute working directory
3243 # name. Accept space and tab only in the latter.
3247 *[\\\"\#\$\&\'\`$am_lf]*)
3248 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3251 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3252 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3255 # Do `set' in a subshell so we don't clobber the current shell's
3256 # arguments. Must try -L first in case configure is actually a
3257 # symlink; some systems play weird games with the mod time of symlinks
3258 # (eg FreeBSD returns the mod time of the symlink's containing
3261 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3262 if test "$*" = "X"; then
3264 set X
`ls -t "$srcdir/configure" conftest.file`
3267 if test "$*" != "X $srcdir/configure conftest.file" \
3268 && test "$*" != "X conftest.file $srcdir/configure"; then
3270 # If neither matched, then we have a broken ls. This can happen
3271 # if, for instance, CONFIG_SHELL is bash and it inherits a
3272 # broken ls alias from the environment. This has actually
3273 # happened. Such a system could not be considered "sane".
3274 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3275 alias in your environment" "$LINENO" 5
3278 test "$2" = conftest.
file
3284 as_fn_error
"newly created file is older than distributed files!
3285 Check your system clock" "$LINENO" 5
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 test "$program_prefix" != NONE
&&
3290 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE
&&
3293 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s,x,x', remove it if useless.
3296 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3297 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3299 # expand $ac_aux_dir to an absolute path
3300 am_aux_dir
=`cd $ac_aux_dir && pwd`
3302 if test x
"${MISSING+set}" != xset
; then
3305 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3307 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3310 # Use eval to expand $SHELL
3311 if eval "$MISSING --run true"; then
3312 am_missing_run
="$MISSING --run "
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3319 if test x
"${install_sh}" != xset
; then
3322 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3324 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3328 # Installed binaries are usually stripped using `strip' when the user
3329 # run `make install-strip'. However `strip' might not be the right
3330 # tool to use in cross-compilation environments, therefore Automake
3331 # will honor the `STRIP' environment variable to overrule this program.
3332 if test "$cross_compiling" != no
; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3335 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_STRIP+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$STRIP"; then
3342 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir
=.
3349 for ac_exec_ext
in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 STRIP
=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3364 $as_echo "$STRIP" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$ac_cv_prog_STRIP"; then
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip
; ac_word
=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_STRIP
="strip"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3404 $as_echo "$ac_ct_STRIP" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 if test "x$ac_ct_STRIP" = x
; then
3413 case $cross_compiling:$ac_tool_warned in
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned
=yes ;;
3422 STRIP
="$ac_cv_prog_STRIP"
3426 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3430 if test -z "$MKDIR_P"; then
3431 if test "${ac_cv_path_mkdir+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3438 test -z "$as_dir" && as_dir
=.
3439 for ac_prog
in mkdir gmkdir
; do
3440 for ac_exec_ext
in '' $ac_executable_extensions; do
3441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3443 'mkdir (GNU coreutils) '* | \
3444 'mkdir (coreutils) '* | \
3445 'mkdir (fileutils) '4.1*)
3446 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3456 test -d .
/--version && rmdir .
/--version
3457 if test "${ac_cv_path_mkdir+set}" = set; then
3458 MKDIR_P
="$ac_cv_path_mkdir -p"
3460 # As a last resort, use the slow shell script. Don't cache a
3461 # value for MKDIR_P within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the value is a relative name.
3464 MKDIR_P
="$ac_install_sh -d"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468 $as_echo "$MKDIR_P" >&6; }
3473 [\\/$
]* | ?
:[\\/]*) ;;
3474 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3477 for ac_prog
in gawk mawk nawk
awk
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy
$ac_prog; ac_word
=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_AWK+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir
=.
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_AWK
="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 if test -n "$AWK"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3509 $as_echo "$AWK" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3516 test -n "$AWK" && break
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3522 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3523 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3524 $as_echo_n "(cached) " >&6
3526 cat >conftest.
make <<\_ACEOF
3529 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3534 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3536 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3540 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 SET_MAKE
="MAKE=${MAKE-make}"
3550 rm -rf .tst
2>/dev
/null
3551 mkdir .tst
2>/dev
/null
3552 if test -d .tst
; then
3557 rmdir .tst
2>/dev
/null
3559 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3560 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3561 # is not polluted with repeated "-I."
3562 am__isrc
=' -I$(srcdir)'
3563 # test to see if srcdir already configured
3564 if test -f $srcdir/config.status
; then
3565 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3569 # test whether we have cygpath
3570 if test -z "$CYGPATH_W"; then
3571 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3572 CYGPATH_W
='cygpath -w'
3579 # Define the identity of the package.
3584 cat >>confdefs.h
<<_ACEOF
3585 #define PACKAGE "$PACKAGE"
3589 cat >>confdefs.h
<<_ACEOF
3590 #define VERSION "$VERSION"
3593 # Some tools Automake needs.
3595 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3598 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3601 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3604 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3607 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3609 # We need awk for the "check" target. The system "awk" is bad on
3611 # Always define AMTAR for backward compatibility.
3613 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3615 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3624 lispdir
='${datadir}/emacs/${version}/lisp'
3625 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3626 '${datadir}/emacs/site-lisp'
3627 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3628 etcdir
='${datadir}/emacs/${version}/etc'
3629 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3630 docdir
='${datadir}/emacs/${version}/etc'
3631 gamedir
='${localstatedir}/games/emacs'
3636 # Check whether --with-pop was given.
3637 if test "${with_pop+set}" = set; then :
3643 if test "$with_pop" = yes; then
3644 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3649 # Check whether --with-kerberos was given.
3650 if test "${with_kerberos+set}" = set; then :
3651 withval
=$with_kerberos;
3656 if test "$with_kerberos" != no
; then
3657 $as_echo "#define KERBEROS 1" >>confdefs.h
3662 # Check whether --with-kerberos5 was given.
3663 if test "${with_kerberos5+set}" = set; then :
3664 withval
=$with_kerberos5;
3669 if test "${with_kerberos5}" != no
; then
3670 if test "${with_kerberos}" = no
; then
3672 $as_echo "#define KERBEROS 1" >>confdefs.h
3676 $as_echo "#define KERBEROS5 1" >>confdefs.h
3681 # Check whether --with-hesiod was given.
3682 if test "${with_hesiod+set}" = set; then :
3683 withval
=$with_hesiod;
3688 if test "$with_hesiod" != no
; then
3690 $as_echo "#define HESIOD 1" >>confdefs.h
3695 # Check whether --with-mmdf was given.
3696 if test "${with_mmdf+set}" = set; then :
3702 if test "$with_mmdf" != no
; then
3704 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3709 # Check whether --with-mail-unlink was given.
3710 if test "${with_mail_unlink+set}" = set; then :
3711 withval
=$with_mail_unlink;
3716 if test "$with_mail_unlink" != no
; then
3718 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3723 # Check whether --with-mailhost was given.
3724 if test "${with_mailhost+set}" = set; then :
3725 withval
=$with_mailhost;
3726 cat >>confdefs.h
<<_ACEOF
3727 #define MAILHOST "$withval"
3734 # Check whether --with-sound was given.
3735 if test "${with_sound+set}" = set; then :
3736 withval
=$with_sound;
3743 # Check whether --with-sync-input was given.
3744 if test "${with_sync_input+set}" = set; then :
3745 withval
=$with_sync_input;
3750 if test "$with_sync_input" = yes; then
3752 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3757 # Check whether --with-x-toolkit was given.
3758 if test "${with_x_toolkit+set}" = set; then :
3759 withval
=$with_x_toolkit; case "${withval}" in
3760 y | ye |
yes ) val
=gtk
;;
3762 l | lu | luc | luci | lucid
) val
=lucid
;;
3763 a |
at | ath | athe | athen | athena
) val
=athena
;;
3764 m | mo | mot | moti | motif
) val
=motif
;;
3765 g | gt | gtk
) val
=gtk
;;
3768 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3769 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3770 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3779 # Check whether --with-xpm was given.
3780 if test "${with_xpm+set}" = set; then :
3787 # Check whether --with-jpeg was given.
3788 if test "${with_jpeg+set}" = set; then :
3795 # Check whether --with-tiff was given.
3796 if test "${with_tiff+set}" = set; then :
3803 # Check whether --with-gif was given.
3804 if test "${with_gif+set}" = set; then :
3811 # Check whether --with-png was given.
3812 if test "${with_png+set}" = set; then :
3819 # Check whether --with-rsvg was given.
3820 if test "${with_rsvg+set}" = set; then :
3827 # Check whether --with-xml2 was given.
3828 if test "${with_xml2+set}" = set; then :
3835 # Check whether --with-imagemagick was given.
3836 if test "${with_imagemagick+set}" = set; then :
3837 withval
=$with_imagemagick;
3839 with_imagemagick
=yes
3844 # Check whether --with-xft was given.
3845 if test "${with_xft+set}" = set; then :
3852 # Check whether --with-libotf was given.
3853 if test "${with_libotf+set}" = set; then :
3854 withval
=$with_libotf;
3860 # Check whether --with-m17n-flt was given.
3861 if test "${with_m17n_flt+set}" = set; then :
3862 withval
=$with_m17n_flt;
3869 # Check whether --with-toolkit-scroll-bars was given.
3870 if test "${with_toolkit_scroll_bars+set}" = set; then :
3871 withval
=$with_toolkit_scroll_bars;
3873 with_toolkit_scroll_bars
=yes
3877 # Check whether --with-xaw3d was given.
3878 if test "${with_xaw3d+set}" = set; then :
3879 withval
=$with_xaw3d;
3885 # Check whether --with-xim was given.
3886 if test "${with_xim+set}" = set; then :
3893 # Check whether --with-ns was given.
3894 if test "${with_ns+set}" = set; then :
3902 # Check whether --with-gpm was given.
3903 if test "${with_gpm+set}" = set; then :
3910 # Check whether --with-dbus was given.
3911 if test "${with_dbus+set}" = set; then :
3918 # Check whether --with-gconf was given.
3919 if test "${with_gconf+set}" = set; then :
3920 withval
=$with_gconf;
3926 # Check whether --with-selinux was given.
3927 if test "${with_selinux+set}" = set; then :
3928 withval
=$with_selinux;
3934 # Check whether --with-gnutls was given.
3935 if test "${with_gnutls+set}" = set; then :
3936 withval
=$with_gnutls;
3942 ## For the times when you want to build Emacs but don't have
3943 ## a suitable makeinfo, and can live without the manuals.
3945 # Check whether --with-makeinfo was given.
3946 if test "${with_makeinfo+set}" = set; then :
3947 withval
=$with_makeinfo;
3953 ## This is an option because I do not know if all info/man support
3954 ## compressed files, nor how to test if they do so.
3956 # Check whether --with-compress-info was given.
3957 if test "${with_compress_info+set}" = set; then :
3958 withval
=$with_compress_info;
3960 with_compress_info
=yes
3963 if test $with_compress_info = yes; then
3971 # Check whether --with-pkg-config-prog was given.
3972 if test "${with_pkg_config_prog+set}" = set; then :
3973 withval
=$with_pkg_config_prog;
3976 if test "X${with_pkg_config_prog}" != X
; then
3977 if test "${with_pkg_config_prog}" != yes; then
3978 PKG_CONFIG
="${with_pkg_config_prog}"
3984 # Check whether --with-crt-dir was given.
3985 if test "${with_crt_dir+set}" = set; then :
3986 withval
=$with_crt_dir;
3989 CRT_DIR
="${with_crt_dir}"
3992 # Check whether --with-gameuser was given.
3993 if test "${with_gameuser+set}" = set; then :
3994 withval
=$with_gameuser;
3997 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3998 && gameuser
="${with_gameuser}"
3999 test "X$gameuser" = X
&& gameuser
=games
4002 # Check whether --with-gnustep-conf was given.
4003 if test "${with_gnustep_conf+set}" = set; then :
4004 withval
=$with_gnustep_conf;
4007 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4008 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4009 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4010 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4012 # Check whether --enable-ns-self-contained was given.
4013 if test "${enable_ns_self_contained+set}" = set; then :
4014 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4016 EN_NS_SELF_CONTAINED
=yes
4020 # Check whether --enable-asserts was given.
4021 if test "${enable_asserts+set}" = set; then :
4022 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4028 # Check whether --enable-maintainer-mode was given.
4029 if test "${enable_maintainer_mode+set}" = set; then :
4030 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4032 USE_MAINTAINER_MODE
=yes
4035 if test $USE_MAINTAINER_MODE = yes; then
4042 # Check whether --enable-locallisppath was given.
4043 if test "${enable_locallisppath+set}" = set; then :
4044 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4046 elif test "${enableval}" != "yes"; then
4047 locallisppath
=${enableval}
4052 # Check whether --enable-checking was given.
4053 if test "${enable_checking+set}" = set; then :
4054 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4057 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4058 for check
in $ac_checking_flags
4061 # these set all the flags to specific states
4062 yes) ac_enable_checking
=1 ;;
4063 no
) ac_enable_checking
= ;
4064 ac_gc_check_stringbytes
= ;
4065 ac_gc_check_string_overrun
= ;
4066 ac_gc_check_string_free_list
= ;
4067 ac_xmalloc_overrun
= ;
4068 ac_gc_check_cons_list
= ;;
4069 all
) ac_enable_checking
=1 ;
4070 ac_gc_check_stringbytes
=1 ;
4071 ac_gc_check_string_overrun
=1 ;
4072 ac_gc_check_string_free_list
=1 ;
4073 ac_xmalloc_overrun
=1 ;
4074 ac_gc_check_cons_list
=1 ;;
4075 # these enable particular checks
4076 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4077 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4078 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4079 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4080 conslist
) ac_gc_check_cons_list
=1 ;;
4081 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4086 if test x
$ac_enable_checking != x
; then
4088 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4091 if test x
$ac_gc_check_stringbytes != x
; then
4093 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4096 if test x
$ac_gc_check_stringoverrun != x
; then
4098 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4101 if test x
$ac_gc_check_string_free_list != x
; then
4103 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4106 if test x
$ac_xmalloc_overrun != x
; then
4108 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4111 if test x
$ac_gc_check_cons_list != x
; then
4113 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4117 # Check whether --enable-use-lisp-union-type was given.
4118 if test "${enable_use_lisp_union_type+set}" = set; then :
4119 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4121 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4128 # Check whether --enable-profiling was given.
4129 if test "${enable_profiling+set}" = set; then :
4130 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4133 if test x
$ac_enable_profiling != x
; then
4134 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4140 # Check whether --enable-autodepend was given.
4141 if test "${enable_autodepend+set}" = set; then :
4142 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4144 ac_enable_autodepend
=yes
4148 #### Make srcdir absolute, if it isn't already. It's important to
4149 #### avoid running the path through pwd unnecessarily, since pwd can
4150 #### give you automounter prefixes, which can go away. We do all this
4151 #### so Emacs can find its files when run uninstalled.
4152 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4157 ## We may be able to use the $PWD environment variable to make this
4158 ## absolute. But sometimes PWD is inaccurate.
4159 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4160 ## but that tested only for a well-formed and valid PWD,
4161 ## it did not object when PWD was well-formed and valid but just wrong.
4162 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4166 srcdir
="`(cd ${srcdir}; pwd)`"
4169 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4172 #### Check if the source directory already has a configured system in it.
4173 if test `pwd` != `(cd ${srcdir} && pwd)` \
4174 && test -f "${srcdir}/src/config.h" ; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4176 as a build directory right now; it has been configured in its own
4177 right. To configure in another directory as well, you MUST
4178 use GNU make. If you do not have GNU make, then you must
4179 now do \`make distclean' in ${srcdir},
4180 and then run $0 again." >&5
4181 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4182 as a build directory right now; it has been configured in its own
4183 right. To configure in another directory as well, you MUST
4184 use GNU make. If you do not have GNU make, then you must
4185 now do \`make distclean' in ${srcdir},
4186 and then run $0 again." >&2;}
4189 #### Given the configuration name, set machfile and opsysfile to the
4190 #### names of the m/*.h and s/*.h files we should use.
4192 ### Canonicalize the configuration name.
4194 # Make sure we can run config.sub.
4195 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4196 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4199 $as_echo_n "checking build system type... " >&6; }
4200 if test "${ac_cv_build+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_build_alias
=$build_alias
4204 test "x$ac_build_alias" = x
&&
4205 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4206 test "x$ac_build_alias" = x
&&
4207 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4208 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4209 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4213 $as_echo "$ac_cv_build" >&6; }
4214 case $ac_cv_build in
4216 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4219 ac_save_IFS
=$IFS; IFS
='-'
4225 # Remember, the first character of IFS is used to create $*,
4226 # except with old shells:
4229 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4233 $as_echo_n "checking host system type... " >&6; }
4234 if test "${ac_cv_host+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test "x$host_alias" = x
; then
4238 ac_cv_host
=$ac_cv_build
4240 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4241 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4246 $as_echo "$ac_cv_host" >&6; }
4249 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4252 ac_save_IFS
=$IFS; IFS
='-'
4258 # Remember, the first character of IFS is used to create $*,
4259 # except with old shells:
4262 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4266 configuration
=${host_alias-${build_alias-$host}}
4270 ### If you add support for a new configuration, add code to this
4271 ### switch statement to recognize your configuration name and select
4272 ### the appropriate operating system and machine description files.
4274 ### You would hope that you could choose an m/*.h file pretty much
4275 ### based on the machine portion of the configuration name, and an s/*.h
4276 ### file based on the operating system portion. However, it turns out
4277 ### that each m/*.h file is pretty manufacturer-specific - for
4278 ### example mips.h is MIPS
4279 ### So we basically have to have a special case for each
4280 ### configuration name.
4282 ### As far as handling version numbers on operating systems is
4283 ### concerned, make sure things will fail in a fixable way. If
4284 ### /etc/MACHINES doesn't say anything about version numbers, be
4285 ### prepared to handle anything reasonably. If version numbers
4286 ### matter, be sure /etc/MACHINES says something about it.
4288 machine
='' opsys
='' unported
=no
4289 case "${canonical}" in
4294 case ${canonical} in
4295 alpha
*) machine
=alpha
;;
4296 s390-
*) machine
=ibms390
;;
4297 s390x-
*) machine
=ibms390x
;;
4298 powerpc
*) machine
=macppc
;;
4299 sparc
*) machine
=sparc
;;
4300 ia64
*) machine
=ia64
;;
4301 m68k
*) machine
=m68k
;;
4302 x86_64
*) machine
=amdx86-64
;;
4309 case "${canonical}" in
4310 alpha
*) machine
=alpha
;;
4311 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4312 ia64-
*) machine
=ia64
;;
4313 i
[3456]86-*) machine
=intel386
;;
4314 powerpc-
*) machine
=macppc
;;
4315 sparc-
*) machine
=sparc
;;
4316 sparc64-
*) machine
=sparc
;;
4320 ## FreeBSD kernel + glibc based userland
4323 case "${canonical}" in
4324 alpha
*) machine
=alpha
;;
4325 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4326 ia64-
*) machine
=ia64
;;
4327 i
[3456]86-*) machine
=intel386
;;
4328 powerpc-
*) machine
=macppc
;;
4329 sparc-
*) machine
=sparc
;;
4330 sparc64-
*) machine
=sparc
;;
4337 case "${canonical}" in
4338 alpha
*) machine
=alpha
;;
4339 x86_64-
*) machine
=amdx86-64
;;
4340 i
[3456]86-*) machine
=intel386
;;
4341 m68k-
*) machine
=m68k
;;
4342 powerpc-
*) machine
=macppc
;;
4343 sparc
*-) machine
=sparc
;;
4344 vax-
*) machine
=vax
;;
4351 case "${canonical}" in
4352 alpha
*) machine
=alpha
;;
4353 x86_64-
*) machine
=amdx86-64
;;
4354 i386-
*) machine
=intel386
;;
4355 powerpc-
*) machine
=macppc
;;
4356 sparc
*) machine
=sparc
;;
4357 vax-
*) machine
=vax
;;
4361 ## Apple Darwin / Mac OS X
4363 case "${canonical}" in
4364 i
[3456]86-* ) machine
=intel386
;;
4365 powerpc-
* ) machine
=macppc
;;
4366 x86_64-
* ) machine
=amdx86-64
;;
4370 # Define CPP as follows to make autoconf work correctly.
4371 CPP
="${CC-cc} -E -no-cpp-precomp"
4372 # Use fink packages if available.
4373 if test -d /sw
/include
&& test -d /sw
/lib
; then
4374 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4375 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4376 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4380 ## HP 9000 series 700 and 800, running HP/UX
4381 hppa
*-hp-hpux10.2
* )
4384 hppa
*-hp-hpux1[1-9]* )
4386 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4389 ia64
*-hp-hpux1[1-9]* )
4390 machine
=hp800 opsys
=hpux11
4391 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4392 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4396 hppa
*-*-linux-gnu* )
4397 machine
=hp800 opsys
=gnu-linux
4401 rs6000-ibm-aix4.
[23]* )
4402 machine
=ibmrs6000 opsys
=aix4-2
4404 powerpc-ibm-aix4.
[23]* )
4405 machine
=ibmrs6000 opsys
=aix4-2
4407 rs6000-ibm-aix
[56]* )
4408 machine
=ibmrs6000 opsys
=aix4-2
4410 powerpc-ibm-aix
[56]* )
4411 machine
=ibmrs6000 opsys
=aix4-2
4414 ## Silicon Graphics machines
4417 machine
=iris4d opsys
=irix6-5
4418 # Without defining _LANGUAGE_C, things get masked out in the headers
4419 # so that, for instance, grepping for `free' in stdlib.h fails and
4420 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4421 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4422 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4427 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4428 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4429 case "${canonical}" in
4430 i
[3456]86-*-* ) machine
=intel386
;;
4431 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4432 sparc
* ) machine
=sparc
;;
4435 case "${canonical}" in
4436 *-sunos5.6
* |
*-solaris2.6
* )
4438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4441 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4443 emacs_check_sunpro_c
=yes
4444 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4446 *-sunos5* |
*-solaris* )
4448 emacs_check_sunpro_c
=yes
4449 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4452 ## Watch out for a compiler that we know will not work.
4453 case "${canonical}" in
4454 *-solaris* |
*-sunos5* )
4455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4456 ## /usr/ucb/cc doesn't work;
4457 ## we should find some other compiler that does work.
4465 ## Intel 386 machines where we don't care about the manufacturer.
4468 case "${canonical}" in
4469 *-cygwin ) opsys
=cygwin
;;
4470 *-darwin* ) opsys
=darwin
4471 CPP
="${CC-cc} -E -no-cpp-precomp"
4473 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4474 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4475 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4476 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4485 ### If the code above didn't choose an operating system, just choose
4486 ### an operating system based on the configuration name. You really
4487 ### only want to use this when you have no idea what the right
4488 ### operating system is; if you know what operating systems a machine
4489 ### runs, it's cleaner to make it explicit in the case statement
4491 if test x
"${opsys}" = x
; then
4492 case "${canonical}" in
4493 *-gnu* ) opsys
=gnu
;;
4502 if test $unported = yes; then
4503 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4504 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4507 if test -n "$machine"; then
4508 machfile
="m/${machine}.h"
4512 opsysfile
="s/${opsys}.h"
4515 #### Choose a compiler.
4516 test -n "$CC" && cc_specified
=yes
4518 # Save the value of CFLAGS that the user specified.
4519 SPECIFIED_CFLAGS
="$CFLAGS"
4522 ac_cpp
='$CPP $CPPFLAGS'
4523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4528 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC
="$CC" # Let the user override the test.
4537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir
=.
4542 for ac_exec_ext
in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_CC"; then
4567 # Extract the first word of "gcc", so it can be a program name with args.
4568 set dummy gcc
; ac_word
=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir
=.
4582 for ac_exec_ext
in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_CC
="gcc"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4595 if test -n "$ac_ct_CC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4597 $as_echo "$ac_ct_CC" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_CC" = x
; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned
=yes ;;
4618 if test -z "$CC"; then
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4621 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC
="$CC" # Let the user override the test.
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_exec_ext
in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4659 if test -z "$CC"; then
4660 # Extract the first word of "cc", so it can be a program name with args.
4661 set dummy cc
; ac_word
=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC
="$CC" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4679 ac_prog_rejected
=yes
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 if test $ac_prog_rejected = yes; then
4691 # We found a bogon in the path, so make sure we never use it.
4692 set dummy
$ac_cv_prog_CC
4694 if test $# != 0; then
4695 # We chose a different compiler from the bogus one.
4696 # However, it has the same basename, so the bogon will be chosen
4697 # first if we set CC to just the basename; use the full file name.
4699 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog
in cl.exe
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC
="$CC" # Let the user override the test.
4729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir
=.
4734 for ac_exec_ext
in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 if test -n "$CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749 $as_echo "$CC" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$CC" && break
4759 if test -z "$CC"; then
4761 for ac_prog
in cl.exe
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy
$ac_prog; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC
="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4800 test -n "$ac_ct_CC" && break
4803 if test "x$ac_ct_CC" = x
; then
4806 case $cross_compiling:$ac_tool_warned in
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned
=yes ;;
4819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 as_fn_error
"no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." "$LINENO" 5; }
4824 # Provide some information about the compiler.
4825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4828 for ac_option
in --version -v -V -qversion; do
4829 { { ac_try
="$ac_compiler $ac_option >&5"
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4835 $as_echo "$ac_try_echo"; } >&5
4836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838 if test -s conftest.err; then
4840 ... rest of stderr output deleted ...
4841 10q' conftest.err >conftest.er1
4842 cat conftest.er1 >&5
4844 rm -f conftest.er1 conftest.err
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4860 ac_clean_files_save=$ac_clean_files
4861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4862 # Try to create an executable without -o first, disregard a.out.
4863 # It will help us diagnose broken compilers, and finding out an intuition
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4866 $as_echo_n "checking whether the C compiler works... " >&6; }
4867 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4869 # The possible output files:
4870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4873 for ac_file in $ac_files
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4882 if { { ac_try="$ac_link_default"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 $as_echo "$ac_try_echo"; } >&5
4889 (eval "$ac_link_default") 2>&5
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then :
4893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4896 # so that the user can short-circuit this test for compilers unknown to
4898 for ac_file
in $ac_files ''
4900 test -f "$ac_file" ||
continue
4902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4905 # We found the default executable, but exeext='' is most
4909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4911 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4913 # We set ac_cv_exeext here because the later test for it is not
4914 # safe: cross compilers may not add the suffix if given an `-o'
4915 # argument, so we may need to know it at that point already.
4916 # Even if this section looks crufty: it has the advantage of
4923 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4928 if test -z "$ac_file"; then :
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.
$ac_ext >&5
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 { as_fn_set_status
77
4937 as_fn_error
"C compiler cannot create executables
4938 See \`config.log' for more details." "$LINENO" 5; }; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4944 $as_echo_n "checking for C compiler default output file name... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4946 $as_echo "$ac_file" >&6; }
4947 ac_exeext
=$ac_cv_exeext
4949 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4950 ac_clean_files
=$ac_clean_files_save
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4952 $as_echo_n "checking for suffix of executables... " >&6; }
4953 if { { ac_try
="$ac_link"
4955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959 $as_echo "$ac_try_echo"; } >&5
4960 (eval "$ac_link") 2>&5
4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }; then :
4964 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4965 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4966 # work properly (i.e., refer to `conftest.exe'), while it won't with
4968 for ac_file
in conftest.exe conftest conftest.
*; do
4969 test -f "$ac_file" ||
continue
4971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4981 See \`config.log' for more details." "$LINENO" 5; }
4983 rm -f conftest conftest
$ac_cv_exeext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4985 $as_echo "$ac_cv_exeext" >&6; }
4987 rm -f conftest.
$ac_ext
4988 EXEEXT
=$ac_cv_exeext
4990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4996 FILE *f = fopen ("conftest.out", "w");
4997 return ferror (f) || fclose (f) != 0;
5003 ac_clean_files
="$ac_clean_files conftest.out"
5004 # Check that the compiler produces executables we can run. If not, either
5005 # the compiler is broken, or we cross compile.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5007 $as_echo_n "checking whether we are cross compiling... " >&6; }
5008 if test "$cross_compiling" != yes; then
5009 { { ac_try
="$ac_link"
5011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015 $as_echo "$ac_try_echo"; } >&5
5016 (eval "$ac_link") 2>&5
5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 if { ac_try='./conftest$ac_cv_exeext'
5021 { { case "(($ac_try" in
5022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5023 *) ac_try_echo
=$ac_try;;
5025 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5026 $as_echo "$ac_try_echo"; } >&5
5027 (eval "$ac_try") 2>&5
5029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5030 test $ac_status = 0; }; }; then
5033 if test "$cross_compiling" = maybe
; then
5036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error
"cannot run C compiled programs.
5039 If you meant to cross compile, use \`--host'.
5040 See \`config.log' for more details." "$LINENO" 5; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5045 $as_echo "$cross_compiling" >&6; }
5047 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5048 ac_clean_files
=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5050 $as_echo_n "checking for suffix of object files... " >&6; }
5051 if test "${ac_cv_objext+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 rm -f conftest.o conftest.obj
5066 if { { ac_try
="$ac_compile"
5068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compile") 2>&5
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; then :
5077 for ac_file in conftest.o conftest.obj conftest.*; do
5078 test -f "$ac_file" || continue;
5080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5086 $as_echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "cannot compute suffix of object files
: cannot compile
5092 See \
`config.log' for more details." "$LINENO" 5; }
5094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5097 $as_echo "$ac_cv_objext" >&6; }
5098 OBJEXT=$ac_cv_objext
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5102 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5119 if ac_fn_c_try_compile "$LINENO"; then :
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5130 if test $ac_compiler_gnu = yes; then
5135 ac_test_CFLAGS=${CFLAGS+set}
5136 ac_save_CFLAGS=$CFLAGS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5139 if test "${ac_cv_prog_cc_g+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5142 ac_save_c_werror_flag=$ac_c_werror_flag
5143 ac_c_werror_flag=yes
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5157 if ac_fn_c_try_compile "$LINENO"; then :
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5172 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_c_werror_flag=$ac_save_c_werror_flag
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5188 if ac_fn_c_try_compile "$LINENO"; then :
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_c_werror_flag=$ac_save_c_werror_flag
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5199 $as_echo "$ac_cv_prog_cc_g" >&6; }
5200 if test "$ac_test_CFLAGS" = set; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5209 if test "$GCC" = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5217 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5220 ac_cv_prog_cc_c89=no
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5226 #include <sys/types.h>
5227 #include <sys/stat.h>
5228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5229 struct buf { int x; };
5230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5231 static char *e (p, i)
5237 static char *f (char * (*g) (char **, int), char **p, ...)
5242 s = g (p, va_arg (v,int));
5247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5248 function prototypes and stuff, but not '\xHH' hex character constants.
5249 These don't provoke an error unfortunately, instead are silently treated
5250 as 'x'. The following induces an error, until -std is added to get
5251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5252 array size at least. It's necessary to write '\x00'==0 to get something
5253 that's true only with -std. */
5254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5257 inside strings and character constants. */
5259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5261 int test (int i, double x);
5262 struct s1 {int (*f) (int a);};
5263 struct s2 {int (*f) (double a);};
5264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5278 CC="$ac_save_CC $ac_arg"
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_c89=$ac_arg
5282 rm -f core conftest.err conftest.$ac_objext
5283 test "x$ac_cv_prog_cc_c89" != "xno" && break
5285 rm -f conftest.$ac_ext
5290 case "x$ac_cv_prog_cc_c89" in
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5293 $as_echo "none needed" >&6; } ;;
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296 $as_echo "unsupported" >&6; } ;;
5298 CC="$CC $ac_cv_prog_cc_c89"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5302 if test "x$ac_cv_prog_cc_c89" != xno; then :
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 DEPDIR="${am__leading_dot}deps"
5313 ac_config_commands="$ac_config_commands depfiles"
5316 am_make=${MAKE-make}
5317 cat > confinc << 'END'
5319 @echo this is the am__doit target
5322 # If we don't find an include directive, just comment out the code.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5328 # First try GNU make style include.
5329 echo "include confinc" > confmf
5330 # Ignore all kinds of additional output from `make'.
5331 case `$am_make -s -f confmf 2> /dev/null` in #(
5332 *the\ am__doit\ target*)
5338 # Now try BSD make style include.
5339 if test "$am__include" = "#"; then
5340 echo '.include
"confinc"' > confmf
5341 case `$am_make -s -f confmf 2> /dev/null` in #(
5342 *the\ am__doit\ target*)
5343 am__include=.include
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5352 $as_echo "$_am_result" >&6; }
5353 rm -f confinc confmf
5355 # Check whether --enable-dependency-tracking was given.
5356 if test "${enable_dependency_tracking+set}" = set; then :
5357 enableval=$enable_dependency_tracking;
5360 if test "x$enable_dependency_tracking" != xno; then
5361 am_depcomp="$ac_aux_dir/depcomp"
5364 if test "x$enable_dependency_tracking" != xno
; then
5374 depcc
="$CC" am_compiler_list
=
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5377 $as_echo_n "checking dependency style of $depcc... " >&6; }
5378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5382 # We make a subdir and do the tests there. Otherwise we can end up
5383 # making bogus files that we don't know about and never remove. For
5384 # instance it was reported that on HP-UX the gcc test will end up
5385 # making a dummy file named `D' -- because `-MD' means `put the output
5388 # Copy depcomp to subdir because otherwise we won't find it if we're
5389 # using a relative directory.
5390 cp "$am_depcomp" conftest.dir
5392 # We will build objects and dependencies in a subdirectory because
5393 # it helps to detect inapplicable dependency modes. For instance
5394 # both Tru64's cc and ICC support -MD to output dependencies as a
5395 # side effect of compilation, but ICC will put the dependencies in
5396 # the current directory while Tru64 will put them in the object
5400 am_cv_CC_dependencies_compiler_type
=none
5401 if test "$am_compiler_list" = ""; then
5402 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5405 case " $depcc " in #(
5406 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5409 for depmode
in $am_compiler_list; do
5410 # Setup a source with many dependencies, because some compilers
5411 # like to wrap large dependency lists on column 80 (with \), and
5412 # we should not choose a depcomp mode which is confused by this.
5414 # We need to recreate these files for each test, as the compiler may
5415 # overwrite some of them when testing with obscure command lines.
5416 # This happens at least with the AIX C compiler.
5418 for i
in 1 2 3 4 5 6; do
5419 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5421 # Solaris 8's {/usr,}/bin/sh.
5422 touch sub
/conftst
$i.h
5424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5427 # mode. It turns out that the SunPro C++ compiler does not properly
5428 # handle `-M -o', and we need to detect this. Also, some Intel
5429 # versions had trouble with output in subdirs
5430 am__obj
=sub
/conftest.
${OBJEXT-o}
5431 am__minus_obj
="-o $am__obj"
5434 # This depmode causes a compiler race in universal mode.
5435 test "$am__universal" = false ||
continue
5438 # after this tag, mechanisms are not by side-effect, so they'll
5439 # only be used when explicitly requested
5440 if test "x$enable_dependency_tracking" = xyes
; then
5446 msvisualcpp | msvcmsys
)
5447 # This compiler won't grok `-c -o', but also, the minuso test has
5448 # not run yet. These depmodes are late enough in the game, and
5449 # so weak that their functioning should not be impacted.
5450 am__obj
=conftest.
${OBJEXT-o}
5455 if depmode
=$depmode \
5456 source=sub
/conftest.c object
=$am__obj \
5457 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5458 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5459 >/dev
/null
2>conftest.err
&&
5460 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5461 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5462 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5463 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5464 # icc doesn't choke on unknown options, it will just issue warnings
5465 # or remarks (even with -Werror). So we grep stderr for any message
5466 # that says an option was ignored or not supported.
5467 # When given -MP, icc 7.0 and 7.1 complain thusly:
5468 # icc: Command line warning: ignoring option '-M'; no argument required
5469 # The diagnosis changed in icc 8.0:
5470 # icc: Command line remark: option '-MP' not supported
5471 if (grep 'ignoring option' conftest.err ||
5472 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5473 am_cv_CC_dependencies_compiler_type
=$depmode
5482 am_cv_CC_dependencies_compiler_type
=none
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5487 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5488 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5491 test "x$enable_dependency_tracking" != xno \
5492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5494 am__fastdepCC_FALSE
='#'
5496 am__fastdepCC_TRUE
='#'
5497 am__fastdepCC_FALSE
=
5501 if test "x$CC" != xcc
; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5503 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5506 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5508 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5511 $as_echo_n "(cached) " >&6
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5524 # Make sure it works both with $CC and with simple cc.
5525 # We do the test twice because some compilers refuse to overwrite an
5526 # existing .o file with -o, though they will create one.
5527 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5529 if { { case "(($ac_try" in
5530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534 $as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_try") 2>&5
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; } &&
5539 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5541 *) ac_try_echo
=$ac_try;;
5543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5544 $as_echo "$ac_try_echo"; } >&5
5545 (eval "$ac_try") 2>&5
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; };
5550 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5551 if test "x$CC" != xcc
; then
5552 # Test first that cc exists at all.
5553 if { ac_try
='cc -c conftest.$ac_ext >&5'
5554 { { case "(($ac_try" in
5555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; }; }; then
5564 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5566 if { { case "(($ac_try" in
5567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5568 *) ac_try_echo
=$ac_try;;
5570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571 $as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_try") 2>&5
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; } &&
5576 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5581 $as_echo "$ac_try_echo"; } >&5
5582 (eval "$ac_try") 2>&5
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; };
5590 # cc exists but doesn't like -o.
5591 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5596 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5598 rm -f core conftest*
5601 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5608 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5612 # FIXME: we rely on the cache variable name because
5613 # there is no other way.
5615 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5617 if test "$am_t" != yes; then
5618 # Losing compiler, so override with the script.
5619 # FIXME: It is wrong to rewrite CC.
5620 # But if we don't then we get into trouble of one sort or another.
5621 # A longer-term fix would be to have automake use am__CC in this case,
5622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5623 CC="$am_aux_dir/compile $CC"
5628 # Initialize gnulib right after verifying that the C compiler works.
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -n "$RANLIB"; then
5638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669 ac_ct_RANLIB=$RANLIB
5670 # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5677 if test -n "$ac_ct_RANLIB"; then
5678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_RANLIB="ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5706 if test "x$ac_ct_RANLIB" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5715 RANLIB=$ac_ct_RANLIB
5718 RANLIB="$ac_cv_prog_RANLIB"
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 # include <limits.h>
5754 # include <assert.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5776 # Passes both tests.
5780 rm -f conftest.err conftest.$ac_ext
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.
$ac_ext
5785 if $ac_preproc_ok; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5800 for ac_c_preproc_warn_flag
in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # include <limits.h>
5813 # include <assert.h>
5817 if ac_fn_c_try_cpp
"$LINENO"; then :
5820 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.
$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if ac_fn_c_try_cpp
"$LINENO"; then :
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.
$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.
$ac_ext
5844 if $ac_preproc_ok; then :
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5854 ac_cpp
='$CPP $CPPFLAGS'
5855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found
=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5869 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5872 test -z "$as_dir" && as_dir
=.
5873 for ac_prog
in grep ggrep
; do
5874 for ac_exec_ext
in '' $ac_executable_extensions; do
5875 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5881 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5884 $as_echo_n 0123456789 >"conftest.in"
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5892 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5893 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP
="$ac_path_GREP"
5897 ac_path_GREP_max
=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5902 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5905 $ac_path_GREP_found && break 3
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914 ac_cv_path_GREP
=$GREP
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP
="$ac_cv_path_GREP"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5929 then ac_cv_path_EGREP
="$GREP -E"
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found
=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5935 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5938 test -z "$as_dir" && as_dir
=.
5939 for ac_prog
in egrep; do
5940 for ac_exec_ext
in '' $ac_executable_extensions; do
5941 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5947 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5950 $as_echo_n 0123456789 >"conftest.in"
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5958 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5959 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP
="$ac_path_EGREP"
5963 ac_path_EGREP_max
=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5968 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5971 $ac_path_EGREP_found && break 3
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5980 ac_cv_path_EGREP
=$EGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP
="$ac_cv_path_EGREP"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5991 $as_echo_n "checking for ANSI C header files... " >&6; }
5992 if test "${ac_cv_header_stdc+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6010 if ac_fn_c_try_compile
"$LINENO"; then :
6011 ac_cv_header_stdc
=yes
6013 ac_cv_header_stdc
=no
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 if test $ac_cv_header_stdc = yes; then
6018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "memchr" >/dev
/null
2>&1; then :
6028 ac_cv_header_stdc
=no
6034 if test $ac_cv_header_stdc = yes; then
6035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "free" >/dev
/null
2>&1; then :
6045 ac_cv_header_stdc
=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6053 if test "$cross_compiling" = yes; then :
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6060 #if ((' ' & 0x0FF) == 0x020)
6061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6064 # define ISLOWER(c) \
6065 (('a' <= (c) && (c) <= 'i') \
6066 || ('j' <= (c) && (c) <= 'r') \
6067 || ('s' <= (c) && (c) <= 'z'))
6068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6076 for (i = 0; i < 256; i++)
6077 if (XOR (islower (i), ISLOWER (i))
6078 || toupper (i) != TOUPPER (i))
6083 if ac_fn_c_try_run
"$LINENO"; then :
6086 ac_cv_header_stdc
=no
6088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6095 $as_echo "$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6103 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6104 inttypes.h stdint.h unistd.h
6106 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6109 eval as_val
=\$
$as_ac_Header
6110 if test "x$as_val" = x
""yes; then :
6111 cat >>confdefs.h
<<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6124 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6131 if test "$MINIX" = yes; then
6133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6139 $as_echo "#define _MINIX 1" >>confdefs.h
6146 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6153 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6154 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 # define __EXTENSIONS__ 1
6161 $ac_includes_default
6170 if ac_fn_c_try_compile
"$LINENO"; then :
6171 ac_cv_safe_to_define___extensions__
=yes
6173 ac_cv_safe_to_define___extensions__
=no
6175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6178 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6179 test $ac_cv_safe_to_define___extensions__ = yes &&
6180 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6182 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6184 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6186 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6188 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6199 # Code from module arg-nonnull:
6200 # Code from module c++defs:
6201 # Code from module careadlinkat:
6202 # Code from module crypto/md5:
6203 # Code from module dosname:
6204 # Code from module dtoastr:
6205 # Code from module extensions:
6207 # Code from module filemode:
6208 # Code from module getloadavg:
6209 # Code from module getopt-gnu:
6210 # Code from module getopt-posix:
6211 # Code from module gettext-h:
6212 # Code from module ignore-value:
6213 # Code from module include_next:
6214 # Code from module intprops:
6215 # Code from module lstat:
6216 # Code from module mktime:
6217 # Code from module multiarch:
6218 # Code from module readlink:
6219 # Code from module socklen:
6220 # Code from module ssize_t:
6221 # Code from module stat:
6222 # Code from module stdbool:
6223 # Code from module stddef:
6224 # Code from module stdint:
6225 # Code from module stdio:
6226 # Code from module stdlib:
6227 # Code from module strftime:
6228 # Code from module symlink:
6229 # Code from module sys_stat:
6230 # Code from module time:
6231 # Code from module time_r:
6232 # Code from module unistd:
6233 # Code from module warn-on-use:
6236 # On Suns, sometimes $CPP names a directory.
6237 if test -n "$CPP" && test -d "$CPP"; then
6241 ## If not using gcc, and on Solaris, and no CPP specified, see if
6242 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6243 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6244 test x
"$CPP" = x
; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6246 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6247 if test "${emacs_cv_sunpro_c+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6264 if ac_fn_c_try_link
"$LINENO"; then :
6265 emacs_cv_sunpro_c
=yes
6267 emacs_cv_sunpro_c
=no
6269 rm -f core conftest.err conftest.
$ac_objext \
6270 conftest
$ac_exeext conftest.
$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6274 $as_echo "$emacs_cv_sunpro_c" >&6; }
6276 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6277 NON_GNU_CPP
="$CC -E -Xs"
6281 #### Some systems specify a CPP to use unless we are using GCC.
6282 #### Now that we know whether we are using GCC, we can decide whether
6283 #### to use that one.
6284 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6289 #### Some systems specify a CC to use unless we are using GCC.
6290 #### Now that we know whether we are using GCC, we can decide whether
6291 #### to use that one.
6292 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6293 test x
$cc_specified != xyes
6298 if test x
$GCC = xyes
; then
6299 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6301 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6304 ### Use -Wdeclaration-after-statement if the compiler supports it
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6306 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6307 SAVE_CFLAGS
="$CFLAGS"
6308 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6320 if ac_fn_c_try_compile
"$LINENO"; then :
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 if test $has_option = yes; then
6327 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6330 $as_echo "$has_option" >&6; }
6331 CFLAGS
="$SAVE_CFLAGS"
6335 ### Use -Wold-style-definition if the compiler supports it
6336 # This can be removed when conversion to standard C is finished.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6338 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6339 SAVE_CFLAGS
="$CFLAGS"
6340 CFLAGS
="$CFLAGS -Wold-style-definition"
6341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6352 if ac_fn_c_try_compile
"$LINENO"; then :
6357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6358 if test $has_option = yes; then
6359 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6362 $as_echo "$has_option" >&6; }
6363 CFLAGS
="$SAVE_CFLAGS"
6367 ### Use -Wimplicit-function-declaration if the compiler supports it
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6369 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6370 SAVE_CFLAGS
="$CFLAGS"
6371 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6383 if ac_fn_c_try_compile
"$LINENO"; then :
6388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6389 if test $has_option = yes; then
6390 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6393 $as_echo "$has_option" >&6; }
6394 CFLAGS
="$SAVE_CFLAGS"
6401 #### Some other nice autoconf tests.
6404 ac_cpp
='$CPP $CPPFLAGS'
6405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6409 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6410 # On Suns, sometimes $CPP names a directory.
6411 if test -n "$CPP" && test -d "$CPP"; then
6414 if test -z "$CPP"; then
6415 if test "${ac_cv_prog_CPP+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 # Double quotes because CPP needs to be expanded
6419 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6422 for ac_c_preproc_warn_flag
in '' yes
6424 # Use a header file that comes with gcc, so configuring glibc
6425 # with a fresh cross-compiler works.
6426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6427 # <limits.h> exists even on freestanding compilers.
6428 # On the NeXT, cc -E runs the code through the compiler's parser,
6429 # not just through cpp. "Syntax error" is here to catch this case.
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 # include <limits.h>
6435 # include <assert.h>
6439 if ac_fn_c_try_cpp
"$LINENO"; then :
6442 # Broken: fails on valid input.
6445 rm -f conftest.err conftest.
$ac_ext
6447 # OK, works on sane cases. Now check whether nonexistent headers
6448 # can be detected and how.
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <ac_nonexistent.h>
6453 if ac_fn_c_try_cpp
"$LINENO"; then :
6454 # Broken: success on invalid input.
6457 # Passes both tests.
6461 rm -f conftest.err conftest.
$ac_ext
6464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6465 rm -f conftest.err conftest.
$ac_ext
6466 if $ac_preproc_ok; then :
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6479 $as_echo "$CPP" >&6; }
6481 for ac_c_preproc_warn_flag
in '' yes
6483 # Use a header file that comes with gcc, so configuring glibc
6484 # with a fresh cross-compiler works.
6485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6486 # <limits.h> exists even on freestanding compilers.
6487 # On the NeXT, cc -E runs the code through the compiler's parser,
6488 # not just through cpp. "Syntax error" is here to catch this case.
6489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 # include <limits.h>
6494 # include <assert.h>
6498 if ac_fn_c_try_cpp
"$LINENO"; then :
6501 # Broken: fails on valid input.
6504 rm -f conftest.err conftest.
$ac_ext
6506 # OK, works on sane cases. Now check whether nonexistent headers
6507 # can be detected and how.
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <ac_nonexistent.h>
6512 if ac_fn_c_try_cpp
"$LINENO"; then :
6513 # Broken: success on invalid input.
6516 # Passes both tests.
6520 rm -f conftest.err conftest.
$ac_ext
6523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6524 rm -f conftest.err conftest.
$ac_ext
6525 if $ac_preproc_ok; then :
6528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6530 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6531 See \`config.log' for more details." "$LINENO" 5; }
6535 ac_cpp
='$CPP $CPPFLAGS'
6536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6541 if test "x$RANLIB" = x
; then
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6544 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$RANLIB"; then
6551 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir
=.
6558 for ac_exec_ext
in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 RANLIB
=$ac_cv_prog_RANLIB
6571 if test -n "$RANLIB"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6573 $as_echo "$RANLIB" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6581 if test -z "$ac_cv_prog_RANLIB"; then
6582 ac_ct_RANLIB
=$RANLIB
6583 # Extract the first word of "ranlib", so it can be a program name with args.
6584 set dummy ranlib
; ac_word
=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6590 if test -n "$ac_ct_RANLIB"; then
6591 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6611 if test -n "$ac_ct_RANLIB"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6613 $as_echo "$ac_ct_RANLIB" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6619 if test "x$ac_ct_RANLIB" = x
; then
6622 case $cross_compiling:$ac_tool_warned in
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned
=yes ;;
6628 RANLIB
=$ac_ct_RANLIB
6631 RANLIB
="$ac_cv_prog_RANLIB"
6636 ## Although we're running on an amd64 kernel, we're actually compiling for
6637 ## the x86 architecture. The user should probably have provided an
6638 ## explicit --build to `configure', but if everything else than the kernel
6639 ## is running in i386 mode, we can help them out.
6640 if test "$machine" = "amdx86-64"; then
6641 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6642 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6646 if test "$ac_cv_have_decl_i386" = "yes"; then
6647 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6649 machfile
="m/${machine}.h"
6653 # Extract the first word of "install-info", so it can be a program name with args.
6654 set dummy install-info
; ac_word
=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6660 case $INSTALL_INFO in
6662 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir
=.
6670 for ac_exec_ext
in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6684 if test -n "$INSTALL_INFO"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6686 $as_echo "$INSTALL_INFO" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6693 # Extract the first word of "install-info", so it can be a program name with args.
6694 set dummy install-info
; ac_word
=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6700 case $INSTALL_INFO in
6702 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6706 for as_dir
in /usr
/sbin
6709 test -z "$as_dir" && as_dir
=.
6710 for ac_exec_ext
in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6724 if test -n "$INSTALL_INFO"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6726 $as_echo "$INSTALL_INFO" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6733 # Extract the first word of "install-info", so it can be a program name with args.
6734 set dummy install-info
; ac_word
=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6740 case $INSTALL_INFO in
6742 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir
=.
6750 for ac_exec_ext
in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6764 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6765 if test -n "$INSTALL_INFO"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6767 $as_echo "$INSTALL_INFO" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6774 # Extract the first word of "gzip", so it can be a program name with args.
6775 set dummy
gzip; ac_word
=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6783 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir
=.
6791 for ac_exec_ext
in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6805 if test -n "$GZIP_PROG"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6807 $as_echo "$GZIP_PROG" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6816 ## Need makeinfo >= 4.6 (?) to build the manuals.
6817 # Extract the first word of "makeinfo", so it can be a program name with args.
6818 set dummy makeinfo
; ac_word
=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6826 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir
=.
6834 for ac_exec_ext
in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6848 MAKEINFO
=$ac_cv_path_MAKEINFO
6849 if test -n "$MAKEINFO"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6851 $as_echo "$MAKEINFO" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6858 if test "$MAKEINFO" != "no" && \
6859 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
6863 ## Makeinfo is unusual. For a released Emacs, the manuals are
6864 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6865 ## therefore in the category of "special tools" not normally required, which
6866 ## configure does not have to check for (eg autoconf itself).
6867 ## In a Bazaar checkout on the other hand, the manuals are not included.
6868 ## So makeinfo is a requirement to build from Bazaar, and configure
6869 ## should test for it as it does for any other build requirement.
6870 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6871 ## with pre-built manuals, from a Bazaar checkout.
6874 if test "$MAKEINFO" = "no"; then
6876 if test "x${with_makeinfo}" = "xno"; then
6878 elif test ! -e $srcdir/info
/emacs
; then
6879 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
6880 source tree does not seem to have pre-built manuals in the \`info' directory.
6881 Either install a suitable version of makeinfo, or re-run configure
6882 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6888 if test x
$GCC = xyes
; then
6889 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6890 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6892 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6893 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6897 late_LDFLAGS
=$LDFLAGS
6898 if test x
$GCC = xyes
; then
6899 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6901 LDFLAGS
="$LDFLAGS -znocombreloc"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6905 $as_echo_n "checking for -znocombreloc... " >&6; }
6906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6917 if ac_fn_c_try_link
"$LINENO"; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6919 $as_echo "yes" >&6; }
6921 LDFLAGS
=$late_LDFLAGS
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6925 rm -f core conftest.err conftest.
$ac_objext \
6926 conftest
$ac_exeext conftest.
$ac_ext
6929 # The value of CPP is a quoted variable reference, so we need to do this
6930 # to get its actual value...
6931 CPP
=`eval "echo $CPP"`
6934 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6936 your-opsys-here
) CANNOT_DUMP
=yes ;;
6939 test "$CANNOT_DUMP" = "yes" && \
6941 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6947 UNEXEC_OBJ
=unexelf.o
6949 # MSDOS uses unexcoff.o
6950 # MSWindows uses unexw32.o
6952 UNEXEC_OBJ
=unexaix.o
6958 UNEXEC_OBJ
=unexmacosx.o
6961 UNEXEC_OBJ
=unexhp9k800.o
6964 # Use the Solaris dldump() function, called from unexsol.c, to dump
6965 # emacs, instead of the generic ELF dump code found in unexelf.c.
6966 # The resulting binary has a complete symbol table, and is better
6967 # for debugging and other observability tools (debuggers, pstack, etc).
6969 # If you encounter a problem using dldump(), please consider sending
6970 # a message to the OpenSolaris tools-linking mailing list:
6971 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6973 # It is likely that dldump() works with older Solaris too, but this has
6974 # not been tested, so for now this change is for Solaris 10 or newer.
6975 UNEXEC_OBJ
=unexsol.o
6982 ## Let `ld' find image libs and similar things in /usr/local/lib.
6983 ## The system compiler, GCC, has apparently been modified to not
6984 ## look there, contrary to what a stock GCC would do.
6985 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6989 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6990 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6994 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6998 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6999 ## otherwise Emacs dumps core on elf systems.
7000 LD_SWITCH_SYSTEM
="-Z"
7005 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7007 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7008 ## which has not been defined yet. When this was handled with cpp,
7009 ## it was expanded to null when configure sourced the s/*.h file.
7010 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7011 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7012 ## (or somesuch), but because it is supposed to go at the _front_
7013 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7014 ## Compare with the gnu-linux case below, which added to the end
7015 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7016 ## LD_SWITCH_SYSTEM_TEMACS.
7019 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7020 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7025 if test "$machine" = "alpha"; then
7026 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7027 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7031 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7032 ## With ELF, make sure that all common symbols get allocated to in the
7033 ## data section. Otherwise, the dump of temacs may miss variables in
7034 ## the shared library that have been initialized. For example, with
7035 ## GNU libc, __malloc_initialized would normally be resolved to the
7036 ## shared library's .bss section, which is fatal.
7037 if test "x$GCC" = "xyes"; then
7038 C_SWITCH_MACHINE
="-fno-common"
7040 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7043 UNEXEC_OBJ
=unexalpha.o
7051 ## Some programs in src produce warnings saying certain subprograms
7052 ## are too complex and need a MAXMEM value greater than 2000 for
7053 ## additional optimization. --nils@exp-math.uni-essen.de
7054 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7055 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7056 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7057 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7063 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7064 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7066 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7068 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7070 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7072 ## Motif needs -lgen.
7073 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7078 ### Make sure subsequent tests use flags consistent with the build flags.
7080 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7081 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7083 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7086 # Check whether --enable-largefile was given.
7087 if test "${enable_largefile+set}" = set; then :
7088 enableval
=$enable_largefile;
7091 if test "$enable_largefile" != no
; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7094 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7095 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 ac_cv_sys_largefile_CC
=no
7099 if test "$GCC" != yes; then
7102 # IRIX 6.2 and later do not support large files by default,
7103 # so use the C compiler's -n32 option if that helps.
7104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #include <sys/types.h>
7107 /* Check that off_t can represent 2**63 - 1 correctly.
7108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7109 since some C++ compilers masquerading as C compilers
7110 incorrectly reject 9223372036854775807. */
7111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7113 && LARGE_OFF_T % 2147483647 == 1)
7123 if ac_fn_c_try_compile
"$LINENO"; then :
7126 rm -f core conftest.err conftest.
$ac_objext
7128 if ac_fn_c_try_compile
"$LINENO"; then :
7129 ac_cv_sys_largefile_CC
=' -n32'; break
7131 rm -f core conftest.err conftest.
$ac_objext
7135 rm -f conftest.
$ac_ext
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7139 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7140 if test "$ac_cv_sys_largefile_CC" != no
; then
7141 CC
=$CC$ac_cv_sys_largefile_CC
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7145 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7146 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7147 $as_echo_n "(cached) " >&6
7150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7153 /* Check that off_t can represent 2**63 - 1 correctly.
7154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7155 since some C++ compilers masquerading as C compilers
7156 incorrectly reject 9223372036854775807. */
7157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7159 && LARGE_OFF_T % 2147483647 == 1)
7169 if ac_fn_c_try_compile
"$LINENO"; then :
7170 ac_cv_sys_file_offset_bits
=no
; break
7172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #define _FILE_OFFSET_BITS 64
7176 #include <sys/types.h>
7177 /* Check that off_t can represent 2**63 - 1 correctly.
7178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7179 since some C++ compilers masquerading as C compilers
7180 incorrectly reject 9223372036854775807. */
7181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7183 && LARGE_OFF_T % 2147483647 == 1)
7193 if ac_fn_c_try_compile
"$LINENO"; then :
7194 ac_cv_sys_file_offset_bits
=64; break
7196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7197 ac_cv_sys_file_offset_bits
=unknown
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7202 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7203 case $ac_cv_sys_file_offset_bits in #(
7206 cat >>confdefs.h
<<_ACEOF
7207 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7212 if test $ac_cv_sys_file_offset_bits = unknown
; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7214 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7215 if test "${ac_cv_sys_large_files+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <sys/types.h>
7222 /* Check that off_t can represent 2**63 - 1 correctly.
7223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7224 since some C++ compilers masquerading as C compilers
7225 incorrectly reject 9223372036854775807. */
7226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7228 && LARGE_OFF_T % 2147483647 == 1)
7238 if ac_fn_c_try_compile
"$LINENO"; then :
7239 ac_cv_sys_large_files
=no
; break
7241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #define _LARGE_FILES 1
7245 #include <sys/types.h>
7246 /* Check that off_t can represent 2**63 - 1 correctly.
7247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7248 since some C++ compilers masquerading as C compilers
7249 incorrectly reject 9223372036854775807. */
7250 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7252 && LARGE_OFF_T % 2147483647 == 1)
7262 if ac_fn_c_try_compile
"$LINENO"; then :
7263 ac_cv_sys_large_files
=1; break
7265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7266 ac_cv_sys_large_files
=unknown
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7271 $as_echo "$ac_cv_sys_large_files" >&6; }
7272 case $ac_cv_sys_large_files in #(
7275 cat >>confdefs.h
<<_ACEOF
7276 #define _LARGE_FILES $ac_cv_sys_large_files
7286 ## If user specified a crt-dir, use that unconditionally.
7287 if test "X$CRT_DIR" = "X"; then
7289 case "$canonical" in
7290 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7291 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7292 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7293 ## For anything else (eg /usr/lib32), it is up the user to specify
7294 ## the location (bug#5655).
7295 ## Test for crtn.o, not just the directory, because sometimes the
7296 ## directory exists but does not have the relevant files (bug#1287).
7297 ## FIXME better to test for binary compatibility somehow.
7298 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7301 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7305 hpux10-20
) CRT_DIR
=/lib
;;
7308 ## Default is /usr/lib.
7309 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7313 ## Some platforms don't use any of these files, so it is not
7314 ## appropriate to put this test outside the if block.
7315 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7316 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7329 START_FILES
='pre-crt0.o'
7332 ## Adding -lm confuses the dynamic linker, so omit it.
7334 START_FILES
='pre-crt0.o'
7337 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7338 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7340 gnu-linux | gnu-kfreebsd
)
7341 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7342 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7344 hpux10-20 | hpux11
)
7346 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7349 if test -f $CRT_DIR/crti.o
; then
7350 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7351 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7353 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7354 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7365 if test "${with_sound}" != "no"; then
7366 # Sound support for GNU/Linux and the free BSDs.
7367 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7369 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7371 eval as_val
=\$
$as_ac_Header
7372 if test "x$as_val" = x
""yes; then :
7373 cat >>confdefs.h
<<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 have_sound_header
=yes
7381 # Emulation library used on NetBSD.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7383 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7384 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7387 ac_check_lib_save_LIBS
=$LIBS
7388 LIBS
="-lossaudio $LIBS"
7389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7392 /* Override any GCC internal prototype to avoid an error.
7393 Use char because int might match the return type of a GCC
7394 builtin and then its argument prototype would still apply. */
7402 return _oss_ioctl ();
7407 if ac_fn_c_try_link
"$LINENO"; then :
7408 ac_cv_lib_ossaudio__oss_ioctl
=yes
7410 ac_cv_lib_ossaudio__oss_ioctl
=no
7412 rm -f core conftest.err conftest.
$ac_objext \
7413 conftest
$ac_exeext conftest.
$ac_ext
7414 LIBS
=$ac_check_lib_save_LIBS
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7417 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7418 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7427 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7431 # Extract the first word of "pkg-config", so it can be a program name with args.
7432 set dummy pkg-config
; ac_word
=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7440 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir
=.
7448 for ac_exec_ext
in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7462 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7463 if test -n "$PKG_CONFIG"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7465 $as_echo "$PKG_CONFIG" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7473 if test "$PKG_CONFIG" = "no" ; then
7476 PKG_CONFIG_MIN_VERSION
=0.9.0
7477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7479 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7481 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7483 $as_echo "yes" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7487 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7488 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7490 $as_echo "$ALSA_CFLAGS" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7493 $as_echo_n "checking ALSA_LIBS... " >&6; }
7494 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7496 $as_echo "$ALSA_LIBS" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 ## If we have a custom action on failure, don't print errors, but
7503 ## do set a variable so people can do so.
7504 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7516 if test $succeeded = yes; then
7522 if test $HAVE_ALSA = yes; then
7523 SAVE_CFLAGS
="$CFLAGS"
7524 SAVE_LDFLAGS
="$LDFLAGS"
7525 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7526 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <asoundlib.h>
7533 snd_lib_error_set_handler (0);
7538 if ac_fn_c_try_compile
"$LINENO"; then :
7539 emacs_alsa_normal
=yes
7541 emacs_alsa_normal
=no
7543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7544 if test "$emacs_alsa_normal" != yes; then
7545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <alsa/asoundlib.h>
7551 snd_lib_error_set_handler (0);
7556 if ac_fn_c_try_compile
"$LINENO"; then :
7557 emacs_alsa_subdir
=yes
7559 emacs_alsa_subdir
=no
7561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7562 if test "$emacs_alsa_subdir" != yes; then
7563 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7565 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7568 CFLAGS
="$SAVE_CFLAGS"
7569 LDFLAGS
="$SAVE_LDFLAGS"
7570 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7571 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7573 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7577 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7579 gnu-linux|freebsd|netbsd
)
7581 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7590 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7591 linux
/version.h sys
/systeminfo.h limits.h \
7592 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7593 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7594 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7596 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7598 eval as_val
=\$
$as_ac_Header
7599 if test "x$as_val" = x
""yes; then :
7600 cat >>confdefs.h
<<_ACEOF
7601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7610 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 #include <sys/personality.h>
7617 personality (PER_LINUX32)
7622 if ac_fn_c_try_compile
"$LINENO"; then :
7623 emacs_cv_personality_linux32
=yes
7625 emacs_cv_personality_linux32
=no
7627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7629 $as_echo "$emacs_cv_personality_linux32" >&6; }
7631 if test $emacs_cv_personality_linux32 = yes; then
7633 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7637 for ac_header
in term.h
7639 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7640 if test "x$ac_cv_header_term_h" = x
""yes; then :
7641 cat >>confdefs.h
<<_ACEOF
7642 #define HAVE_TERM_H 1
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650 $as_echo_n "checking for ANSI C header files... " >&6; }
7651 if test "${ac_cv_header_stdc+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7669 if ac_fn_c_try_compile
"$LINENO"; then :
7670 ac_cv_header_stdc
=yes
7672 ac_cv_header_stdc
=no
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7676 if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev
/null
2>&1; then :
7687 ac_cv_header_stdc
=no
7693 if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev
/null
2>&1; then :
7704 ac_cv_header_stdc
=no
7710 if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7719 #if ((' ' & 0x0FF) == 0x020)
7720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 # define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7742 if ac_fn_c_try_run
"$LINENO"; then :
7745 ac_cv_header_stdc
=no
7747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754 $as_echo "$ac_cv_header_stdc" >&6; }
7755 if test $ac_cv_header_stdc = yes; then
7757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7763 if test "${ac_cv_header_time+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <sys/types.h>
7769 #include <sys/time.h>
7775 if ((struct tm *) 0)
7781 if ac_fn_c_try_compile
"$LINENO"; then :
7782 ac_cv_header_time
=yes
7784 ac_cv_header_time
=no
7786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7789 $as_echo "$ac_cv_header_time" >&6; }
7790 if test $ac_cv_header_time = yes; then
7792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7796 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7797 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7803 cat >>confdefs.h
<<_ACEOF
7804 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7807 if test $ac_cv_have_decl_sys_siglist != yes; then
7808 # For Tru64, at least:
7809 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7810 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7816 cat >>confdefs.h
<<_ACEOF
7817 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7820 if test $ac_cv_have_decl___sys_siglist = yes; then
7822 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7827 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7828 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <sys/types.h>
7834 #include <sys/wait.h>
7836 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7852 if ac_fn_c_try_compile
"$LINENO"; then :
7853 ac_cv_header_sys_wait_h
=yes
7855 ac_cv_header_sys_wait_h
=no
7857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7860 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7861 if test $ac_cv_header_sys_wait_h = yes; then
7863 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7869 $as_echo_n "checking for struct utimbuf... " >&6; }
7870 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 #ifdef TIME_WITH_SYS_TIME
7876 #include <sys/time.h>
7879 #ifdef HAVE_SYS_TIME_H
7880 #include <sys/time.h>
7891 static struct utimbuf x; x.actime = x.modtime;
7896 if ac_fn_c_try_compile
"$LINENO"; then :
7897 emacs_cv_struct_utimbuf
=yes
7899 emacs_cv_struct_utimbuf
=no
7901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7904 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7905 if test $emacs_cv_struct_utimbuf = yes; then
7907 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7912 $as_echo_n "checking for speed_t... " >&6; }
7913 if test "${emacs_cv_speed_t+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 #include <termios.h>
7927 if ac_fn_c_try_compile
"$LINENO"; then :
7928 emacs_cv_speed_t
=yes
7932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7935 $as_echo "$emacs_cv_speed_t" >&6; }
7936 if test $emacs_cv_speed_t = yes; then
7938 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7943 $as_echo_n "checking for struct timeval... " >&6; }
7944 if test "${emacs_cv_struct_timeval+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 #ifdef TIME_WITH_SYS_TIME
7950 #include <sys/time.h>
7953 #ifdef HAVE_SYS_TIME_H
7954 #include <sys/time.h>
7962 static struct timeval x; x.tv_sec = x.tv_usec;
7967 if ac_fn_c_try_compile
"$LINENO"; then :
7968 emacs_cv_struct_timeval
=yes
7970 emacs_cv_struct_timeval
=no
7972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7975 $as_echo "$emacs_cv_struct_timeval" >&6; }
7976 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7977 if test $emacs_cv_struct_timeval = yes; then
7979 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7984 $as_echo_n "checking for struct exception... " >&6; }
7985 if test "${emacs_cv_struct_exception+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7994 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7999 if ac_fn_c_try_compile
"$LINENO"; then :
8000 emacs_cv_struct_exception
=yes
8002 emacs_cv_struct_exception
=no
8004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8007 $as_echo "$emacs_cv_struct_exception" >&6; }
8008 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8009 if test $emacs_cv_struct_exception != yes; then
8011 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8015 for ac_header
in net
/if.h
8017 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8018 #if HAVE_SYS_SOCKET_H
8019 #include <sys/socket.h>
8022 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8023 cat >>confdefs.h
<<_ACEOF
8024 #define HAVE_NET_IF_H 1
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8033 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8034 if test "${ac_cv_struct_tm+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8046 int *p = &tm.tm_sec;
8052 if ac_fn_c_try_compile
"$LINENO"; then :
8053 ac_cv_struct_tm
=time.h
8055 ac_cv_struct_tm
=sys
/time.h
8057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8060 $as_echo "$ac_cv_struct_tm" >&6; }
8061 if test $ac_cv_struct_tm = sys
/time.h
; then
8063 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8067 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8068 #include <$ac_cv_struct_tm>
8071 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8073 cat >>confdefs.h
<<_ACEOF
8074 #define HAVE_STRUCT_TM_TM_ZONE 1
8080 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8082 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8085 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8087 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8093 cat >>confdefs.h
<<_ACEOF
8094 #define HAVE_DECL_TZNAME $ac_have_decl
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8098 $as_echo_n "checking for tzname... " >&6; }
8099 if test "${ac_cv_var_tzname+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8105 #if !HAVE_DECL_TZNAME
8106 extern char *tzname[];
8112 return tzname[0][0];
8117 if ac_fn_c_try_link
"$LINENO"; then :
8118 ac_cv_var_tzname
=yes
8122 rm -f core conftest.err conftest.
$ac_objext \
8123 conftest
$ac_exeext conftest.
$ac_ext
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8126 $as_echo "$ac_cv_var_tzname" >&6; }
8127 if test $ac_cv_var_tzname = yes; then
8129 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8134 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8136 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8138 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8142 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8143 #if HAVE_SYS_SOCKET_H
8144 #include <sys/socket.h>
8150 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8152 cat >>confdefs.h
<<_ACEOF
8153 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8158 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8159 #if HAVE_SYS_SOCKET_H
8160 #include <sys/socket.h>
8166 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8168 cat >>confdefs.h
<<_ACEOF
8169 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8174 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8182 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8184 cat >>confdefs.h
<<_ACEOF
8185 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8190 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8191 #if HAVE_SYS_SOCKET_H
8192 #include <sys/socket.h>
8198 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8200 cat >>confdefs.h
<<_ACEOF
8201 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8206 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8207 #if HAVE_SYS_SOCKET_H
8208 #include <sys/socket.h>
8214 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8216 cat >>confdefs.h
<<_ACEOF
8217 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8226 $as_echo_n "checking for function prototypes... " >&6; }
8227 if test "$ac_cv_prog_cc_c89" != no
; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229 $as_echo "yes" >&6; }
8231 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8234 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8242 $as_echo_n "checking for working volatile... " >&6; }
8243 if test "${ac_cv_c_volatile+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8254 int * volatile y = (int *) 0;
8260 if ac_fn_c_try_compile
"$LINENO"; then :
8261 ac_cv_c_volatile
=yes
8265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8268 $as_echo "$ac_cv_c_volatile" >&6; }
8269 if test $ac_cv_c_volatile = no
; then
8271 $as_echo "#define volatile /**/" >>confdefs.h
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8276 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8277 if test "${ac_cv_c_const+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8286 /* FIXME: Include the comments suggested by Paul. */
8288 /* Ultrix mips cc rejects this. */
8289 typedef int charset[2];
8291 /* SunOS 4.1.1 cc rejects this. */
8292 char const *const *pcpcc;
8294 /* NEC SVR4.0.2 mips cc rejects this. */
8295 struct point {int x, y;};
8296 static struct point const zero = {0,0};
8297 /* AIX XL C 1.02.0.0 rejects this.
8298 It does not let you subtract one const X* pointer from another in
8299 an arm of an if-expression whose if-part is not a constant
8301 const char *g = "string";
8302 pcpcc = &g + (g ? g-g : 0);
8303 /* HPUX 7.0 cc rejects these. */
8305 ppc = (char**) pcpcc;
8306 pcpcc = (char const *const *) ppc;
8307 { /* SCO 3.2v4 cc rejects this. */
8309 char const *s = 0 ? (char *) 0 : (char const *) 0;
8314 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8316 const int *foo = &x[0];
8319 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8320 typedef const int *iptr;
8324 { /* AIX XL C 1.02.0.0 rejects this saying
8325 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8326 struct s { int j; const int *ap[3]; };
8327 struct s *b; b->j = 5;
8329 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8333 return !cs[0] && !zero.x;
8340 if ac_fn_c_try_compile
"$LINENO"; then :
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8348 $as_echo "$ac_cv_c_const" >&6; }
8349 if test $ac_cv_c_const = no
; then
8351 $as_echo "#define const /**/" >>confdefs.h
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8356 $as_echo_n "checking for void * support... " >&6; }
8357 if test "${emacs_cv_void_star+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8371 if ac_fn_c_try_compile
"$LINENO"; then :
8372 emacs_cv_void_star
=yes
8374 emacs_cv_void_star
=no
8376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8379 $as_echo "$emacs_cv_void_star" >&6; }
8380 if test $emacs_cv_void_star = yes; then
8381 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8384 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8390 if test "${ac_cv_c_bigendian+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 ac_cv_c_bigendian
=unknown
8394 # See if we're dealing with a universal compiler.
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifndef __APPLE_CC__
8398 not a universal capable compiler
8403 if ac_fn_c_try_compile
"$LINENO"; then :
8405 # Check for potential -arch flags. It is not universal unless
8406 # there are at least two -arch flags with different values.
8409 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8410 if test -n "$ac_prev"; then
8412 i?
86 | x86_64 | ppc | ppc64
)
8413 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8416 ac_cv_c_bigendian
=universal
8422 elif test "x$ac_word" = "x-arch"; then
8427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8428 if test $ac_cv_c_bigendian = unknown
; then
8429 # See if sys/param.h defines the BYTE_ORDER macro.
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8448 if ac_fn_c_try_compile
"$LINENO"; then :
8449 # It does; now see whether it defined to BIG_ENDIAN or not.
8450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <sys/param.h>
8458 #if BYTE_ORDER != BIG_ENDIAN
8466 if ac_fn_c_try_compile
"$LINENO"; then :
8467 ac_cv_c_bigendian
=yes
8469 ac_cv_c_bigendian
=no
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 if test $ac_cv_c_bigendian = unknown
; then
8476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8492 if ac_fn_c_try_compile
"$LINENO"; then :
8493 # It does; now see whether it defined to _BIG_ENDIAN or not.
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8509 if ac_fn_c_try_compile
"$LINENO"; then :
8510 ac_cv_c_bigendian
=yes
8512 ac_cv_c_bigendian
=no
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 if test $ac_cv_c_bigendian = unknown
; then
8519 # Compile a test program.
8520 if test "$cross_compiling" = yes; then :
8521 # Try to guess by grepping values from an object file.
8522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 short int ascii_mm[] =
8525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8526 short int ascii_ii[] =
8527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8528 int use_ascii (int i) {
8529 return ascii_mm[i] + ascii_ii[i];
8531 short int ebcdic_ii[] =
8532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short int ebcdic_mm[] =
8534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8535 int use_ebcdic (int i) {
8536 return ebcdic_mm[i] + ebcdic_ii[i];
8543 return use_ascii (foo) == use_ebcdic (foo);
8548 if ac_fn_c_try_compile
"$LINENO"; then :
8549 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8550 ac_cv_c_bigendian
=yes
8552 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8553 if test "$ac_cv_c_bigendian" = unknown
; then
8554 ac_cv_c_bigendian
=no
8556 # finding both strings is unlikely to happen, but who knows?
8557 ac_cv_c_bigendian
=unknown
8561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 $ac_includes_default
8570 /* Are we little or big endian? From Harbison&Steele. */
8574 char c[sizeof (long int)];
8577 return u.c[sizeof (long int) - 1] == 1;
8583 if ac_fn_c_try_run
"$LINENO"; then :
8584 ac_cv_c_bigendian
=no
8586 ac_cv_c_bigendian
=yes
8588 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8589 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8595 $as_echo "$ac_cv_c_bigendian" >&6; }
8596 case $ac_cv_c_bigendian in #(
8598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8608 as_fn_error
"unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8614 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8615 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 char __attribute__ ((__aligned__ (1 << 3))) c;
8629 if ac_fn_c_try_compile
"$LINENO"; then :
8630 emacs_cv_attribute_aligned
=yes
8632 emacs_cv_attribute_aligned
=no
8634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8637 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8638 if test $emacs_cv_attribute_aligned = yes; then
8640 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8645 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8647 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8648 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8649 $as_echo_n "(cached) " >&6
8651 cat >conftest.
make <<\_ACEOF
8654 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8659 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8661 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8665 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 SET_MAKE
="MAKE=${MAKE-make}"
8679 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8681 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8683 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8684 if test "x$testval" != x
; then
8687 ac_enable_autodepend
=no
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8690 $as_echo "$HAVE_GNU_MAKE" >&6; }
8691 if test $HAVE_GNU_MAKE = yes; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8693 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8694 SAVE_CFLAGS
="$CFLAGS"
8695 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8707 if ac_fn_c_try_compile
"$LINENO"; then :
8710 ac_enable_autodepend
=no
8712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 CFLAGS
="$SAVE_CFLAGS"
8714 test -f deps.d || ac_enable_autodepend
=no
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8717 $as_echo "$ac_enable_autodepend" >&6; }
8719 if test $ac_enable_autodepend = yes; then
8720 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8721 ## In parallel builds, another make might create depdir between
8722 ## the first test and mkdir, so stick another test on the end.
8723 ## Or use install-sh -d? mkdir -p is not portable.
8724 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8725 deps_frag
=autodeps.mk
8728 deps_frag
=$srcdir/src
/$deps_frag
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8735 $as_echo_n "checking for long file names... " >&6; }
8736 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8739 ac_cv_sys_long_file_names
=yes
8740 # Test for long file names in all the places we know might matter:
8741 # . the current directory, where building will happen
8742 # $prefix/lib where we will be installing things
8743 # $exec_prefix/lib likewise
8744 # $TMPDIR if set, where it might want to write temporary files
8745 # /tmp where it might want to write temporary files
8748 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8749 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8750 # in the usual case where exec_prefix is '${prefix}'.
8752 . |
/* | ?
:[\\/]*) ;; #(
8755 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8756 ac_xdir
=$ac_dir/cf$$
8757 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8758 ac_tf1
=$ac_xdir/conftest9012345
8759 ac_tf2
=$ac_xdir/conftest9012346
8760 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8761 ac_cv_sys_long_file_names
=no
8762 rm -f -r "$ac_xdir" 2>/dev
/null
8763 test $ac_cv_sys_long_file_names = no
&& break
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8767 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8768 if test $ac_cv_sys_long_file_names = yes; then
8770 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8775 #### Choose a window system.
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8778 $as_echo_n "checking for X... " >&6; }
8781 # Check whether --with-x was given.
8782 if test "${with_x+set}" = set; then :
8786 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8787 if test "x$with_x" = xno
; then
8788 # The user explicitly disabled X.
8791 case $x_includes,$x_libraries in #(
8792 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
8793 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 # One or both of the vars are not set, and there is no cached value.
8797 ac_x_includes
=no ac_x_libraries
=no
8798 rm -f -r conftest.dir
8799 if mkdir conftest.dir
; then
8801 cat >Imakefile
<<'_ACEOF'
8803 @echo incroot='${INCROOT}'
8805 @echo usrlibdir='${USRLIBDIR}'
8807 @echo libdir='${LIBDIR}'
8809 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8811 for ac_var
in incroot usrlibdir libdir
; do
8812 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8814 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8815 for ac_extension
in a so sl dylib la dll
; do
8816 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8817 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8818 ac_im_usrlibdir
=$ac_im_libdir; break
8821 # Screen out bogus values from the imake configuration. They are
8822 # bogus both because they are the default anyway, and because
8823 # using them would break gcc on systems where it needs fixed includes.
8824 case $ac_im_incroot in
8825 /usr
/include
) ac_x_includes
= ;;
8826 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8828 case $ac_im_usrlibdir in
8829 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8830 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8834 rm -f -r conftest.dir
8837 # Standard set of common directories for X headers.
8838 # Check X11 before X11Rn because it is often a symlink to the current release.
8852 /usr/local/X11/include
8853 /usr/local/X11R7/include
8854 /usr/local/X11R6/include
8855 /usr/local/X11R5/include
8856 /usr/local/X11R4/include
8858 /usr/local/include/X11
8859 /usr/local/include/X11R7
8860 /usr/local/include/X11R6
8861 /usr/local/include/X11R5
8862 /usr/local/include/X11R4
8866 /usr/XFree86/include/X11
8870 /usr/unsupported/include
8872 /usr/local/x11r5/include
8873 /usr/lpp/Xamples/include
8875 /usr/openwin/include
8876 /usr/openwin/share/include'
8878 if test "$ac_x_includes" = no
; then
8879 # Guess where to find include files, by looking for Xlib.h.
8880 # First, try using that file with no special directory specified.
8881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #include <X11/Xlib.h>
8885 if ac_fn_c_try_cpp
"$LINENO"; then :
8886 # We can compile using X headers with no special include directory.
8889 for ac_dir
in $ac_x_header_dirs; do
8890 if test -r "$ac_dir/X11/Xlib.h"; then
8891 ac_x_includes
=$ac_dir
8896 rm -f conftest.err conftest.
$ac_ext
8897 fi # $ac_x_includes = no
8899 if test "$ac_x_libraries" = no
; then
8900 # Check for the libraries.
8901 # See if we find them without any special options.
8902 # Don't add to $LIBS permanently.
8905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <X11/Xlib.h>
8916 if ac_fn_c_try_link
"$LINENO"; then :
8918 # We can link X programs with no special library path.
8922 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8924 # Don't even attempt the hair of trying to link an X program!
8925 for ac_extension
in a so sl dylib la dll
; do
8926 if test -r "$ac_dir/libX11.$ac_extension"; then
8927 ac_x_libraries
=$ac_dir
8933 rm -f core conftest.err conftest.
$ac_objext \
8934 conftest
$ac_exeext conftest.
$ac_ext
8935 fi # $ac_x_libraries = no
8937 case $ac_x_includes,$ac_x_libraries in #(
8939 # Didn't find X, or a directory has "'" in its name.
8940 ac_cv_have_x
="have_x=no";; #(
8942 # Record where we found X for the cache.
8943 ac_cv_have_x
="have_x=yes\
8944 ac_x_includes='$ac_x_includes'\
8945 ac_x_libraries='$ac_x_libraries'"
8951 eval "$ac_cv_have_x"
8954 if test "$have_x" != yes; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8956 $as_echo "$have_x" >&6; }
8959 # If each of the values was on the command line, it overrides each guess.
8960 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8961 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8962 # Update the cache value to reflect the command line values.
8963 ac_cv_have_x
="have_x=yes\
8964 ac_x_includes='$x_includes'\
8965 ac_x_libraries='$x_libraries'"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8967 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8970 if test "$no_x" = yes; then
8976 ## Workaround for bug in autoconf <= 2.62.
8977 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8978 ## No need to do anything special for these standard directories.
8979 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8981 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8985 LD_SWITCH_X_SITE_AUX
=
8986 LD_SWITCH_X_SITE_AUX_RPATH
=
8987 if test "${x_libraries}" != NONE
; then
8988 if test -n "${x_libraries}"; then
8989 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8990 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8991 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8993 x_default_search_path
=""
8994 x_search_path
=${x_libraries}
8995 if test -z "${x_search_path}"; then
8996 x_search_path
=/usr
/lib
8998 for x_library
in `echo ${x_search_path}: | \
8999 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9001 ${x_library}/X11/%L/%T/%N%C%S:\
9002 ${x_library}/X11/%l/%T/%N%C%S:\
9003 ${x_library}/X11/%T/%N%C%S:\
9004 ${x_library}/X11/%L/%T/%N%S:\
9005 ${x_library}/X11/%l/%T/%N%S:\
9006 ${x_library}/X11/%T/%N%S"
9007 if test x
"${x_default_search_path}" = x
; then
9008 x_default_search_path
=${x_search_path}
9010 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9017 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9018 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9021 if test x
"${x_includes}" = x
; then
9022 bitmapdir
=/usr
/include
/X11
/bitmaps
9024 # accumulate include directories that have X11 bitmap subdirectories
9026 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9027 if test -d "${bmd}/X11/bitmaps"; then
9028 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9030 if test -d "${bmd}/bitmaps"; then
9031 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9034 if test ${bmd_acc} != "dummyval"; then
9035 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9042 tmp_CPPFLAGS
="$CPPFLAGS"
9043 tmp_CFLAGS
="$CFLAGS"
9044 CPPFLAGS
="$CPPFLAGS -x objective-c"
9045 CFLAGS
="$CFLAGS -x objective-c"
9046 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9047 if test "${with_ns}" != no
; then
9048 if test "${opsys}" = darwin
; then
9050 ns_appdir
=`pwd`/nextstep
/Emacs.app
9051 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9052 ns_appresdir
=${ns_appdir}/Contents
/Resources
9053 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9054 elif test -f $GNUSTEP_CONFIG_FILE; then
9056 ns_appdir
=`pwd`/nextstep
/Emacs.app
9057 ns_appbindir
=${ns_appdir}/
9058 ns_appresdir
=${ns_appdir}/Resources
9059 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9060 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9061 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9062 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9063 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9064 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9065 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9066 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9067 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9068 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9069 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9070 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9075 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9076 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9079 as_fn_error
"\`--with-ns' was specified, but the include
9080 files are missing or cannot be compiled." "$LINENO" 5
9084 NS_HAVE_NSINTEGER
=yes
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <Foundation/NSObjCRuntime.h>
9096 if ac_fn_c_try_compile
"$LINENO"; then :
9097 ns_have_nsinteger
=yes
9099 ns_have_nsinteger
=no
9101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9102 if test $ns_have_nsinteger = no
; then
9103 NS_HAVE_NSINTEGER
=no
9112 if test "${HAVE_NS}" = yes; then
9113 window_system
=nextstep
9115 # set up packaging dirs
9116 exec_prefix
=${ns_appbindir}
9117 libexecdir
=${ns_appbindir}/libexec
9118 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9119 prefix
=${ns_appresdir}
9121 ns_frag
=$srcdir/src
/ns.mk
9122 NS_OBJ
="fontset.o fringe.o image.o"
9123 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9124 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9126 CFLAGS
="$tmp_CFLAGS"
9127 CPPFLAGS
="$tmp_CPPFLAGS"
9134 case "${window_system}" in
9138 case "${with_x_toolkit}" in
9139 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9140 motif
) USE_X_TOOLKIT
=MOTIF
;;
9142 USE_X_TOOLKIT
=none
;;
9143 gtk3
) with_gtk3
=yes
9144 USE_X_TOOLKIT
=none
;;
9145 no
) USE_X_TOOLKIT
=none
;;
9146 * ) USE_X_TOOLKIT
=maybe
;;
9156 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9157 # Extract the first word of "X", so it can be a program name with args.
9158 set dummy X
; ac_word
=$2
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 if test -n "$HAVE_XSERVER"; then
9165 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9171 test -z "$as_dir" && as_dir
=.
9172 for ac_exec_ext
in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_prog_HAVE_XSERVER
="true"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9185 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9186 if test -n "$HAVE_XSERVER"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9188 $as_echo "$HAVE_XSERVER" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9195 if test "$HAVE_XSERVER" = true ||
9196 test -n "$DISPLAY" ||
9197 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9198 as_fn_error
"You seem to be running X, but no X development libraries
9199 were found. You should install the relevant development files for X
9200 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9201 sure you have development files for image handling, i.e.
9202 tiff, gif, jpeg, png and xpm.
9203 If you are sure you want Emacs compiled without X window support, pass
9205 to configure." "$LINENO" 5
9209 ### If we're using X11, we should use the X menu package.
9212 yes ) HAVE_MENUS
=yes ;;
9215 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9216 # Assume not, until told otherwise.
9219 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9220 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9226 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9227 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9234 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9235 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 extern void (* __after_morecore_hook)();
9244 __after_morecore_hook = 0
9249 if ac_fn_c_try_link
"$LINENO"; then :
9250 emacs_cv_var___after_morecore_hook
=yes
9252 emacs_cv_var___after_morecore_hook
=no
9254 rm -f core conftest.err conftest.
$ac_objext \
9255 conftest
$ac_exeext conftest.
$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9258 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9259 if test $emacs_cv_var___after_morecore_hook = no
; then
9266 ## darwin ld insists on the use of malloc routines in the System framework.
9267 darwin|sol2-10
) system_malloc
=yes ;;
9270 if test "${system_malloc}" = "yes"; then
9272 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9276 (The GNU allocators don't work with this system configuration.)"
9280 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9281 VMLIMIT_OBJ
=vm-limit.o
9286 if test "$doug_lea_malloc" = "yes" ; then
9287 if test "$GNU_MALLOC" = yes ; then
9289 (Using Doug Lea's new malloc from the GNU C Library.)"
9292 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9295 ## Use mmap directly for allocating larger buffers.
9296 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9297 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9298 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9300 gnu
*) REL_ALLOC
=no
;;
9304 if test x
"${REL_ALLOC}" = x
; then
9305 REL_ALLOC
=${GNU_MALLOC}
9308 use_mmap_for_buffers
=no
9310 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9316 for ac_header
in $ac_header_list
9318 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9319 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9321 eval as_val
=\$
$as_ac_Header
9322 if test "x$as_val" = x
""yes; then :
9323 cat >>confdefs.h
<<_ACEOF
9324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338 for ac_func
in getpagesize
9340 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9341 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9342 cat >>confdefs.h
<<_ACEOF
9343 #define HAVE_GETPAGESIZE 1
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9350 $as_echo_n "checking for working mmap... " >&6; }
9351 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9354 if test "$cross_compiling" = yes; then :
9355 ac_cv_func_mmap_fixed_mapped
=no
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 $ac_includes_default
9360 /* malloc might have been renamed as rpl_malloc. */
9363 /* Thanks to Mike Haertel and Jim Avera for this test.
9364 Here is a matrix of mmap possibilities:
9365 mmap private not fixed
9366 mmap private fixed at somewhere currently unmapped
9367 mmap private fixed at somewhere already mapped
9368 mmap shared not fixed
9369 mmap shared fixed at somewhere currently unmapped
9370 mmap shared fixed at somewhere already mapped
9371 For private mappings, we should verify that changes cannot be read()
9372 back from the file, nor mmap's back from the file at a different
9373 address. (There have been systems where private was not correctly
9374 implemented like the infamous i386 svr4.0, and systems where the
9375 VM page cache was not coherent with the file system buffer cache
9376 like early versions of FreeBSD and possibly contemporary NetBSD.)
9377 For shared mappings, we should conversely verify that changes get
9378 propagated back to all the places they're supposed to be.
9380 Grep wants private fixed already mapped.
9381 The main things grep needs to know about mmap are:
9382 * does it exist and is it safe to write into the mmap'd area
9383 * how to use it (BSD variants) */
9386 #include <sys/mman.h>
9388 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9392 /* This mess was copied from the GNU getpagesize.h. */
9393 #ifndef HAVE_GETPAGESIZE
9394 # ifdef _SC_PAGESIZE
9395 # define getpagesize() sysconf(_SC_PAGESIZE)
9396 # else /* no _SC_PAGESIZE */
9397 # ifdef HAVE_SYS_PARAM_H
9398 # include <sys/param.h>
9399 # ifdef EXEC_PAGESIZE
9400 # define getpagesize() EXEC_PAGESIZE
9401 # else /* no EXEC_PAGESIZE */
9403 # define getpagesize() NBPG * CLSIZE
9406 # endif /* no CLSIZE */
9407 # else /* no NBPG */
9409 # define getpagesize() NBPC
9410 # else /* no NBPC */
9412 # define getpagesize() PAGESIZE
9413 # endif /* PAGESIZE */
9414 # endif /* no NBPC */
9415 # endif /* no NBPG */
9416 # endif /* no EXEC_PAGESIZE */
9417 # else /* no HAVE_SYS_PARAM_H */
9418 # define getpagesize() 8192 /* punt totally */
9419 # endif /* no HAVE_SYS_PARAM_H */
9420 # endif /* no _SC_PAGESIZE */
9422 #endif /* no HAVE_GETPAGESIZE */
9427 char *data, *data2, *data3;
9432 pagesize = getpagesize ();
9434 /* First, make a file with some known garbage in it. */
9435 data = (char *) malloc (pagesize);
9438 for (i = 0; i < pagesize; ++i)
9439 *(data + i) = rand ();
9441 fd = creat ("conftest.mmap", 0600);
9444 if (write (fd, data, pagesize) != pagesize)
9448 /* Next, check that the tail of a page is zero-filled. File must have
9449 non-zero length, otherwise we risk SIGBUS for entire page. */
9450 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9454 if (write (fd2, cdata2, 1) != 1)
9456 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9457 if (data2 == MAP_FAILED)
9459 for (i = 0; i < pagesize; ++i)
9463 if (munmap (data2, pagesize))
9466 /* Next, try to mmap the file at a fixed address which already has
9467 something else allocated at it. If we can, also make sure that
9468 we see the same garbage. */
9469 fd = open ("conftest.mmap", O_RDWR);
9472 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9473 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9475 for (i = 0; i < pagesize; ++i)
9476 if (*(data + i) != *(data2 + i))
9479 /* Finally, make sure that changes to the mapped area do not
9480 percolate back to the file as seen by read(). (This is a bug on
9481 some variants of i386 svr4.0.) */
9482 for (i = 0; i < pagesize; ++i)
9483 *(data2 + i) = *(data2 + i) + 1;
9484 data3 = (char *) malloc (pagesize);
9487 if (read (fd, data3, pagesize) != pagesize)
9489 for (i = 0; i < pagesize; ++i)
9490 if (*(data + i) != *(data3 + i))
9496 if ac_fn_c_try_run
"$LINENO"; then :
9497 ac_cv_func_mmap_fixed_mapped
=yes
9499 ac_cv_func_mmap_fixed_mapped
=no
9501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9502 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9507 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9508 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9510 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9513 rm -f conftest.mmap conftest.txt
9515 if test $use_mmap_for_buffers = yes; then
9517 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9522 LIBS
="$LIBS_SYSTEM $LIBS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9525 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9526 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9529 ac_check_lib_save_LIBS
=$LIBS
9531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9544 return dnet_ntoa ();
9549 if ac_fn_c_try_link
"$LINENO"; then :
9550 ac_cv_lib_dnet_dnet_ntoa
=yes
9552 ac_cv_lib_dnet_dnet_ntoa
=no
9554 rm -f core conftest.err conftest.
$ac_objext \
9555 conftest
$ac_exeext conftest.
$ac_ext
9556 LIBS
=$ac_check_lib_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9559 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9560 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9561 cat >>confdefs.h
<<_ACEOF
9562 #define HAVE_LIBDNET 1
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9571 $as_echo_n "checking for main in -lXbsd... " >&6; }
9572 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9575 ac_check_lib_save_LIBS
=$LIBS
9577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9589 if ac_fn_c_try_link
"$LINENO"; then :
9590 ac_cv_lib_Xbsd_main
=yes
9592 ac_cv_lib_Xbsd_main
=no
9594 rm -f core conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9596 LIBS
=$ac_check_lib_save_LIBS
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9599 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9600 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9601 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9606 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9607 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9608 $as_echo_n "(cached) " >&6
9610 ac_check_lib_save_LIBS
=$LIBS
9611 LIBS
="-lpthreads $LIBS"
9612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9630 if ac_fn_c_try_link
"$LINENO"; then :
9631 ac_cv_lib_pthreads_cma_open
=yes
9633 ac_cv_lib_pthreads_cma_open
=no
9635 rm -f core conftest.err conftest.
$ac_objext \
9636 conftest
$ac_exeext conftest.
$ac_ext
9637 LIBS
=$ac_check_lib_save_LIBS
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9640 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9641 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9642 cat >>confdefs.h
<<_ACEOF
9643 #define HAVE_LIBPTHREADS 1
9646 LIBS
="-lpthreads $LIBS"
9651 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9652 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9653 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9654 ## added to LIBS in configure would never contain the pthreads part,
9655 ## but the value used in Makefiles might. FIXME?
9657 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9658 ## be harmless on older versions of X where it happens to exist.
9659 test "$opsys" = "aix4-2" && \
9660 test $ac_cv_lib_pthreads_cma_open = yes && \
9661 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9667 $as_echo_n "checking for -bbigtoc option... " >&6; }
9668 if test "${gdb_cv_bigtoc+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9673 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9674 *) gdb_cv_bigtoc
=-bbigtoc ;;
9677 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9689 if ac_fn_c_try_link
"$LINENO"; then :
9694 rm -f core conftest.err conftest.
$ac_objext \
9695 conftest
$ac_exeext conftest.
$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9699 $as_echo "$gdb_cv_bigtoc" >&6; }
9703 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9704 # used for the tests that follow. We set them back to REAL_CFLAGS and
9705 # REAL_CPPFLAGS later on.
9707 REAL_CFLAGS
="$CFLAGS"
9708 REAL_CPPFLAGS
="$CPPFLAGS"
9710 if test "${HAVE_X11}" = "yes"; then
9711 DEFS
="$C_SWITCH_X_SITE $DEFS"
9712 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9714 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9715 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9717 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9718 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9719 # but it's more convenient here to set LD_RUN_PATH
9720 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9721 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9722 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9726 if test "${opsys}" = "gnu-linux"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9728 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9735 XOpenDisplay ("foo");
9740 if ac_fn_c_try_link
"$LINENO"; then :
9741 xlinux_first_failure
=no
9743 xlinux_first_failure
=yes
9745 rm -f core conftest.err conftest.
$ac_objext \
9746 conftest
$ac_exeext conftest.
$ac_ext
9747 if test "${xlinux_first_failure}" = "yes"; then
9748 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9749 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9750 OLD_CPPFLAGS
="$CPPFLAGS"
9752 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9753 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9754 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9755 LIBS
="$LIBS -b i486-linuxaout"
9756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9762 XOpenDisplay ("foo");
9767 if ac_fn_c_try_link
"$LINENO"; then :
9768 xlinux_second_failure
=no
9770 xlinux_second_failure
=yes
9772 rm -f core conftest.err conftest.
$ac_objext \
9773 conftest
$ac_exeext conftest.
$ac_ext
9774 if test "${xlinux_second_failure}" = "yes"; then
9775 # If we get the same failure with -b, there is no use adding -b.
9776 # So take it out. This plays safe.
9777 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9778 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9779 CPPFLAGS
="$OLD_CPPFLAGS"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9785 $as_echo "yes" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9793 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9794 # header files included from there.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9796 $as_echo_n "checking for Xkb... " >&6; }
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <X11/Xlib.h>
9800 #include <X11/XKBlib.h>
9804 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9809 if ac_fn_c_try_link
"$LINENO"; then :
9814 rm -f core conftest.err conftest.
$ac_objext \
9815 conftest
$ac_exeext conftest.
$ac_ext
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9817 $as_echo "$emacs_xkb" >&6; }
9818 if test $emacs_xkb = yes; then
9820 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9824 for ac_func
in XrmSetDatabase XScreenResourceString \
9825 XScreenNumberOfScreen XSetWMProtocols
9827 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9829 eval as_val
=\$
$as_ac_var
9830 if test "x$as_val" = x
""yes; then :
9831 cat >>confdefs.h
<<_ACEOF
9832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9840 if test "${window_system}" = "x11"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9842 $as_echo_n "checking X11 version 6... " >&6; }
9843 if test "${emacs_cv_x11_version_6+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 #include <X11/Xlib.h>
9852 #if XlibSpecificationRelease < 6
9860 if ac_fn_c_try_link
"$LINENO"; then :
9861 emacs_cv_x11_version_6
=yes
9863 emacs_cv_x11_version_6
=no
9865 rm -f core conftest.err conftest.
$ac_objext \
9866 conftest
$ac_exeext conftest.
$ac_ext
9869 if test $emacs_cv_x11_version_6 = yes; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9871 $as_echo "6 or newer" >&6; }
9873 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9876 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9878 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9883 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9889 $as_echo "before 6" >&6; }
9894 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9896 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9897 if test "${with_rsvg}" != "no"; then
9898 RSVG_REQUIRED
=2.11.0
9899 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9904 # Extract the first word of "pkg-config", so it can be a program name with args.
9905 set dummy pkg-config
; ac_word
=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9913 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9920 test -z "$as_dir" && as_dir
=.
9921 for ac_exec_ext
in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9935 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9936 if test -n "$PKG_CONFIG"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9938 $as_echo "$PKG_CONFIG" >&6; }
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9946 if test "$PKG_CONFIG" = "no" ; then
9949 PKG_CONFIG_MIN_VERSION
=0.9.0
9950 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9952 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9954 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9956 $as_echo "yes" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9960 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9961 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9963 $as_echo "$RSVG_CFLAGS" >&6; }
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9966 $as_echo_n "checking RSVG_LIBS... " >&6; }
9967 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9969 $as_echo "$RSVG_LIBS" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9975 ## If we have a custom action on failure, don't print errors, but
9976 ## do set a variable so people can do so.
9977 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9989 if test $succeeded = yes; then
9998 if test $HAVE_RSVG = yes; then
10000 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10002 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10003 LIBS
="$RSVG_LIBS $LIBS"
10008 HAVE_IMAGEMAGICK
=no
10009 if test "${HAVE_X11}" = "yes"; then
10010 if test "${with_imagemagick}" != "no"; then
10011 IMAGEMAGICK_MODULE
="Wand"
10015 # Extract the first word of "pkg-config", so it can be a program name with args.
10016 set dummy pkg-config
; ac_word
=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10022 case $PKG_CONFIG in
10024 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10028 for as_dir
in $PATH
10031 test -z "$as_dir" && as_dir
=.
10032 for ac_exec_ext
in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10046 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10047 if test -n "$PKG_CONFIG"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10049 $as_echo "$PKG_CONFIG" >&6; }
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10057 if test "$PKG_CONFIG" = "no" ; then
10060 PKG_CONFIG_MIN_VERSION
=0.9.0
10061 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10063 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10065 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10067 $as_echo "yes" >&6; }
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10071 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10072 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10074 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10077 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10078 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10080 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 IMAGEMAGICK_CFLAGS
=""
10085 IMAGEMAGICK_LIBS
=""
10086 ## If we have a custom action on failure, don't print errors, but
10087 ## do set a variable so people can do so.
10088 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10095 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10096 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10100 if test $succeeded = yes; then
10101 HAVE_IMAGEMAGICK
=yes
10109 if test $HAVE_IMAGEMAGICK = yes; then
10111 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10113 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10114 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10115 for ac_func
in MagickExportImagePixels
10117 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10118 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10119 cat >>confdefs.h
<<_ACEOF
10120 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10132 if test "${with_gtk3}" = "yes"; then
10135 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10140 # Extract the first word of "pkg-config", so it can be a program name with args.
10141 set dummy pkg-config
; ac_word
=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10147 case $PKG_CONFIG in
10149 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10153 for as_dir
in $PATH
10156 test -z "$as_dir" && as_dir
=.
10157 for ac_exec_ext
in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10171 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10172 if test -n "$PKG_CONFIG"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10174 $as_echo "$PKG_CONFIG" >&6; }
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10182 if test "$PKG_CONFIG" = "no" ; then
10185 PKG_CONFIG_MIN_VERSION
=0.9.0
10186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10188 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10190 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10192 $as_echo "yes" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10196 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10197 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10199 $as_echo "$GTK_CFLAGS" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10202 $as_echo_n "checking GTK_LIBS... " >&6; }
10203 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10205 $as_echo "$GTK_LIBS" >&6; }
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10211 ## If we have a custom action on failure, don't print errors, but
10212 ## do set a variable so people can do so.
10213 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10225 if test $succeeded = yes; then
10231 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10232 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10235 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10239 if test "$pkg_check_gtk" != "yes"; then
10241 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10244 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10249 # Extract the first word of "pkg-config", so it can be a program name with args.
10250 set dummy pkg-config
; ac_word
=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10256 case $PKG_CONFIG in
10258 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10262 for as_dir
in $PATH
10265 test -z "$as_dir" && as_dir
=.
10266 for ac_exec_ext
in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10280 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10281 if test -n "$PKG_CONFIG"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10283 $as_echo "$PKG_CONFIG" >&6; }
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 if test "$PKG_CONFIG" = "no" ; then
10294 PKG_CONFIG_MIN_VERSION
=0.9.0
10295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10297 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10299 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; }
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10305 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10306 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10308 $as_echo "$GTK_CFLAGS" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10311 $as_echo_n "checking GTK_LIBS... " >&6; }
10312 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10314 $as_echo "$GTK_LIBS" >&6; }
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10320 ## If we have a custom action on failure, don't print errors, but
10321 ## do set a variable so people can do so.
10322 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10334 if test $succeeded = yes; then
10340 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10341 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10347 if test x
"$pkg_check_gtk" = xyes
; then
10351 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10352 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10353 LIBS
="$GTK_LIBS $LIBS"
10355 for ac_func
in gtk_main
10357 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10358 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10359 cat >>confdefs.h
<<_ACEOF
10360 #define HAVE_GTK_MAIN 1
10366 if test "${GTK_COMPILES}" != "yes"; then
10367 if test "$USE_X_TOOLKIT" != "maybe"; then
10368 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10373 $as_echo "#define USE_GTK 1" >>confdefs.h
10377 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10381 closing open displays. This is no problem if you just use
10382 one display, but if you use more than one and close one of them
10383 Emacs may crash." >&5
10384 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10385 closing open displays. This is no problem if you just use
10386 one display, but if you use more than one and close one of them
10387 Emacs may crash." >&2;}
10396 if test "${HAVE_GTK}" = "yes"; then
10398 if test "$with_toolkit_scroll_bars" != no
; then
10399 with_toolkit_scroll_bars
=yes
10402 HAVE_GTK_FILE_SELECTION
=no
10403 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10404 #include <gtk/gtk.h>
10406 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10407 HAVE_GTK_FILE_SELECTION
=yes
10409 HAVE_GTK_FILE_SELECTION
=no
10412 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10413 for ac_func
in gtk_file_selection_new
10415 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10416 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10417 cat >>confdefs.h
<<_ACEOF
10418 #define HAVE_GTK_FILE_SELECTION_NEW 1
10426 HAVE_GTK_AND_PTHREAD
=no
10427 for ac_header
in pthread.h
10429 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10430 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10431 cat >>confdefs.h
<<_ACEOF
10432 #define HAVE_PTHREAD_H 1
10439 if test "$ac_cv_header_pthread_h"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10441 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10442 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10445 ac_check_lib_save_LIBS
=$LIBS
10446 LIBS
="-lpthread $LIBS"
10447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10456 char pthread_self ();
10460 return pthread_self ();
10465 if ac_fn_c_try_link
"$LINENO"; then :
10466 ac_cv_lib_pthread_pthread_self
=yes
10468 ac_cv_lib_pthread_pthread_self
=no
10470 rm -f core conftest.err conftest.
$ac_objext \
10471 conftest
$ac_exeext conftest.
$ac_ext
10472 LIBS
=$ac_check_lib_save_LIBS
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10475 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10476 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10477 HAVE_GTK_AND_PTHREAD
=yes
10481 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10482 case "${canonical}" in
10484 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10487 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10491 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10492 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10493 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10494 gtk_orientable_set_orientation
10496 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10498 eval as_val
=\$
$as_ac_var
10499 if test "x$as_val" = x
""yes; then :
10500 cat >>confdefs.h
<<_ACEOF
10501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10512 if test "${with_dbus}" = "yes"; then
10516 # Extract the first word of "pkg-config", so it can be a program name with args.
10517 set dummy pkg-config
; ac_word
=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10523 case $PKG_CONFIG in
10525 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10529 for as_dir
in $PATH
10532 test -z "$as_dir" && as_dir
=.
10533 for ac_exec_ext
in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10547 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10548 if test -n "$PKG_CONFIG"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10550 $as_echo "$PKG_CONFIG" >&6; }
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10558 if test "$PKG_CONFIG" = "no" ; then
10561 PKG_CONFIG_MIN_VERSION
=0.9.0
10562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10564 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10566 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; }
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10572 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10573 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10575 $as_echo "$DBUS_CFLAGS" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10578 $as_echo_n "checking DBUS_LIBS... " >&6; }
10579 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10581 $as_echo "$DBUS_LIBS" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10587 ## If we have a custom action on failure, don't print errors, but
10588 ## do set a variable so people can do so.
10589 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10601 if test $succeeded = yes; then
10607 if test "$HAVE_DBUS" = yes; then
10608 LIBS
="$LIBS $DBUS_LIBS"
10610 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10612 for ac_func
in dbus_watch_get_unix_fd
10614 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10615 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10616 cat >>confdefs.h
<<_ACEOF
10617 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10623 DBUS_OBJ
=dbusbind.o
10629 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10633 # Extract the first word of "pkg-config", so it can be a program name with args.
10634 set dummy pkg-config
; ac_word
=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10640 case $PKG_CONFIG in
10642 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10646 for as_dir
in $PATH
10649 test -z "$as_dir" && as_dir
=.
10650 for ac_exec_ext
in '' $ac_executable_extensions; do
10651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10652 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10664 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10665 if test -n "$PKG_CONFIG"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10667 $as_echo "$PKG_CONFIG" >&6; }
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10675 if test "$PKG_CONFIG" = "no" ; then
10678 PKG_CONFIG_MIN_VERSION
=0.9.0
10679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10681 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; }
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10689 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10690 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10692 $as_echo "$GCONF_CFLAGS" >&6; }
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10695 $as_echo_n "checking GCONF_LIBS... " >&6; }
10696 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10698 $as_echo "$GCONF_LIBS" >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10704 ## If we have a custom action on failure, don't print errors, but
10705 ## do set a variable so people can do so.
10706 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10718 if test $succeeded = yes; then
10724 if test "$HAVE_GCONF" = yes; then
10726 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10728 for ac_func
in g_type_init
10730 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10731 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10732 cat >>confdefs.h
<<_ACEOF
10733 #define HAVE_G_TYPE_INIT 1
10744 if test "${with_selinux}" = "yes"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10746 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10747 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10750 ac_check_lib_save_LIBS
=$LIBS
10751 LIBS
="-lselinux $LIBS"
10752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10761 char lgetfilecon ();
10765 return lgetfilecon ();
10770 if ac_fn_c_try_link
"$LINENO"; then :
10771 ac_cv_lib_selinux_lgetfilecon
=yes
10773 ac_cv_lib_selinux_lgetfilecon
=no
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10777 LIBS
=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10780 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10781 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10782 HAVE_LIBSELINUX
=yes
10787 if test "$HAVE_LIBSELINUX" = yes; then
10789 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10791 LIBSELINUX_LIBS
=-lselinux
10797 if test "${with_gnutls}" = "yes" ; then
10801 # Extract the first word of "pkg-config", so it can be a program name with args.
10802 set dummy pkg-config
; ac_word
=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10808 case $PKG_CONFIG in
10810 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10814 for as_dir
in $PATH
10817 test -z "$as_dir" && as_dir
=.
10818 for ac_exec_ext
in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10832 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10833 if test -n "$PKG_CONFIG"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10835 $as_echo "$PKG_CONFIG" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10843 if test "$PKG_CONFIG" = "no" ; then
10846 PKG_CONFIG_MIN_VERSION
=0.9.0
10847 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10849 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10851 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10857 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10858 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10860 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10863 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10864 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10866 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 LIBGNUTLS_CFLAGS
=""
10872 ## If we have a custom action on failure, don't print errors, but
10873 ## do set a variable so people can do so.
10874 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10881 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10882 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10886 if test $succeeded = yes; then
10892 if test "${HAVE_GNUTLS}" = "yes"; then
10894 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10903 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10904 if test "$with_xaw3d" != no
; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10906 $as_echo_n "checking for xaw3d... " >&6; }
10907 if test "${emacs_cv_xaw3d+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10913 #include <X11/Intrinsic.h>
10914 #include <X11/Xaw3d/Simple.h>
10923 if ac_fn_c_try_link
"$LINENO"; then :
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10925 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10926 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 ac_check_lib_save_LIBS
=$LIBS
10930 LIBS
="-lXaw3d $LIBS"
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 /* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
10940 char XawScrollbarSetThumb ();
10944 return XawScrollbarSetThumb ();
10949 if ac_fn_c_try_link
"$LINENO"; then :
10950 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10952 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10954 rm -f core conftest.err conftest.
$ac_objext \
10955 conftest
$ac_exeext conftest.
$ac_ext
10956 LIBS
=$ac_check_lib_save_LIBS
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10959 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10960 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10969 rm -f core conftest.err conftest.
$ac_objext \
10970 conftest
$ac_exeext conftest.
$ac_ext
10976 if test $emacs_cv_xaw3d = yes; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10978 $as_echo "yes; using Lucid toolkit" >&6; }
10979 USE_X_TOOLKIT
=LUCID
10983 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10989 $as_echo_n "checking for libXaw... " >&6; }
10990 if test "${emacs_cv_xaw+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 #include <X11/Intrinsic.h>
10997 #include <X11/Xaw/Simple.h>
11006 if ac_fn_c_try_link
"$LINENO"; then :
11011 rm -f core conftest.err conftest.
$ac_objext \
11012 conftest
$ac_exeext conftest.
$ac_ext
11015 if test $emacs_cv_xaw = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11017 $as_echo "yes; using Lucid toolkit" >&6; }
11018 USE_X_TOOLKIT
=LUCID
11020 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11021 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11024 $as_echo "no; do not use toolkit by default" >&6; }
11030 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11033 if test "${USE_X_TOOLKIT}" != "none"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11035 $as_echo_n "checking X11 toolkit version... " >&6; }
11036 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 #include <X11/Intrinsic.h>
11045 #if XtSpecificationRelease < 6
11053 if ac_fn_c_try_link
"$LINENO"; then :
11054 emacs_cv_x11_toolkit_version_6
=yes
11056 emacs_cv_x11_toolkit_version_6
=no
11058 rm -f core conftest.err conftest.
$ac_objext \
11059 conftest
$ac_exeext conftest.
$ac_ext
11062 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11063 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11065 $as_echo "6 or newer" >&6; }
11067 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11069 LIBXTR6
="-lSM -lICE"
11071 ## Use libw.a along with X11R6 Xt.
11072 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11076 $as_echo "before 6" >&6; }
11080 if test x
$HAVE_X11XTR6 = xyes
; then
11081 LIBS
="-lXt -lSM -lICE $LIBS"
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11086 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11087 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11090 ac_check_lib_save_LIBS
=$LIBS
11092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11101 char XmuConvertStandardSelection ();
11105 return XmuConvertStandardSelection ();
11110 if ac_fn_c_try_link
"$LINENO"; then :
11111 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11113 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11115 rm -f core conftest.err conftest.
$ac_objext \
11116 conftest
$ac_exeext conftest.
$ac_ext
11117 LIBS
=$ac_check_lib_save_LIBS
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11120 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11121 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11122 cat >>confdefs.h
<<_ACEOF
11123 #define HAVE_LIBXMU 1
11130 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11136 ## These systems don't supply Xmu.
11138 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11143 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11144 if test "${HAVE_X11}" = "yes"; then
11145 if test "${USE_X_TOOLKIT}" != "none"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11147 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11148 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 ac_check_lib_save_LIBS
=$LIBS
11152 LIBS
="-lXext $LIBS"
11153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11162 char XShapeQueryExtension ();
11166 return XShapeQueryExtension ();
11171 if ac_fn_c_try_link
"$LINENO"; then :
11172 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11174 ac_cv_lib_Xext_XShapeQueryExtension
=no
11176 rm -f core conftest.err conftest.
$ac_objext \
11177 conftest
$ac_exeext conftest.
$ac_ext
11178 LIBS
=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11181 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11182 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11183 cat >>confdefs.h
<<_ACEOF
11184 #define HAVE_LIBXEXT 1
11187 LIBS
="-lXext $LIBS"
11195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11197 $as_echo_n "checking for Motif version 2.1... " >&6; }
11198 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11207 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11210 Motif version prior to 2.1.
11216 if ac_fn_c_try_compile
"$LINENO"; then :
11217 emacs_cv_motif_version_2_1
=yes
11219 emacs_cv_motif_version_2_1
=no
11221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11224 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11225 if test $emacs_cv_motif_version_2_1 = yes; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11227 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11228 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 ac_check_lib_save_LIBS
=$LIBS
11233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11242 char XpCreateContext ();
11246 return XpCreateContext ();
11251 if ac_fn_c_try_link
"$LINENO"; then :
11252 ac_cv_lib_Xp_XpCreateContext
=yes
11254 ac_cv_lib_Xp_XpCreateContext
=no
11256 rm -f core conftest.err conftest.
$ac_objext \
11257 conftest
$ac_exeext conftest.
$ac_ext
11258 LIBS
=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11261 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11262 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11268 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11269 if test "${emacs_cv_lesstif+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11272 # We put this in CFLAGS temporarily to precede other -I options
11273 # that might be in CFLAGS temporarily.
11274 # We put this in CPPFLAGS where it precedes the other -I options.
11275 OLD_CPPFLAGS
=$CPPFLAGS
11277 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11278 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11290 if ac_fn_c_try_compile
"$LINENO"; then :
11291 emacs_cv_lesstif
=yes
11293 emacs_cv_lesstif
=no
11295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11298 $as_echo "$emacs_cv_lesstif" >&6; }
11299 if test $emacs_cv_lesstif = yes; then
11300 # Make sure this -I option remains in CPPFLAGS after it is set
11301 # back to REAL_CPPFLAGS.
11302 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11303 # have those other -I options anyway. Ultimately, having this
11304 # directory ultimately in CPPFLAGS will be enough.
11305 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11306 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11309 CPPFLAGS
=$OLD_CPPFLAGS
11315 USE_TOOLKIT_SCROLL_BARS
=no
11316 if test "${with_toolkit_scroll_bars}" != "no"; then
11317 if test "${USE_X_TOOLKIT}" != "none"; then
11318 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11319 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11322 USE_TOOLKIT_SCROLL_BARS
=yes
11323 elif test "${HAVE_XAW3D}" = "yes"; then
11324 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11326 USE_TOOLKIT_SCROLL_BARS
=yes
11328 elif test "${HAVE_GTK}" = "yes"; then
11329 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11331 USE_TOOLKIT_SCROLL_BARS
=yes
11332 elif test "${HAVE_NS}" = "yes"; then
11333 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11335 USE_TOOLKIT_SCROLL_BARS
=yes
11339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include <X11/Xlib.h>
11343 #include <X11/Xresource.h>
11352 if ac_fn_c_try_compile
"$LINENO"; then :
11355 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11363 if test "${with_xim}" != "no"; then
11365 $as_echo "#define USE_XIM 1" >>confdefs.h
11370 if test "${HAVE_XIM}" != "no"; then
11371 late_CFLAGS
=$CFLAGS
11372 if test "$GCC" = yes; then
11373 CFLAGS
="$CFLAGS --pedantic-errors"
11375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 #include <X11/Xlib.h>
11379 #include <X11/Xresource.h>
11388 XPointer *client_data;
11390 /* If we're not using GCC, it's probably not XFree86, and this is
11391 probably right, but we can't use something like --pedantic-errors. */
11392 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11393 char*, XIMProc, XPointer*);
11395 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11401 if ac_fn_c_try_compile
"$LINENO"; then :
11402 emacs_cv_arg6_star
=yes
11404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11405 if test "$emacs_cv_arg6_star" = yes; then
11406 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11409 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11412 CFLAGS
=$late_CFLAGS
11415 ### Start of font-backend (under any platform) section.
11416 # (nothing here yet -- this is a placeholder)
11417 ### End of font-backend (under any platform) section.
11419 ### Start of font-backend (under X11) section.
11420 if test "${HAVE_X11}" = "yes"; then
11424 # Extract the first word of "pkg-config", so it can be a program name with args.
11425 set dummy pkg-config
; ac_word
=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 case $PKG_CONFIG in
11433 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11437 for as_dir
in $PATH
11440 test -z "$as_dir" && as_dir
=.
11441 for ac_exec_ext
in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11455 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11456 if test -n "$PKG_CONFIG"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11458 $as_echo "$PKG_CONFIG" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11466 if test "$PKG_CONFIG" = "no" ; then
11469 PKG_CONFIG_MIN_VERSION
=0.9.0
11470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11472 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11474 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11476 $as_echo "yes" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11480 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11481 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11483 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11486 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11487 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11489 $as_echo "$FONTCONFIG_LIBS" >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 FONTCONFIG_CFLAGS
=""
11495 ## If we have a custom action on failure, don't print errors, but
11496 ## do set a variable so people can do so.
11497 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11509 if test $succeeded = yes; then
11516 ## Use -lXft if available, unless `--with-xft=no'.
11518 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11521 if test "x${with_xft}" != "xno"; then
11526 # Extract the first word of "pkg-config", so it can be a program name with args.
11527 set dummy pkg-config
; ac_word
=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11533 case $PKG_CONFIG in
11535 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11539 for as_dir
in $PATH
11542 test -z "$as_dir" && as_dir
=.
11543 for ac_exec_ext
in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11557 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11558 if test -n "$PKG_CONFIG"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11560 $as_echo "$PKG_CONFIG" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11568 if test "$PKG_CONFIG" = "no" ; then
11571 PKG_CONFIG_MIN_VERSION
=0.9.0
11572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11574 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11576 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11582 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11583 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11585 $as_echo "$XFT_CFLAGS" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11588 $as_echo_n "checking XFT_LIBS... " >&6; }
11589 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11591 $as_echo "$XFT_LIBS" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11597 ## If we have a custom action on failure, don't print errors, but
11598 ## do set a variable so people can do so.
11599 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11611 if test $succeeded = yes; then
11617 ## Because xftfont.c uses XRenderQueryExtension, we also
11618 ## need to link to -lXrender.
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11621 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11622 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11625 ac_check_lib_save_LIBS
=$LIBS
11626 LIBS
="-lXrender $LIBS"
11627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11636 char XRenderQueryExtension ();
11640 return XRenderQueryExtension ();
11645 if ac_fn_c_try_link
"$LINENO"; then :
11646 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11648 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11650 rm -f core conftest.err conftest.
$ac_objext \
11651 conftest
$ac_exeext conftest.
$ac_ext
11652 LIBS
=$ac_check_lib_save_LIBS
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11655 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11656 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11660 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11661 OLD_CPPFLAGS
="$CPPFLAGS"
11662 OLD_CFLAGS
="$CFLAGS"
11664 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11665 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11666 XFT_LIBS
="-lXrender $XFT_LIBS"
11667 LIBS
="$XFT_LIBS $LIBS"
11668 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11669 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11671 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11672 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11675 ac_check_lib_save_LIBS
=$LIBS
11676 LIBS
="-lXft $XFT_LIBS $LIBS"
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11686 char XftFontOpen ();
11690 return XftFontOpen ();
11695 if ac_fn_c_try_link
"$LINENO"; then :
11696 ac_cv_lib_Xft_XftFontOpen
=yes
11698 ac_cv_lib_Xft_XftFontOpen
=no
11700 rm -f core conftest.err conftest.
$ac_objext \
11701 conftest
$ac_exeext conftest.
$ac_ext
11702 LIBS
=$ac_check_lib_save_LIBS
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11705 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11706 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11714 if test "${HAVE_XFT}" = "yes"; then
11716 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11719 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11721 CPPFLAGS
="$OLD_CPPFLAGS"
11722 CFLAGS
="$OLD_CFLAGS"
11724 fi # "${HAVE_XFT}" = "yes"
11725 fi # "$HAVE_XFT" != no
11726 fi # "x${with_xft}" != "xno"
11728 ## We used to allow building with FreeType and without Xft.
11729 ## However, the ftx font backend driver is not in good shape.
11730 if test "$HAVE_XFT" != "yes"; then
11737 # Extract the first word of "pkg-config", so it can be a program name with args.
11738 set dummy pkg-config
; ac_word
=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 case $PKG_CONFIG in
11746 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11750 for as_dir
in $PATH
11753 test -z "$as_dir" && as_dir
=.
11754 for ac_exec_ext
in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11768 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11769 if test -n "$PKG_CONFIG"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11771 $as_echo "$PKG_CONFIG" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11779 if test "$PKG_CONFIG" = "no" ; then
11782 PKG_CONFIG_MIN_VERSION
=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11785 $as_echo_n "checking for freetype2... " >&6; }
11787 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11793 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11794 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11796 $as_echo "$FREETYPE_CFLAGS" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11799 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11800 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11802 $as_echo "$FREETYPE_LIBS" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11808 ## If we have a custom action on failure, don't print errors, but
11809 ## do set a variable so people can do so.
11810 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11829 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11833 if test "${HAVE_FREETYPE}" = "yes"; then
11835 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11837 if test "${with_libotf}" != "no"; then
11841 # Extract the first word of "pkg-config", so it can be a program name with args.
11842 set dummy pkg-config
; ac_word
=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11848 case $PKG_CONFIG in
11850 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11854 for as_dir
in $PATH
11857 test -z "$as_dir" && as_dir
=.
11858 for ac_exec_ext
in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11872 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11873 if test -n "$PKG_CONFIG"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11875 $as_echo "$PKG_CONFIG" >&6; }
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11883 if test "$PKG_CONFIG" = "no" ; then
11886 PKG_CONFIG_MIN_VERSION
=0.9.0
11887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11889 $as_echo_n "checking for libotf... " >&6; }
11891 if $PKG_CONFIG --exists "libotf" 2>&5; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11897 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11898 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11900 $as_echo "$LIBOTF_CFLAGS" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11903 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11904 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11906 $as_echo "$LIBOTF_LIBS" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11912 ## If we have a custom action on failure, don't print errors, but
11913 ## do set a variable so people can do so.
11914 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11926 if test $succeeded = yes; then
11932 if test "$HAVE_LIBOTF" = "yes"; then
11934 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11937 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11938 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11941 ac_check_lib_save_LIBS
=$LIBS
11943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11952 char OTF_get_variation_glyphs ();
11956 return OTF_get_variation_glyphs ();
11961 if ac_fn_c_try_link
"$LINENO"; then :
11962 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11964 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11966 rm -f core conftest.err conftest.
$ac_objext \
11967 conftest
$ac_exeext conftest.
$ac_ext
11968 LIBS
=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11971 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11972 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11973 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11975 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11978 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11980 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11988 if test "${HAVE_LIBOTF}" = yes; then
11989 if test "${with_m17n_flt}" != "no"; then
11993 # Extract the first word of "pkg-config", so it can be a program name with args.
11994 set dummy pkg-config
; ac_word
=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
12000 case $PKG_CONFIG in
12002 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12006 for as_dir
in $PATH
12009 test -z "$as_dir" && as_dir
=.
12010 for ac_exec_ext
in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12024 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12025 if test -n "$PKG_CONFIG"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12027 $as_echo "$PKG_CONFIG" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12035 if test "$PKG_CONFIG" = "no" ; then
12038 PKG_CONFIG_MIN_VERSION
=0.9.0
12039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12041 $as_echo_n "checking for m17n-flt... " >&6; }
12043 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12049 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12050 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12052 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12055 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12056 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12058 $as_echo "$M17N_FLT_LIBS" >&6; }
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12064 ## If we have a custom action on failure, don't print errors, but
12065 ## do set a variable so people can do so.
12066 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12078 if test $succeeded = yes; then
12084 if test "$HAVE_M17N_FLT" = "yes"; then
12086 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12098 ### End of font-backend (under X11) section.
12109 ### Use -lXpm if available, unless `--with-xpm=no'.
12112 if test "${HAVE_X11}" = "yes"; then
12113 if test "${with_xpm}" != "no"; then
12114 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12117 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12118 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 ac_check_lib_save_LIBS
=$LIBS
12122 LIBS
="-lXpm -lX11 $LIBS"
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12132 char XpmReadFileToPixmap ();
12136 return XpmReadFileToPixmap ();
12141 if ac_fn_c_try_link
"$LINENO"; then :
12142 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12144 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12146 rm -f core conftest.err conftest.
$ac_objext \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12151 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12152 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12159 if test "${HAVE_XPM}" = "yes"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12161 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 #include "X11/xpm.h"
12165 #ifndef XpmReturnAllocPixels
12166 no_return_alloc_pixels
12170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12179 if test "${HAVE_XPM}" = "yes"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12189 if test "${HAVE_XPM}" = "yes"; then
12191 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12198 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12201 if test "${HAVE_X11}" = "yes"; then
12202 if test "${with_jpeg}" != "no"; then
12203 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12204 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12206 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 ac_check_lib_save_LIBS
=$LIBS
12211 LIBS
="-ljpeg $LIBS"
12212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12221 char jpeg_destroy_compress ();
12225 return jpeg_destroy_compress ();
12230 if ac_fn_c_try_link
"$LINENO"; then :
12231 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12233 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12235 rm -f core conftest.err conftest.
$ac_objext \
12236 conftest
$ac_exeext conftest.
$ac_ext
12237 LIBS
=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12240 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12241 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12250 if test "${HAVE_JPEG}" = "yes"; then
12251 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <jpeglib.h>
12256 version=JPEG_LIB_VERSION
12259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12260 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12261 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12265 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12271 if test "${HAVE_JPEG}" = "yes"; then
12277 ### Use -lpng if available, unless `--with-png=no'.
12280 if test "${HAVE_X11}" = "yes"; then
12281 if test "${with_png}" != "no"; then
12282 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12283 # in /usr/include/libpng.
12284 for ac_header
in png.h libpng
/png.h
12286 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288 eval as_val
=\$
$as_ac_Header
12289 if test "x$as_val" = x
""yes; then :
12290 cat >>confdefs.h
<<_ACEOF
12291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12298 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12300 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12301 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12304 ac_check_lib_save_LIBS
=$LIBS
12305 LIBS
="-lpng -lz -lm $LIBS"
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12315 char png_get_channels ();
12319 return png_get_channels ();
12324 if ac_fn_c_try_link
"$LINENO"; then :
12325 ac_cv_lib_png_png_get_channels
=yes
12327 ac_cv_lib_png_png_get_channels
=no
12329 rm -f core conftest.err conftest.
$ac_objext \
12330 conftest
$ac_exeext conftest.
$ac_ext
12331 LIBS
=$ac_check_lib_save_LIBS
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12334 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12335 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12342 if test "${HAVE_PNG}" = "yes"; then
12344 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12346 LIBPNG
="-lpng -lz -lm"
12351 ### Use -ltiff if available, unless `--with-tiff=no'.
12354 if test "${HAVE_X11}" = "yes"; then
12355 if test "${with_tiff}" != "no"; then
12356 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12357 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12359 # At least one tiff package requires the jpeg library.
12360 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12362 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12363 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12366 ac_check_lib_save_LIBS
=$LIBS
12367 LIBS
="-ltiff $tifflibs $LIBS"
12368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12377 char TIFFGetVersion ();
12381 return TIFFGetVersion ();
12386 if ac_fn_c_try_link
"$LINENO"; then :
12387 ac_cv_lib_tiff_TIFFGetVersion
=yes
12389 ac_cv_lib_tiff_TIFFGetVersion
=no
12391 rm -f core conftest.err conftest.
$ac_objext \
12392 conftest
$ac_exeext conftest.
$ac_ext
12393 LIBS
=$ac_check_lib_save_LIBS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12396 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12397 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12406 if test "${HAVE_TIFF}" = "yes"; then
12408 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12415 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12418 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12419 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12420 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12421 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12422 # Earlier versions can crash Emacs.
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12424 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12425 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
12428 ac_check_lib_save_LIBS
=$LIBS
12430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12439 char EGifPutExtensionLast ();
12443 return EGifPutExtensionLast ();
12448 if ac_fn_c_try_link
"$LINENO"; then :
12449 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12451 ac_cv_lib_gif_EGifPutExtensionLast
=no
12453 rm -f core conftest.err conftest.
$ac_objext \
12454 conftest
$ac_exeext conftest.
$ac_ext
12455 LIBS
=$ac_check_lib_save_LIBS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12458 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12459 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12469 if test "$HAVE_GIF" = yes; then
12471 elif test "$HAVE_GIF" = maybe
; then
12472 # If gif_lib.h but no libgif, try libungif.
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12474 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12475 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12478 ac_check_lib_save_LIBS
=$LIBS
12479 LIBS
="-lungif $LIBS"
12480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12489 char EGifPutExtensionLast ();
12493 return EGifPutExtensionLast ();
12498 if ac_fn_c_try_link
"$LINENO"; then :
12499 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12501 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12503 rm -f core conftest.err conftest.
$ac_objext \
12504 conftest
$ac_exeext conftest.
$ac_ext
12505 LIBS
=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12508 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12509 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12515 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12518 if test "${HAVE_GIF}" = "yes"; then
12520 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12526 if test "${HAVE_X11}" = "yes"; then
12529 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12530 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12531 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12532 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12533 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12534 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12535 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12536 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12537 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12538 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12540 if test "X${MISSING}" != X
; then
12541 as_fn_error
"The following required libraries were not found:
12543 Maybe some development libraries/packages are missing?
12544 If you don't want to link with them give
12546 as options to configure" "$LINENO" 5
12550 ### Use -lgpm if available, unless `--with-gpm=no'.
12554 if test "${with_gpm}" != "no"; then
12555 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12556 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12558 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12559 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12562 ac_check_lib_save_LIBS
=$LIBS
12564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12577 return Gpm_Open ();
12582 if ac_fn_c_try_link
"$LINENO"; then :
12583 ac_cv_lib_gpm_Gpm_Open
=yes
12585 ac_cv_lib_gpm_Gpm_Open
=no
12587 rm -f core conftest.err conftest.
$ac_objext \
12588 conftest
$ac_exeext conftest.
$ac_ext
12589 LIBS
=$ac_check_lib_save_LIBS
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12592 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12593 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12601 if test "${HAVE_GPM}" = "yes"; then
12603 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12606 ## May be reset below.
12607 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12612 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12613 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12615 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12622 ### Use NeXTstep API to implement GUI.
12623 if test "${HAVE_NS}" = "yes"; then
12625 $as_echo "#define HAVE_NS 1" >>confdefs.h
12627 if test "${NS_IMPL_COCOA}" = "yes"; then
12629 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12633 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12635 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12637 # See also .m.o rule in Makefile.in */
12638 # FIXME: are all these flags really needed? Document here why. */
12639 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12640 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12642 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12644 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12647 # We also have mouse menus.
12653 ### Use session management (-lSM -lICE) if available
12656 if test "${HAVE_X11}" = "yes"; then
12657 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12658 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12660 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12661 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12664 ac_check_lib_save_LIBS
=$LIBS
12665 LIBS
="-lSM -lICE $LIBS"
12666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12675 char SmcOpenConnection ();
12679 return SmcOpenConnection ();
12684 if ac_fn_c_try_link
"$LINENO"; then :
12685 ac_cv_lib_SM_SmcOpenConnection
=yes
12687 ac_cv_lib_SM_SmcOpenConnection
=no
12689 rm -f core conftest.err conftest.
$ac_objext \
12690 conftest
$ac_exeext conftest.
$ac_ext
12691 LIBS
=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12694 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12695 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12703 if test "${HAVE_X_SM}" = "yes"; then
12705 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12707 LIBXSM
="-lSM -lICE"
12710 *) LIBS
="$LIBXSM $LIBS" ;;
12716 ### Use libxml (-lxml2) if available
12717 if test "${with_xml2}" != "no"; then
12718 ### I'm not sure what the version number should be, so I just guessed.
12722 # Extract the first word of "pkg-config", so it can be a program name with args.
12723 set dummy pkg-config
; ac_word
=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 case $PKG_CONFIG in
12731 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12735 for as_dir
in $PATH
12738 test -z "$as_dir" && as_dir
=.
12739 for ac_exec_ext
in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12753 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12754 if test -n "$PKG_CONFIG"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12756 $as_echo "$PKG_CONFIG" >&6; }
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 if test "$PKG_CONFIG" = "no" ; then
12767 PKG_CONFIG_MIN_VERSION
=0.9.0
12768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12770 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12772 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12778 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12779 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12781 $as_echo "$LIBXML2_CFLAGS" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12784 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12785 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12787 $as_echo "$LIBXML2_LIBS" >&6; }
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12793 ## If we have a custom action on failure, don't print errors, but
12794 ## do set a variable so people can do so.
12795 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12807 if test $succeeded = yes; then
12813 if test "${HAVE_LIBXML2}" = "yes"; then
12814 LIBS
="$LIBXML2_LIBS $LIBS"
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12816 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12817 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12820 ac_check_lib_save_LIBS
=$LIBS
12821 LIBS
="-lxml2 $LIBS"
12822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12831 char htmlReadMemory ();
12835 return htmlReadMemory ();
12840 if ac_fn_c_try_link
"$LINENO"; then :
12841 ac_cv_lib_xml2_htmlReadMemory
=yes
12843 ac_cv_lib_xml2_htmlReadMemory
=no
12845 rm -f core conftest.err conftest.
$ac_objext \
12846 conftest
$ac_exeext conftest.
$ac_ext
12847 LIBS
=$ac_check_lib_save_LIBS
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12850 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12851 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12857 if test "${HAVE_LIBXML2}" = "yes"; then
12859 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12870 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12872 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12873 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12887 if ac_fn_c_try_link
"$LINENO"; then :
12888 emacs_cv_netdb_declares_h_errno
=yes
12890 emacs_cv_netdb_declares_h_errno
=no
12892 rm -f core conftest.err conftest.
$ac_objext \
12893 conftest
$ac_exeext conftest.
$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12896 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12897 if test $emacs_cv_netdb_declares_h_errno = yes; then
12899 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12903 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12904 # for constant arguments. Useless!
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12906 $as_echo_n "checking for working alloca.h... " >&6; }
12907 if test "${ac_cv_working_alloca_h+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <alloca.h>
12916 char *p = (char *) alloca (2 * sizeof (int));
12922 if ac_fn_c_try_link
"$LINENO"; then :
12923 ac_cv_working_alloca_h
=yes
12925 ac_cv_working_alloca_h
=no
12927 rm -f core conftest.err conftest.
$ac_objext \
12928 conftest
$ac_exeext conftest.
$ac_ext
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12931 $as_echo "$ac_cv_working_alloca_h" >&6; }
12932 if test $ac_cv_working_alloca_h = yes; then
12934 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12939 $as_echo_n "checking for alloca... " >&6; }
12940 if test "${ac_cv_func_alloca_works+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12946 # define alloca __builtin_alloca
12949 # include <malloc.h>
12950 # define alloca _alloca
12952 # ifdef HAVE_ALLOCA_H
12953 # include <alloca.h>
12958 # ifndef alloca /* predefined by HP cc +Olibcalls */
12969 char *p = (char *) alloca (1);
12975 if ac_fn_c_try_link
"$LINENO"; then :
12976 ac_cv_func_alloca_works
=yes
12978 ac_cv_func_alloca_works
=no
12980 rm -f core conftest.err conftest.
$ac_objext \
12981 conftest
$ac_exeext conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12984 $as_echo "$ac_cv_func_alloca_works" >&6; }
12986 if test $ac_cv_func_alloca_works = yes; then
12988 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12992 # that cause trouble. Some versions do not even contain alloca or
12993 # contain a buggy version. If you still want to use their alloca,
12994 # use ar to extract alloca.o from them instead of compiling alloca.c.
12996 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12998 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13002 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13003 if test "${ac_cv_os_cray+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #if defined CRAY && ! defined CRAY2
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 $EGREP "webecray" >/dev
/null
2>&1; then :
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13025 $as_echo "$ac_cv_os_cray" >&6; }
13026 if test $ac_cv_os_cray = yes; then
13027 for ac_func
in _getb67 GETB67 getb67
; do
13028 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13030 eval as_val
=\$
$as_ac_var
13031 if test "x$as_val" = x
""yes; then :
13033 cat >>confdefs.h
<<_ACEOF
13034 #define CRAY_STACKSEG_END $ac_func
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13044 $as_echo_n "checking stack direction for C alloca... " >&6; }
13045 if test "${ac_cv_c_stack_direction+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13048 if test "$cross_compiling" = yes; then :
13049 ac_cv_c_stack_direction
=0
13051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 $ac_includes_default
13055 find_stack_direction ()
13057 static char *addr = 0;
13062 return find_stack_direction ();
13065 return (&dummy > addr) ? 1 : -1;
13071 return find_stack_direction () < 0;
13074 if ac_fn_c_try_run
"$LINENO"; then :
13075 ac_cv_c_stack_direction
=1
13077 ac_cv_c_stack_direction
=-1
13079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13085 $as_echo "$ac_cv_c_stack_direction" >&6; }
13086 cat >>confdefs.h
<<_ACEOF
13087 #define STACK_DIRECTION $ac_cv_c_stack_direction
13094 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13095 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
13098 # fmod, logb, and frexp are found in -lm on most systems.
13099 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13101 $as_echo_n "checking for sqrt in -lm... " >&6; }
13102 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13105 ac_check_lib_save_LIBS
=$LIBS
13107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13125 if ac_fn_c_try_link
"$LINENO"; then :
13126 ac_cv_lib_m_sqrt
=yes
13128 ac_cv_lib_m_sqrt
=no
13130 rm -f core conftest.err conftest.
$ac_objext \
13131 conftest
$ac_exeext conftest.
$ac_ext
13132 LIBS
=$ac_check_lib_save_LIBS
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13135 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13136 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13137 cat >>confdefs.h
<<_ACEOF
13138 #define HAVE_LIBM 1
13146 # Check for mail-locking functions in a "mail" library. Probably this should
13147 # have the same check as for liblockfile below.
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13149 $as_echo_n "checking for maillock in -lmail... " >&6; }
13150 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 ac_check_lib_save_LIBS
=$LIBS
13154 LIBS
="-lmail $LIBS"
13155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13168 return maillock ();
13173 if ac_fn_c_try_link
"$LINENO"; then :
13174 ac_cv_lib_mail_maillock
=yes
13176 ac_cv_lib_mail_maillock
=no
13178 rm -f core conftest.err conftest.
$ac_objext \
13179 conftest
$ac_exeext conftest.
$ac_ext
13180 LIBS
=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13183 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13184 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13190 if test $have_mail = yes; then
13192 LIBS
="$LIBS_MAIL $LIBS"
13194 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13200 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13201 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13204 ac_check_lib_save_LIBS
=$LIBS
13205 LIBS
="-llockfile $LIBS"
13206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13219 return maillock ();
13224 if ac_fn_c_try_link
"$LINENO"; then :
13225 ac_cv_lib_lockfile_maillock
=yes
13227 ac_cv_lib_lockfile_maillock
=no
13229 rm -f core conftest.err conftest.
$ac_objext \
13230 conftest
$ac_exeext conftest.
$ac_ext
13231 LIBS
=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13234 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13235 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13241 if test $have_lockfile = yes; then
13242 LIBS_MAIL
=-llockfile
13243 LIBS
="$LIBS_MAIL $LIBS"
13245 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13248 # If we have the shared liblockfile, assume we must use it for mail
13249 # locking (e.g. Debian). If we couldn't link against liblockfile
13250 # (no liblockfile.a installed), ensure that we don't need to.
13251 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13252 set dummy liblockfile.so
; ac_word
=$2
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254 $as_echo_n "checking for $ac_word... " >&6; }
13255 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13258 if test -n "$liblockfile"; then
13259 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13262 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13263 for as_dir
in $as_dummy
13266 test -z "$as_dir" && as_dir
=.
13267 for ac_exec_ext
in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_liblockfile
="yes"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13280 liblockfile
=$ac_cv_prog_liblockfile
13281 if test -n "$liblockfile"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13283 $as_echo "$liblockfile" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13290 if test $ac_cv_prog_liblockfile = yes; then
13291 as_fn_error
"Shared liblockfile found but can't link against it.
13292 This probably means that movemail could lose mail.
13293 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13296 for ac_func
in touchlock
13298 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13299 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13300 cat >>confdefs.h
<<_ACEOF
13301 #define HAVE_TOUCHLOCK 1
13307 for ac_header
in maillock.h
13309 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13310 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13311 cat >>confdefs.h
<<_ACEOF
13312 #define HAVE_MAILLOCK_H 1
13321 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13322 ## interlock access to the mail spool. The alternative is a lock file named
13323 ## /usr/spool/mail/$USER.lock.
13326 aix4-2
) mail_lock
="lockf" ;;
13328 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13330 ## On GNU/Linux systems, both methods are used by various mail programs.
13331 ## I assume most people are using newer mailers that have heard of flock.
13332 ## Change this if you need to.
13333 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13334 ## configure gets the right answers, and that means *NOT* using flock.
13335 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13336 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13337 ## Debian maintainer hasn't provided a clean fix for Emacs.
13338 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13339 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13340 ## correct logic. -- fx
13341 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13342 ## liblockfile is a Free Software replacement for libmail, used on
13343 ## Debian systems and elsewhere. -rfr.
13346 if test $have_mail = yes ||
test $have_lockfile = yes; then
13347 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13353 case "$mail_lock" in
13355 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13359 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13362 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13367 for ac_func
in gethostname getdomainname dup2 \
13368 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13369 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13370 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13371 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13372 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13373 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13374 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13375 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13376 cfmakeraw cfsetspeed isnan copysign __executable_start
13378 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13379 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13380 eval as_val
=\$
$as_ac_var
13381 if test "x$as_val" = x
""yes; then :
13382 cat >>confdefs.h
<<_ACEOF
13383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13391 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13392 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13401 __builtin_unwind_init ();
13406 if ac_fn_c_try_link
"$LINENO"; then :
13407 emacs_cv_func___builtin_unwind_init
=yes
13409 emacs_cv_func___builtin_unwind_init
=no
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13415 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13416 if test $emacs_cv_func___builtin_unwind_init = yes; then
13418 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13422 for ac_header
in sys
/un.h
13424 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13426 cat >>confdefs.h
<<_ACEOF
13427 #define HAVE_SYS_UN_H 1
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13436 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13437 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include <sys/types.h> /* for off_t */
13448 int (*fp) (FILE *, off_t, int) = fseeko;
13449 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13454 if ac_fn_c_try_link
"$LINENO"; then :
13455 ac_cv_sys_largefile_source
=no
; break
13457 rm -f core conftest.err conftest.
$ac_objext \
13458 conftest
$ac_exeext conftest.
$ac_ext
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #define _LARGEFILE_SOURCE 1
13462 #include <sys/types.h> /* for off_t */
13467 int (*fp) (FILE *, off_t, int) = fseeko;
13468 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13473 if ac_fn_c_try_link
"$LINENO"; then :
13474 ac_cv_sys_largefile_source
=1; break
13476 rm -f core conftest.err conftest.
$ac_objext \
13477 conftest
$ac_exeext conftest.
$ac_ext
13478 ac_cv_sys_largefile_source
=unknown
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13483 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13484 case $ac_cv_sys_largefile_source in #(
13487 cat >>confdefs.h
<<_ACEOF
13488 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13494 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13495 # in glibc 2.1.3, but that breaks too many other things.
13496 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13497 if test $ac_cv_sys_largefile_source != unknown
; then
13499 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13505 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13506 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13509 # Use it with a single arg.
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 $ac_includes_default
13521 if ac_fn_c_try_compile
"$LINENO"; then :
13522 ac_cv_func_getpgrp_void
=no
13524 ac_cv_func_getpgrp_void
=yes
13526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13530 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13531 if test $ac_cv_func_getpgrp_void = yes; then
13533 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13538 # Configure gnulib.
13549 LIBC_FATAL_STDERR_
=1
13550 export LIBC_FATAL_STDERR_
13555 for ac_func
in $ac_func_list
13557 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13558 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13559 eval as_val
=\$
$as_ac_var
13560 if test "x$as_val" = x
""yes; then :
13561 cat >>confdefs.h
<<_ACEOF
13562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13572 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13573 if test "${ac_cv_c_bigendian+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13576 ac_cv_c_bigendian
=unknown
13577 # See if we're dealing with a universal compiler.
13578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #ifndef __APPLE_CC__
13581 not a universal capable compiler
13586 if ac_fn_c_try_compile
"$LINENO"; then :
13588 # Check for potential -arch flags. It is not universal unless
13589 # there are at least two -arch flags with different values.
13592 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13593 if test -n "$ac_prev"; then
13595 i?
86 | x86_64 | ppc | ppc64
)
13596 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13599 ac_cv_c_bigendian
=universal
13605 elif test "x$ac_word" = "x-arch"; then
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13611 if test $ac_cv_c_bigendian = unknown
; then
13612 # See if sys/param.h defines the BYTE_ORDER macro.
13613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include <sys/types.h>
13616 #include <sys/param.h>
13621 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13622 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13624 bogus endian macros
13631 if ac_fn_c_try_compile
"$LINENO"; then :
13632 # It does; now see whether it defined to BIG_ENDIAN or not.
13633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <sys/types.h>
13636 #include <sys/param.h>
13641 #if BYTE_ORDER != BIG_ENDIAN
13649 if ac_fn_c_try_compile
"$LINENO"; then :
13650 ac_cv_c_bigendian
=yes
13652 ac_cv_c_bigendian
=no
13654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13658 if test $ac_cv_c_bigendian = unknown
; then
13659 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <limits.h>
13667 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13668 bogus endian macros
13675 if ac_fn_c_try_compile
"$LINENO"; then :
13676 # It does; now see whether it defined to _BIG_ENDIAN or not.
13677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 #include <limits.h>
13684 #ifndef _BIG_ENDIAN
13692 if ac_fn_c_try_compile
"$LINENO"; then :
13693 ac_cv_c_bigendian
=yes
13695 ac_cv_c_bigendian
=no
13697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13701 if test $ac_cv_c_bigendian = unknown
; then
13702 # Compile a test program.
13703 if test "$cross_compiling" = yes; then :
13704 # Try to guess by grepping values from an object file.
13705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 short int ascii_mm[] =
13708 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13709 short int ascii_ii[] =
13710 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13711 int use_ascii (int i) {
13712 return ascii_mm[i] + ascii_ii[i];
13714 short int ebcdic_ii[] =
13715 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13716 short int ebcdic_mm[] =
13717 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13718 int use_ebcdic (int i) {
13719 return ebcdic_mm[i] + ebcdic_ii[i];
13726 return use_ascii (foo) == use_ebcdic (foo);
13731 if ac_fn_c_try_compile
"$LINENO"; then :
13732 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13733 ac_cv_c_bigendian
=yes
13735 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13736 if test "$ac_cv_c_bigendian" = unknown
; then
13737 ac_cv_c_bigendian
=no
13739 # finding both strings is unlikely to happen, but who knows?
13740 ac_cv_c_bigendian
=unknown
13744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 $ac_includes_default
13753 /* Are we little or big endian? From Harbison&Steele. */
13757 char c[sizeof (long int)];
13760 return u.c[sizeof (long int) - 1] == 1;
13766 if ac_fn_c_try_run
"$LINENO"; then :
13767 ac_cv_c_bigendian
=no
13769 ac_cv_c_bigendian
=yes
13771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13778 $as_echo "$ac_cv_c_bigendian" >&6; }
13779 case $ac_cv_c_bigendian in #(
13781 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13787 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13791 as_fn_error
"unknown endianness
13792 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13797 $as_echo_n "checking for inline... " >&6; }
13798 if test "${ac_cv_c_inline+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13802 for ac_kw
in inline __inline__ __inline
; do
13803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #ifndef __cplusplus
13807 static $ac_kw foo_t static_foo () {return 0; }
13808 $ac_kw foo_t foo () {return 0; }
13812 if ac_fn_c_try_compile
"$LINENO"; then :
13813 ac_cv_c_inline
=$ac_kw
13815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13816 test "$ac_cv_c_inline" != no
&& break
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13821 $as_echo "$ac_cv_c_inline" >&6; }
13823 case $ac_cv_c_inline in
13826 case $ac_cv_c_inline in
13828 *) ac_val
=$ac_cv_c_inline;;
13830 cat >>confdefs.h
<<_ACEOF
13831 #ifndef __cplusplus
13832 #define inline $ac_val
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13840 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13841 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 /* On HP-UX before 11.23, strtold returns a struct instead of
13847 long double. Reject implementations like that, by requiring
13848 compatibility with the C99 prototype. */
13849 #include <stdlib.h>
13850 static long double (*p) (char const *, char **) = strtold;
13852 test (char const *nptr, char **endptr)
13855 r = strtold (nptr, endptr);
13861 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13866 if ac_fn_c_try_link
"$LINENO"; then :
13867 gl_cv_func_c99_strtold
=yes
13869 gl_cv_func_c99_strtold
=no
13871 rm -f core conftest.err conftest.
$ac_objext \
13872 conftest
$ac_exeext conftest.
$ac_ext
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13875 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13876 if test $gl_cv_func_c99_strtold = yes; then
13878 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13883 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13884 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13885 $as_echo_n "(cached) " >&6
13887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 #include <sys/types.h>
13891 #include <sys/stat.h>
13895 struct stat s; s.st_dm_mode;
13900 if ac_fn_c_try_compile
"$LINENO"; then :
13901 ac_cv_struct_st_dm_mode
=yes
13903 ac_cv_struct_st_dm_mode
=no
13905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13908 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13910 if test $ac_cv_struct_st_dm_mode = yes; then
13912 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13917 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13918 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13924 cat >>confdefs.h
<<_ACEOF
13925 #define HAVE_DECL_STRMODE $ac_have_decl
13931 GNULIB_CALLOC_POSIX
=0;
13932 GNULIB_CANONICALIZE_FILE_NAME
=0;
13933 GNULIB_GETLOADAVG
=0;
13934 GNULIB_GETSUBOPT
=0;
13936 GNULIB_MALLOC_POSIX
=0;
13940 GNULIB_MKOSTEMPS
=0;
13946 GNULIB_REALLOC_POSIX
=0;
13953 GNULIB_SYSTEM_POSIX
=0;
13959 HAVE_CANONICALIZE_FILE_NAME
=1;
13960 HAVE_DECL_GETLOADAVG
=1;
13974 HAVE_DECL_SETENV
=1;
13978 HAVE_STRUCT_RANDOM_DATA
=1;
13979 HAVE_SYS_LOADAVG_H
=0;
13981 HAVE_DECL_UNSETENV
=1;
13983 REPLACE_CANONICALIZE_FILE_NAME
=0;
13989 REPLACE_REALPATH
=0;
13992 REPLACE_UNSETENV
=0;
14001 GNULIB_EUIDACCESS
=0;
14002 GNULIB_FACCESSAT
=0;
14006 GNULIB_FTRUNCATE
=0;
14008 GNULIB_GETDOMAINNAME
=0;
14009 GNULIB_GETDTABLESIZE
=0;
14010 GNULIB_GETGROUPS
=0;
14011 GNULIB_GETHOSTNAME
=0;
14013 GNULIB_GETLOGIN_R
=0;
14014 GNULIB_GETPAGESIZE
=0;
14015 GNULIB_GETUSERSHELL
=0;
14025 GNULIB_READLINKAT
=0;
14029 GNULIB_SYMLINKAT
=0;
14030 GNULIB_TTYNAME_R
=0;
14031 GNULIB_UNISTD_H_GETOPT
=0;
14032 GNULIB_UNISTD_H_SIGPIPE
=0;
14046 HAVE_GETDTABLESIZE
=1;
14048 HAVE_GETHOSTNAME
=1;
14050 HAVE_GETPAGESIZE
=1;
14065 HAVE_DECL_ENVIRON
=1;
14066 HAVE_DECL_FCHDIR
=1;
14067 HAVE_DECL_GETDOMAINNAME
=1;
14068 HAVE_DECL_GETLOGIN_R
=1;
14069 HAVE_DECL_GETPAGESIZE
=1;
14070 HAVE_DECL_GETUSERSHELL
=1;
14071 HAVE_DECL_TTYNAME_R
=1;
14073 HAVE_SYS_PARAM_H
=0;
14078 REPLACE_FCHOWNAT
=0;
14080 REPLACE_GETDOMAINNAME
=0;
14081 REPLACE_GETLOGIN_R
=0;
14082 REPLACE_GETGROUPS
=0;
14083 REPLACE_GETPAGESIZE
=0;
14090 REPLACE_READLINK
=0;
14094 REPLACE_TTYNAME_R
=0;
14096 REPLACE_UNLINKAT
=0;
14099 UNISTD_H_HAVE_WINSOCK2_H
=0;
14100 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14106 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14107 if test "${gl_cv_have_include_next+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14110 rm -rf conftestd1a conftestd1b conftestd2
14111 mkdir conftestd1a conftestd1b conftestd2
14112 cat <<EOF > conftestd1a/conftest.h
14113 #define DEFINED_IN_CONFTESTD1
14114 #include_next <conftest.h>
14115 #ifdef DEFINED_IN_CONFTESTD2
14118 #error "include_next doesn't work"
14121 cat <<EOF > conftestd1b/conftest.h
14122 #define DEFINED_IN_CONFTESTD1
14124 #include_next <conftest.h>
14125 #ifdef DEFINED_IN_CONFTESTD2
14128 #error "include_next doesn't work"
14131 cat <<EOF > conftestd2/conftest.h
14132 #ifndef DEFINED_IN_CONFTESTD1
14133 #error "include_next test doesn't work"
14135 #define DEFINED_IN_CONFTESTD2
14137 gl_save_CPPFLAGS
="$CPPFLAGS"
14138 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <conftest.h>
14143 if ac_fn_c_try_compile
"$LINENO"; then :
14144 gl_cv_have_include_next
=yes
14146 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <conftest.h>
14151 if ac_fn_c_try_compile
"$LINENO"; then :
14152 gl_cv_have_include_next
=buggy
14154 gl_cv_have_include_next
=no
14156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14160 CPPFLAGS
="$gl_save_CPPFLAGS"
14161 rm -rf conftestd1a conftestd1b conftestd2
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14165 $as_echo "$gl_cv_have_include_next" >&6; }
14166 PRAGMA_SYSTEM_HEADER
=
14167 if test $gl_cv_have_include_next = yes; then
14168 INCLUDE_NEXT
=include_next
14169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14170 if test -n "$GCC"; then
14171 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14174 if test $gl_cv_have_include_next = buggy
; then
14175 INCLUDE_NEXT
=include
14176 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14178 INCLUDE_NEXT
=include
14179 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14186 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14187 if test "${gl_cv_pragma_columns+set}" = set; then :
14188 $as_echo_n "(cached) " >&6
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199 $EGREP "choke me" >/dev
/null
2>&1; then :
14200 gl_cv_pragma_columns
=yes
14202 gl_cv_pragma_columns
=no
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14209 $as_echo "$gl_cv_pragma_columns" >&6; }
14210 if test $gl_cv_pragma_columns = yes; then
14211 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14232 if test $gl_cv_have_include_next = yes; then
14233 gl_cv_next_getopt_h
='<'getopt.h
'>'
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14236 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14237 if test "${gl_cv_next_getopt_h+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14241 if test $ac_cv_header_getopt_h = yes; then
14244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #include <getopt.h>
14250 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14251 *) gl_absname_cpp
="$ac_cpp" ;;
14253 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14254 sed -n '\#/getopt.h#{
14255 s#.*"\(.*/getopt.h\)".*#\1#
14261 gl_cv_next_getopt_h
='<'getopt.h
'>'
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14267 $as_echo "$gl_cv_next_getopt_h" >&6; }
14269 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14271 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14273 gl_next_as_first_directive
='<'getopt.h
'>'
14275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14276 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14278 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14283 if test $ac_cv_header_getopt_h = yes; then
14292 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14293 for ac_header
in getopt.h
14295 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14296 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14297 cat >>confdefs.h
<<_ACEOF
14298 #define HAVE_GETOPT_H 1
14302 gl_replace_getopt
=yes
14309 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14310 for ac_func
in getopt_long_only
14312 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14313 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14314 cat >>confdefs.h
<<_ACEOF
14315 #define HAVE_GETOPT_LONG_ONLY 1
14319 gl_replace_getopt
=yes
14325 if test -z "$gl_replace_getopt"; then
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14327 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14328 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <unistd.h>
14338 int *p = &optreset; return optreset;
14343 if ac_fn_c_try_compile
"$LINENO"; then :
14346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <getopt.h>
14352 return !getopt_clip;
14357 if ac_fn_c_try_compile
"$LINENO"; then :
14362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14366 gl_save_CPPFLAGS
=$CPPFLAGS
14367 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14368 if test "$cross_compiling" = yes; then :
14370 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14371 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14372 *) gl_cv_func_getopt_posix
="guessing yes";;
14376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 #include <unistd.h>
14380 #include <stdlib.h>
14381 #include <string.h>
14391 argv[argc++] = "program";
14392 argv[argc++] = "-a";
14393 argv[argc++] = "foo";
14394 argv[argc++] = "bar";
14396 optind = OPTIND_MIN;
14399 c = getopt (argc, argv, "ab");
14402 c = getopt (argc, argv, "ab");
14405 if (!(optind == 2))
14408 /* Some internal state exists at this point. */
14414 argv[argc++] = "program";
14415 argv[argc++] = "donald";
14416 argv[argc++] = "-p";
14417 argv[argc++] = "billy";
14418 argv[argc++] = "duck";
14419 argv[argc++] = "-a";
14420 argv[argc++] = "bar";
14422 optind = OPTIND_MIN;
14425 c = getopt (argc, argv, "+abp:q:");
14428 if (!(strcmp (argv[0], "program") == 0))
14430 if (!(strcmp (argv[1], "donald") == 0))
14432 if (!(strcmp (argv[2], "-p") == 0))
14434 if (!(strcmp (argv[3], "billy") == 0))
14436 if (!(strcmp (argv[4], "duck") == 0))
14438 if (!(strcmp (argv[5], "-a") == 0))
14440 if (!(strcmp (argv[6], "bar") == 0))
14442 if (!(optind == 1))
14445 /* Detect MacOS 10.5, AIX 7.1 bug. */
14447 char *argv[3] = { "program", "-ab", NULL };
14448 optind = OPTIND_MIN;
14450 if (getopt (2, argv, "ab:") != 'a')
14452 if (getopt (2, argv, "ab:") != '?')
14464 if ac_fn_c_try_run
"$LINENO"; then :
14465 gl_cv_func_getopt_posix
=yes
14467 gl_cv_func_getopt_posix
=no
14469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14473 CPPFLAGS
=$gl_save_CPPFLAGS
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14477 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14478 case "$gl_cv_func_getopt_posix" in
14479 *no
) gl_replace_getopt
=yes ;;
14483 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14485 $as_echo_n "checking for working GNU getopt function... " >&6; }
14486 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14489 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14490 # optstring is necessary for programs like m4 that have POSIX-mandated
14491 # semantics for supporting options interspersed with files.
14492 # Also, since getopt_long is a GNU extension, we require optind=0.
14493 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14494 # so take care to revert to the correct (non-)export state.
14495 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14496 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14497 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14498 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14499 *) gl_had_POSIXLY_CORRECT
= ;;
14502 export POSIXLY_CORRECT
14503 if test "$cross_compiling" = yes; then :
14504 case $host_os:$ac_cv_have_decl_optreset in
14505 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14506 *:yes) gl_cv_func_getopt_gnu
=no
;;
14507 *) gl_cv_func_getopt_gnu
=yes;;
14511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <getopt.h>
14514 #include <stddef.h>
14515 #include <string.h>
14522 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14523 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14524 OSF/1 5.1, Solaris 10. */
14527 myargv[0] = "conftest";
14531 if (getopt (2, myargv, "+a") != '?')
14534 /* This code succeeds on glibc 2.8, mingw,
14535 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14536 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14538 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14541 if (getopt (4, argv, "p::") != 'p')
14543 else if (optarg != NULL)
14545 else if (getopt (4, argv, "p::") != -1)
14547 else if (optind != 2)
14550 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14552 char *argv[] = { "program", "foo", "-p", NULL };
14554 if (getopt (3, argv, "-p") != 1)
14556 else if (getopt (3, argv, "-p") != 'p')
14559 /* This code fails on glibc 2.11. */
14561 char *argv[] = { "program", "-b", "-a", NULL };
14562 optind = opterr = 0;
14563 if (getopt (3, argv, "+:a:b") != 'b')
14565 else if (getopt (3, argv, "+:a:b") != ':')
14574 if ac_fn_c_try_run
"$LINENO"; then :
14575 gl_cv_func_getopt_gnu
=yes
14577 gl_cv_func_getopt_gnu
=no
14579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14583 case $gl_had_POSIXLY_CORRECT in
14585 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14586 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14591 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14592 if test "$gl_cv_func_getopt_gnu" = "no"; then
14593 gl_replace_getopt
=yes
14597 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14598 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14604 cat >>confdefs.h
<<_ACEOF
14605 #define HAVE_DECL_GETENV $ac_have_decl
14613 if test -n "$gl_replace_getopt"; then :
14619 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14623 GNULIB_UNISTD_H_GETOPT
=1
14632 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14642 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14664 GNULIB_UTIMENSAT
=0;
14678 REPLACE_FUTIMENS
=0;
14684 REPLACE_UTIMENSAT
=0;
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14690 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14691 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14692 $as_echo_n "(cached) " >&6
14694 rm -f conftest.sym conftest.
file
14695 echo >conftest.
file
14696 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14697 if test "$cross_compiling" = yes; then :
14698 # When cross-compiling, be pessimistic so we will end up using the
14699 # replacement version of lstat that checks for trailing slashes and
14700 # calls lstat a second time when necessary.
14701 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 $ac_includes_default
14711 /* Linux will dereference the symlink and fail, as required by
14712 POSIX. That is better in the sense that it means we will not
14713 have to compile and use the lstat wrapper. */
14714 return lstat ("conftest.sym/", &sbuf) == 0;
14720 if ac_fn_c_try_run
"$LINENO"; then :
14721 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14723 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14730 # If the 'ln -s' command failed, then we probably don't even
14731 # have an lstat function.
14732 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14734 rm -f conftest.sym conftest.
file
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14738 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14739 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14741 cat >>confdefs.h
<<_ACEOF
14742 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14745 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14754 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14760 GNULIB_NANOSLEEP
=0;
14764 HAVE_DECL_LOCALTIME_R
=1;
14768 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14769 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14770 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14771 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14776 gl_cv_c_multiarch
=no
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #ifndef __APPLE_CC__
14780 not a universal capable compiler
14785 if ac_fn_c_try_compile
"$LINENO"; then :
14789 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14790 if test -n "$prev"; then
14792 i?
86 | x86_64 | ppc | ppc64
)
14793 if test -z "$arch" ||
test "$arch" = "$word"; then
14796 gl_cv_c_multiarch
=yes
14802 if test "x$word" = "x-arch"; then
14809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14810 if test $gl_cv_c_multiarch = yes; then
14811 APPLE_UNIVERSAL_BUILD
=1
14813 APPLE_UNIVERSAL_BUILD
=0
14822 if test $ac_cv_header_sys_socket_h = no
; then
14823 for ac_header
in ws2tcpip.h
14825 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14826 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
14827 cat >>confdefs.h
<<_ACEOF
14828 #define HAVE_WS2TCPIP_H 1
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14838 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14839 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14845 #include <stdbool.h>
14847 "error: bool is not defined"
14850 "error: false is not defined"
14853 "error: false is not 0"
14856 "error: true is not defined"
14859 "error: true is not 1"
14861 #ifndef __bool_true_false_are_defined
14862 "error: __bool_true_false_are_defined is not defined"
14865 struct s { _Bool s: 1; _Bool t; } s;
14867 char a[true == 1 ? 1 : -1];
14868 char b[false == 0 ? 1 : -1];
14869 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14870 char d[(bool) 0.5 == true ? 1 : -1];
14871 /* See body of main program for 'e'. */
14872 char f[(_Bool) 0.0 == false ? 1 : -1];
14874 char h[sizeof (_Bool)];
14875 char i[sizeof s.t];
14876 enum { j = false, k = true, l = false * true, m = true * 256 };
14877 /* The following fails for
14878 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14880 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14881 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14882 /* Catch a bug in an HP-UX C compiler. See
14883 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14884 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14896 /* Refer to every declared value, to avoid compiler optimizations. */
14897 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14898 + !m + !n + !o + !p + !q + !pq);
14904 if ac_fn_c_try_compile
"$LINENO"; then :
14905 ac_cv_header_stdbool_h
=yes
14907 ac_cv_header_stdbool_h
=no
14909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14912 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14913 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14914 if test "x$ac_cv_type__Bool" = x
""yes; then :
14916 cat >>confdefs.h
<<_ACEOF
14917 #define HAVE__BOOL 1
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14930 $as_echo_n "checking for wchar_t... " >&6; }
14931 if test "${gt_cv_c_wchar_t+set}" = set; then :
14932 $as_echo_n "(cached) " >&6
14934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <stddef.h>
14937 wchar_t foo = (wchar_t)'\0';
14946 if ac_fn_c_try_compile
"$LINENO"; then :
14947 gt_cv_c_wchar_t
=yes
14951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14954 $as_echo "$gt_cv_c_wchar_t" >&6; }
14955 if test $gt_cv_c_wchar_t = yes; then
14957 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14963 $as_echo_n "checking for unsigned long long int... " >&6; }
14964 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14967 ac_cv_type_unsigned_long_long_int
=yes
14968 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* For now, do not test the preprocessor; as of 2007 there are too many
14973 implementations with broken preprocessors. Perhaps this can
14974 be revisited in 2012. In the meantime, code should not expect
14975 #if to work with literals wider than 32 bits. */
14976 /* Test literals. */
14977 long long int ll = 9223372036854775807ll;
14978 long long int nll = -9223372036854775807LL;
14979 unsigned long long int ull = 18446744073709551615ULL;
14980 /* Test constant expressions. */
14981 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14983 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14989 /* Test availability of runtime routines for shift and division. */
14990 long long int llmax = 9223372036854775807ll;
14991 unsigned long long int ullmax = 18446744073709551615ull;
14992 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14993 | (llmax / ll) | (llmax % ll)
14994 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14995 | (ullmax / ull) | (ullmax % ull));
15001 if ac_fn_c_try_link
"$LINENO"; then :
15004 ac_cv_type_unsigned_long_long_int
=no
15006 rm -f core conftest.err conftest.
$ac_objext \
15007 conftest
$ac_exeext conftest.
$ac_ext
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15011 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15012 if test $ac_cv_type_unsigned_long_long_int = yes; then
15014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15021 $as_echo_n "checking for long long int... " >&6; }
15022 if test "${ac_cv_type_long_long_int+set}" = set; then :
15023 $as_echo_n "(cached) " >&6
15025 ac_cv_type_long_long_int
=yes
15026 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15027 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
15028 if test $ac_cv_type_long_long_int = yes; then
15029 if test "$cross_compiling" = yes; then :
15032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <limits.h>
15037 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15038 # define LLONG_MAX (HALF - 1 + HALF)
15043 long long int n = 1;
15047 long long int m = n << i;
15050 if (LLONG_MAX / 2 < m)
15058 if ac_fn_c_try_run
"$LINENO"; then :
15061 ac_cv_type_long_long_int
=no
15063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15071 $as_echo "$ac_cv_type_long_long_int" >&6; }
15072 if test $ac_cv_type_long_long_int = yes; then
15074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15088 GNULIB_FPRINTF_POSIX
=0;
15100 GNULIB_OBSTACK_PRINTF
=0;
15101 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15105 GNULIB_PRINTF_POSIX
=0;
15113 GNULIB_SPRINTF_POSIX
=0;
15114 GNULIB_STDIO_H_SIGPIPE
=0;
15116 GNULIB_VASPRINTF
=0;
15119 GNULIB_VFPRINTF_POSIX
=0;
15121 GNULIB_VPRINTF_POSIX
=0;
15122 GNULIB_VSNPRINTF
=0;
15123 GNULIB_VSPRINTF_POSIX
=0;
15124 HAVE_DECL_FPURGE
=1;
15125 HAVE_DECL_FSEEKO
=1;
15126 HAVE_DECL_FTELLO
=1;
15127 HAVE_DECL_GETDELIM
=1;
15128 HAVE_DECL_GETLINE
=1;
15129 HAVE_DECL_OBSTACK_PRINTF
=1;
15130 HAVE_DECL_SNPRINTF
=1;
15131 HAVE_DECL_VSNPRINTF
=1;
15149 REPLACE_GETDELIM
=0;
15151 REPLACE_OBSTACK_PRINTF
=0;
15157 REPLACE_RENAMEAT
=0;
15158 REPLACE_SNPRINTF
=0;
15160 REPLACE_STDIO_WRITE_FUNCS
=0;
15162 REPLACE_VASPRINTF
=0;
15163 REPLACE_VDPRINTF
=0;
15164 REPLACE_VFPRINTF
=0;
15166 REPLACE_VSNPRINTF
=0;
15167 REPLACE_VSPRINTF
=0;
15170 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15172 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15174 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15184 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15185 if test "${ac_cv_header_stat_broken+set}" = set; then :
15186 $as_echo_n "(cached) " >&6
15188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 #include <sys/types.h>
15191 #include <sys/stat.h>
15193 #if defined S_ISBLK && defined S_IFDIR
15194 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15197 #if defined S_ISBLK && defined S_IFCHR
15198 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15201 #if defined S_ISLNK && defined S_IFREG
15202 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15205 #if defined S_ISSOCK && defined S_IFREG
15206 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15210 if ac_fn_c_try_compile
"$LINENO"; then :
15211 ac_cv_header_stat_broken
=no
15213 ac_cv_header_stat_broken
=yes
15215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15218 $as_echo "$ac_cv_header_stat_broken" >&6; }
15219 if test $ac_cv_header_stat_broken = yes; then
15221 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15228 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15229 if test "${ac_cv_c_restrict+set}" = set; then :
15230 $as_echo_n "(cached) " >&6
15232 ac_cv_c_restrict
=no
15233 # The order here caters to the fact that C++ does not require restrict.
15234 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 typedef int * int_ptr;
15238 int foo (int_ptr $ac_kw ip) {
15245 int * $ac_kw t = s;
15252 if ac_fn_c_try_compile
"$LINENO"; then :
15253 ac_cv_c_restrict
=$ac_kw
15255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15256 test "$ac_cv_c_restrict" != no
&& break
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15261 $as_echo "$ac_cv_c_restrict" >&6; }
15263 case $ac_cv_c_restrict in
15265 no
) $as_echo "#define restrict /**/" >>confdefs.h
15267 *) cat >>confdefs.h
<<_ACEOF
15268 #define restrict $ac_cv_c_restrict
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15278 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15279 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15289 static struct timespec x; x.tv_sec = x.tv_nsec;
15294 if ac_fn_c_try_compile
"$LINENO"; then :
15295 gl_cv_sys_struct_timespec_in_time_h
=yes
15297 gl_cv_sys_struct_timespec_in_time_h
=no
15299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15302 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15304 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15305 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15306 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15307 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15308 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15311 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15312 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15313 $as_echo_n "(cached) " >&6
15315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 #include <sys/time.h>
15322 static struct timespec x; x.tv_sec = x.tv_nsec;
15327 if ac_fn_c_try_compile
"$LINENO"; then :
15328 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15330 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15335 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15336 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15337 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15340 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15341 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346 #include <pthread.h>
15351 static struct timespec x; x.tv_sec = x.tv_nsec;
15356 if ac_fn_c_try_compile
"$LINENO"; then :
15357 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15359 gl_cv_sys_struct_timespec_in_pthread_h
=no
15361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15364 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15365 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15366 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15385 if test $gl_cv_have_include_next = yes; then
15386 gl_cv_next_time_h
='<'time.h
'>'
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15389 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15390 if test "${gl_cv_next_time_h+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15400 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15401 *) gl_absname_cpp
="$ac_cpp" ;;
15403 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15404 sed -n '\#/time.h#{
15405 s#.*"\(.*/time.h\)".*#\1#
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15414 $as_echo "$gl_cv_next_time_h" >&6; }
15416 NEXT_TIME_H
=$gl_cv_next_time_h
15418 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15420 gl_next_as_first_directive
='<'time.h
'>'
15422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15423 gl_next_as_first_directive
=$gl_cv_next_time_h
15425 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15432 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15433 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15439 cat >>confdefs.h
<<_ACEOF
15440 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15447 GL_COND_LIBTOOL_TRUE
=
15448 GL_COND_LIBTOOL_FALSE
='#'
15450 GL_COND_LIBTOOL_TRUE
='#'
15451 GL_COND_LIBTOOL_FALSE
=
15454 gl_cond_libtool
=false
15467 gl_source_base
='lib'
15468 # Code from module arg-nonnull:
15469 # Code from module c++defs:
15470 # Code from module careadlinkat:
15472 # Code from module crypto/md5:
15482 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15489 # Code from module dosname:
15490 # Code from module dtoastr:
15492 # Code from module extensions:
15493 # Code from module filemode:
15504 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15508 # Code from module getloadavg:
15511 # Persuade glibc <stdlib.h> to declare getloadavg().
15514 # Make sure getloadavg.c is where it belongs, at configure-time.
15515 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15516 as_fn_error
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15520 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15521 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15522 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15523 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15528 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15529 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15530 # to get the right answer into the cache.
15531 # For kstat on solaris, we need to test for libelf and libkvm to force the
15532 # definition of SVR4 below.
15533 if test $gl_have_func = no
; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15535 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15536 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15539 ac_check_lib_save_LIBS
=$LIBS
15541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15554 return elf_begin ();
15559 if ac_fn_c_try_link
"$LINENO"; then :
15560 ac_cv_lib_elf_elf_begin
=yes
15562 ac_cv_lib_elf_elf_begin
=no
15564 rm -f core conftest.err conftest.
$ac_objext \
15565 conftest
$ac_exeext conftest.
$ac_ext
15566 LIBS
=$ac_check_lib_save_LIBS
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15569 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15570 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15575 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15576 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15579 ac_check_lib_save_LIBS
=$LIBS
15581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15584 /* Override any GCC internal prototype to avoid an error.
15585 Use char because int might match the return type of a GCC
15586 builtin and then its argument prototype would still apply. */
15594 return kvm_open ();
15599 if ac_fn_c_try_link
"$LINENO"; then :
15600 ac_cv_lib_kvm_kvm_open
=yes
15602 ac_cv_lib_kvm_kvm_open
=no
15604 rm -f core conftest.err conftest.
$ac_objext \
15605 conftest
$ac_exeext conftest.
$ac_ext
15606 LIBS
=$ac_check_lib_save_LIBS
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15609 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15610 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15614 # Check for the 4.4BSD definition of getloadavg.
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15616 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15617 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15618 $as_echo_n "(cached) " >&6
15620 ac_check_lib_save_LIBS
=$LIBS
15621 LIBS
="-lutil $LIBS"
15622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15625 /* Override any GCC internal prototype to avoid an error.
15626 Use char because int might match the return type of a GCC
15627 builtin and then its argument prototype would still apply. */
15631 char getloadavg ();
15635 return getloadavg ();
15640 if ac_fn_c_try_link
"$LINENO"; then :
15641 ac_cv_lib_util_getloadavg
=yes
15643 ac_cv_lib_util_getloadavg
=no
15645 rm -f core conftest.err conftest.
$ac_objext \
15646 conftest
$ac_exeext conftest.
$ac_ext
15647 LIBS
=$ac_check_lib_save_LIBS
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15650 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15651 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15652 LIBS
="-lutil $LIBS" gl_have_func
=yes
15657 if test $gl_have_func = no
; then
15658 # There is a commonly available library for RS/6000 AIX.
15659 # Since it is not a standard part of AIX, it might be installed locally.
15660 gl_getloadavg_LIBS
=$LIBS
15661 LIBS
="-L/usr/local/lib $LIBS"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15663 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15664 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15667 ac_check_lib_save_LIBS
=$LIBS
15668 LIBS
="-lgetloadavg $LIBS"
15669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15678 char getloadavg ();
15682 return getloadavg ();
15687 if ac_fn_c_try_link
"$LINENO"; then :
15688 ac_cv_lib_getloadavg_getloadavg
=yes
15690 ac_cv_lib_getloadavg_getloadavg
=no
15692 rm -f core conftest.err conftest.
$ac_objext \
15693 conftest
$ac_exeext conftest.
$ac_ext
15694 LIBS
=$ac_check_lib_save_LIBS
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15697 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15698 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15699 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15701 LIBS
=$gl_getloadavg_LIBS
15706 # Set up the replacement function if necessary.
15707 if test $gl_have_func = no
; then
15716 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15719 # Figure out what our getloadavg.c needs.
15721 # Solaris has libkstat which does not require root.
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15723 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15724 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
15727 ac_check_lib_save_LIBS
=$LIBS
15728 LIBS
="-lkstat $LIBS"
15729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15738 char kstat_open ();
15742 return kstat_open ();
15747 if ac_fn_c_try_link
"$LINENO"; then :
15748 ac_cv_lib_kstat_kstat_open
=yes
15750 ac_cv_lib_kstat_kstat_open
=no
15752 rm -f core conftest.err conftest.
$ac_objext \
15753 conftest
$ac_exeext conftest.
$ac_ext
15754 LIBS
=$ac_check_lib_save_LIBS
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15757 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15758 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15759 cat >>confdefs.h
<<_ACEOF
15760 #define HAVE_LIBKSTAT 1
15763 LIBS
="-lkstat $LIBS"
15767 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15769 # On HPUX9, an unprivileged user can get load averages this way.
15770 if test $gl_have_func = no
; then
15771 for ac_func
in pstat_getdynamic
15773 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15774 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15775 cat >>confdefs.h
<<_ACEOF
15776 #define HAVE_PSTAT_GETDYNAMIC 1
15784 # AIX has libperfstat which does not require root
15785 if test $gl_have_func = no
; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15787 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15788 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15791 ac_check_lib_save_LIBS
=$LIBS
15792 LIBS
="-lperfstat $LIBS"
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15802 char perfstat_cpu_total ();
15806 return perfstat_cpu_total ();
15811 if ac_fn_c_try_link
"$LINENO"; then :
15812 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15814 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15816 rm -f core conftest.err conftest.
$ac_objext \
15817 conftest
$ac_exeext conftest.
$ac_ext
15818 LIBS
=$ac_check_lib_save_LIBS
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15821 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15822 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15823 cat >>confdefs.h
<<_ACEOF
15824 #define HAVE_LIBPERFSTAT 1
15827 LIBS
="-lperfstat $LIBS"
15831 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15834 if test $gl_have_func = no
; then
15835 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15836 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15839 $as_echo "#define DGUX 1" >>confdefs.h
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15842 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15843 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15846 ac_check_lib_save_LIBS
=$LIBS
15848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15851 /* Override any GCC internal prototype to avoid an error.
15852 Use char because int might match the return type of a GCC
15853 builtin and then its argument prototype would still apply. */
15857 char dg_sys_info ();
15861 return dg_sys_info ();
15866 if ac_fn_c_try_link
"$LINENO"; then :
15867 ac_cv_lib_dgc_dg_sys_info
=yes
15869 ac_cv_lib_dgc_dg_sys_info
=no
15871 rm -f core conftest.err conftest.
$ac_objext \
15872 conftest
$ac_exeext conftest.
$ac_ext
15873 LIBS
=$ac_check_lib_save_LIBS
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15876 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15877 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15878 cat >>confdefs.h
<<_ACEOF
15879 #define HAVE_LIBDGC 1
15891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15893 # Irix 4.0.5F has the header but not the library.
15894 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15895 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15898 $as_echo "#define SVR4 1" >>confdefs.h
15902 if test $gl_have_func = no
; then
15903 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15904 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15907 $as_echo "#define UMAX 1" >>confdefs.h
15910 $as_echo "#define UMAX4_3 1" >>confdefs.h
15917 if test $gl_have_func = no
; then
15918 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15920 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15927 if test $gl_have_func = no
; then
15928 for ac_header
in mach
/mach.h
15930 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15931 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15932 cat >>confdefs.h
<<_ACEOF
15933 #define HAVE_MACH_MACH_H 1
15942 for ac_header
in nlist.h
15944 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15945 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15946 cat >>confdefs.h
<<_ACEOF
15947 #define HAVE_NLIST_H 1
15949 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15951 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15953 cat >>confdefs.h
<<_ACEOF
15954 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15967 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15968 x.n_un.n_name = "";
15976 if ac_fn_c_try_link
"$LINENO"; then :
15978 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15981 rm -f core conftest.err conftest.
$ac_objext \
15982 conftest
$ac_exeext conftest.
$ac_ext
15992 if test "x$gl_save_LIBS" = x
; then
15993 GETLOADAVG_LIBS
=$LIBS
15995 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16000 # Test whether the system declares getloadavg. Solaris has the function
16001 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16002 for ac_header
in sys
/loadavg.h
16004 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16005 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
16006 cat >>confdefs.h
<<_ACEOF
16007 #define HAVE_SYS_LOADAVG_H 1
16014 if test $ac_cv_header_sys_loadavg_h = yes; then
16015 HAVE_SYS_LOADAVG_H
=1
16017 HAVE_SYS_LOADAVG_H
=0
16019 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16020 # include <sys/loadavg.h>
16022 #include <stdlib.h>
16024 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
16027 HAVE_DECL_GETLOADAVG
=0
16034 GNULIB_GETLOADAVG
=1
16038 # Code from module getopt-gnu:
16045 # Code from module getopt-posix:
16051 if test -n "$gl_replace_getopt"; then :
16057 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16061 GNULIB_UNISTD_H_GETOPT
=1
16070 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16080 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16090 # Code from module gettext-h:
16093 # Code from module ignore-value:
16095 # Code from module include_next:
16096 # Code from module intprops:
16097 # Code from module lstat:
16101 if test $ac_cv_func_lstat = yes; then
16103 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
16106 # Prerequisites of lib/lstat.c.
16119 # Code from module mktime:
16125 if test $APPLE_UNIVERSAL_BUILD = 1; then
16126 # A universal build on Apple MacOS X platforms.
16127 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16128 # But we need a configuration result that is valid in both modes.
16129 ac_cv_func_working_mktime
=no
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16132 $as_echo_n "checking for working mktime... " >&6; }
16133 if test "${ac_cv_func_working_mktime+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16136 if test "$cross_compiling" = yes; then :
16137 ac_cv_func_working_mktime
=no
16139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 /* Test program from Paul Eggert and Tony Leneis. */
16142 #include <limits.h>
16143 #include <stdlib.h>
16146 #ifdef HAVE_UNISTD_H
16147 # include <unistd.h>
16151 # define alarm(X) /* empty */
16154 /* Work around redefinition to rpl_putenv by other config tests. */
16157 static time_t time_t_max;
16158 static time_t time_t_min;
16160 /* Values we'll use to set the TZ environment variable. */
16161 static char *tz_strings[] = {
16162 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16163 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16165 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16167 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16168 Based on a problem report from Andreas Jaeger. */
16170 spring_forward_gap ()
16172 /* glibc (up to about 1998-10-07) failed this test. */
16175 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16176 instead of "TZ=America/Vancouver" in order to detect the bug even
16177 on systems that don't support the Olson extension, or don't have the
16178 full zoneinfo tables installed. */
16179 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16188 return mktime (&tm) != (time_t) -1;
16192 mktime_test1 (time_t now)
16195 return ! (lt = localtime (&now)) || mktime (lt) == now;
16199 mktime_test (time_t now)
16201 return (mktime_test1 (now)
16202 && mktime_test1 ((time_t) (time_t_max - now))
16203 && mktime_test1 ((time_t) (time_t_min + now)));
16209 /* Based on code from Ariel Faigon. */
16219 return tm.tm_mon == 2 && tm.tm_mday == 31;
16223 bigtime_test (int j)
16227 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16228 now = mktime (&tm);
16229 if (now != (time_t) -1)
16231 struct tm *lt = localtime (&now);
16233 && lt->tm_year == tm.tm_year
16234 && lt->tm_mon == tm.tm_mon
16235 && lt->tm_mday == tm.tm_mday
16236 && lt->tm_hour == tm.tm_hour
16237 && lt->tm_min == tm.tm_min
16238 && lt->tm_sec == tm.tm_sec
16239 && lt->tm_yday == tm.tm_yday
16240 && lt->tm_wday == tm.tm_wday
16241 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16242 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16251 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16252 ignoring leap seconds. */
16253 unsigned long int answer = 2527315200UL;
16257 tm.tm_year = 2050 - 1900;
16260 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16263 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16264 instead of "TZ=America/Vancouver" in order to detect the bug even
16265 on systems that don't support the Olson extension, or don't have the
16266 full zoneinfo tables installed. */
16267 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16271 /* Check that the result is either a failure, or close enough
16272 to the correct answer that we can assume the discrepancy is
16273 due to leap seconds. */
16274 return (t == (time_t) -1
16275 || (0 < t && answer - 120 <= t && t <= answer + 120));
16284 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16285 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16287 /* This test makes some buggy mktime implementations loop.
16288 Give up after 60 seconds; a mktime slower than that
16289 isn't worth using anyway. */
16292 time_t_max = (! time_t_signed
16294 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16296 time_t_min = (! time_t_signed
16298 : time_t_signed_magnitude
16302 delta = time_t_max / 997; /* a suitable prime number */
16303 for (i = 0; i < N_STRINGS; i++)
16306 putenv (tz_strings[i]);
16308 for (t = 0; t <= time_t_max - delta; t += delta)
16309 if (! mktime_test (t))
16311 if (! (mktime_test ((time_t) 1)
16312 && mktime_test ((time_t) (60 * 60))
16313 && mktime_test ((time_t) (60 * 60 * 24))))
16316 for (j = 1; ; j <<= 1)
16317 if (! bigtime_test (j))
16319 else if (INT_MAX / 2 < j)
16321 if (! bigtime_test (INT_MAX))
16324 if (! irix_6_4_bug ())
16326 if (! spring_forward_gap ())
16328 if (! year_2050_test ())
16333 if ac_fn_c_try_run
"$LINENO"; then :
16334 ac_cv_func_working_mktime
=yes
16336 ac_cv_func_working_mktime
=no
16338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16344 $as_echo "$ac_cv_func_working_mktime" >&6; }
16345 if test $ac_cv_func_working_mktime = no
; then
16354 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16358 if test $ac_cv_func_working_mktime = no
; then
16374 # Code from module multiarch:
16376 # Code from module readlink:
16380 if test $ac_cv_func_readlink = no
; then
16390 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16397 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16398 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16399 $as_echo_n "(cached) " >&6
16401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 #include <unistd.h>
16404 /* Cause compilation failure if original declaration has wrong type. */
16405 ssize_t readlink (const char *, char *, size_t);
16414 if ac_fn_c_try_compile
"$LINENO"; then :
16415 gl_cv_decl_readlink_works
=yes
16417 gl_cv_decl_readlink_works
=no
16419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16422 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16424 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16425 if test "${gl_cv_func_readlink_works+set}" = set; then :
16426 $as_echo_n "(cached) " >&6
16428 # We have readlink, so assume ln -s works.
16429 ln -s conftest.no-such conftest.link
16430 ln -s conftest.link conftest.lnk2
16431 if test "$cross_compiling" = yes; then :
16432 gl_cv_func_readlink_works
="guessing no"
16434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #include <unistd.h>
16442 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16447 if ac_fn_c_try_run
"$LINENO"; then :
16448 gl_cv_func_readlink_works
=yes
16450 gl_cv_func_readlink_works
=no
16452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16456 rm -f conftest.link conftest.lnk2
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16459 $as_echo "$gl_cv_func_readlink_works" >&6; }
16460 if test "$gl_cv_func_readlink_works" != yes; then
16462 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16473 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16475 elif test "$gl_cv_decl_readlink_works" != yes; then
16485 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16497 # Code from module socklen:
16498 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16499 /* <sys/types.h> is not needed according to POSIX, but the
16500 <sys/socket.h> in i386-unknown-freebsd4.10 and
16501 powerpc-apple-darwin5.5 required it. */
16502 #include <sys/types.h>
16503 #if HAVE_SYS_SOCKET_H
16504 # include <sys/socket.h>
16505 #elif HAVE_WS2TCPIP_H
16506 # include <ws2tcpip.h>
16510 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16514 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16515 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16518 # Systems have either "struct sockaddr *" or
16519 # "void *" as the second argument to getpeername
16520 gl_cv_socklen_t_equiv
=
16521 for arg2
in "struct sockaddr" void
; do
16522 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
16523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 #include <sys/types.h>
16526 #include <sys/socket.h>
16528 int getpeername (int, $arg2 *, $t *);
16533 getpeername (0, 0, &len);
16538 if ac_fn_c_try_compile
"$LINENO"; then :
16539 gl_cv_socklen_t_equiv
="$t"
16541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16542 test "$gl_cv_socklen_t_equiv" != "" && break
16544 test "$gl_cv_socklen_t_equiv" != "" && break
16549 if test "$gl_cv_socklen_t_equiv" = ""; then
16550 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16553 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16555 cat >>confdefs.h
<<_ACEOF
16556 #define socklen_t $gl_cv_socklen_t_equiv
16561 # Code from module ssize_t:
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16564 $as_echo_n "checking for ssize_t... " >&6; }
16565 if test "${gt_cv_ssize_t+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570 #include <sys/types.h>
16574 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16580 if ac_fn_c_try_compile
"$LINENO"; then :
16585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16588 $as_echo "$gt_cv_ssize_t" >&6; }
16589 if test $gt_cv_ssize_t = no
; then
16591 $as_echo "#define ssize_t int" >>confdefs.h
16595 # Code from module stat:
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16600 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16601 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16602 $as_echo_n "(cached) " >&6
16604 if test "$cross_compiling" = yes; then :
16606 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16607 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 #include <sys/stat.h>
16617 struct stat st; return stat (".", &st) != stat ("./", &st);
16622 if ac_fn_c_try_run
"$LINENO"; then :
16623 gl_cv_func_stat_dir_slash
=yes
16625 gl_cv_func_stat_dir_slash
=no
16627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16633 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16635 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16636 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16637 $as_echo_n "(cached) " >&6
16640 # Assume that if we have lstat, we can also check symlinks.
16641 if test $ac_cv_func_lstat = yes; then
16642 ln -s conftest.tmp conftest.lnk
16644 if test "$cross_compiling" = yes; then :
16645 gl_cv_func_stat_file_slash
="guessing no"
16647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 #include <sys/stat.h>
16656 if (!stat ("conftest.tmp/", &st))
16659 if (!stat ("conftest.lnk/", &st))
16668 if ac_fn_c_try_run
"$LINENO"; then :
16669 gl_cv_func_stat_file_slash
=yes
16671 gl_cv_func_stat_file_slash
=no
16673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16677 rm -f conftest.tmp conftest.lnk
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16680 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16681 case $gl_cv_func_stat_dir_slash in
16682 *no
) REPLACE_STAT
=1
16684 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16687 case $gl_cv_func_stat_file_slash in
16688 *no
) REPLACE_STAT
=1
16690 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16693 if test $REPLACE_STAT = 1; then
16702 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16714 # Code from module stdbool:
16718 # Define two additional variables used in the Makefile substitution.
16720 if test "$ac_cv_header_stdbool_h" = yes; then
16723 STDBOOL_H
='stdbool.h'
16726 if test -n "$STDBOOL_H"; then
16727 GL_GENERATE_STDBOOL_H_TRUE
=
16728 GL_GENERATE_STDBOOL_H_FALSE
='#'
16730 GL_GENERATE_STDBOOL_H_TRUE
='#'
16731 GL_GENERATE_STDBOOL_H_FALSE
=
16735 if test "$ac_cv_type__Bool" = yes; then
16742 # Code from module stddef:
16747 if test $gt_cv_c_wchar_t = no
; then
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16752 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16753 if test "${gl_cv_decl_null_works+set}" = set; then :
16754 $as_echo_n "(cached) " >&6
16756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 #include <stddef.h>
16759 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16769 if ac_fn_c_try_compile
"$LINENO"; then :
16770 gl_cv_decl_null_works
=yes
16772 gl_cv_decl_null_works
=no
16774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16777 $as_echo "$gl_cv_decl_null_works" >&6; }
16778 if test $gl_cv_decl_null_works = no
; then
16783 if test -n "$STDDEF_H"; then
16784 GL_GENERATE_STDDEF_H_TRUE
=
16785 GL_GENERATE_STDDEF_H_FALSE
='#'
16787 GL_GENERATE_STDDEF_H_TRUE
='#'
16788 GL_GENERATE_STDDEF_H_FALSE
=
16791 if test -n "$STDDEF_H"; then
16800 if test $gl_cv_have_include_next = yes; then
16801 gl_cv_next_stddef_h
='<'stddef.h
'>'
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16804 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16805 if test "${gl_cv_next_stddef_h+set}" = set; then :
16806 $as_echo_n "(cached) " >&6
16809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 #include <stddef.h>
16815 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16816 *) gl_absname_cpp
="$ac_cpp" ;;
16818 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16819 sed -n '\#/stddef.h#{
16820 s#.*"\(.*/stddef.h\)".*#\1#
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16829 $as_echo "$gl_cv_next_stddef_h" >&6; }
16831 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16833 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16835 gl_next_as_first_directive
='<'stddef.h
'>'
16837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16838 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16840 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16847 # Code from module stdint:
16851 if test $ac_cv_type_long_long_int = yes; then
16852 HAVE_LONG_LONG_INT
=1
16854 HAVE_LONG_LONG_INT
=0
16858 if test $ac_cv_type_unsigned_long_long_int = yes; then
16859 HAVE_UNSIGNED_LONG_LONG_INT
=1
16861 HAVE_UNSIGNED_LONG_LONG_INT
=0
16866 if test $ac_cv_header_wchar_h = yes; then
16873 if test $ac_cv_header_inttypes_h = yes; then
16880 if test $ac_cv_header_sys_types_h = yes; then
16896 if test $gl_cv_have_include_next = yes; then
16897 gl_cv_next_stdint_h
='<'stdint.h
'>'
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16900 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16901 if test "${gl_cv_next_stdint_h+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
16905 if test $ac_cv_header_stdint_h = yes; then
16908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 #include <stdint.h>
16914 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16915 *) gl_absname_cpp
="$ac_cpp" ;;
16917 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16918 sed -n '\#/stdint.h#{
16919 s#.*"\(.*/stdint.h\)".*#\1#
16925 gl_cv_next_stdint_h
='<'stdint.h
'>'
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16931 $as_echo "$gl_cv_next_stdint_h" >&6; }
16933 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16935 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16937 gl_next_as_first_directive
='<'stdint.h
'>'
16939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16940 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16947 if test $ac_cv_header_stdint_h = yes; then
16954 if test $ac_cv_header_stdint_h = yes; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16956 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16957 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16958 $as_echo_n "(cached) " >&6
16960 gl_cv_header_working_stdint_h
=no
16961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16965 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16966 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16967 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16968 #include <stdint.h>
16969 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16970 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16971 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16975 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16976 included before <wchar.h>. */
16977 #include <stddef.h>
16978 #include <signal.h>
16980 # include <stdio.h>
16982 # include <wchar.h>
16987 int8_t a1 = INT8_MAX;
16988 int8_t a1min = INT8_MIN;
16991 int16_t a2 = INT16_MAX;
16992 int16_t a2min = INT16_MIN;
16995 int32_t a3 = INT32_MAX;
16996 int32_t a3min = INT32_MIN;
16999 int64_t a4 = INT64_MAX;
17000 int64_t a4min = INT64_MIN;
17003 uint8_t b1 = UINT8_MAX;
17005 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17008 uint16_t b2 = UINT16_MAX;
17011 uint32_t b3 = UINT32_MAX;
17014 uint64_t b4 = UINT64_MAX;
17016 int_least8_t c1 = INT8_C (0x7f);
17017 int_least8_t c1max = INT_LEAST8_MAX;
17018 int_least8_t c1min = INT_LEAST8_MIN;
17019 int_least16_t c2 = INT16_C (0x7fff);
17020 int_least16_t c2max = INT_LEAST16_MAX;
17021 int_least16_t c2min = INT_LEAST16_MIN;
17022 int_least32_t c3 = INT32_C (0x7fffffff);
17023 int_least32_t c3max = INT_LEAST32_MAX;
17024 int_least32_t c3min = INT_LEAST32_MIN;
17025 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17026 int_least64_t c4max = INT_LEAST64_MAX;
17027 int_least64_t c4min = INT_LEAST64_MIN;
17028 uint_least8_t d1 = UINT8_C (0xff);
17029 uint_least8_t d1max = UINT_LEAST8_MAX;
17030 uint_least16_t d2 = UINT16_C (0xffff);
17031 uint_least16_t d2max = UINT_LEAST16_MAX;
17032 uint_least32_t d3 = UINT32_C (0xffffffff);
17033 uint_least32_t d3max = UINT_LEAST32_MAX;
17034 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17035 uint_least64_t d4max = UINT_LEAST64_MAX;
17036 int_fast8_t e1 = INT_FAST8_MAX;
17037 int_fast8_t e1min = INT_FAST8_MIN;
17038 int_fast16_t e2 = INT_FAST16_MAX;
17039 int_fast16_t e2min = INT_FAST16_MIN;
17040 int_fast32_t e3 = INT_FAST32_MAX;
17041 int_fast32_t e3min = INT_FAST32_MIN;
17042 int_fast64_t e4 = INT_FAST64_MAX;
17043 int_fast64_t e4min = INT_FAST64_MIN;
17044 uint_fast8_t f1 = UINT_FAST8_MAX;
17045 uint_fast16_t f2 = UINT_FAST16_MAX;
17046 uint_fast32_t f3 = UINT_FAST32_MAX;
17047 uint_fast64_t f4 = UINT_FAST64_MAX;
17049 intptr_t g = INTPTR_MAX;
17050 intptr_t gmin = INTPTR_MIN;
17053 uintptr_t h = UINTPTR_MAX;
17055 intmax_t i = INTMAX_MAX;
17056 uintmax_t j = UINTMAX_MAX;
17058 #include <limits.h> /* for CHAR_BIT */
17059 #define TYPE_MINIMUM(t) \
17060 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17061 #define TYPE_MAXIMUM(t) \
17062 ((t) ((t) 0 < (t) -1 \
17064 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17067 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17068 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17070 /* Detect bug in FreeBSD 6.0 / ia64. */
17071 int check_SIG_ATOMIC:
17072 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17073 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17075 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17077 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17078 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17080 /* Detect bug in mingw. */
17082 WINT_MIN == TYPE_MINIMUM (wint_t)
17083 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17086 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17088 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17089 int check_UINT16_C:
17090 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17092 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17094 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17097 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17100 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17103 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17105 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17106 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17107 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17108 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17109 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17110 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17111 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17112 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17113 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17114 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17115 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17126 if ac_fn_c_try_compile
"$LINENO"; then :
17127 if test "$cross_compiling" = yes; then :
17128 gl_cv_header_working_stdint_h
=yes
17131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17135 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17136 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17137 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17138 #include <stdint.h>
17141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17142 included before <wchar.h>. */
17143 #include <stddef.h>
17144 #include <signal.h>
17146 # include <stdio.h>
17148 # include <wchar.h>
17153 #include <string.h>
17154 #define MVAL(macro) MVAL1(macro)
17155 #define MVAL1(expression) #expression
17156 static const char *macro_values[] =
17190 for (mv = macro_values; *mv != NULL; mv++)
17192 const char *value = *mv;
17193 /* Test whether it looks like a cast expression. */
17194 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17195 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17196 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17197 || strncmp (value, "((int)"/*)*/, 6) == 0
17198 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17199 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17200 return mv - macro_values + 1;
17208 if ac_fn_c_try_run
"$LINENO"; then :
17209 gl_cv_header_working_stdint_h
=yes
17211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17221 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17223 if test "$gl_cv_header_working_stdint_h" = yes; then
17226 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17228 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17229 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17230 eval as_val
=\$
$as_ac_Header
17231 if test "x$as_val" = x
""yes; then :
17232 cat >>confdefs.h
<<_ACEOF
17233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17240 if test $ac_cv_header_sys_inttypes_h = yes; then
17241 HAVE_SYS_INTTYPES_H
=1
17243 HAVE_SYS_INTTYPES_H
=0
17246 if test $ac_cv_header_sys_bitypes_h = yes; then
17247 HAVE_SYS_BITYPES_H
=1
17249 HAVE_SYS_BITYPES_H
=0
17255 if test $APPLE_UNIVERSAL_BUILD = 0; then
17258 for gltype
in ptrdiff_t size_t
; do
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17260 $as_echo_n "checking for bit size of $gltype... " >&6; }
17261 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17262 $as_echo_n "(cached) " >&6
17264 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17265 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17266 included before <wchar.h>. */
17267 #include <stddef.h>
17268 #include <signal.h>
17270 # include <stdio.h>
17272 # include <wchar.h>
17275 #include <limits.h>"; then :
17281 eval gl_cv_bitsizeof_
${gltype}=\
$result
17284 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17286 $as_echo "$ac_res" >&6; }
17287 eval result
=\
$gl_cv_bitsizeof_${gltype}
17288 if test $result = unknown
; then
17291 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17292 cat >>confdefs.h
<<_ACEOF
17293 #define BITSIZEOF_${GLTYPE} $result
17296 eval BITSIZEOF_
${GLTYPE}=\
$result
17303 for gltype
in sig_atomic_t wchar_t wint_t
; do
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17305 $as_echo_n "checking for bit size of $gltype... " >&6; }
17306 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17307 $as_echo_n "(cached) " >&6
17309 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17310 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17311 included before <wchar.h>. */
17312 #include <stddef.h>
17313 #include <signal.h>
17315 # include <stdio.h>
17317 # include <wchar.h>
17320 #include <limits.h>"; then :
17326 eval gl_cv_bitsizeof_
${gltype}=\
$result
17329 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17331 $as_echo "$ac_res" >&6; }
17332 eval result
=\
$gl_cv_bitsizeof_${gltype}
17333 if test $result = unknown
; then
17336 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17337 cat >>confdefs.h
<<_ACEOF
17338 #define BITSIZEOF_${GLTYPE} $result
17341 eval BITSIZEOF_
${GLTYPE}=\
$result
17347 for gltype
in sig_atomic_t wchar_t wint_t
; do
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17349 $as_echo_n "checking whether $gltype is signed... " >&6; }
17350 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17351 $as_echo_n "(cached) " >&6
17353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17354 /* end confdefs.h. */
17356 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17357 included before <wchar.h>. */
17358 #include <stddef.h>
17359 #include <signal.h>
17361 # include <stdio.h>
17363 # include <wchar.h>
17366 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17375 if ac_fn_c_try_compile
"$LINENO"; then :
17380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17381 eval gl_cv_type_
${gltype}_signed
=\
$result
17384 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17386 $as_echo "$ac_res" >&6; }
17387 eval result
=\
$gl_cv_type_${gltype}_signed
17388 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17389 if test "$result" = yes; then
17390 cat >>confdefs.h
<<_ACEOF
17391 #define HAVE_SIGNED_${GLTYPE} 1
17394 eval HAVE_SIGNED_
${GLTYPE}=1
17396 eval HAVE_SIGNED_
${GLTYPE}=0
17401 gl_cv_type_ptrdiff_t_signed
=yes
17402 gl_cv_type_size_t_signed
=no
17403 if test $APPLE_UNIVERSAL_BUILD = 0; then
17406 for gltype
in ptrdiff_t size_t
; do
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17408 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17409 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17410 $as_echo_n "(cached) " >&6
17412 eval gl_cv_type_
${gltype}_suffix
=no
17413 eval result
=\
$gl_cv_type_${gltype}_signed
17414 if test "$result" = yes; then
17419 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17421 '') gltype1
='int';;
17422 l
) gltype1
='long int';;
17423 ll
) gltype1
='long long int';;
17424 i64
) gltype1
='__int64';;
17425 u
) gltype1
='unsigned int';;
17426 ul
) gltype1
='unsigned long int';;
17427 ull
) gltype1
='unsigned long long int';;
17428 ui64
)gltype1
='unsigned __int64';;
17430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17433 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17434 included before <wchar.h>. */
17435 #include <stddef.h>
17436 #include <signal.h>
17438 # include <stdio.h>
17440 # include <wchar.h>
17443 extern $gltype foo;
17444 extern $gltype1 foo;
17453 if ac_fn_c_try_compile
"$LINENO"; then :
17454 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17457 eval result
=\
$gl_cv_type_${gltype}_suffix
17458 test "$result" != no
&& break
17461 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17463 $as_echo "$ac_res" >&6; }
17464 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17465 eval result
=\
$gl_cv_type_${gltype}_suffix
17466 test "$result" = no
&& result
=
17467 eval ${GLTYPE}_SUFFIX
=\
$result
17468 cat >>confdefs.h
<<_ACEOF
17469 #define ${GLTYPE}_SUFFIX $result
17478 for gltype
in sig_atomic_t wchar_t wint_t
; do
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17480 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17481 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17482 $as_echo_n "(cached) " >&6
17484 eval gl_cv_type_
${gltype}_suffix
=no
17485 eval result
=\
$gl_cv_type_${gltype}_signed
17486 if test "$result" = yes; then
17491 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17493 '') gltype1
='int';;
17494 l
) gltype1
='long int';;
17495 ll
) gltype1
='long long int';;
17496 i64
) gltype1
='__int64';;
17497 u
) gltype1
='unsigned int';;
17498 ul
) gltype1
='unsigned long int';;
17499 ull
) gltype1
='unsigned long long int';;
17500 ui64
)gltype1
='unsigned __int64';;
17502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17506 included before <wchar.h>. */
17507 #include <stddef.h>
17508 #include <signal.h>
17510 # include <stdio.h>
17512 # include <wchar.h>
17515 extern $gltype foo;
17516 extern $gltype1 foo;
17525 if ac_fn_c_try_compile
"$LINENO"; then :
17526 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17529 eval result
=\
$gl_cv_type_${gltype}_suffix
17530 test "$result" != no
&& break
17533 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17535 $as_echo "$ac_res" >&6; }
17536 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17537 eval result
=\
$gl_cv_type_${gltype}_suffix
17538 test "$result" = no
&& result
=
17539 eval ${GLTYPE}_SUFFIX
=\
$result
17540 cat >>confdefs.h
<<_ACEOF
17541 #define ${GLTYPE}_SUFFIX $result
17551 if test -n "$STDINT_H"; then
17552 GL_GENERATE_STDINT_H_TRUE
=
17553 GL_GENERATE_STDINT_H_FALSE
='#'
17555 GL_GENERATE_STDINT_H_TRUE
='#'
17556 GL_GENERATE_STDINT_H_FALSE
=
17560 # Code from module stdio:
17572 if test $gl_cv_have_include_next = yes; then
17573 gl_cv_next_stdio_h
='<'stdio.h
'>'
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17576 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17577 if test "${gl_cv_next_stdio_h+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17587 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17588 *) gl_absname_cpp
="$ac_cpp" ;;
17590 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17591 sed -n '\#/stdio.h#{
17592 s#.*"\(.*/stdio.h\)".*#\1#
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17601 $as_echo "$gl_cv_next_stdio_h" >&6; }
17603 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17605 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17607 gl_next_as_first_directive
='<'stdio.h
'>'
17609 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17610 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17612 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17631 # Code from module stdlib:
17642 if test $gl_cv_have_include_next = yes; then
17643 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17646 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17647 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 #include <stdlib.h>
17657 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17658 *) gl_absname_cpp
="$ac_cpp" ;;
17660 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17661 sed -n '\#/stdlib.h#{
17662 s#.*"\(.*/stdlib.h\)".*#\1#
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17671 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17673 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17675 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17677 gl_next_as_first_directive
='<'stdlib.h
'>'
17679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17680 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17690 # Code from module strftime:
17701 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17704 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17712 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17716 # Code from module symlink:
17720 if test $ac_cv_func_symlink = no
; then
17730 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17734 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17735 if test "${gl_cv_func_symlink_works+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17738 if test "$cross_compiling" = yes; then :
17739 gl_cv_func_symlink_works
="guessing no"
17741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743 #include <unistd.h>
17749 if (!symlink ("a", "conftest.link/"))
17751 if (symlink ("conftest.f", "conftest.lnk2"))
17753 else if (!symlink ("a", "conftest.lnk2/"))
17761 if ac_fn_c_try_run
"$LINENO"; then :
17762 gl_cv_func_symlink_works
=yes
17764 gl_cv_func_symlink_works
=no
17766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17770 rm -f conftest.f conftest.link conftest.lnk2
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17773 $as_echo "$gl_cv_func_symlink_works" >&6; }
17774 if test "$gl_cv_func_symlink_works" != yes; then
17784 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17796 # Code from module sys_stat:
17813 if test $gl_cv_have_include_next = yes; then
17814 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17817 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17818 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17819 $as_echo_n "(cached) " >&6
17822 if test $ac_cv_header_sys_stat_h = yes; then
17825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827 #include <sys/stat.h>
17831 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17832 *) gl_absname_cpp
="$ac_cpp" ;;
17834 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17835 sed -n '\#/sys/stat.h#{
17836 s#.*"\(.*/sys/stat.h\)".*#\1#
17842 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17848 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17850 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17852 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17854 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17857 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17859 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17865 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17866 #include <sys/stat.h>
17868 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
17872 $as_echo "#define nlink_t int" >>confdefs.h
17880 # Code from module time:
17884 # Code from module time_r:
17892 if test $ac_cv_have_decl_localtime_r = no
; then
17893 HAVE_DECL_LOCALTIME_R
=0
17897 if test $ac_cv_func_localtime_r = yes; then
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17900 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17901 if test "${gl_cv_time_r_posix+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17910 /* We don't need to append 'restrict's to the argument types,
17911 even though the POSIX signature has the 'restrict's,
17912 since C99 says they can't affect type compatibility. */
17913 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17915 /* Check the return type is a pointer.
17916 On HP-UX 10 it is 'int'. */
17917 *localtime_r (0, 0);
17923 if ac_fn_c_try_compile
"$LINENO"; then :
17924 gl_cv_time_r_posix
=yes
17926 gl_cv_time_r_posix
=no
17928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17932 $as_echo "$gl_cv_time_r_posix" >&6; }
17933 if test $gl_cv_time_r_posix = yes; then
17934 REPLACE_LOCALTIME_R
=0
17936 REPLACE_LOCALTIME_R
=1
17941 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17950 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17964 # Code from module unistd:
17978 if test $gl_cv_have_include_next = yes; then
17979 gl_cv_next_unistd_h
='<'unistd.h
'>'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17982 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17983 if test "${gl_cv_next_unistd_h+set}" = set; then :
17984 $as_echo_n "(cached) " >&6
17987 if test $ac_cv_header_unistd_h = yes; then
17990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <unistd.h>
17996 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17997 *) gl_absname_cpp
="$ac_cpp" ;;
17999 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18000 sed -n '\#/unistd.h#{
18001 s#.*"\(.*/unistd.h\)".*#\1#
18007 gl_cv_next_unistd_h
='<'unistd.h
'>'
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18013 $as_echo "$gl_cv_next_unistd_h" >&6; }
18015 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
18017 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18019 gl_next_as_first_directive
='<'unistd.h
'>'
18021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18022 gl_next_as_first_directive
=$gl_cv_next_unistd_h
18024 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
18029 if test $ac_cv_header_unistd_h = yes; then
18038 # Code from module warn-on-use:
18039 # End of code from modules
18060 gl_source_base
='tests'
18061 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
18063 gl_module_indicator_condition
=$gltests_WITNESS
18073 LIBGNU_LIBDEPS
="$gl_libdeps"
18075 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
18080 for ac_func
in grantpt
18082 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18083 if test "x$ac_cv_func_grantpt" = x
""yes; then :
18084 cat >>confdefs.h
<<_ACEOF
18085 #define HAVE_GRANTPT 1
18092 # PTY-related GNU extensions.
18093 for ac_func
in getpt
18095 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
18096 if test "x$ac_cv_func_getpt" = x
""yes; then :
18097 cat >>confdefs.h
<<_ACEOF
18098 #define HAVE_GETPT 1
18105 # Check this now, so that we will NOT find the above functions in ncurses.
18106 # That is because we have not set up to link ncurses in lib-src.
18107 # It's better to believe a function is not available
18108 # than to expect to find it in ncurses.
18109 # Also we need tputs and friends to be able to build at all.
18110 have_tputs_et_al
=true
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18112 $as_echo_n "checking for library containing tputs... " >&6; }
18113 if test "${ac_cv_search_tputs+set}" = set; then :
18114 $as_echo_n "(cached) " >&6
18116 ac_func_search_save_LIBS
=$LIBS
18117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18135 for ac_lib
in '' ncurses terminfo termcap
; do
18136 if test -z "$ac_lib"; then
18137 ac_res
="none required"
18140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18142 if ac_fn_c_try_link
"$LINENO"; then :
18143 ac_cv_search_tputs
=$ac_res
18145 rm -f core conftest.err conftest.
$ac_objext \
18147 if test "${ac_cv_search_tputs+set}" = set; then :
18151 if test "${ac_cv_search_tputs+set}" = set; then :
18154 ac_cv_search_tputs
=no
18156 rm conftest.
$ac_ext
18157 LIBS
=$ac_func_search_save_LIBS
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18160 $as_echo "$ac_cv_search_tputs" >&6; }
18161 ac_res
=$ac_cv_search_tputs
18162 if test "$ac_res" != no
; then :
18163 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18166 have_tputs_et_al
=false
18169 if test "$have_tputs_et_al" != true
; then
18170 as_fn_error
"I couldn't find termcap functions (tputs and friends).
18171 Maybe some development libraries/packages are missing? Try installing
18172 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18174 # Must define this when any termcap library is found.
18176 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18178 ## FIXME This was the cpp logic, but I am not sure it is right.
18179 ## The above test has not necessarily found libncurses.
18180 HAVE_LIBNCURSES
=yes
18182 ## Use terminfo instead of termcap?
18183 ## Note only system files NOT using terminfo are:
18184 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18185 ## darwin|gnu without ncurses.
18189 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18190 ## hpux10-20: Use the system provided termcap(3) library.
18191 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18192 ## is necessary. Otherwise Emacs dumps core when run -nw.
18193 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
18195 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18196 ## The ncurses library has been moved out of the System framework in
18197 ## Mac OS X 10.2. So if configure detects it, set the command-line
18198 ## option to use it.
18200 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18201 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18203 LIBS_TERMCAP
="-lncurses"
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18209 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18210 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18211 $as_echo_n "(cached) " >&6
18213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215 #include <osreldate.h>
18219 #if __FreeBSD_version < 400000
18227 if ac_fn_c_try_link
"$LINENO"; then :
18228 emacs_cv_freebsd_terminfo
=yes
18230 emacs_cv_freebsd_terminfo
=no
18232 rm -f core conftest.err conftest.
$ac_objext \
18233 conftest
$ac_exeext conftest.
$ac_ext
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18238 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18240 if test $emacs_cv_freebsd_terminfo = yes; then
18242 LIBS_TERMCAP
="-lncurses"
18244 LIBS_TERMCAP
="-ltermcap"
18249 if test $ac_cv_search_tputs = -lterminfo; then
18251 LIBS_TERMCAP
="-lterminfo"
18253 LIBS_TERMCAP
="-ltermcap"
18260 ## hpux: Make sure we get select from libc rather than from libcurses
18261 ## because libcurses on HPUX 10.10 has a broken version of select.
18262 ## We used to use -lc -lcurses, but this may be cleaner.
18263 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
18265 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
18267 ## Must use system termcap, if we use any termcap. It does special things.
18268 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
18271 TERMCAP_OBJ
=tparam.o
18272 if test $TERMINFO = yes; then
18274 $as_echo "#define TERMINFO 1" >>confdefs.h
18277 ## Default used to be -ltermcap. Add a case above if need something else.
18278 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
18280 TERMCAP_OBJ
=terminfo.o
18286 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 #include <netinet/in.h>
18291 #include <arpa/nameser.h>
18292 #include <resolv.h>
18301 if ac_fn_c_try_link
"$LINENO"; then :
18306 rm -f core conftest.err conftest.
$ac_objext \
18307 conftest
$ac_exeext conftest.
$ac_ext
18308 if test "$have_res_init" = no
; then
18310 LIBS
="$LIBS -lresolv"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18312 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <netinet/in.h>
18316 #include <arpa/nameser.h>
18317 #include <resolv.h>
18326 if ac_fn_c_try_link
"$LINENO"; then :
18331 rm -f core conftest.err conftest.
$ac_objext \
18332 conftest
$ac_exeext conftest.
$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18334 $as_echo "$have_res_init" >&6; }
18335 if test "$have_res_init" = yes ; then
18341 if test "$have_res_init" = yes; then
18343 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18347 # Do we need the Hesiod library to provide the support routines?
18349 if test "$with_hesiod" != no
; then
18350 # Don't set $LIBS here -- see comments above. FIXME which comments?
18351 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
18352 if test "x$ac_cv_func_res_send" = x
""yes; then :
18355 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18356 if test "x$ac_cv_func___res_send" = x
""yes; then :
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18360 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18361 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18362 $as_echo_n "(cached) " >&6
18364 ac_check_lib_save_LIBS
=$LIBS
18365 LIBS
="-lresolv $LIBS"
18366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18379 return res_send ();
18384 if ac_fn_c_try_link
"$LINENO"; then :
18385 ac_cv_lib_resolv_res_send
=yes
18387 ac_cv_lib_resolv_res_send
=no
18389 rm -f core conftest.err conftest.
$ac_objext \
18390 conftest
$ac_exeext conftest.
$ac_ext
18391 LIBS
=$ac_check_lib_save_LIBS
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18394 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18395 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18399 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18400 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18401 $as_echo_n "(cached) " >&6
18403 ac_check_lib_save_LIBS
=$LIBS
18404 LIBS
="-lresolv $LIBS"
18405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18414 char __res_send ();
18418 return __res_send ();
18423 if ac_fn_c_try_link
"$LINENO"; then :
18424 ac_cv_lib_resolv___res_send
=yes
18426 ac_cv_lib_resolv___res_send
=no
18428 rm -f core conftest.err conftest.
$ac_objext \
18429 conftest
$ac_exeext conftest.
$ac_ext
18430 LIBS
=$ac_check_lib_save_LIBS
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18433 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18434 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
18444 if test "$resolv" = yes ; then
18449 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18450 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18454 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18455 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18456 $as_echo_n "(cached) " >&6
18458 ac_check_lib_save_LIBS
=$LIBS
18459 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18469 char hes_getmailhost ();
18473 return hes_getmailhost ();
18478 if ac_fn_c_try_link
"$LINENO"; then :
18479 ac_cv_lib_hesiod_hes_getmailhost
=yes
18481 ac_cv_lib_hesiod_hes_getmailhost
=no
18483 rm -f core conftest.err conftest.
$ac_objext \
18484 conftest
$ac_exeext conftest.
$ac_ext
18485 LIBS
=$ac_check_lib_save_LIBS
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18488 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18489 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
18498 if test x
"$hesiod" = xyes
; then
18500 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18507 # Do we need libresolv (due to res_init or Hesiod)?
18508 if test "$resolv" = yes ; then
18510 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18518 # These tell us which Kerberos-related libraries to use.
18525 if test "${with_kerberos}" != no
; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18527 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18528 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18531 ac_check_lib_save_LIBS
=$LIBS
18532 LIBS
="-lcom_err $LIBS"
18533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18551 if ac_fn_c_try_link
"$LINENO"; then :
18552 ac_cv_lib_com_err_com_err
=yes
18554 ac_cv_lib_com_err_com_err
=no
18556 rm -f core conftest.err conftest.
$ac_objext \
18557 conftest
$ac_exeext conftest.
$ac_ext
18558 LIBS
=$ac_check_lib_save_LIBS
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18561 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18562 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
18568 if test $have_com_err = yes; then
18569 COM_ERRLIB
=-lcom_err
18570 LIBS
="$COM_ERRLIB $LIBS"
18572 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18576 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18577 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18578 $as_echo_n "(cached) " >&6
18580 ac_check_lib_save_LIBS
=$LIBS
18581 LIBS
="-lcrypto $LIBS"
18582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18591 char mit_des_cbc_encrypt ();
18595 return mit_des_cbc_encrypt ();
18600 if ac_fn_c_try_link
"$LINENO"; then :
18601 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18603 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18605 rm -f core conftest.err conftest.
$ac_objext \
18606 conftest
$ac_exeext conftest.
$ac_ext
18607 LIBS
=$ac_check_lib_save_LIBS
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18610 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18611 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
18617 if test $have_crypto = yes; then
18619 LIBS
="$CRYPTOLIB $LIBS"
18621 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18625 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18626 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18629 ac_check_lib_save_LIBS
=$LIBS
18630 LIBS
="-lk5crypto $LIBS"
18631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18632 /* end confdefs.h. */
18634 /* Override any GCC internal prototype to avoid an error.
18635 Use char because int might match the return type of a GCC
18636 builtin and then its argument prototype would still apply. */
18640 char mit_des_cbc_encrypt ();
18644 return mit_des_cbc_encrypt ();
18649 if ac_fn_c_try_link
"$LINENO"; then :
18650 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18652 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18654 rm -f core conftest.err conftest.
$ac_objext \
18655 conftest
$ac_exeext conftest.
$ac_ext
18656 LIBS
=$ac_check_lib_save_LIBS
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18659 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18660 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
18666 if test $have_k5crypto = yes; then
18667 CRYPTOLIB
=-lk5crypto
18668 LIBS
="$CRYPTOLIB $LIBS"
18670 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18674 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18675 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18676 $as_echo_n "(cached) " >&6
18678 ac_check_lib_save_LIBS
=$LIBS
18679 LIBS
="-lkrb5 $LIBS"
18680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18689 char krb5_init_context ();
18693 return krb5_init_context ();
18698 if ac_fn_c_try_link
"$LINENO"; then :
18699 ac_cv_lib_krb5_krb5_init_context
=yes
18701 ac_cv_lib_krb5_krb5_init_context
=no
18703 rm -f core conftest.err conftest.
$ac_objext \
18704 conftest
$ac_exeext conftest.
$ac_ext
18705 LIBS
=$ac_check_lib_save_LIBS
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18708 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18709 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
18715 if test $have_krb5=yes; then
18717 LIBS
="$KRB5LIB $LIBS"
18719 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18722 if test "${with_kerberos5}" = no
; then
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18724 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18725 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18728 ac_check_lib_save_LIBS
=$LIBS
18729 LIBS
="-ldes425 $LIBS"
18730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18739 char des_cbc_encrypt ();
18743 return des_cbc_encrypt ();
18748 if ac_fn_c_try_link
"$LINENO"; then :
18749 ac_cv_lib_des425_des_cbc_encrypt
=yes
18751 ac_cv_lib_des425_des_cbc_encrypt
=no
18753 rm -f core conftest.err conftest.
$ac_objext \
18754 conftest
$ac_exeext conftest.
$ac_ext
18755 LIBS
=$ac_check_lib_save_LIBS
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18758 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18759 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
18765 if test $have_des425 = yes; then
18767 LIBS
="$DESLIB $LIBS"
18769 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18773 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18774 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18775 $as_echo_n "(cached) " >&6
18777 ac_check_lib_save_LIBS
=$LIBS
18779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18788 char des_cbc_encrypt ();
18792 return des_cbc_encrypt ();
18797 if ac_fn_c_try_link
"$LINENO"; then :
18798 ac_cv_lib_des_des_cbc_encrypt
=yes
18800 ac_cv_lib_des_des_cbc_encrypt
=no
18802 rm -f core conftest.err conftest.
$ac_objext \
18803 conftest
$ac_exeext conftest.
$ac_ext
18804 LIBS
=$ac_check_lib_save_LIBS
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18807 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18808 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
18814 if test $have_des = yes; then
18816 LIBS
="$DESLIB $LIBS"
18818 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18823 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18825 $as_echo_n "(cached) " >&6
18827 ac_check_lib_save_LIBS
=$LIBS
18828 LIBS
="-lkrb4 $LIBS"
18829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18838 char krb_get_cred ();
18842 return krb_get_cred ();
18847 if ac_fn_c_try_link
"$LINENO"; then :
18848 ac_cv_lib_krb4_krb_get_cred
=yes
18850 ac_cv_lib_krb4_krb_get_cred
=no
18852 rm -f core conftest.err conftest.
$ac_objext \
18853 conftest
$ac_exeext conftest.
$ac_ext
18854 LIBS
=$ac_check_lib_save_LIBS
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18857 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18858 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
18864 if test $have_krb4 = yes; then
18866 LIBS
="$KRB4LIB $LIBS"
18868 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18872 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18873 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18874 $as_echo_n "(cached) " >&6
18876 ac_check_lib_save_LIBS
=$LIBS
18878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18887 char krb_get_cred ();
18891 return krb_get_cred ();
18896 if ac_fn_c_try_link
"$LINENO"; then :
18897 ac_cv_lib_krb_krb_get_cred
=yes
18899 ac_cv_lib_krb_krb_get_cred
=no
18901 rm -f core conftest.err conftest.
$ac_objext \
18902 conftest
$ac_exeext conftest.
$ac_ext
18903 LIBS
=$ac_check_lib_save_LIBS
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18906 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18907 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18913 if test $have_krb = yes; then
18915 LIBS
="$KRB4LIB $LIBS"
18917 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18923 if test "${with_kerberos5}" != no
; then
18924 for ac_header
in krb5.h
18926 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18927 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18928 cat >>confdefs.h
<<_ACEOF
18929 #define HAVE_KRB5_H 1
18931 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18933 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18935 cat >>confdefs.h
<<_ACEOF
18936 #define HAVE_KRB5_ERROR_TEXT 1
18941 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18943 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18945 cat >>confdefs.h
<<_ACEOF
18946 #define HAVE_KRB5_ERROR_E_TEXT 1
18957 for ac_header
in des.h
18959 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18960 if test "x$ac_cv_header_des_h" = x
""yes; then :
18961 cat >>confdefs.h
<<_ACEOF
18962 #define HAVE_DES_H 1
18966 for ac_header
in kerberosIV
/des.h
18968 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18969 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18970 cat >>confdefs.h
<<_ACEOF
18971 #define HAVE_KERBEROSIV_DES_H 1
18975 for ac_header
in kerberos
/des.h
18977 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18978 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18979 cat >>confdefs.h
<<_ACEOF
18980 #define HAVE_KERBEROS_DES_H 1
18995 for ac_header
in krb.h
18997 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18998 if test "x$ac_cv_header_krb_h" = x
""yes; then :
18999 cat >>confdefs.h
<<_ACEOF
19000 #define HAVE_KRB_H 1
19004 for ac_header
in kerberosIV
/krb.h
19006 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19007 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
19008 cat >>confdefs.h
<<_ACEOF
19009 #define HAVE_KERBEROSIV_KRB_H 1
19013 for ac_header
in kerberos
/krb.h
19015 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19016 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
19017 cat >>confdefs.h
<<_ACEOF
19018 #define HAVE_KERBEROS_KRB_H 1
19034 for ac_header
in com_err.h
19036 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19037 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
19038 cat >>confdefs.h
<<_ACEOF
19039 #define HAVE_COM_ERR_H 1
19054 # Solaris requires -lintl if you want strerror (which calls dgettext)
19055 # to return localized messages.
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19057 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19058 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19061 ac_check_lib_save_LIBS
=$LIBS
19062 LIBS
="-lintl $LIBS"
19063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19076 return dgettext ();
19081 if ac_fn_c_try_link
"$LINENO"; then :
19082 ac_cv_lib_intl_dgettext
=yes
19084 ac_cv_lib_intl_dgettext
=no
19086 rm -f core conftest.err conftest.
$ac_objext \
19087 conftest
$ac_exeext conftest.
$ac_ext
19088 LIBS
=$ac_check_lib_save_LIBS
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19091 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19092 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
19093 cat >>confdefs.h
<<_ACEOF
19094 #define HAVE_LIBINTL 1
19097 LIBS
="-lintl $LIBS"
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19103 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19104 if test "${emacs_cv_localtime_cache+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19107 if test x
$ac_cv_func_tzset = xyes
; then
19108 if test "$cross_compiling" = yes; then :
19109 # If we have tzset, assume the worst when cross-compiling.
19110 emacs_cv_localtime_cache
=yes
19112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 char TZ_GMT0[] = "TZ=GMT0";
19116 char TZ_PST8[] = "TZ=PST8";
19119 time_t now = time ((time_t *) 0);
19120 int hour_GMT0, hour_unset;
19121 if (putenv (TZ_GMT0) != 0)
19123 hour_GMT0 = localtime (&now)->tm_hour;
19125 hour_unset = localtime (&now)->tm_hour;
19126 if (putenv (TZ_PST8) != 0)
19128 if (localtime (&now)->tm_hour == hour_GMT0)
19131 if (localtime (&now)->tm_hour != hour_unset)
19136 if ac_fn_c_try_run
"$LINENO"; then :
19137 emacs_cv_localtime_cache
=no
19139 emacs_cv_localtime_cache
=yes
19141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19146 # If we lack tzset, report that localtime does not cache TZ,
19147 # since we can't invalidate the cache if we don't have tzset.
19148 emacs_cv_localtime_cache
=no
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19152 $as_echo "$emacs_cv_localtime_cache" >&6; }
19153 if test $emacs_cv_localtime_cache = yes; then
19155 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19159 if test "x$HAVE_TIMEVAL" = xyes
; then
19160 for ac_func
in gettimeofday
19162 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19163 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
19164 cat >>confdefs.h
<<_ACEOF
19165 #define HAVE_GETTIMEOFDAY 1
19171 if test $ac_cv_func_gettimeofday = yes; then
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19173 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19174 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19175 $as_echo_n "(cached) " >&6
19177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19180 #ifdef TIME_WITH_SYS_TIME
19181 #include <sys/time.h>
19184 #ifdef HAVE_SYS_TIME_H
19185 #include <sys/time.h>
19193 struct timeval time;
19194 gettimeofday (&time, 0);
19199 if ac_fn_c_try_compile
"$LINENO"; then :
19200 emacs_cv_gettimeofday_two_arguments
=yes
19202 emacs_cv_gettimeofday_two_arguments
=no
19204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19207 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19208 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19210 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19217 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
19218 if test "x$ac_cv_func_socket" = x
""yes; then :
19224 if test $ok_so_far = yes; then
19225 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19226 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
19234 if test $ok_so_far = yes; then
19235 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19236 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
19244 if test $ok_so_far = yes; then
19246 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19250 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19252 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19257 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19258 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 $as_echo "yes" >&6; }
19262 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19269 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19270 if test "x$ac_cv_type_pid_t" = x
""yes; then :
19274 cat >>confdefs.h
<<_ACEOF
19280 for ac_header
in vfork.h
19282 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19283 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
19284 cat >>confdefs.h
<<_ACEOF
19285 #define HAVE_VFORK_H 1
19292 for ac_func
in fork vfork
19294 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19296 eval as_val
=\$
$as_ac_var
19297 if test "x$as_val" = x
""yes; then :
19298 cat >>confdefs.h
<<_ACEOF
19299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 if test "x$ac_cv_func_fork" = xyes
; then
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19307 $as_echo_n "checking for working fork... " >&6; }
19308 if test "${ac_cv_func_fork_works+set}" = set; then :
19309 $as_echo_n "(cached) " >&6
19311 if test "$cross_compiling" = yes; then :
19312 ac_cv_func_fork_works
=cross
19314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19316 $ac_includes_default
19321 /* By Ruediger Kuhlmann. */
19322 return fork () < 0;
19328 if ac_fn_c_try_run
"$LINENO"; then :
19329 ac_cv_func_fork_works
=yes
19331 ac_cv_func_fork_works
=no
19333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19339 $as_echo "$ac_cv_func_fork_works" >&6; }
19342 ac_cv_func_fork_works
=$ac_cv_func_fork
19344 if test "x$ac_cv_func_fork_works" = xcross
; then
19346 *-*-amigaos* |
*-*-msdosdjgpp*)
19347 # Override, as these systems have only a dummy fork() stub
19348 ac_cv_func_fork_works
=no
19351 ac_cv_func_fork_works
=yes
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19355 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19357 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19358 if test "x$ac_cv_func_vfork" = xyes
; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19360 $as_echo_n "checking for working vfork... " >&6; }
19361 if test "${ac_cv_func_vfork_works+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19364 if test "$cross_compiling" = yes; then :
19365 ac_cv_func_vfork_works
=cross
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 /* Thanks to Paul Eggert for this test. */
19370 $ac_includes_default
19371 #include <sys/wait.h>
19372 #ifdef HAVE_VFORK_H
19373 # include <vfork.h>
19375 /* On some sparc systems, changes by the child to local and incoming
19376 argument registers are propagated back to the parent. The compiler
19377 is told about this with #include <vfork.h>, but some compilers
19378 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19379 static variable whose address is put into a register that is
19380 clobbered by the vfork. */
19383 sparc_address_test (int arg)
19385 sparc_address_test (arg) int arg;
19388 static pid_t child;
19406 pid_t parent = getpid ();
19409 sparc_address_test (0);
19414 /* Here is another test for sparc vfork register problems. This
19415 test uses lots of local variables, at least as many local
19416 variables as main has allocated so far including compiler
19417 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19418 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19419 reuse the register of parent for one of the local variables,
19420 since it will think that parent can't possibly be used any more
19421 in this routine. Assigning to the local variable will thus
19422 munge parent in the parent process. */
19424 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19425 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19426 /* Convince the compiler that p..p7 are live; otherwise, it might
19427 use the same hardware register for all 8 local variables. */
19428 if (p != p1 || p != p2 || p != p3 || p != p4
19429 || p != p5 || p != p6 || p != p7)
19432 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19433 from child file descriptors. If the child closes a descriptor
19434 before it execs or exits, this munges the parent's descriptor
19435 as well. Test for this by closing stdout in the child. */
19436 _exit(close(fileno(stdout)) != 0);
19441 while (wait(&status) != child)
19444 /* Was there some problem with vforking? */
19447 /* Did the child fail? (This shouldn't happen.) */
19450 /* Did the vfork/compiler bug occur? */
19451 || parent != getpid()
19453 /* Did the file descriptor bug occur? */
19454 || fstat(fileno(stdout), &st) != 0
19459 if ac_fn_c_try_run
"$LINENO"; then :
19460 ac_cv_func_vfork_works
=yes
19462 ac_cv_func_vfork_works
=no
19464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19470 $as_echo "$ac_cv_func_vfork_works" >&6; }
19473 if test "x$ac_cv_func_fork_works" = xcross
; then
19474 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19476 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19479 if test "x$ac_cv_func_vfork_works" = xyes
; then
19481 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19485 $as_echo "#define vfork fork" >>confdefs.h
19488 if test "x$ac_cv_func_fork_works" = xyes
; then
19490 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19496 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19497 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19498 $as_echo_n "(cached) " >&6
19500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19502 #include <langinfo.h>
19506 char* cs = nl_langinfo(CODESET);
19511 if ac_fn_c_try_link
"$LINENO"; then :
19512 emacs_cv_langinfo_codeset
=yes
19514 emacs_cv_langinfo_codeset
=no
19516 rm -f core conftest.err conftest.
$ac_objext \
19517 conftest
$ac_exeext conftest.
$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19521 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19522 if test $emacs_cv_langinfo_codeset = yes; then
19524 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19528 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19529 if test "x$ac_cv_type_size_t" = x
""yes; then :
19531 cat >>confdefs.h
<<_ACEOF
19532 #define HAVE_SIZE_T 1
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19540 $as_echo_n "checking for mbstate_t... " >&6; }
19541 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 $ac_includes_default
19547 # include <wchar.h>
19551 mbstate_t x; return sizeof x;
19556 if ac_fn_c_try_compile
"$LINENO"; then :
19557 ac_cv_type_mbstate_t
=yes
19559 ac_cv_type_mbstate_t
=no
19561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19564 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19565 if test $ac_cv_type_mbstate_t = yes; then
19567 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19571 $as_echo "#define mbstate_t int" >>confdefs.h
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19576 $as_echo_n "checking for C restricted array declarations... " >&6; }
19577 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19578 $as_echo_n "(cached) " >&6
19580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 void fred (int x[__restrict]);
19591 if ac_fn_c_try_compile
"$LINENO"; then :
19592 emacs_cv_c_restrict_arr
=yes
19594 emacs_cv_c_restrict_arr
=no
19596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19599 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19600 if test "$emacs_cv_c_restrict_arr" = yes; then
19602 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19608 # Set up the CFLAGS for real compilation, so we can substitute it.
19609 CFLAGS
="$REAL_CFLAGS"
19610 CPPFLAGS
="$REAL_CPPFLAGS"
19612 ## Hack to detect a buggy GCC version.
19613 if test "x$GCC" = xyes \
19614 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19615 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19616 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19617 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19620 version
=$PACKAGE_VERSION
19622 ### Specify what sort of things we'll be editing into Makefile and config.h.
19623 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19647 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19648 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19649 ## end of LIBX_BASE, but nothing ever set it.
19654 ## Used in lwlib/Makefile.in.
19656 if test -n "${machfile}"; then
19657 M_FILE
="\$(srcdir)/${machfile}"
19661 S_FILE
="\$(srcdir)/${opsysfile}"
19672 cat >>confdefs.h
<<_ACEOF
19673 #define EMACS_CONFIGURATION "${canonical}"
19677 cat >>confdefs.h
<<_ACEOF
19678 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19681 if test -n "$machfile"; then
19683 cat >>confdefs.h
<<_ACEOF
19684 #define config_machfile "${machfile}"
19689 cat >>confdefs.h
<<_ACEOF
19690 #define config_opsysfile "${opsysfile}"
19697 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19699 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19702 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19704 if test "$HAVE_XFT" = "yes"; then
19705 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19706 elif test "$HAVE_FREETYPE" = "yes"; then
19707 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19717 if test "${USE_X_TOOLKIT}" != "none" ; then
19718 WIDGET_OBJ
=widget.o
19720 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19722 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19724 $as_echo "#define USE_LUCID 1" >>confdefs.h
19726 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19728 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19733 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19734 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19738 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19739 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19740 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19744 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19745 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19748 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19754 case "$USE_X_TOOLKIT" in
19755 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19756 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19757 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19761 if test "$USE_X_TOOLKIT" = "none"; then
19762 LIBXT_OTHER
="\$(LIBXSM)"
19763 OLDXMENU_TARGET
="really-oldXMenu"
19765 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19766 OLDXMENU_TARGET
="really-lwlib"
19770 ## The X Menu stuff is present in the X10 distribution, but missing
19771 ## from X11. If we have X10, just use the installed library;
19772 ## otherwise, use our own copy.
19773 if test "${HAVE_X11}" = "yes" ; then
19775 $as_echo "#define HAVE_X11 1" >>confdefs.h
19778 if test "$USE_X_TOOLKIT" = "none"; then
19779 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19781 OLDXMENU
="\${lwlibdir}/liblw.a"
19783 LIBXMENU
="\$(OLDXMENU)"
19784 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19785 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19787 ## For a syntactically valid Makefile; not actually used for anything.
19788 ## See comments in src/Makefile.in.
19790 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19791 if test "${HAVE_X_WINDOWS}" = "yes"; then
19800 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19813 if test "${HAVE_MENUS}" = "yes" ; then
19815 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19819 if test "${GNU_MALLOC}" = "yes" ; then
19821 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19826 if test "${REL_ALLOC}" = "yes" ; then
19828 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19831 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19835 if test "$opsys" = "cygwin"; then
19836 CYGWIN_OBJ
="sheap.o"
19837 ## Cygwin differs because of its unexec().
19839 POST_ALLOC_OBJ
=lastfile.o
19842 PRE_ALLOC_OBJ
=lastfile.o
19851 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19854 ## The -headerpad option tells ld (see man page) to leave room at the
19855 ## end of the header for adding load commands. Needed for dumping.
19856 ## 0x690 is the total size of 30 segment load commands (at 56
19857 ## each); under Cocoa 31 commands are required.
19858 if test "$HAVE_NS" = "yes"; then
19859 libs_nsgui
="-framework AppKit"
19860 headerpad_extra
=6C8
19863 headerpad_extra
=690
19865 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19867 ## This is here because src/Makefile.in did some extra fiddling around
19868 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19869 ## #ifndef LD_SWITCH_SYSTEM
19870 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19871 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19872 ## not using gcc, darwin system not on an alpha (ie darwin, since
19873 ## darwin + alpha does not occur).
19874 ## Because this was done in src/Makefile.in, the resulting part of
19875 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19876 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19877 ## rather than LD_SWITCH_SYSTEM.
19878 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19879 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19882 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19883 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19884 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19885 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19886 ## had different values in configure (in ac_link) and src/Makefile.in.
19887 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19888 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19890 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19893 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19894 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19903 ## gnu: GNU needs its own crt0.
19904 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19906 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19907 ## library search parth, i.e. it won't search /usr/lib for libc and
19908 ## friends. Using -nostartfiles instead avoids this problem, and
19909 ## will also work on earlier NetBSD releases.
19910 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19912 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19913 ## MkLinux/LinuxPPC needs this.
19914 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19917 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19923 if test "x$ORDINARY_LINK" = "xyes"; then
19927 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19930 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19931 ## freebsd, gnu-* not on macppc|ibms390x.
19932 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19934 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19935 ## places that are difficult to figure out at make time. Fortunately,
19936 ## these same versions allow you to pass arbitrary flags on to the
19937 ## linker, so there is no reason not to use it as a linker.
19939 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19940 ## searching for libraries in its internal directories, so we have to
19941 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19942 LD_FIRSTFLAG
="-nostdlib"
19945 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19946 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19951 ## FIXME? The logic here is not precisely the same as that above.
19952 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19953 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19955 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19958 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19961 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19962 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19968 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19969 ## immediately undefine it again and redefine it to empty.
19970 ## Was the C_SWITCH_X_SITE part really necessary?
19971 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19977 ## Ask GCC where to find libgcc.a.
19978 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19985 ## If we're using X11/GNUstep, define some consequences.
19986 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19988 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19991 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19993 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19994 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19996 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19997 test "$HAVE_X_WINDOWS" = "yes" && \
19998 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
20008 #### Report on what we decided to do.
20009 #### Report GTK as a toolkit, even if it doesn't use Xt.
20010 #### It makes printing result more understandable as using GTK sets
20011 #### toolkit_scroll_bars to yes by default.
20012 if test "${HAVE_GTK}" = "yes"; then
20017 if test -n "$machfile"; then
20018 and_machfile
=" and \`${machfile}'"
20022 Configured for \`${canonical}'.
20024 Where should the build process find the source code? ${srcdir}
20025 What operating system and machine description files should Emacs use?
20026 \`${opsysfile}'${and_machfile}
20027 What compiler should emacs be built with? ${CC} ${CFLAGS}
20028 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20029 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20030 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20031 What window system should Emacs use? ${window_system}
20032 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20034 if test -n "${x_includes}"; then
20035 echo " Where do we find X Windows header files? ${x_includes}"
20037 echo " Where do we find X Windows header files? Standard dirs"
20039 if test -n "${x_libraries}"; then
20040 echo " Where do we find X Windows libraries? ${x_libraries}"
20042 echo " Where do we find X Windows libraries? Standard dirs"
20045 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20046 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20047 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20048 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20049 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20050 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20051 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20052 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20054 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20055 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20056 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20057 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20058 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20059 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20061 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20062 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20063 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20064 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20066 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20069 if test $USE_XASSERTS = yes; then
20070 echo " Compiling with asserts turned on."
20071 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20076 if test "$HAVE_NS" = "yes"; then
20078 echo "You must run \"make install\" in order to test the built application.
20079 The installed application will go to nextstep/Emacs.app and can be
20080 run or moved from there."
20081 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20082 echo "The application will be fully self-contained."
20084 echo "The lisp resources for the application will be installed under ${prefix}.
20085 You may need to run \"make install\" with sudo. The application will fail
20086 to run if these resources are not installed."
20092 # Remove any trailing slashes in these variables.
20093 test "${prefix}" != NONE
&&
20094 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20095 test "${exec_prefix}" != NONE
&&
20096 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20098 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"
20101 ac_config_commands
="$ac_config_commands mkdirs"
20104 ac_config_commands
="$ac_config_commands epaths"
20107 ac_config_commands
="$ac_config_commands gdbinit"
20110 cat >confcache
<<\_ACEOF
20111 # This file is a shell script that caches the results of configure
20112 # tests run on this system so they can be shared between configure
20113 # scripts and configure runs, see configure's option --config-cache.
20114 # It is not useful on other systems. If it contains results you don't
20115 # want to keep, you may remove or edit it.
20117 # config.status only pays attention to the cache file if you give it
20118 # the --recheck option to rerun configure.
20120 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20121 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20122 # following values.
20126 # The following way of writing the cache mishandles newlines in values,
20127 # but we know of no workaround that is simple, portable, and efficient.
20128 # So, we kill variables containing newlines.
20129 # Ultrix sh set writes to stderr and can't be redirected directly,
20130 # and sets the high bit in the cache file unless we assign to the vars.
20132 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20133 eval ac_val
=\$
$ac_var
20137 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20141 _ | IFS | as_nl
) ;; #(
20142 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20143 *) { eval $ac_var=; unset $ac_var;} ;;
20149 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20150 *${as_nl}ac_space
=\
*)
20151 # `set' does not quote correctly, so add quotes: double-quote
20152 # substitution turns \\\\ into \\, and sed turns \\ into \.
20155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20158 # `set' quotes correctly as required by POSIX, so do not add quotes.
20159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20170 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20172 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20173 if test -w "$cache_file"; then
20174 test "x$cache_file" != "x/dev/null" &&
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20176 $as_echo "$as_me: updating cache $cache_file" >&6;}
20177 cat confcache
>$cache_file
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20180 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20185 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20186 # Let make expand exec_prefix.
20187 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20189 DEFS
=-DHAVE_CONFIG_H
20193 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20194 # 1. Remove the extension, and $U if already installed.
20195 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20196 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20198 # will be set to the directory where LIBOBJS objects are built.
20199 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20200 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20202 LIBOBJS
=$ac_libobjs
20204 LTLIBOBJS
=$ac_ltlibobjs
20207 if test -n "$EXEEXT"; then
20209 am__EXEEXT_FALSE
='#'
20211 am__EXEEXT_TRUE
='#'
20215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20216 as_fn_error
"conditional \"AMDEP\" was never defined.
20217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20220 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20224 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20225 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20229 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20230 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20233 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20234 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20237 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20238 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
20239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20244 if test -n "$gl_LIBOBJS"; then
20245 # Remove the extension.
20246 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20247 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20248 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20249 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20252 gl_LIBOBJS
=$gl_libobjs
20254 gl_LTLIBOBJS
=$gl_ltlibobjs
20260 if test -n "$gltests_LIBOBJS"; then
20261 # Remove the extension.
20262 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20263 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20264 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20265 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20268 gltests_LIBOBJS
=$gltests_libobjs
20270 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20274 : ${CONFIG_STATUS=./config.status}
20276 ac_clean_files_save
=$ac_clean_files
20277 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20283 # Generated by $as_me.
20284 # Run this file to recreate the current configuration.
20285 # Compiler output produced by configure, useful for debugging
20286 # configure, is in config.log if it exists.
20289 ac_cs_recheck=false
20292 SHELL=\${CONFIG_SHELL-$SHELL}
20295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20296 ## -------------------- ##
20297 ## M4sh Initialization. ##
20298 ## -------------------- ##
20300 # Be more Bourne compatible
20301 DUALCASE
=1; export DUALCASE
# for MKS sh
20302 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20306 # is contrary to our usage. Disable this feature.
20307 alias -g '${1+"$@"}'='"$@"'
20308 setopt NO_GLOB_SUBST
20310 case `(set -o) 2>/dev/null` in #(
20322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20323 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20326 # Prefer a ksh shell builtin over an external printf program on Solaris,
20327 # but without wasting forks for bash or zsh.
20328 if test -z "$BASH_VERSION$ZSH_VERSION" \
20329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20330 as_echo='print
-r --'
20331 as_echo_n='print
-rn --'
20332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20333 as_echo='printf %s
\n'
20334 as_echo_n='printf %s
'
20336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20337 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20338 as_echo_n='/usr
/ucb
/echo -n'
20340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20341 as_echo_n_body='eval
20345 expr "X$arg" : "X\\(.*\\)$as_nl";
20346 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20348 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20350 export as_echo_n_body
20351 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20353 export as_echo_body
20354 as_echo='sh
-c $as_echo_body as_echo
'
20357 # The user is always right.
20358 if test "${PATH_SEPARATOR+set}" != set; then
20360 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20361 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20368 # We need space, tab and new line, in precisely that order. Quoting is
20369 # there to prevent editors from complaining about space-tab.
20370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20371 # splitting by setting IFS to empty value.)
20374 # Find who we are. Look in the path if we contain no directory separator.
20376 *[\\/]* ) as_myself=$0 ;;
20377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 for as_dir in $PATH
20381 test -z "$as_dir" && as_dir=.
20382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20388 # We did not find ourselves, most probably we were run as `sh COMMAND'
20389 # in which case we are not to be found in the path.
20390 if test "x$as_myself" = x
; then
20393 if test ! -f "$as_myself"; then
20394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20398 # Unset variables that we do not need and which cause bugs (e.g. in
20399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20400 # suppresses any "Segmentation fault" message there. '((' could
20401 # trigger a bug in pdksh 5.2.14.
20402 for as_var
in BASH_ENV ENV MAIL MAILPATH
20403 do eval test x\
${$as_var+set} = xset \
20404 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20417 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20420 # as_fn_error ERROR [LINENO LOG_FD]
20421 # ---------------------------------
20422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20424 # script with status $?, using 1 if that was 0.
20427 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20429 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20432 $as_echo "$as_me: error: $1" >&2
20433 as_fn_exit
$as_status
20437 # as_fn_set_status STATUS
20438 # -----------------------
20439 # Set $? to STATUS, without forking.
20440 as_fn_set_status
()
20443 } # as_fn_set_status
20445 # as_fn_exit STATUS
20446 # -----------------
20447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20451 as_fn_set_status
$1
20457 # Portably unset VAR.
20460 { eval $1=; unset $1;}
20462 as_unset
=as_fn_unset
20463 # as_fn_append VAR VALUE
20464 # ----------------------
20465 # Append the text in VALUE to the end of the definition contained in VAR. Take
20466 # advantage of any shell optimizations that allow amortized linear growth over
20467 # repeated appends, instead of the typical quadratic growth present in naive
20469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20470 eval 'as_fn_append ()
20481 # as_fn_arith ARG...
20482 # ------------------
20483 # Perform arithmetic evaluation on the ARGs, and store the result in the
20484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20485 # must be portable across $(()) and expr.
20486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20487 eval 'as_fn_arith ()
20494 as_val
=`expr "$@" || test $? -eq 1`
20499 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20500 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20506 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20507 as_basename
=basename
20512 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20518 as_me
=`$as_basename -- "$0" ||
20519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20520 X"$0" : 'X\(//\)$' \| \
20521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20523 sed '/^.*\/\([^/][^/]*\)\/*$/{
20537 # Avoid depending upon Character Ranges.
20538 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20539 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20540 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20541 as_cr_digits
='0123456789'
20542 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20544 ECHO_C
= ECHO_N
= ECHO_T
=
20545 case `echo -n x` in #(((((
20547 case `echo 'xy\c'` in
20548 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20550 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20557 rm -f conf$$ conf$$.exe conf$$.
file
20558 if test -d conf$$.dir
; then
20559 rm -f conf$$.dir
/conf$$.
file
20562 mkdir conf$$.dir
2>/dev
/null
20564 if (echo >conf$$.
file) 2>/dev
/null
; then
20565 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20567 # ... but there are two gotchas:
20568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20570 # In both cases, we have to default to `cp -p'.
20571 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20573 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20581 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20582 rmdir conf$$.dir
2>/dev
/null
20587 # Create "$as_dir" as a directory, including parents if necessary.
20592 -*) as_dir
=.
/$as_dir;;
20594 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20598 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20599 *) as_qdir
=$as_dir;;
20601 as_dirs
="'$as_qdir' $as_dirs"
20602 as_dir
=`$as_dirname -- "$as_dir" ||
20603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20604 X"$as_dir" : 'X\(//\)[^/]' \| \
20605 X"$as_dir" : 'X\(//\)$' \| \
20606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20607 $as_echo X"$as_dir" |
20608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20612 /^X\(\/\/\)[^/].*/{
20625 test -d "$as_dir" && break
20627 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20628 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20632 if mkdir
-p .
2>/dev
/null
; then
20633 as_mkdir_p
='mkdir -p "$as_dir"'
20635 test -d .
/-p && rmdir .
/-p
20639 if test -x / >/dev
/null
2>&1; then
20640 as_test_x
='test -x'
20642 if ls -dL / >/dev
/null
2>&1; then
20649 if test -d "$1"; then
20655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20656 ???[sx]*):;;*)false;;esac;fi
20660 as_executable_p
=$as_test_x
20662 # Sed expression to map a string onto a valid CPP name.
20663 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20665 # Sed expression to map a string onto a valid variable name.
20666 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20670 ## ----------------------------------- ##
20671 ## Main body of $CONFIG_STATUS script. ##
20672 ## ----------------------------------- ##
20674 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20677 # Save the log message, to keep $0 and so on meaningful, and to
20678 # report actual input values of CONFIG_FILES etc. instead of their
20679 # values after options handling.
20681 This file was extended by emacs $as_me 24.0.50, which was
20682 generated by GNU Autoconf 2.65. Invocation command line was
20684 CONFIG_FILES = $CONFIG_FILES
20685 CONFIG_HEADERS = $CONFIG_HEADERS
20686 CONFIG_LINKS = $CONFIG_LINKS
20687 CONFIG_COMMANDS = $CONFIG_COMMANDS
20690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20695 case $ac_config_files in *"
20696 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20699 case $ac_config_headers in *"
20700 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20705 # Files that config.status was made for.
20706 config_files="$ac_config_files"
20707 config_headers="$ac_config_headers"
20708 config_commands="$ac_config_commands"
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20714 \`$as_me' instantiates files and other configuration actions
20715 from templates according to the current configuration. Unless the files
20716 and actions are specified as TAGs, all are instantiated by default.
20718 Usage: $0 [OPTION]... [TAG]...
20720 -h, --help print this help, then exit
20721 -V, --version print version number and configuration settings, then exit
20722 --config print configuration, then exit
20723 -q, --quiet, --silent
20724 do not print progress messages
20725 -d, --debug don't remove temporary files
20726 --recheck update $as_me by reconfiguring in the same conditions
20727 --file=FILE[:TEMPLATE]
20728 instantiate the configuration file FILE
20729 --header=FILE[:TEMPLATE]
20730 instantiate the configuration header FILE
20732 Configuration files:
20735 Configuration headers:
20738 Configuration commands:
20741 Report bugs to the package provider."
20744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20747 emacs config.status 24.0.50
20748 configured by $0, generated by GNU Autoconf 2.65,
20749 with options \\"\$ac_cs_config\\"
20751 Copyright (C) 2009 Free Software Foundation, Inc.
20752 This config.status script is free software; the Free Software Foundation
20753 gives unlimited permission to copy, distribute and modify it."
20760 test -n "\$AWK" || AWK=awk
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20764 # The default lists apply if the user does not specify any file.
20770 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20771 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20782 # Handling of the options.
20783 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20785 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20786 $as_echo "$ac_cs_version"; exit ;;
20787 --config |
--confi |
--conf |
--con |
--co |
--c )
20788 $as_echo "$ac_cs_config"; exit ;;
20789 --debug |
--debu |
--deb |
--de |
--d |
-d )
20791 --file |
--fil |
--fi |
--f )
20794 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20796 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20797 ac_need_defaults
=false
;;
20798 --header |
--heade |
--head |
--hea )
20801 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20803 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20804 ac_need_defaults
=false
;;
20806 # Conflict between --help and --header
20807 as_fn_error
"ambiguous option: \`$1'
20808 Try \`$0 --help' for more information.";;
20809 --help |
--hel |
-h )
20810 $as_echo "$ac_cs_usage"; exit ;;
20811 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20812 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20815 # This is an error.
20816 -*) as_fn_error
"unrecognized option: \`$1'
20817 Try \`$0 --help' for more information." ;;
20819 *) as_fn_append ac_config_targets
" $1"
20820 ac_need_defaults
=false
;;
20826 ac_configure_extra_args
=
20828 if $ac_cs_silent; then
20830 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20835 if \$ac_cs_recheck; then
20836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20839 CONFIG_SHELL='$SHELL'
20840 export CONFIG_SHELL
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20850 ## Running $as_me. ##
20856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20861 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20867 # Handling of arguments.
20868 for ac_config_target
in $ac_config_targets
20870 case $ac_config_target in
20871 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20872 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20873 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20874 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20875 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20876 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20877 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20878 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20879 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20880 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20881 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20882 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20883 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20884 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20885 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20886 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20887 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20888 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20890 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20895 # If the user did not use the arguments to specify the items to instantiate,
20896 # then the envvar interface is used. Set only those that are not.
20897 # We use the long form for the default assignment because of an extremely
20898 # bizarre bug on SunOS 4.1.3.
20899 if $ac_need_defaults; then
20900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20905 # Have a temporary directory for convenience. Make it in the build tree
20906 # simply because there is no reason against having it here, and in addition,
20907 # creating and moving files from /tmp can sometimes cause problems.
20908 # Hook for its removal unless debugging.
20909 # Note that there is a small window in which the directory will not be cleaned:
20910 # after its creation but before its name has been assigned to `$tmp'.
20914 trap 'exit_status=$?
20915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20917 trap 'as_fn_exit 1' 1 2 13 15
20919 # Create a (secure) tmp directory for tmp files.
20922 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20923 test -n "$tmp" && test -d "$tmp"
20926 tmp
=.
/conf$$
-$RANDOM
20927 (umask 077 && mkdir
"$tmp")
20928 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20930 # Set up the scripts for CONFIG_FILES section.
20931 # No need to generate them if there are no CONFIG_FILES.
20932 # This happens for instance with `./config.status config.h'.
20933 if test -n "$CONFIG_FILES"; then
20935 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20936 ac_cs_awk_getline
=:
20937 ac_cs_awk_pipe_init
=
20938 ac_cs_awk_read_file
='
20939 while ((getline aline < (F[key])) > 0)
20942 ac_cs_awk_pipe_fini
=
20944 ac_cs_awk_getline
=false
20945 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20946 ac_cs_awk_read_file
='
20948 print "cat " F[key] " &&"
20949 '$ac_cs_awk_pipe_init
20950 # The final `:' finishes the AND list.
20951 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20953 ac_cr
=`echo X | tr X '\015'`
20954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20955 # But we know of no other shell where ac_cr would be empty at this
20956 # point, so we can use a bashism as a fallback.
20957 if test "x$ac_cr" = x
; then
20958 eval ac_cr
=\$
\'\\r
\'
20960 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20964 ac_cs_awk_cr
=$ac_cr
20967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20970 # Create commands to substitute file output variables.
20972 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20973 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20974 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20977 } >conf$
$files.sh
&&
20978 . .
/conf$
$files.sh ||
20979 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
20980 rm -f conf$
$files.sh
20983 echo "cat >conf$$subs.awk <<_ACEOF" &&
20984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20986 } >conf$$subs.sh ||
20987 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20990 for ac_last_try in false false false false false :; do
20991 . ./conf$$subs.sh ||
20992 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20994 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20995 if test $ac_delim_n = $ac_delim_num; then
20997 elif $ac_last_try; then
20998 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21000 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21003 rm -f conf$$subs.sh
21005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21006 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
21010 s/^/S["/; s
/!.
*/"]=/
21020 s/\(.\{148\}\)..*/\1/
21022 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21027 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21034 s/\(.\{148\}\)..*/\1/
21036 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21040 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21045 ' <conf$$subs.awk | sed '
21050 ' >>$CONFIG_STATUS || ac_write_fail=1
21051 rm -f conf$$subs.awk
21052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21054 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21055 for (key in S) S_is_set[key] = 1
21057 \$ac_cs_awk_pipe_init
21061 nfields = split(line, field, "@
")
21063 len = length(field[1])
21064 for (i = 2; i < nfields; i++) {
21066 keylen = length(key)
21067 if (S_is_set[key]) {
21069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21070 len += length(value) + length(field[++i])
21075 if (nfields == 3 && !substed) {
21077 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21078 \$ac_cs_awk_read_file
21084 \$ac_cs_awk_pipe_fini
21087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21088 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21089 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21092 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21093 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
21096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21098 # trailing colons and then remove the whole line if VPATH becomes empty
21099 # (actually we leave an empty line to preserve line numbers).
21100 if test "x
$srcdir" = x.; then
21101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21102 s/:*\$(srcdir):*/:/
21103 s/:*\${srcdir}:*/:/
21105 s/^\([^=]*=[ ]*\):*/\1/
21111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21112 fi # test -n "$CONFIG_FILES"
21114 # Set up the scripts for CONFIG_HEADERS section.
21115 # No need to generate them if there are no CONFIG_HEADERS.
21116 # This happens for instance with `./config.status Makefile'.
21117 if test -n "$CONFIG_HEADERS"; then
21118 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21122 # Transform confdefs.h into an awk script `defines.awk', embedded as
21123 # here-document in config.status, that substitutes the proper values into
21124 # config.h.in to produce config.h.
21126 # Create a delimiter string that does not exist in confdefs.h, to ease
21127 # handling of long lines.
21129 for ac_last_try in false false :; do
21130 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21131 if test -z "$ac_t"; then
21133 elif $ac_last_try; then
21134 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21136 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21140 # For the awk script, D is an array of macro values keyed by name,
21141 # likewise P contains macro parameters if any. Preserve backslash
21142 # newline sequences.
21144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21146 s/.\{148\}/&'"$ac_delim"'/g
21149 s/^[ ]*#[ ]*define[ ][ ]*/ /
21156 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21158 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21163 D["\
1"]=" \
3\\\\\\n
"\\/p
21165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21170 s/.\{148\}/&'"$ac_delim"'/g
21175 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21178 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21180 ' <confdefs.h | sed '
21181 s/'"$ac_delim"'/"\\\
21182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 for (key in D) D_is_set[key] = 1
21188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21190 split(line, arg, " ")
21191 if (arg[1] == "#") {
21195 defundef
= substr
(arg
[1], 2)
21198 split(mac1
, mac2
, "(") #)
21200 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21201 if (D_is_set
[macro
]) {
21202 # Preserve the white space surrounding the "#".
21203 print prefix
"define", macro P
[macro
] D
[macro
]
21206 # Replace #undef with comments. This is necessary, for example,
21207 # in the case of _POSIX_SOURCE, which is predefined and required
21208 # on some systems where configure will not decide to define it.
21209 if (defundef
== "undef") {
21210 print
"/*", prefix defundef
, macro
, "*/"
21218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21219 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21220 fi # test -n "$CONFIG_HEADERS"
21223 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21228 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21230 case $ac_mode$ac_tag in
21232 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21233 :[FH
]-) ac_tag
=-:-;;
21234 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21251 -) ac_f
="$tmp/stdin";;
21252 *) # Look for the file first in the build tree, then in the source tree
21253 # (if the path is not absolute). The absolute path cannot be DOS-style,
21254 # because $ac_f cannot contain `:'.
21258 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21260 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21262 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21263 as_fn_append ac_file_inputs
" '$ac_f'"
21266 # Let's still pretend it is `configure' which instantiates (i.e., don't
21267 # use $as_me), people would be surprised to read:
21268 # /* config.h. Generated by config.status. */
21269 configure_input
='Generated from '`
21270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21272 if test x
"$ac_file" != x-
; then
21273 configure_input
="$ac_file. $configure_input"
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21275 $as_echo "$as_me: creating $ac_file" >&6;}
21277 # Neutralize special characters interpreted by sed in replacement strings.
21278 case $configure_input in #(
21279 *\
&* |
*\|
* |
*\\* )
21280 ac_sed_conf_input
=`$as_echo "$configure_input" |
21281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21282 *) ac_sed_conf_input
=$configure_input;;
21286 *:-:* |
*:-) cat >"$tmp/stdin" \
21287 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21292 ac_dir
=`$as_dirname -- "$ac_file" ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21297 $as_echo X"$ac_file" |
21298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21302 /^X\(\/\/\)[^/].*/{
21315 as_dir
="$ac_dir"; as_fn_mkdir_p
21319 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21321 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21322 # A ".." for each directory in $ac_dir_suffix.
21323 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21324 case $ac_top_builddir_sub in
21325 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21326 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21329 ac_abs_top_builddir
=$ac_pwd
21330 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21331 # for backward compatibility:
21332 ac_top_builddir
=$ac_top_build_prefix
21335 .
) # We are building in place.
21337 ac_top_srcdir
=$ac_top_builddir_sub
21338 ac_abs_top_srcdir
=$ac_pwd ;;
21339 [\\/]* | ?
:[\\/]* ) # Absolute name.
21340 ac_srcdir
=$srcdir$ac_dir_suffix;
21341 ac_top_srcdir
=$srcdir
21342 ac_abs_top_srcdir
=$srcdir ;;
21343 *) # Relative name.
21344 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21345 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21346 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21348 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21358 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21359 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21361 ac_MKDIR_P
=$MKDIR_P
21363 [\\/$
]* | ?
:[\\/]* ) ;;
21364 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21369 # If the template does not know about datarootdir, expand it.
21370 # FIXME: This hack should be removed a few years after 2.60.
21371 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21383 *datarootdir
*) ac_datarootdir_seen
=yes;;
21384 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 ac_datarootdir_hack='
21390 s&@datadir@&$datadir&g
21391 s&@docdir@&$docdir&g
21392 s&@infodir@&$infodir&g
21393 s&@localedir@&$localedir&g
21394 s&@mandir@&$mandir&g
21395 s&\\\${datarootdir}&$datarootdir&g' ;;
21399 # Neutralize VPATH when `$srcdir' = `.'.
21400 # Shell code in configure.ac might set extrasub.
21401 # FIXME: do we really want to maintain this feature?
21402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21403 ac_sed_extra="$ac_vpsub
21406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21408 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21409 s|@configure_input@|
$ac_sed_conf_input|
;t t
21410 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21411 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21412 s
&@srcdir@
&$ac_srcdir&;t t
21413 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21414 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21415 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21416 s
&@builddir@
&$ac_builddir&;t t
21417 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21418 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21419 s
&@INSTALL@
&$ac_INSTALL&;t t
21420 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21421 $ac_datarootdir_hack
21423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21424 if $ac_cs_awk_getline; then
21425 $AWK -f "$tmp/subs.
awk"
21427 $AWK -f "$tmp/subs.
awk" | $SHELL
21429 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21432 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21435 which seems to be undefined. Please make sure it is defined." >&5
21436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21437 which seems to be undefined. Please make sure it is defined." >&2;}
21441 -) cat "$tmp/out" && rm -f "$tmp/out";;
21442 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21444 || as_fn_error "could not create $ac_file" "$LINENO" 5
21450 if test x"$ac_file" != x-; then
21452 $as_echo "/* $configure_input */" \
21453 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21454 } >"$tmp/config.h" \
21455 || as_fn_error "could not create $ac_file" "$LINENO" 5
21456 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21458 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21461 mv "$tmp/config.h" "$ac_file" \
21462 || as_fn_error "could not create $ac_file" "$LINENO" 5
21465 $as_echo "/* $configure_input */" \
21466 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21467 || as_fn_error "could not create -" "$LINENO" 5
21469 # Compute "$ac_file"'s index
in $config_headers.
21472 for _am_header
in $config_headers :; do
21473 case $_am_header in
21474 $_am_arg |
$_am_arg:* )
21477 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21482 X"$_am_arg" : 'X\(//\)[^/]' \| \
21483 X"$_am_arg" : 'X\(//\)$' \| \
21484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21485 $as_echo X"$_am_arg" |
21486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21490 /^X\(\/\/\)[^/].*/{
21502 s/.*/./; q'`/stamp-h
$_am_stamp_count
21505 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21506 $as_echo "$as_me: executing $ac_file commands" >&6;}
21511 case $ac_file$ac_mode in
21512 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21513 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21514 # are listed without --file. Let's play safe and only enable the eval
21515 # if we detect the quoting.
21516 case $CONFIG_FILES in
21517 *\'*) eval set x
"$CONFIG_FILES" ;;
21518 *) set x
$CONFIG_FILES ;;
21523 # Strip MF so we end up with the name of the file.
21524 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21525 # Check whether this is an Automake generated Makefile or not.
21526 # We used to match only the files named `Makefile.in', but
21527 # some people rename them; so instead we look at the file content.
21528 # Grep'ing the first line is not enough: some people post-process
21529 # each Makefile.in and add a new line on top of each file to say so.
21530 # Grep'ing the whole file is not good either: AIX grep has a line
21531 # limit of 2048, but all sed's we know have understand at least 4000.
21532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21533 dirpart
=`$as_dirname -- "$mf" ||
21534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21535 X"$mf" : 'X\(//\)[^/]' \| \
21536 X"$mf" : 'X\(//\)$' \| \
21537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21543 /^X\(\/\/\)[^/].*/{
21559 # Extract the definition of DEPDIR, am__include, and am__quote
21560 # from the Makefile without running `make'.
21561 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21562 test -z "$DEPDIR" && continue
21563 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21564 test -z "am__include" && continue
21565 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21566 # When using ansi2knr, U may be empty or an underscore; expand it
21567 U
=`sed -n 's/^U = //p' < "$mf"`
21568 # Find all dependency output files, they are included files with
21569 # $(DEPDIR) in their names. We invoke sed twice because it is the
21570 # simplest approach to changing $(DEPDIR) to its actual value in the
21572 for file in `sed -n "
21573 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21574 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21575 # Make sure the directory exists.
21576 test -f "$dirpart/$file" && continue
21577 fdir
=`$as_dirname -- "$file" ||
21578 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21579 X"$file" : 'X\(//\)[^/]' \| \
21580 X"$file" : 'X\(//\)$' \| \
21581 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21582 $as_echo X"$file" |
21583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21587 /^X\(\/\/\)[^/].*/{
21600 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21601 # echo "creating $dirpart/$file"
21602 echo '# dummy' > "$dirpart/$file"
21608 for dir
in etc lisp
; do
21609 test -d ${dir} || mkdir
${dir}
21613 echo creating src
/epaths.h
21614 ${MAKE-make} epaths-force
21617 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21618 echo creating src
/.gdbinit
21619 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21629 ac_clean_files
=$ac_clean_files_save
21631 test $ac_write_fail = 0 ||
21632 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21635 # configure is writing to config.log, and then calls config.status.
21636 # config.status does its own redirection, appending to config.log.
21637 # Unfortunately, on DOS this fails, as config.log is still kept open
21638 # by configure, so config.status won't be able to write to it; its
21639 # output is simply discarded. So we exec the FD to /dev/null,
21640 # effectively closing config.log, so it can be properly (re)opened and
21641 # appended to by config.status. When coming back to configure, we
21642 # need to make the FD available again.
21643 if test "$no_create" != yes; then
21645 ac_config_status_args
=
21646 test "$silent" = yes &&
21647 ac_config_status_args
="$ac_config_status_args --quiet"
21649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21652 # would make configure fail if this is the last instruction.
21653 $ac_cs_success || as_fn_exit $?
21655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}