2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 gl_getopt_required
=POSIX
604 gl_getopt_required
=POSIX
606 ac_subst_vars
='gltests_LTLIBOBJS
619 LD_SWITCH_SYSTEM_TEMACS
652 x_default_search_path
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
714 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
724 HAVE_SIGNED_SIG_ATOMIC_T
727 BITSIZEOF_SIG_ATOMIC_T
733 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
738 HAVE_UNSIGNED_LONG_LONG_INT
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
747 APPLE_UNIVERSAL_BUILD
755 HAVE_DECL_LOCALTIME_R
765 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
769 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
771 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
772 UNISTD_H_HAVE_WINSOCK2_H
791 REPLACE_GETDOMAINNAME
801 HAVE_DECL_GETUSERSHELL
802 HAVE_DECL_GETPAGESIZE
804 HAVE_DECL_GETDOMAINNAME
839 GNULIB_UNISTD_H_SIGPIPE
840 GNULIB_UNISTD_H_GETOPT
887 REPLACE_CANONICALIZE_FILE_NAME
892 HAVE_STRUCT_RANDOM_DATA
911 HAVE_CANONICALIZE_FILE_NAME
938 GNULIB_CANONICALIZE_FILE_NAME
942 GL_COND_LIBTOOL_FALSE
992 LD_SWITCH_X_SITE_AUX_RPATH
1054 INSTALL_STRIP_PROGRAM
1096 program_transform_name
1107 ac_subst_files
='deps_frag
1110 enable_option_checking
1132 with_toolkit_scroll_bars
1143 with_pkg_config_prog
1147 enable_ns_self_contained
1149 enable_maintainer_mode
1150 enable_locallisppath
1152 enable_use_lisp_union_type
1155 enable_dependency_tracking
1159 ac_precious_vars
='build_alias
1174 # Initialize some variables set by options.
1176 ac_init_version
=false
1177 ac_unrecognized_opts
=
1178 ac_unrecognized_sep
=
1179 # The variables have the same names as the options, with
1180 # dashes changed to underlines.
1181 cache_file
=/dev
/null
1188 program_transform_name
=s
,x
,x
,
1196 # Installation directory options.
1197 # These are left unexpanded so users can "make install exec_prefix=/foo"
1198 # and all the variables that are supposed to be based on exec_prefix
1199 # by default will actually change.
1200 # Use braces instead of parens because sh, perl, etc. also accept them.
1201 # (The list follows the same order as the GNU Coding Standards.)
1202 bindir
='${exec_prefix}/bin'
1203 sbindir
='${exec_prefix}/sbin'
1204 libexecdir
='${exec_prefix}/libexec'
1205 datarootdir
='${prefix}/share'
1206 datadir
='${datarootdir}'
1207 sysconfdir
='${prefix}/etc'
1208 sharedstatedir
='${prefix}/com'
1209 localstatedir
='${prefix}/var'
1210 includedir
='${prefix}/include'
1211 oldincludedir
='/usr/include'
1212 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1213 infodir
='${datarootdir}/info'
1218 libdir
='${exec_prefix}/lib'
1219 localedir
='${datarootdir}/locale'
1220 mandir
='${datarootdir}/man'
1226 # If the previous option needs an argument, assign it.
1227 if test -n "$ac_prev"; then
1228 eval $ac_prev=\
$ac_option
1234 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239 # Accept the important Cygnus configure options, so we can diagnose typos.
1241 case $ac_dashdash$ac_option in
1245 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1247 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1248 bindir
=$ac_optarg ;;
1250 -build |
--build |
--buil |
--bui |
--bu)
1251 ac_prev
=build_alias
;;
1252 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1253 build_alias
=$ac_optarg ;;
1255 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1256 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1257 ac_prev
=cache_file
;;
1258 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1259 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1260 cache_file
=$ac_optarg ;;
1262 --config-cache |
-C)
1263 cache_file
=config.cache
;;
1265 -datadir |
--datadir |
--datadi |
--datad)
1267 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1268 datadir
=$ac_optarg ;;
1270 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1271 |
--dataroo |
--dataro |
--datar)
1272 ac_prev
=datarootdir
;;
1273 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1274 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1275 datarootdir
=$ac_optarg ;;
1277 -disable-* |
--disable-*)
1278 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1281 as_fn_error $?
"invalid feature name: $ac_useropt"
1282 ac_useropt_orig
=$ac_useropt
1283 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "enable_
$ac_useropt"
1288 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1289 ac_unrecognized_sep
=', ';;
1291 eval enable_
$ac_useropt=no
;;
1293 -docdir |
--docdir |
--docdi |
--doc |
--do)
1295 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1296 docdir
=$ac_optarg ;;
1298 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1300 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1301 dvidir
=$ac_optarg ;;
1303 -enable-* |
--enable-*)
1304 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1307 as_fn_error $?
"invalid feature name: $ac_useropt"
1308 ac_useropt_orig
=$ac_useropt
1309 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "enable_
$ac_useropt"
1314 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1315 ac_unrecognized_sep
=', ';;
1317 eval enable_
$ac_useropt=\
$ac_optarg ;;
1319 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1320 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1321 |
--exec |
--exe |
--ex)
1322 ac_prev
=exec_prefix
;;
1323 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1324 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1325 |
--exec=* |
--exe=* |
--ex=*)
1326 exec_prefix
=$ac_optarg ;;
1328 -gas |
--gas |
--ga |
--g)
1329 # Obsolete; use --with-gas.
1332 -help |
--help |
--hel |
--he |
-h)
1333 ac_init_help
=long
;;
1334 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1335 ac_init_help
=recursive
;;
1336 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1337 ac_init_help
=short
;;
1339 -host |
--host |
--hos |
--ho)
1340 ac_prev
=host_alias
;;
1341 -host=* |
--host=* |
--hos=* |
--ho=*)
1342 host_alias
=$ac_optarg ;;
1344 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1346 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1348 htmldir
=$ac_optarg ;;
1350 -includedir |
--includedir |
--includedi |
--included |
--include \
1351 |
--includ |
--inclu |
--incl |
--inc)
1352 ac_prev
=includedir
;;
1353 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1354 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1355 includedir
=$ac_optarg ;;
1357 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1359 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1360 infodir
=$ac_optarg ;;
1362 -libdir |
--libdir |
--libdi |
--libd)
1364 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1365 libdir
=$ac_optarg ;;
1367 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1368 |
--libexe |
--libex |
--libe)
1369 ac_prev
=libexecdir
;;
1370 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1371 |
--libexe=* |
--libex=* |
--libe=*)
1372 libexecdir
=$ac_optarg ;;
1374 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1375 ac_prev
=localedir
;;
1376 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1377 localedir
=$ac_optarg ;;
1379 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1380 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1381 ac_prev
=localstatedir
;;
1382 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1383 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1384 localstatedir
=$ac_optarg ;;
1386 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1388 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1389 mandir
=$ac_optarg ;;
1391 -nfp |
--nfp |
--nf)
1392 # Obsolete; use --without-fp.
1395 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1396 |
--no-cr |
--no-c |
-n)
1399 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1400 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1403 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1404 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1405 |
--oldin |
--oldi |
--old |
--ol |
--o)
1406 ac_prev
=oldincludedir
;;
1407 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1408 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1409 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1410 oldincludedir
=$ac_optarg ;;
1412 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1414 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1415 prefix
=$ac_optarg ;;
1417 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1418 |
--program-pre |
--program-pr |
--program-p)
1419 ac_prev
=program_prefix
;;
1420 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1421 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1422 program_prefix
=$ac_optarg ;;
1424 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1425 |
--program-suf |
--program-su |
--program-s)
1426 ac_prev
=program_suffix
;;
1427 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1428 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1429 program_suffix
=$ac_optarg ;;
1431 -program-transform-name |
--program-transform-name \
1432 |
--program-transform-nam |
--program-transform-na \
1433 |
--program-transform-n |
--program-transform- \
1434 |
--program-transform |
--program-transfor \
1435 |
--program-transfo |
--program-transf \
1436 |
--program-trans |
--program-tran \
1437 |
--progr-tra |
--program-tr |
--program-t)
1438 ac_prev
=program_transform_name
;;
1439 -program-transform-name=* |
--program-transform-name=* \
1440 |
--program-transform-nam=* |
--program-transform-na=* \
1441 |
--program-transform-n=* |
--program-transform-=* \
1442 |
--program-transform=* |
--program-transfor=* \
1443 |
--program-transfo=* |
--program-transf=* \
1444 |
--program-trans=* |
--program-tran=* \
1445 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1446 program_transform_name
=$ac_optarg ;;
1448 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1450 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1451 pdfdir
=$ac_optarg ;;
1453 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1455 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1458 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1459 |
-silent |
--silent |
--silen |
--sile |
--sil)
1462 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1464 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1466 sbindir
=$ac_optarg ;;
1468 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1469 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1470 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1472 ac_prev
=sharedstatedir
;;
1473 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1474 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1475 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1477 sharedstatedir
=$ac_optarg ;;
1479 -site |
--site |
--sit)
1481 -site=* |
--site=* |
--sit=*)
1484 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1486 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1487 srcdir
=$ac_optarg ;;
1489 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1490 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1491 ac_prev
=sysconfdir
;;
1492 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1493 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1494 sysconfdir
=$ac_optarg ;;
1496 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1497 ac_prev
=target_alias
;;
1498 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1499 target_alias
=$ac_optarg ;;
1501 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1504 -version |
--version |
--versio |
--versi |
--vers |
-V)
1505 ac_init_version
=: ;;
1508 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1509 # Reject names that are not valid shell variable names.
1510 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1511 as_fn_error $?
"invalid package name: $ac_useropt"
1512 ac_useropt_orig
=$ac_useropt
1513 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1514 case $ac_user_opts in
1518 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1519 ac_unrecognized_sep
=', ';;
1521 eval with_
$ac_useropt=\
$ac_optarg ;;
1523 -without-* |
--without-*)
1524 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1527 as_fn_error $?
"invalid package name: $ac_useropt"
1528 ac_useropt_orig
=$ac_useropt
1529 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1534 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1535 ac_unrecognized_sep
=', ';;
1537 eval with_
$ac_useropt=no
;;
1540 # Obsolete; use --with-x.
1543 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1544 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1545 ac_prev
=x_includes
;;
1546 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1547 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1548 x_includes
=$ac_optarg ;;
1550 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1551 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1552 ac_prev
=x_libraries
;;
1553 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1554 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1555 x_libraries
=$ac_optarg ;;
1557 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1558 Try \`$0 --help' for more information"
1562 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1563 # Reject names that are not valid shell variable names.
1564 case $ac_envvar in #(
1565 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1566 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1568 eval $ac_envvar=\
$ac_optarg
1569 export $ac_envvar ;;
1572 # FIXME: should be removed in autoconf 3.0.
1573 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1574 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1575 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1576 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1582 if test -n "$ac_prev"; then
1583 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1584 as_fn_error $?
"missing argument to $ac_option"
1587 if test -n "$ac_unrecognized_opts"; then
1588 case $enable_option_checking in
1590 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1591 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1595 # Check all directory arguments for consistency.
1596 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1597 datadir sysconfdir sharedstatedir localstatedir includedir \
1598 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1599 libdir localedir mandir
1601 eval ac_val
=\$
$ac_var
1602 # Remove trailing slashes.
1605 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1606 eval $ac_var=\
$ac_val;;
1608 # Be sure to have absolute directory names.
1610 [\\/$
]* | ?
:[\\/]* ) continue;;
1611 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1613 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1616 # There might be people who depend on the old broken behavior: `$host'
1617 # used to hold the argument of --host etc.
1618 # FIXME: To remove some day.
1621 target
=$target_alias
1623 # FIXME: To remove some day.
1624 if test "x$host_alias" != x
; then
1625 if test "x$build_alias" = x
; then
1626 cross_compiling
=maybe
1627 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1628 If a cross compiler is detected then cross compile mode will be used" >&2
1629 elif test "x$build_alias" != "x$host_alias"; then
1635 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1637 test "$silent" = yes && exec 6>/dev
/null
1640 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1641 ac_ls_di
=`ls -di .` &&
1642 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1643 as_fn_error $?
"working directory cannot be determined"
1644 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1645 as_fn_error $?
"pwd does not report name of working directory"
1648 # Find the source files, if location was not specified.
1649 if test -z "$srcdir"; then
1650 ac_srcdir_defaulted
=yes
1651 # Try the directory containing this script, then the parent directory.
1652 ac_confdir
=`$as_dirname -- "$as_myself" ||
1653 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1654 X"$as_myself" : 'X\(//\)[^/]' \| \
1655 X"$as_myself" : 'X\(//\)$' \| \
1656 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1657 $as_echo X"$as_myself" |
1658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1676 if test ! -r "$srcdir/$ac_unique_file"; then
1680 ac_srcdir_defaulted
=no
1682 if test ! -r "$srcdir/$ac_unique_file"; then
1683 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1684 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1686 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1688 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1690 # When building in place, set srcdir=.
1691 if test "$ac_abs_confdir" = "$ac_pwd"; then
1694 # Remove unnecessary trailing slashes from srcdir.
1695 # Double slashes in file names in object file debugging info
1696 # mess up M-x gdb in Emacs.
1698 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1700 for ac_var
in $ac_precious_vars; do
1701 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1702 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1703 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1704 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1708 # Report the --help message.
1710 if test "$ac_init_help" = "long"; then
1711 # Omit some internal or obsolete options to make the list less imposing.
1712 # This message is too long to be a string in the A/UX 3.1 sh.
1714 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1716 Usage: $0 [OPTION]... [VAR=VALUE]...
1718 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1719 VAR=VALUE. See below for descriptions of some of the useful variables.
1721 Defaults for the options are specified in brackets.
1724 -h, --help display this help and exit
1725 --help=short display options specific to this package
1726 --help=recursive display the short help of all the included packages
1727 -V, --version display version information and exit
1728 -q, --quiet, --silent do not print \`checking ...' messages
1729 --cache-file=FILE cache test results in FILE [disabled]
1730 -C, --config-cache alias for \`--cache-file=config.cache'
1731 -n, --no-create do not create output files
1732 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1734 Installation directories:
1735 --prefix=PREFIX install architecture-independent files in PREFIX
1736 [$ac_default_prefix]
1737 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1740 By default, \`make install' will install all the files in
1741 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1742 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1743 for instance \`--prefix=\$HOME'.
1745 For better control, use the options below.
1747 Fine tuning of the installation directories:
1748 --bindir=DIR user executables [EPREFIX/bin]
1749 --sbindir=DIR system admin executables [EPREFIX/sbin]
1750 --libexecdir=DIR program executables [EPREFIX/libexec]
1751 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1752 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1753 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1754 --libdir=DIR object code libraries [EPREFIX/lib]
1755 --includedir=DIR C header files [PREFIX/include]
1756 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1757 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1758 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1759 --infodir=DIR info documentation [DATAROOTDIR/info]
1760 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1761 --mandir=DIR man documentation [DATAROOTDIR/man]
1762 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1763 --htmldir=DIR html documentation [DOCDIR]
1764 --dvidir=DIR dvi documentation [DOCDIR]
1765 --pdfdir=DIR pdf documentation [DOCDIR]
1766 --psdir=DIR ps documentation [DOCDIR]
1772 --program-prefix=PREFIX prepend PREFIX to installed program names
1773 --program-suffix=SUFFIX append SUFFIX to installed program names
1774 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1777 --x-includes=DIR X include files are
in DIR
1778 --x-libraries=DIR X library files are
in DIR
1781 --build=BUILD configure
for building on BUILD
[guessed
]
1782 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1786 if test -n "$ac_init_help"; then
1787 case $ac_init_help in
1788 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1793 --disable-option-checking ignore unrecognized
--enable/--with options
1794 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1795 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1796 --disable-ns-self-contained
1797 disable self contained build under NeXTstep
1798 --enable-asserts compile code with asserts enabled
1799 --enable-maintainer-mode
1800 enable make rules and dependencies not useful
(and
1801 sometimes confusing
) to the casual installer
1802 --enable-locallisppath=PATH
1803 directories Emacs should search
for lisp files
1804 specific to this site
1805 --enable-checking[=LIST
]
1806 enable expensive run-time checks. With LIST
, enable
1807 only specific categories of checks. Categories are
:
1808 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1809 stringfreelist
, xmallocoverrun
, conslist
1810 --enable-use-lisp-union-type
1811 use a union
for the Lisp_Object data
type. This is
1812 only useful
for development
for catching certain
1814 --enable-profiling build emacs with profiling support. This might not
1815 work on all platforms
1816 --enable-autodepend automatically generate dependencies to .h-files.
1817 Requires GNU Make and Gcc. Enabled
if GNU Make and
1819 --disable-dependency-tracking speeds up one-time build
1820 --enable-dependency-tracking do not reject slow dependency extractors
1821 --disable-largefile omit support
for large files
1824 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1825 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1826 --without-pop don
't support POP mail retrieval with movemail
1827 --with-kerberos support Kerberos-authenticated POP
1828 --with-kerberos5 support Kerberos version 5 authenticated POP
1829 --with-hesiod support Hesiod to get the POP server host
1830 --with-mmdf support MMDF mailboxes
1831 --with-mail-unlink unlink, rather than empty, mail spool after reading
1832 --with-mailhost=HOSTNAME
1833 string giving default POP mail host
1834 --without-sound don't compile with sound support
1835 --without-sync-input process async input synchronously
1836 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1837 lucid or athena
, motif
, no
)
1838 --without-xpm don
't compile with XPM image support
1839 --without-jpeg don't compile with JPEG image support
1840 --without-tiff don
't compile with TIFF image support
1841 --without-gif don't compile with GIF image support
1842 --without-png don
't compile with PNG image support
1843 --without-rsvg don't compile with SVG image support
1844 --without-xml2 don
't compile with XML parsing support
1845 --without-imagemagick don't compile with ImageMagick image support
1846 --without-xft don
't use XFT for anti aliased fonts
1847 --without-libotf don't use libotf
for OpenType font support
1848 --without-m17n-flt don
't use m17n-flt for text shaping
1849 --without-toolkit-scroll-bars
1850 don't use Motif or Xaw3d scroll bars
1851 --without-xaw3d don
't use Xaw3d
1852 --without-xim don't use X11 XIM
1853 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1854 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1856 --without-dbus don't compile with D-Bus support
1857 --without-gconf don
't compile with GConf support
1858 --without-selinux don't compile with SELinux support
1859 --without-gnutls don
't use -lgnutls for SSL/TLS support
1860 --without-makeinfo don't require makeinfo
for building manuals
1861 --without-compress-info don
't compress the installed Info pages
1862 --with-pkg-config-prog=PATH
1863 path to pkg-config for finding GTK and librsvg
1864 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1865 /usr/lib, or /usr/lib64 on some platforms.
1866 --with-gameuser=USER user for shared game score files
1867 --with-gnustep-conf=PATH
1868 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1869 or /etc/GNUstep/GNUstep.conf
1870 --with-x use the X Window System
1872 Some influential environment variables:
1873 CC C compiler command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1876 nonstandard directory <lib dir>
1877 LIBS libraries to pass to the linker, e.g. -l<library>
1878 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879 you have headers in a nonstandard directory <include dir>
1881 XMKMF Path to xmkmf, Makefile generator for X Window System
1883 Use these variables to override the choices made by `configure' or to
help
1884 it to
find libraries and programs with nonstandard names
/locations.
1886 Report bugs to the package provider.
1891 if test "$ac_init_help" = "recursive"; then
1892 # If there are subdirs, report their specific --help.
1893 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1894 test -d "$ac_dir" ||
1895 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1900 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1902 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1903 # A ".." for each directory in $ac_dir_suffix.
1904 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1905 case $ac_top_builddir_sub in
1906 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1907 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1910 ac_abs_top_builddir
=$ac_pwd
1911 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1912 # for backward compatibility:
1913 ac_top_builddir
=$ac_top_build_prefix
1916 .
) # We are building in place.
1918 ac_top_srcdir
=$ac_top_builddir_sub
1919 ac_abs_top_srcdir
=$ac_pwd ;;
1920 [\\/]* | ?
:[\\/]* ) # Absolute name.
1921 ac_srcdir
=$srcdir$ac_dir_suffix;
1922 ac_top_srcdir
=$srcdir
1923 ac_abs_top_srcdir
=$srcdir ;;
1925 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1926 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1927 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1929 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1931 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1932 # Check for guested configure.
1933 if test -f "$ac_srcdir/configure.gnu"; then
1935 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1936 elif test -f "$ac_srcdir/configure"; then
1938 $SHELL "$ac_srcdir/configure" --help=recursive
1940 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1942 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1946 test -n "$ac_init_help" && exit $ac_status
1947 if $ac_init_version; then
1949 emacs configure
24.0.50
1950 generated by GNU Autoconf
2.68
1952 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1953 This configure
script is free software
; the Free Software Foundation
1954 gives unlimited permission to copy
, distribute and modify it.
1959 ## ------------------------ ##
1960 ## Autoconf initialization. ##
1961 ## ------------------------ ##
1963 # ac_fn_c_try_compile LINENO
1964 # --------------------------
1965 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_compile
()
1968 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1969 rm -f conftest.
$ac_objext
1970 if { { ac_try
="$ac_compile"
1972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_compile") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest.$ac_objext; then :
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_c_try_compile
2001 # ac_fn_c_try_cpp LINENO
2002 # ----------------------
2003 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_cpp conftest.$ac_ext"
2009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2010 *) ac_try_echo
=$ac_try;;
2012 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2016 if test -s conftest.err
; then
2017 grep -v '^ *+' conftest.err
>conftest.er1
2018 cat conftest.er1
>&5
2019 mv -f conftest.er1 conftest.err
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } > conftest.i
&& {
2023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2024 test ! -s conftest.err
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.
$ac_ext >&5
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status
$ac_retval
2038 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2041 # the include files in INCLUDES and setting the cache variable VAR
2043 ac_fn_c_check_header_mongrel
()
2045 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2046 if eval \
${$3+:} false
; then :
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \
${$3+:} false
; then :
2050 $as_echo_n "(cached) " >&6
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2056 # Is the header compilable?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058 $as_echo_n "checking $2 usability... " >&6; }
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2064 if ac_fn_c_try_compile
"$LINENO"; then :
2065 ac_header_compiler
=yes
2067 ac_header_compiler
=no
2069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2071 $as_echo "$ac_header_compiler" >&6; }
2073 # Is the header present?
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2075 $as_echo_n "checking $2 presence... " >&6; }
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 if ac_fn_c_try_cpp
"$LINENO"; then :
2081 ac_header_preproc
=yes
2083 ac_header_preproc
=no
2085 rm -f conftest.err conftest.i conftest.
$ac_ext
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2087 $as_echo "$ac_header_preproc" >&6; }
2089 # So? What about this header?
2090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \
${$3+:} false
; then :
2113 $as_echo_n "(cached) " >&6
2115 eval "$3=\$ac_header_compiler"
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_header_mongrel
2125 # ac_fn_c_try_run LINENO
2126 # ----------------------
2127 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2128 # that executables *can* be run.
2131 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2132 if { { ac_try
="$ac_link"
2134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>&5
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2143 { { case "(($ac_try" in
2144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2145 *) ac_try_echo
=$ac_try;;
2147 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_try") 2>&5
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; }; }; then :
2155 $as_echo "$as_me: program exited with status $ac_status" >&5
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.
$ac_ext >&5
2159 ac_retval
=$ac_status
2161 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 as_fn_set_status
$ac_retval
2167 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2168 # -------------------------------------------------------
2169 # Tests whether HEADER exists and can be compiled using the include files in
2170 # INCLUDES, setting the cache variable VAR accordingly.
2171 ac_fn_c_check_header_compile
()
2173 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \
${$3+:} false
; then :
2177 $as_echo_n "(cached) " >&6
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2184 if ac_fn_c_try_compile
"$LINENO"; then :
2189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196 } # ac_fn_c_check_header_compile
2198 # ac_fn_c_try_link LINENO
2199 # -----------------------
2200 # Try to link conftest.$ac_ext, and return whether this succeeded.
2203 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2204 rm -f conftest.
$ac_objext conftest
$ac_exeext
2205 if { { ac_try
="$ac_link"
2207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_link") 2>conftest.err
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && {
2221 test -z "$ac_c_werror_flag" ||
2222 test ! -s conftest.err
2223 } && test -s conftest$ac_exeext && {
2224 test "$cross_compiling" = yes ||
2225 $as_test_x conftest$ac_exeext
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2234 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236 # interfere with the next link command; also delete a directory that is
2237 # left behind by Apple's compiler. We do this before executing the actions.
2238 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_c_try_link
2244 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2245 # ---------------------------------------------
2246 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2248 ac_fn_c_check_decl ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2252 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2254 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 #ifndef $as_decl_name
2266 (void) $as_decl_use;
2268 (void) $as_decl_name;
2276 if ac_fn_c_try_compile "$LINENO"; then :
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 } # ac_fn_c_check_decl
2290 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2291 # ----------------------------------------------
2292 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2293 ac_fn_c_check_header_preproc ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 if ac_fn_c_try_cpp "$LINENO"; then :
2310 rm -f conftest.err conftest.i conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_header_preproc
2319 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2320 # ----------------------------------------------------
2321 # Tries to find if the field MEMBER exists in type AGGR, after including
2322 # INCLUDES, setting cache variable VAR accordingly.
2323 ac_fn_c_check_member ()
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2327 $as_echo_n "checking for $2.$3... " >&6; }
2328 if eval \${$4+:} false; then :
2329 $as_echo_n "(cached) " >&6
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2344 if ac_fn_c_try_compile "$LINENO"; then :
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2354 if (sizeof ac_aggr.$3)
2360 if ac_fn_c_try_compile "$LINENO"; then :
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374 } # ac_fn_c_check_member
2376 # ac_fn_c_check_func LINENO FUNC VAR
2377 # ----------------------------------
2378 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2379 ac_fn_c_check_func ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383 $as_echo_n "checking for $2... " >&6; }
2384 if eval \${$3+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2389 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2391 #define $2 innocuous_$2
2393 /* System header to define __stub macros and hopefully few prototypes,
2394 which can conflict with char $2 (); below.
2395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2396 <limits.h> exists even on freestanding compilers. */
2399 # include <limits.h>
2401 # include <assert.h>
2406 /* Override any GCC internal prototype to avoid an error.
2407 Use char because int might match the return type of a GCC
2408 builtin and then its argument prototype would still apply. */
2413 /* The GNU C library defines this for functions which it implements
2414 to always fail with ENOSYS. Some functions are actually named
2415 something starting with __ and the normal name is an alias. */
2416 #if defined __stub_$2 || defined __stub___$2
2428 if ac_fn_c_try_link "$LINENO"; then :
2433 rm -f core conftest.err conftest.$ac_objext \
2434 conftest$ac_exeext conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441 } # ac_fn_c_check_func
2443 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2444 # -------------------------------------------
2445 # Tests whether TYPE exists after having included INCLUDES, setting cache
2446 # variable VAR accordingly.
2447 ac_fn_c_check_type ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if eval \${$3+:} false; then :
2453 $as_echo_n "(cached) " >&6
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2468 if ac_fn_c_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2481 if ac_fn_c_try_compile "$LINENO"; then :
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 } # ac_fn_c_check_type
2497 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2498 # --------------------------------------------
2499 # Tries to find the compile-time value of EXPR in a program that includes
2500 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2502 ac_fn_c_compute_int ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 if test "$cross_compiling" = yes; then
2506 # Depending upon the size, compute the lo and hi bounds.
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2513 static int test_array [1 - 2 * !(($2) >= 0)];
2520 if ac_fn_c_try_compile "$LINENO"; then :
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2529 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_hi=$ac_mid; break
2539 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2540 if test $ac_lo -le $ac_mid; then
2544 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2555 static int test_array [1 - 2 * !(($2) < 0)];
2562 if ac_fn_c_try_compile "$LINENO"; then :
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2571 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579 ac_lo=$ac_mid; break
2581 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2582 if test $ac_mid -le $ac_hi; then
2586 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 # Binary search between lo and hi bounds.
2597 while test "x$ac_lo" != "x$ac_hi"; do
2598 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2605 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2612 if ac_fn_c_try_compile "$LINENO"; then :
2615 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2627 static long int longval () { return $2; }
2628 static unsigned long int ulongval () { return $2; }
2635 FILE *f = fopen ("conftest.val", "w");
2640 long int i = longval ();
2643 fprintf (f, "%ld", i);
2647 unsigned long int i = ulongval ();
2650 fprintf (f, "%lu", i);
2652 /* Do not output a trailing newline, as this causes \r\n confusion
2653 on some platforms. */
2654 return ferror (f) || fclose (f) != 0;
2660 if ac_fn_c_try_run "$LINENO"; then :
2661 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2666 conftest.$ac_objext conftest.beam conftest.$ac_ext
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 as_fn_set_status $ac_retval
2673 } # ac_fn_c_compute_int
2674 cat >config.log <<_ACEOF
2675 This file contains any messages produced by compilers while
2676 running configure, to aid debugging if configure makes a mistake.
2678 It was created by emacs $as_me 24.0.50, which was
2679 generated by GNU Autoconf 2.68. Invocation command line was
2691 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2692 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2693 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2694 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2695 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2697 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2698 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2700 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2701 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2702 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2703 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2704 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2705 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2706 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 $as_echo "PATH: $as_dir"
2731 # Keep a trace of the command line.
2732 # Strip out --no-create and --no-recursion so they do not pile up.
2733 # Strip out --silent because we don't want to record it for future runs.
2734 # Also quote any args containing shell meta-characters.
2735 # Make two passes to allow for proper duplicate-argument suppression.
2739 ac_must_keep_next=false
2745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2747 | -silent | --silent | --silen | --sile | --sil)
2750 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2753 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2755 as_fn_append ac_configure_args1 " '$ac_arg'"
2756 if test $ac_must_keep_next = true; then
2757 ac_must_keep_next=false # Got value, back to normal.
2760 *=* | --config-cache | -C | -disable-* | --disable-* \
2761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2763 | -with-* | --with-* | -without-* | --without-* | --x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2768 -* ) ac_must_keep_next=true ;;
2771 as_fn_append ac_configure_args " '$ac_arg'"
2776 { ac_configure_args0=; unset ac_configure_args0;}
2777 { ac_configure_args1=; unset ac_configure_args1;}
2779 # When interrupted or exit'd, cleanup temporary files, and complete
2780 # config.log. We remove comments because anyway the quotes in there
2781 # would cause problems or look ugly.
2782 # WARNING: Use '\'' to represent an apostrophe within the trap.
2783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784 trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2789 $as_echo "## ---------------- ##
2790 ## Cache variables. ##
2791 ## ---------------- ##"
2793 # The following way of writing the cache mishandles newlines in values,
2795 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2796 eval ac_val=\$$ac_var
2800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2804 _ | IFS | as_nl) ;; #(
2805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2806 *) { eval $ac_var=; unset $ac_var;} ;;
2811 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2812 *${as_nl}ac_space=\ *)
2814 "s/'\''/'\''\\\\'\'''\''/g;
2815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825 $as_echo "## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##"
2829 for ac_var in $ac_subst_vars
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2839 if test -n "$ac_subst_files"; then
2840 $as_echo "## ------------------- ##
2841 ## File substitutions. ##
2842 ## ------------------- ##"
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2848 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2850 $as_echo "$ac_var='\''$ac_val'\''"
2855 if test -s confdefs.h; then
2856 $as_echo "## ----------- ##
2863 test "$ac_signal" != 0 &&
2864 $as_echo "$as_me: caught signal $ac_signal"
2865 $as_echo "$as_me: exit $exit_status"
2867 rm -f core *.core core.conftest.* &&
2868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2871 for ac_signal in 1 2 13 15; do
2872 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2877 rm -f -r conftest* confdefs.h
2879 $as_echo "/* confdefs.h */" > confdefs.h
2881 # Predefined preprocessor variables.
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_NAME "$PACKAGE_NAME"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_STRING "$PACKAGE_STRING"
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_URL "$PACKAGE_URL"
2908 # Let the site file select an alternate cache file if it wants to.
2909 # Prefer an explicitly selected file to automatically selected ones.
2912 if test -n "$CONFIG_SITE"; then
2913 # We do not want a PATH search for config.site.
2914 case $CONFIG_SITE in #((
2915 -*) ac_site_file1=./$CONFIG_SITE;;
2916 */*) ac_site_file1=$CONFIG_SITE;;
2917 *) ac_site_file1=./$CONFIG_SITE;;
2919 elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE && continue
2929 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2934 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error $? "failed to load site
script $ac_site_file
2937 See \
`config.log' for more details" "$LINENO" 5; }
2941 if test -r "$cache_file"; then
2942 # Some versions of bash will fail to source /dev/null (special files
2943 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2944 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2946 $as_echo "$as_me: loading cache $cache_file" >&6;}
2948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2949 *) . "./$cache_file";;
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2954 $as_echo "$as_me: creating cache $cache_file" >&6;}
2958 as_fn_append ac_header_list " stdlib.h"
2959 as_fn_append ac_header_list " unistd.h"
2960 as_fn_append ac_header_list " sys/param.h"
2961 gl_getopt_required=GNU
2962 as_fn_append ac_header_list " getopt.h"
2963 as_fn_append ac_func_list " alarm"
2964 as_fn_append ac_header_list " wchar.h"
2965 as_fn_append ac_header_list " stdint.h"
2966 as_fn_append ac_func_list " tzset"
2967 as_fn_append ac_header_list " sys/stat.h"
2968 as_fn_append ac_header_list " sys/time.h"
2969 as_fn_append ac_func_list " localtime_r"
2970 as_fn_append ac_func_list " lstat"
2971 # Check that the precious variables saved in the cache have kept the same
2973 ac_cache_corrupted=false
2974 for ac_var in $ac_precious_vars; do
2975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2976 eval ac_new_set=\$ac_env_${ac_var}_set
2977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2978 eval ac_new_val=\$ac_env_${ac_var}_value
2979 case $ac_old_set,$ac_new_set in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2982 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2983 ac_cache_corrupted=: ;;
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2986 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2990 if test "x$ac_old_val" != "x$ac_new_val"; then
2991 # differences in whitespace do not lead to failure.
2992 ac_old_val_w=`echo x
$ac_old_val`
2993 ac_new_val_w=`echo x
$ac_new_val`
2994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2997 ac_cache_corrupted=:
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3001 eval $ac_var=\$ac_old_val
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3004 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3009 # Pass precious variables to config.status.
3010 if test "$ac_new_set" = set; then
3012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3013 *) ac_arg=$ac_var=$ac_new_val ;;
3015 case " $ac_configure_args " in
3016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3017 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3021 if $ac_cache_corrupted; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3026 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3028 ## -------------------- ##
3029 ## Main body of script. ##
3030 ## -------------------- ##
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3042 am__api_version='1.11'
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 if test -f "$ac_dir/install-sh"; then
3048 ac_install_sh="$ac_aux_dir/install-sh -c"
3050 elif test -f "$ac_dir/install.sh"; then
3052 ac_install_sh="$ac_aux_dir/install.sh -c"
3054 elif test -f "$ac_dir/shtool"; then
3056 ac_install_sh="$ac_aux_dir/shtool install -c"
3060 if test -z "$ac_aux_dir"; then
3061 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3064 # These three variables are undocumented and unsupported,
3065 # and are intended to be withdrawn in a future Autoconf release.
3066 # They can cause serious problems if a builder's source tree is in a directory
3067 # whose full name contains unusual characters.
3068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3073 # Find a good install program. We prefer a C program (faster),
3074 # so one script is as good as another. But avoid the broken or
3075 # incompatible versions:
3076 # SysV /etc/install, /usr/sbin/install
3077 # SunOS /usr/etc/install
3078 # IRIX /sbin/install
3080 # AmigaOS /C/install, which installs bootblocks on floppy discs
3081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3084 # OS/2's system install, which has a completely different semantic
3085 # ./install, which can be erroneously created by make from ./install.sh.
3086 # Reject install programs that cannot install multiple files.
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3088 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3089 if test -z "$INSTALL"; then
3090 if ${ac_cv_path_install+:} false; then :
3091 $as_echo_n "(cached) " >&6
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 # Account for people who put trailing slashes in PATH elements.
3099 case $as_dir/ in #((
3100 ./ | .// | /[cC]/* | \
3101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3105 # OSF1 and SCO ODT 3.0 have their own names for install.
3106 # Don't use installbsd from OSF since it installs stuff as root
3108 for ac_prog in ginstall scoinst install; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3111 if test $ac_prog = install &&
3112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113 # AIX install. It has an incompatible calling convention.
3115 elif test $ac_prog = install &&
3116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3117 # program-specific install script used by HP pwplus--don't use.
3120 rm -rf conftest.one conftest.two conftest.dir
3121 echo one > conftest.one
3122 echo two > conftest.two
3124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3125 test -s conftest.one && test -s conftest.two &&
3126 test -s conftest.dir/conftest.one &&
3127 test -s conftest.dir/conftest.two
3129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3142 rm -rf conftest.one conftest.two conftest.dir
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL=$ac_cv_path_install
3148 # As a last resort, use the slow shell script. Don't cache a
3149 # value for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the value is a relative name.
3152 INSTALL=$ac_install_sh
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3156 $as_echo "$INSTALL" >&6; }
3158 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3159 # It thinks the first close brace ends the variable substitution.
3160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3167 $as_echo_n "checking whether build environment is sane... " >&6; }
3170 echo timestamp > conftest.file
3171 # Reject unsafe characters in $srcdir or the absolute working directory
3172 # name. Accept space and tab only in the latter.
3176 *[\\\"\#\$\&\'\`$am_lf]*)
3177 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3180 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3181 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3184 # Do `set' in a subshell so we don't clobber the current shell's
3185 # arguments. Must try -L first in case configure is actually a
3186 # symlink; some systems play weird games with the mod time of symlinks
3187 # (eg FreeBSD returns the mod time of the symlink's containing
3190 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3191 if test "$*" = "X"; then
3193 set X
`ls -t "$srcdir/configure" conftest.file`
3196 if test "$*" != "X $srcdir/configure conftest.file" \
3197 && test "$*" != "X conftest.file $srcdir/configure"; then
3199 # If neither matched, then we have a broken ls. This can happen
3200 # if, for instance, CONFIG_SHELL is bash and it inherits a
3201 # broken ls alias from the environment. This has actually
3202 # happened. Such a system could not be considered "sane".
3203 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3204 alias in your environment" "$LINENO" 5
3207 test "$2" = conftest.
file
3213 as_fn_error $?
"newly created file is older than distributed files!
3214 Check your system clock" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218 test "$program_prefix" != NONE
&&
3219 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE
&&
3222 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # expand $ac_aux_dir to an absolute path
3229 am_aux_dir
=`cd $ac_aux_dir && pwd`
3231 if test x
"${MISSING+set}" != xset
; then
3234 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3236 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --run true"; then
3241 am_missing_run
="$MISSING --run "
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3245 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3248 if test x
"${install_sh}" != xset
; then
3251 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3253 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3257 # Installed binaries are usually stripped using `strip' when the user
3258 # run `make install-strip'. However `strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the `STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no
; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_STRIP+:} false
; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$STRIP"; then
3271 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 STRIP
=$ac_cv_prog_STRIP
3291 if test -n "$STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293 $as_echo "$STRIP" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_STRIP"; then
3303 # Extract the first word of "strip", so it can be a program name with args.
3304 set dummy strip
; ac_word
=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir
=.
3318 for ac_exec_ext
in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_ac_ct_STRIP
="strip"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 $as_echo "$ac_ct_STRIP" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_STRIP" = x
; then
3342 case $cross_compiling:$ac_tool_warned in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned
=yes ;;
3351 STRIP
="$ac_cv_prog_STRIP"
3355 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359 if test -z "$MKDIR_P"; then
3360 if ${ac_cv_path_mkdir+:} false
; then :
3361 $as_echo_n "(cached) " >&6
3363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3367 test -z "$as_dir" && as_dir
=.
3368 for ac_prog
in mkdir gmkdir
; do
3369 for ac_exec_ext
in '' $ac_executable_extensions; do
3370 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3371 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372 'mkdir (GNU coreutils) '* | \
3373 'mkdir (coreutils) '* | \
3374 'mkdir (fileutils) '4.1*)
3375 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3385 test -d .
/--version && rmdir .
/--version
3386 if test "${ac_cv_path_mkdir+set}" = set; then
3387 MKDIR_P
="$ac_cv_path_mkdir -p"
3389 # As a last resort, use the slow shell script. Don't cache a
3390 # value for MKDIR_P within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the value is a relative name.
3393 MKDIR_P
="$ac_install_sh -d"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397 $as_echo "$MKDIR_P" >&6; }
3402 [\\/$
]* | ?
:[\\/]*) ;;
3403 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3406 for ac_prog
in gawk mawk nawk
awk
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy
$ac_prog; ac_word
=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_AWK+:} false
; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$AWK"; then
3416 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_exec_ext
in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_AWK
="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$AWK"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3438 $as_echo "$AWK" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$AWK" && break
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3449 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3451 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3452 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3453 $as_echo_n "(cached) " >&6
3455 cat >conftest.
make <<\_ACEOF
3458 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3460 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3461 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3463 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3465 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3469 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 SET_MAKE
="MAKE=${MAKE-make}"
3479 rm -rf .tst
2>/dev
/null
3480 mkdir .tst
2>/dev
/null
3481 if test -d .tst
; then
3486 rmdir .tst
2>/dev
/null
3488 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3489 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3490 # is not polluted with repeated "-I."
3491 am__isrc
=' -I$(srcdir)'
3492 # test to see if srcdir already configured
3493 if test -f $srcdir/config.status
; then
3494 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3498 # test whether we have cygpath
3499 if test -z "$CYGPATH_W"; then
3500 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3501 CYGPATH_W
='cygpath -w'
3508 # Define the identity of the package.
3513 cat >>confdefs.h
<<_ACEOF
3514 #define PACKAGE "$PACKAGE"
3518 cat >>confdefs.h
<<_ACEOF
3519 #define VERSION "$VERSION"
3522 # Some tools Automake needs.
3524 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3527 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3530 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3533 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3536 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3538 # We need awk for the "check" target. The system "awk" is bad on
3540 # Always define AMTAR for backward compatibility.
3542 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3544 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3553 lispdir
='${datadir}/emacs/${version}/lisp'
3554 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3555 '${datadir}/emacs/site-lisp'
3556 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3557 etcdir
='${datadir}/emacs/${version}/etc'
3558 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3559 docdir
='${datadir}/emacs/${version}/etc'
3560 gamedir
='${localstatedir}/games/emacs'
3565 # Check whether --with-pop was given.
3566 if test "${with_pop+set}" = set; then :
3572 if test "$with_pop" = yes; then
3573 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3578 # Check whether --with-kerberos was given.
3579 if test "${with_kerberos+set}" = set; then :
3580 withval
=$with_kerberos;
3585 if test "$with_kerberos" != no
; then
3586 $as_echo "#define KERBEROS 1" >>confdefs.h
3591 # Check whether --with-kerberos5 was given.
3592 if test "${with_kerberos5+set}" = set; then :
3593 withval
=$with_kerberos5;
3598 if test "${with_kerberos5}" != no
; then
3599 if test "${with_kerberos}" = no
; then
3601 $as_echo "#define KERBEROS 1" >>confdefs.h
3605 $as_echo "#define KERBEROS5 1" >>confdefs.h
3610 # Check whether --with-hesiod was given.
3611 if test "${with_hesiod+set}" = set; then :
3612 withval
=$with_hesiod;
3617 if test "$with_hesiod" != no
; then
3619 $as_echo "#define HESIOD 1" >>confdefs.h
3624 # Check whether --with-mmdf was given.
3625 if test "${with_mmdf+set}" = set; then :
3631 if test "$with_mmdf" != no
; then
3633 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3638 # Check whether --with-mail-unlink was given.
3639 if test "${with_mail_unlink+set}" = set; then :
3640 withval
=$with_mail_unlink;
3645 if test "$with_mail_unlink" != no
; then
3647 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3652 # Check whether --with-mailhost was given.
3653 if test "${with_mailhost+set}" = set; then :
3654 withval
=$with_mailhost;
3655 cat >>confdefs.h
<<_ACEOF
3656 #define MAILHOST "$withval"
3663 # Check whether --with-sound was given.
3664 if test "${with_sound+set}" = set; then :
3665 withval
=$with_sound;
3672 # Check whether --with-sync-input was given.
3673 if test "${with_sync_input+set}" = set; then :
3674 withval
=$with_sync_input;
3679 if test "$with_sync_input" = yes; then
3681 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3686 # Check whether --with-x-toolkit was given.
3687 if test "${with_x_toolkit+set}" = set; then :
3688 withval
=$with_x_toolkit; case "${withval}" in
3689 y | ye |
yes ) val
=gtk
;;
3691 l | lu | luc | luci | lucid
) val
=lucid
;;
3692 a |
at | ath | athe | athen | athena
) val
=athena
;;
3693 m | mo | mot | moti | motif
) val
=motif
;;
3694 g | gt | gtk
) val
=gtk
;;
3697 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3698 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3699 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3708 # Check whether --with-xpm was given.
3709 if test "${with_xpm+set}" = set; then :
3716 # Check whether --with-jpeg was given.
3717 if test "${with_jpeg+set}" = set; then :
3724 # Check whether --with-tiff was given.
3725 if test "${with_tiff+set}" = set; then :
3732 # Check whether --with-gif was given.
3733 if test "${with_gif+set}" = set; then :
3740 # Check whether --with-png was given.
3741 if test "${with_png+set}" = set; then :
3748 # Check whether --with-rsvg was given.
3749 if test "${with_rsvg+set}" = set; then :
3756 # Check whether --with-xml2 was given.
3757 if test "${with_xml2+set}" = set; then :
3764 # Check whether --with-imagemagick was given.
3765 if test "${with_imagemagick+set}" = set; then :
3766 withval
=$with_imagemagick;
3768 with_imagemagick
=yes
3773 # Check whether --with-xft was given.
3774 if test "${with_xft+set}" = set; then :
3781 # Check whether --with-libotf was given.
3782 if test "${with_libotf+set}" = set; then :
3783 withval
=$with_libotf;
3789 # Check whether --with-m17n-flt was given.
3790 if test "${with_m17n_flt+set}" = set; then :
3791 withval
=$with_m17n_flt;
3798 # Check whether --with-toolkit-scroll-bars was given.
3799 if test "${with_toolkit_scroll_bars+set}" = set; then :
3800 withval
=$with_toolkit_scroll_bars;
3802 with_toolkit_scroll_bars
=yes
3806 # Check whether --with-xaw3d was given.
3807 if test "${with_xaw3d+set}" = set; then :
3808 withval
=$with_xaw3d;
3814 # Check whether --with-xim was given.
3815 if test "${with_xim+set}" = set; then :
3822 # Check whether --with-ns was given.
3823 if test "${with_ns+set}" = set; then :
3831 # Check whether --with-gpm was given.
3832 if test "${with_gpm+set}" = set; then :
3839 # Check whether --with-dbus was given.
3840 if test "${with_dbus+set}" = set; then :
3847 # Check whether --with-gconf was given.
3848 if test "${with_gconf+set}" = set; then :
3849 withval
=$with_gconf;
3855 # Check whether --with-selinux was given.
3856 if test "${with_selinux+set}" = set; then :
3857 withval
=$with_selinux;
3863 # Check whether --with-gnutls was given.
3864 if test "${with_gnutls+set}" = set; then :
3865 withval
=$with_gnutls;
3871 ## For the times when you want to build Emacs but don't have
3872 ## a suitable makeinfo, and can live without the manuals.
3874 # Check whether --with-makeinfo was given.
3875 if test "${with_makeinfo+set}" = set; then :
3876 withval
=$with_makeinfo;
3882 ## This is an option because I do not know if all info/man support
3883 ## compressed files, nor how to test if they do so.
3885 # Check whether --with-compress-info was given.
3886 if test "${with_compress_info+set}" = set; then :
3887 withval
=$with_compress_info;
3889 with_compress_info
=yes
3892 if test $with_compress_info = yes; then
3900 # Check whether --with-pkg-config-prog was given.
3901 if test "${with_pkg_config_prog+set}" = set; then :
3902 withval
=$with_pkg_config_prog;
3905 if test "X${with_pkg_config_prog}" != X
; then
3906 if test "${with_pkg_config_prog}" != yes; then
3907 PKG_CONFIG
="${with_pkg_config_prog}"
3913 # Check whether --with-crt-dir was given.
3914 if test "${with_crt_dir+set}" = set; then :
3915 withval
=$with_crt_dir;
3918 CRT_DIR
="${with_crt_dir}"
3921 # Check whether --with-gameuser was given.
3922 if test "${with_gameuser+set}" = set; then :
3923 withval
=$with_gameuser;
3926 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3927 && gameuser
="${with_gameuser}"
3928 test "X$gameuser" = X
&& gameuser
=games
3931 # Check whether --with-gnustep-conf was given.
3932 if test "${with_gnustep_conf+set}" = set; then :
3933 withval
=$with_gnustep_conf;
3936 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3937 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3938 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3939 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3941 # Check whether --enable-ns-self-contained was given.
3942 if test "${enable_ns_self_contained+set}" = set; then :
3943 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3945 EN_NS_SELF_CONTAINED
=yes
3949 # Check whether --enable-asserts was given.
3950 if test "${enable_asserts+set}" = set; then :
3951 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3957 # Check whether --enable-maintainer-mode was given.
3958 if test "${enable_maintainer_mode+set}" = set; then :
3959 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3961 USE_MAINTAINER_MODE
=no
3964 if test $USE_MAINTAINER_MODE = yes; then
3971 # Check whether --enable-locallisppath was given.
3972 if test "${enable_locallisppath+set}" = set; then :
3973 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3975 elif test "${enableval}" != "yes"; then
3976 locallisppath
=${enableval}
3981 # Check whether --enable-checking was given.
3982 if test "${enable_checking+set}" = set; then :
3983 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3986 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3987 for check
in $ac_checking_flags
3990 # these set all the flags to specific states
3991 yes) ac_enable_checking
=1 ;;
3992 no
) ac_enable_checking
= ;
3993 ac_gc_check_stringbytes
= ;
3994 ac_gc_check_string_overrun
= ;
3995 ac_gc_check_string_free_list
= ;
3996 ac_xmalloc_overrun
= ;
3997 ac_gc_check_cons_list
= ;;
3998 all
) ac_enable_checking
=1 ;
3999 ac_gc_check_stringbytes
=1 ;
4000 ac_gc_check_string_overrun
=1 ;
4001 ac_gc_check_string_free_list
=1 ;
4002 ac_xmalloc_overrun
=1 ;
4003 ac_gc_check_cons_list
=1 ;;
4004 # these enable particular checks
4005 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4006 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4007 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4008 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4009 conslist
) ac_gc_check_cons_list
=1 ;;
4010 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
4015 if test x
$ac_enable_checking != x
; then
4017 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4020 if test x
$ac_gc_check_stringbytes != x
; then
4022 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4025 if test x
$ac_gc_check_stringoverrun != x
; then
4027 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4030 if test x
$ac_gc_check_string_free_list != x
; then
4032 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4035 if test x
$ac_xmalloc_overrun != x
; then
4037 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4040 if test x
$ac_gc_check_cons_list != x
; then
4042 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4046 # Check whether --enable-use-lisp-union-type was given.
4047 if test "${enable_use_lisp_union_type+set}" = set; then :
4048 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4050 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4057 # Check whether --enable-profiling was given.
4058 if test "${enable_profiling+set}" = set; then :
4059 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4062 if test x
$ac_enable_profiling != x
; then
4063 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4069 # Check whether --enable-autodepend was given.
4070 if test "${enable_autodepend+set}" = set; then :
4071 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4073 ac_enable_autodepend
=yes
4077 #### Make srcdir absolute, if it isn't already. It's important to
4078 #### avoid running the path through pwd unnecessarily, since pwd can
4079 #### give you automounter prefixes, which can go away. We do all this
4080 #### so Emacs can find its files when run uninstalled.
4081 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4086 ## We may be able to use the $PWD environment variable to make this
4087 ## absolute. But sometimes PWD is inaccurate.
4088 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4089 ## but that tested only for a well-formed and valid PWD,
4090 ## it did not object when PWD was well-formed and valid but just wrong.
4091 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4095 srcdir
="`(cd ${srcdir}; pwd)`"
4098 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4101 #### Check if the source directory already has a configured system in it.
4102 if test `pwd` != `(cd ${srcdir} && pwd)` \
4103 && test -f "${srcdir}/src/config.h" ; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4105 as a build directory right now; it has been configured in its own
4106 right. To configure in another directory as well, you MUST
4107 use GNU make. If you do not have GNU make, then you must
4108 now do \`make distclean' in ${srcdir},
4109 and then run $0 again." >&5
4110 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4111 as a build directory right now; it has been configured in its own
4112 right. To configure in another directory as well, you MUST
4113 use GNU make. If you do not have GNU make, then you must
4114 now do \`make distclean' in ${srcdir},
4115 and then run $0 again." >&2;}
4118 #### Given the configuration name, set machfile and opsysfile to the
4119 #### names of the m/*.h and s/*.h files we should use.
4121 ### Canonicalize the configuration name.
4123 # Make sure we can run config.sub.
4124 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4125 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4128 $as_echo_n "checking build system type... " >&6; }
4129 if ${ac_cv_build+:} false
; then :
4130 $as_echo_n "(cached) " >&6
4132 ac_build_alias
=$build_alias
4133 test "x$ac_build_alias" = x
&&
4134 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4135 test "x$ac_build_alias" = x
&&
4136 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4137 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4138 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4142 $as_echo "$ac_cv_build" >&6; }
4143 case $ac_cv_build in
4145 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4148 ac_save_IFS
=$IFS; IFS
='-'
4154 # Remember, the first character of IFS is used to create $*,
4155 # except with old shells:
4158 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4162 $as_echo_n "checking host system type... " >&6; }
4163 if ${ac_cv_host+:} false
; then :
4164 $as_echo_n "(cached) " >&6
4166 if test "x$host_alias" = x
; then
4167 ac_cv_host
=$ac_cv_build
4169 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4170 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4175 $as_echo "$ac_cv_host" >&6; }
4178 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4181 ac_save_IFS
=$IFS; IFS
='-'
4187 # Remember, the first character of IFS is used to create $*,
4188 # except with old shells:
4191 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4195 configuration
=${host_alias-${build_alias-$host}}
4199 ### If you add support for a new configuration, add code to this
4200 ### switch statement to recognize your configuration name and select
4201 ### the appropriate operating system and machine description files.
4203 ### You would hope that you could choose an m/*.h file pretty much
4204 ### based on the machine portion of the configuration name, and an s/*.h
4205 ### file based on the operating system portion. However, it turns out
4206 ### that each m/*.h file is pretty manufacturer-specific - for
4207 ### example mips.h is MIPS
4208 ### So we basically have to have a special case for each
4209 ### configuration name.
4211 ### As far as handling version numbers on operating systems is
4212 ### concerned, make sure things will fail in a fixable way. If
4213 ### /etc/MACHINES doesn't say anything about version numbers, be
4214 ### prepared to handle anything reasonably. If version numbers
4215 ### matter, be sure /etc/MACHINES says something about it.
4217 machine
='' opsys
='' unported
=no
4218 case "${canonical}" in
4223 case ${canonical} in
4224 alpha
*) machine
=alpha
;;
4225 s390-
*) machine
=ibms390
;;
4226 s390x-
*) machine
=ibms390x
;;
4227 powerpc
*) machine
=macppc
;;
4228 sparc
*) machine
=sparc
;;
4229 ia64
*) machine
=ia64
;;
4230 m68k
*) machine
=m68k
;;
4231 x86_64
*) machine
=amdx86-64
;;
4238 case "${canonical}" in
4239 alpha
*) machine
=alpha
;;
4240 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4241 ia64-
*) machine
=ia64
;;
4242 i
[3456]86-*) machine
=intel386
;;
4243 powerpc-
*) machine
=macppc
;;
4244 sparc-
*) machine
=sparc
;;
4245 sparc64-
*) machine
=sparc
;;
4249 ## FreeBSD kernel + glibc based userland
4252 case "${canonical}" in
4253 alpha
*) machine
=alpha
;;
4254 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4255 ia64-
*) machine
=ia64
;;
4256 i
[3456]86-*) machine
=intel386
;;
4257 powerpc-
*) machine
=macppc
;;
4258 sparc-
*) machine
=sparc
;;
4259 sparc64-
*) machine
=sparc
;;
4266 case "${canonical}" in
4267 alpha
*) machine
=alpha
;;
4268 x86_64-
*) machine
=amdx86-64
;;
4269 i
[3456]86-*) machine
=intel386
;;
4270 m68k-
*) machine
=m68k
;;
4271 powerpc-
*) machine
=macppc
;;
4272 sparc
*-) machine
=sparc
;;
4273 vax-
*) machine
=vax
;;
4280 case "${canonical}" in
4281 alpha
*) machine
=alpha
;;
4282 x86_64-
*) machine
=amdx86-64
;;
4283 i386-
*) machine
=intel386
;;
4284 powerpc-
*) machine
=macppc
;;
4285 sparc
*) machine
=sparc
;;
4286 vax-
*) machine
=vax
;;
4290 ## Apple Darwin / Mac OS X
4292 case "${canonical}" in
4293 i
[3456]86-* ) machine
=intel386
;;
4294 powerpc-
* ) machine
=macppc
;;
4295 x86_64-
* ) machine
=amdx86-64
;;
4299 # Define CPP as follows to make autoconf work correctly.
4300 CPP
="${CC-cc} -E -no-cpp-precomp"
4301 # Use fink packages if available.
4302 if test -d /sw
/include
&& test -d /sw
/lib
; then
4303 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4304 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4305 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4309 ## HP 9000 series 700 and 800, running HP/UX
4310 hppa
*-hp-hpux10.2
* )
4313 hppa
*-hp-hpux1[1-9]* )
4315 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4318 ia64
*-hp-hpux1[1-9]* )
4319 machine
=hp800 opsys
=hpux11
4320 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4321 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4325 hppa
*-*-linux-gnu* )
4326 machine
=hp800 opsys
=gnu-linux
4330 rs6000-ibm-aix4.
[23]* )
4331 machine
=ibmrs6000 opsys
=aix4-2
4333 powerpc-ibm-aix4.
[23]* )
4334 machine
=ibmrs6000 opsys
=aix4-2
4336 rs6000-ibm-aix
[56]* )
4337 machine
=ibmrs6000 opsys
=aix4-2
4339 powerpc-ibm-aix
[56]* )
4340 machine
=ibmrs6000 opsys
=aix4-2
4343 ## Silicon Graphics machines
4346 machine
=iris4d opsys
=irix6-5
4347 # Without defining _LANGUAGE_C, things get masked out in the headers
4348 # so that, for instance, grepping for `free' in stdlib.h fails and
4349 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4350 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4351 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4356 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4357 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4358 case "${canonical}" in
4359 i
[3456]86-*-* ) machine
=intel386
;;
4360 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4361 sparc
* ) machine
=sparc
;;
4364 case "${canonical}" in
4365 *-sunos5.6
* |
*-solaris2.6
* )
4367 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4370 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4372 emacs_check_sunpro_c
=yes
4373 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4375 *-sunos5* |
*-solaris* )
4377 emacs_check_sunpro_c
=yes
4378 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4381 ## Watch out for a compiler that we know will not work.
4382 case "${canonical}" in
4383 *-solaris* |
*-sunos5* )
4384 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4385 ## /usr/ucb/cc doesn't work;
4386 ## we should find some other compiler that does work.
4394 ## Intel 386 machines where we don't care about the manufacturer.
4397 case "${canonical}" in
4398 *-cygwin ) opsys
=cygwin
;;
4399 *-darwin* ) opsys
=darwin
4400 CPP
="${CC-cc} -E -no-cpp-precomp"
4402 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4403 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4404 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4405 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4414 ### If the code above didn't choose an operating system, just choose
4415 ### an operating system based on the configuration name. You really
4416 ### only want to use this when you have no idea what the right
4417 ### operating system is; if you know what operating systems a machine
4418 ### runs, it's cleaner to make it explicit in the case statement
4420 if test x
"${opsys}" = x
; then
4421 case "${canonical}" in
4422 *-gnu* ) opsys
=gnu
;;
4431 if test $unported = yes; then
4432 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4433 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4436 if test -n "$machine"; then
4437 machfile
="m/${machine}.h"
4441 opsysfile
="s/${opsys}.h"
4444 #### Choose a compiler.
4445 test -n "$CC" && cc_specified
=yes
4447 # Save the value of CFLAGS that the user specified.
4448 SPECIFIED_CFLAGS
="$CFLAGS"
4451 ac_cpp
='$CPP $CPPFLAGS'
4452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4457 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_CC+:} false
; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC
="$CC" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 $as_echo "$CC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4494 if test -z "$ac_cv_prog_CC"; then
4496 # Extract the first word of "gcc", so it can be a program name with args.
4497 set dummy gcc
; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$ac_ct_CC"; then
4504 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_CC
="gcc"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 $as_echo "$ac_ct_CC" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4532 if test "x$ac_ct_CC" = x
; then
4535 case $cross_compiling:$ac_tool_warned in
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned
=yes ;;
4547 if test -z "$CC"; then
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false
; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC
="$CC" # Let the user override the test.
4559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir
=.
4564 for ac_exec_ext
in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 if test -n "$CC"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579 $as_echo "$CC" >&6; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4588 if test -z "$CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc
; ac_word
=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_CC+:} false
; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC
="$CC" # Let the user override the test.
4600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir
=.
4605 for ac_exec_ext
in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected
=yes
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 if test $ac_prog_rejected = yes; then
4620 # We found a bogon in the path, so make sure we never use it.
4621 set dummy
$ac_cv_prog_CC
4623 if test $# != 0; then
4624 # We chose a different compiler from the bogus one.
4625 # However, it has the same basename, so the bogon will be chosen
4626 # first if we set CC to just the basename; use the full file name.
4628 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4634 if test -n "$CC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4636 $as_echo "$CC" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4644 if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog
in cl.exe
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CC+:} false
; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC
="$CC" # Let the user override the test.
4658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir
=.
4663 for ac_exec_ext
in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CC" && break
4688 if test -z "$CC"; then
4690 for ac_prog
in cl.exe
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy
$ac_prog; ac_word
=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$ac_ct_CC"; then
4700 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir
=.
4707 for ac_exec_ext
in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_CC
="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4720 if test -n "$ac_ct_CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4722 $as_echo "$ac_ct_CC" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CC" && break
4732 if test "x$ac_ct_CC" = x
; then
4735 case $cross_compiling:$ac_tool_warned in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned
=yes ;;
4748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750 as_fn_error $?
"no acceptable C compiler found in \$PATH
4751 See \`config.log' for more details" "$LINENO" 5; }
4753 # Provide some information about the compiler.
4754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4757 for ac_option
in --version -v -V -qversion; do
4758 { { ac_try
="$ac_compiler $ac_option >&5"
4760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764 $as_echo "$ac_try_echo"; } >&5
4765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4767 if test -s conftest.err; then
4769 ... rest of stderr output deleted ...
4770 10q' conftest.err >conftest.er1
4771 cat conftest.er1 >&5
4773 rm -f conftest.er1 conftest.err
4774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; }
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4789 ac_clean_files_save=$ac_clean_files
4790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4791 # Try to create an executable without -o first, disregard a.out.
4792 # It will help us diagnose broken compilers, and finding out an intuition
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4795 $as_echo_n "checking whether the C compiler works... " >&6; }
4796 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4798 # The possible output files:
4799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4802 for ac_file in $ac_files
4805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4811 if { { ac_try="$ac_link_default"
4813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4814 *) ac_try_echo
=$ac_try;;
4816 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4817 $as_echo "$ac_try_echo"; } >&5
4818 (eval "$ac_link_default") 2>&5
4820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }; then :
4822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4825 # so that the user can short-circuit this test for compilers unknown to
4827 for ac_file
in $ac_files ''
4829 test -f "$ac_file" ||
continue
4831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4834 # We found the default executable, but exeext='' is most
4838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4840 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4842 # We set ac_cv_exeext here because the later test for it is not
4843 # safe: cross compilers may not add the suffix if given an `-o'
4844 # argument, so we may need to know it at that point already.
4845 # Even if this section looks crufty: it has the advantage of
4852 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4857 if test -z "$ac_file"; then :
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4865 as_fn_error
77 "C compiler cannot create executables
4866 See \`config.log' for more details" "$LINENO" 5; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869 $as_echo "yes" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4872 $as_echo_n "checking for C compiler default output file name... " >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4874 $as_echo "$ac_file" >&6; }
4875 ac_exeext
=$ac_cv_exeext
4877 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4878 ac_clean_files
=$ac_clean_files_save
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4880 $as_echo_n "checking for suffix of executables... " >&6; }
4881 if { { ac_try
="$ac_link"
4883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4887 $as_echo "$ac_try_echo"; } >&5
4888 (eval "$ac_link") 2>&5
4890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4891 test $ac_status = 0; }; then :
4892 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4893 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4894 # work properly (i.e., refer to `conftest.exe'), while it won't with
4896 for ac_file
in conftest.exe conftest conftest.
*; do
4897 test -f "$ac_file" ||
continue
4899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4900 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4908 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4909 See \`config.log' for more details" "$LINENO" 5; }
4911 rm -f conftest conftest
$ac_cv_exeext
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4913 $as_echo "$ac_cv_exeext" >&6; }
4915 rm -f conftest.
$ac_ext
4916 EXEEXT
=$ac_cv_exeext
4918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4924 FILE *f = fopen ("conftest.out", "w");
4925 return ferror (f) || fclose (f) != 0;
4931 ac_clean_files
="$ac_clean_files conftest.out"
4932 # Check that the compiler produces executables we can run. If not, either
4933 # the compiler is broken, or we cross compile.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4935 $as_echo_n "checking whether we are cross compiling... " >&6; }
4936 if test "$cross_compiling" != yes; then
4937 { { ac_try
="$ac_link"
4939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943 $as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_link") 2>&5
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 if { ac_try='./conftest$ac_cv_exeext'
4949 { { case "(($ac_try" in
4950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4951 *) ac_try_echo
=$ac_try;;
4953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4954 $as_echo "$ac_try_echo"; } >&5
4955 (eval "$ac_try") 2>&5
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958 test $ac_status = 0; }; }; then
4961 if test "$cross_compiling" = maybe
; then
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error $?
"cannot run C compiled programs.
4967 If you meant to cross compile, use \`--host'.
4968 See \`config.log' for more details" "$LINENO" 5; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4973 $as_echo "$cross_compiling" >&6; }
4975 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4976 ac_clean_files
=$ac_clean_files_save
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4978 $as_echo_n "checking for suffix of object files... " >&6; }
4979 if ${ac_cv_objext+:} false
; then :
4980 $as_echo_n "(cached) " >&6
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 rm -f conftest.o conftest.obj
4994 if { { ac_try
="$ac_compile"
4996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000 $as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_compile") 2>&5
5003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }; then :
5005 for ac_file in conftest.o conftest.obj conftest.*; do
5006 test -f "$ac_file" || continue;
5008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5014 $as_echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5020 See \
`config.log' for more details" "$LINENO" 5; }
5022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5025 $as_echo "$ac_cv_objext" >&6; }
5026 OBJEXT=$ac_cv_objext
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5030 if ${ac_cv_c_compiler_gnu+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5047 if ac_fn_c_try_compile "$LINENO"; then :
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5058 if test $ac_compiler_gnu = yes; then
5063 ac_test_CFLAGS=${CFLAGS+set}
5064 ac_save_CFLAGS=$CFLAGS
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5067 if ${ac_cv_prog_cc_g+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 ac_save_c_werror_flag=$ac_c_werror_flag
5071 ac_c_werror_flag=yes
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5085 if ac_fn_c_try_compile "$LINENO"; then :
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5100 if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_c_werror_flag=$ac_save_c_werror_flag
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5116 if ac_fn_c_try_compile "$LINENO"; then :
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_c_werror_flag=$ac_save_c_werror_flag
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5127 $as_echo "$ac_cv_prog_cc_g" >&6; }
5128 if test "$ac_test_CFLAGS" = set; then
5129 CFLAGS=$ac_save_CFLAGS
5130 elif test $ac_cv_prog_cc_g = yes; then
5131 if test "$GCC" = yes; then
5137 if test "$GCC" = yes; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5145 if ${ac_cv_prog_cc_c89+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 ac_cv_prog_cc_c89=no
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5154 #include <sys/types.h>
5155 #include <sys/stat.h>
5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5157 struct buf { int x; };
5158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159 static char *e (p, i)
5165 static char *f (char * (*g) (char **, int), char **p, ...)
5170 s = g (p, va_arg (v,int));
5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5176 function prototypes and stuff, but not '\xHH' hex character constants.
5177 These don't provoke an error unfortunately, instead are silently treated
5178 as 'x'. The following induces an error, until -std is added to get
5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5180 array size at least. It's necessary to write '\x00'==0 to get something
5181 that's true only with -std. */
5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185 inside strings and character constants. */
5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5189 int test (int i, double x);
5190 struct s1 {int (*f) (int a);};
5191 struct s2 {int (*f) (double a);};
5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5206 CC="$ac_save_CC $ac_arg"
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_cv_prog_cc_c89=$ac_arg
5210 rm -f core conftest.err conftest.$ac_objext
5211 test "x$ac_cv_prog_cc_c89" != "xno" && break
5213 rm -f conftest.$ac_ext
5218 case "x$ac_cv_prog_cc_c89" in
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221 $as_echo "none needed" >&6; } ;;
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224 $as_echo "unsupported" >&6; } ;;
5226 CC="$CC $ac_cv_prog_cc_c89"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5230 if test "x$ac_cv_prog_cc_c89" != xno; then :
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 DEPDIR="${am__leading_dot}deps"
5241 ac_config_commands="$ac_config_commands depfiles"
5244 am_make=${MAKE-make}
5245 cat > confinc << 'END'
5247 @echo this is the am__doit target
5250 # If we don't find an include directive, just comment out the code.
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5256 # First try GNU make style include.
5257 echo "include confinc" > confmf
5258 # Ignore all kinds of additional output from `make'.
5259 case `$am_make -s -f confmf 2> /dev/null` in #(
5260 *the\ am__doit\ target*)
5266 # Now try BSD make style include.
5267 if test "$am__include" = "#"; then
5268 echo '.include
"confinc"' > confmf
5269 case `$am_make -s -f confmf 2> /dev/null` in #(
5270 *the\ am__doit\ target*)
5271 am__include=.include
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5280 $as_echo "$_am_result" >&6; }
5281 rm -f confinc confmf
5283 # Check whether --enable-dependency-tracking was given.
5284 if test "${enable_dependency_tracking+set}" = set; then :
5285 enableval=$enable_dependency_tracking;
5288 if test "x$enable_dependency_tracking" != xno; then
5289 am_depcomp="$ac_aux_dir/depcomp"
5292 if test "x$enable_dependency_tracking" != xno
; then
5302 depcc
="$CC" am_compiler_list
=
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305 $as_echo_n "checking dependency style of $depcc... " >&6; }
5306 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5328 am_cv_CC_dependencies_compiler_type
=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5333 case " $depcc " in #(
5334 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5337 for depmode
in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5346 for i
in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub
/conftst
$i.h
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj
=sub
/conftest.
${OBJEXT-o}
5359 am__minus_obj
="-o $am__obj"
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false ||
continue
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes
; then
5374 msvisualcpp | msvcmsys
)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj
=conftest.
${OBJEXT-o}
5383 if depmode
=$depmode \
5384 source=sub
/conftest.c object
=$am__obj \
5385 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5386 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5387 >/dev
/null
2>conftest.err
&&
5388 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5389 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5390 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5391 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5401 am_cv_CC_dependencies_compiler_type
=$depmode
5410 am_cv_CC_dependencies_compiler_type
=none
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5422 am__fastdepCC_FALSE
='#'
5424 am__fastdepCC_TRUE
='#'
5425 am__fastdepCC_FALSE
=
5429 if test "x$CC" != xcc
; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5431 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5434 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5436 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5437 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5438 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5439 $as_echo_n "(cached) " >&6
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5452 # Make sure it works both with $CC and with simple cc.
5453 # We do the test twice because some compilers refuse to overwrite an
5454 # existing .o file with -o, though they will create one.
5455 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5457 if { { case "(($ac_try" in
5458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5462 $as_echo "$ac_try_echo"; } >&5
5463 (eval "$ac_try") 2>&5
5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; } &&
5467 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5469 *) ac_try_echo
=$ac_try;;
5471 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5472 $as_echo "$ac_try_echo"; } >&5
5473 (eval "$ac_try") 2>&5
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; };
5478 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5479 if test "x$CC" != xcc
; then
5480 # Test first that cc exists at all.
5481 if { ac_try
='cc -c conftest.$ac_ext >&5'
5482 { { case "(($ac_try" in
5483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487 $as_echo "$ac_try_echo"; } >&5
5488 (eval "$ac_try") 2>&5
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }; }; then
5492 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5494 if { { case "(($ac_try" in
5495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5496 *) ac_try_echo
=$ac_try;;
5498 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5499 $as_echo "$ac_try_echo"; } >&5
5500 (eval "$ac_try") 2>&5
5502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503 test $ac_status = 0; } &&
5504 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5509 $as_echo "$ac_try_echo"; } >&5
5510 (eval "$ac_try") 2>&5
5512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5513 test $ac_status = 0; };
5518 # cc exists but doesn't like -o.
5519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5524 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5526 rm -f core conftest*
5529 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5536 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5540 # FIXME: we rely on the cache variable name because
5541 # there is no other way.
5543 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5544 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5545 if test "$am_t" != yes; then
5546 # Losing compiler, so override with the script.
5547 # FIXME: It is wrong to rewrite CC.
5548 # But if we don't then we get into trouble of one sort or another.
5549 # A longer-term fix would be to have automake use am__CC in this case,
5550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5551 CC="$am_aux_dir/compile $CC"
5556 # Initialize gnulib right after verifying that the C compiler works.
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$RANLIB"; then
5566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 RANLIB=$ac_cv_prog_RANLIB
5586 if test -n "$RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5588 $as_echo "$RANLIB" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5596 if test -z "$ac_cv_prog_RANLIB"; then
5597 ac_ct_RANLIB=$RANLIB
5598 # Extract the first word of "ranlib", so it can be a program name with args.
5599 set dummy ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$ac_ct_RANLIB"; then
5606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_RANLIB="ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626 if test -n "$ac_ct_RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5628 $as_echo "$ac_ct_RANLIB" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5634 if test "x$ac_ct_RANLIB" = x; then
5637 case $cross_compiling:$ac_tool_warned in
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5643 RANLIB=$ac_ct_RANLIB
5646 RANLIB="$ac_cv_prog_RANLIB"
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5656 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5657 # On Suns, sometimes $CPP names a directory.
5658 if test -n "$CPP" && test -d "$CPP"; then
5661 if test -z "$CPP"; then
5662 if ${ac_cv_prog_CPP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 # Double quotes because CPP needs to be expanded
5666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5669 for ac_c_preproc_warn_flag in '' yes
5671 # Use a header file that comes with gcc, so configuring glibc
5672 # with a fresh cross-compiler works.
5673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674 # <limits.h> exists even on freestanding compilers.
5675 # On the NeXT, cc -E runs the code through the compiler's parser,
5676 # not just through cpp. "Syntax error" is here to catch this case.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5680 # include <limits.h>
5682 # include <assert.h>
5686 if ac_fn_c_try_cpp "$LINENO"; then :
5689 # Broken: fails on valid input.
5692 rm -f conftest.err conftest.i conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <ac_nonexistent.h>
5700 if ac_fn_c_try_cpp "$LINENO"; then :
5701 # Broken: success on invalid input.
5704 # Passes both tests.
5708 rm -f conftest.err conftest.i conftest.$ac_ext
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.i conftest.err conftest.
$ac_ext
5713 if $ac_preproc_ok; then :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5726 $as_echo "$CPP" >&6; }
5728 for ac_c_preproc_warn_flag
in '' yes
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5739 # include <limits.h>
5741 # include <assert.h>
5745 if ac_fn_c_try_cpp
"$LINENO"; then :
5748 # Broken: fails on valid input.
5751 rm -f conftest.err conftest.i conftest.
$ac_ext
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
5755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <ac_nonexistent.h>
5759 if ac_fn_c_try_cpp
"$LINENO"; then :
5760 # Broken: success on invalid input.
5763 # Passes both tests.
5767 rm -f conftest.err conftest.i conftest.
$ac_ext
5770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771 rm -f conftest.i conftest.err conftest.
$ac_ext
5772 if $ac_preproc_ok; then :
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5777 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details" "$LINENO" 5; }
5782 ac_cpp
='$CPP $CPPFLAGS'
5783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5789 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5790 if ${ac_cv_path_GREP+:} false
; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -z "$GREP"; then
5794 ac_path_GREP_found
=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5797 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5800 test -z "$as_dir" && as_dir
=.
5801 for ac_prog
in grep ggrep
; do
5802 for ac_exec_ext
in '' $ac_executable_extensions; do
5803 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5805 # Check for GNU ac_path_GREP and select it if it is found.
5806 # Check for GNU $ac_path_GREP
5807 case `"$ac_path_GREP" --version 2>&1` in
5809 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5812 $as_echo_n 0123456789 >"conftest.in"
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo 'GREP' >> "conftest.nl"
5819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5820 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5821 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_GREP
="$ac_path_GREP"
5825 ac_path_GREP_max
=$ac_count
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5830 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5833 $ac_path_GREP_found && break 3
5838 if test -z "$ac_cv_path_GREP"; then
5839 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5842 ac_cv_path_GREP
=$GREP
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5847 $as_echo "$ac_cv_path_GREP" >&6; }
5848 GREP
="$ac_cv_path_GREP"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5852 $as_echo_n "checking for egrep... " >&6; }
5853 if ${ac_cv_path_EGREP+:} false
; then :
5854 $as_echo_n "(cached) " >&6
5856 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5857 then ac_cv_path_EGREP
="$GREP -E"
5859 if test -z "$EGREP"; then
5860 ac_path_EGREP_found
=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5863 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5866 test -z "$as_dir" && as_dir
=.
5867 for ac_prog
in egrep; do
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5870 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5871 # Check for GNU ac_path_EGREP and select it if it is found.
5872 # Check for GNU $ac_path_EGREP
5873 case `"$ac_path_EGREP" --version 2>&1` in
5875 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5878 $as_echo_n 0123456789 >"conftest.in"
5881 cat "conftest.in" "conftest.in" >"conftest.tmp"
5882 mv "conftest.tmp" "conftest.in"
5883 cp "conftest.in" "conftest.nl"
5884 $as_echo 'EGREP' >> "conftest.nl"
5885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5886 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5887 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5889 # Best one so far, save it but keep looking for a better one
5890 ac_cv_path_EGREP
="$ac_path_EGREP"
5891 ac_path_EGREP_max
=$ac_count
5893 # 10*(2^10) chars as input seems more than enough
5894 test $ac_count -gt 10 && break
5896 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5899 $ac_path_EGREP_found && break 3
5904 if test -z "$ac_cv_path_EGREP"; then
5905 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5908 ac_cv_path_EGREP
=$EGREP
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5914 $as_echo "$ac_cv_path_EGREP" >&6; }
5915 EGREP
="$ac_cv_path_EGREP"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5919 $as_echo_n "checking for ANSI C header files... " >&6; }
5920 if ${ac_cv_header_stdc+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5938 if ac_fn_c_try_compile
"$LINENO"; then :
5939 ac_cv_header_stdc
=yes
5941 ac_cv_header_stdc
=no
5943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5945 if test $ac_cv_header_stdc = yes; then
5946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "memchr" >/dev
/null
2>&1; then :
5956 ac_cv_header_stdc
=no
5962 if test $ac_cv_header_stdc = yes; then
5963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5970 $EGREP "free" >/dev
/null
2>&1; then :
5973 ac_cv_header_stdc
=no
5979 if test $ac_cv_header_stdc = yes; then
5980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5981 if test "$cross_compiling" = yes; then :
5984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5988 #if ((' ' & 0x0FF) == 0x020)
5989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5992 # define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6011 if ac_fn_c_try_run
"$LINENO"; then :
6014 ac_cv_header_stdc
=no
6016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6023 $as_echo "$ac_cv_header_stdc" >&6; }
6024 if test $ac_cv_header_stdc = yes; then
6026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6032 inttypes.h stdint.h unistd.h
6034 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6037 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6038 cat >>confdefs.h
<<_ACEOF
6039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6050 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6051 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6058 if test "$MINIX" = yes; then
6060 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6063 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6066 $as_echo "#define _MINIX 1" >>confdefs.h
6073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6080 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6081 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6082 $as_echo_n "(cached) " >&6
6084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 # define __EXTENSIONS__ 1
6088 $ac_includes_default
6097 if ac_fn_c_try_compile
"$LINENO"; then :
6098 ac_cv_safe_to_define___extensions__
=yes
6100 ac_cv_safe_to_define___extensions__
=no
6102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6105 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6106 test $ac_cv_safe_to_define___extensions__ = yes &&
6107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6126 # Code from module arg-nonnull:
6127 # Code from module c++defs:
6128 # Code from module crypto/md5:
6129 # Code from module dtoastr:
6130 # Code from module extensions:
6132 # Code from module filemode:
6133 # Code from module getloadavg:
6134 # Code from module getopt-gnu:
6135 # Code from module getopt-posix:
6136 # Code from module gettext-h:
6137 # Code from module ignore-value:
6138 # Code from module include_next:
6139 # Code from module intprops:
6140 # Code from module mktime:
6141 # Code from module multiarch:
6142 # Code from module stdbool:
6143 # Code from module stddef:
6144 # Code from module stdint:
6145 # Code from module stdlib:
6146 # Code from module strftime:
6147 # Code from module sys_stat:
6148 # Code from module time:
6149 # Code from module time_r:
6150 # Code from module unistd:
6151 # Code from module warn-on-use:
6154 # On Suns, sometimes $CPP names a directory.
6155 if test -n "$CPP" && test -d "$CPP"; then
6159 ## If not using gcc, and on Solaris, and no CPP specified, see if
6160 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6161 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6162 test x
"$CPP" = x
; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6164 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6165 if ${emacs_cv_sunpro_c+:} false
; then :
6166 $as_echo_n "(cached) " >&6
6168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6182 if ac_fn_c_try_link
"$LINENO"; then :
6183 emacs_cv_sunpro_c
=yes
6185 emacs_cv_sunpro_c
=no
6187 rm -f core conftest.err conftest.
$ac_objext \
6188 conftest
$ac_exeext conftest.
$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6192 $as_echo "$emacs_cv_sunpro_c" >&6; }
6194 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6195 NON_GNU_CPP
="$CC -E -Xs"
6199 #### Some systems specify a CPP to use unless we are using GCC.
6200 #### Now that we know whether we are using GCC, we can decide whether
6201 #### to use that one.
6202 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6207 #### Some systems specify a CC to use unless we are using GCC.
6208 #### Now that we know whether we are using GCC, we can decide whether
6209 #### to use that one.
6210 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6211 test x
$cc_specified != xyes
6216 if test x
$GCC = xyes
; then
6217 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6219 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6222 ### Use -Wdeclaration-after-statement if the compiler supports it
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6224 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6225 SAVE_CFLAGS
="$CFLAGS"
6226 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6238 if ac_fn_c_try_compile
"$LINENO"; then :
6243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6244 if test $has_option = yes; then
6245 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6248 $as_echo "$has_option" >&6; }
6249 CFLAGS
="$SAVE_CFLAGS"
6253 ### Use -Wold-style-definition if the compiler supports it
6254 # This can be removed when conversion to standard C is finished.
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6256 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6257 SAVE_CFLAGS
="$CFLAGS"
6258 CFLAGS
="$CFLAGS -Wold-style-definition"
6259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6270 if ac_fn_c_try_compile
"$LINENO"; then :
6275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 if test $has_option = yes; then
6277 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6280 $as_echo "$has_option" >&6; }
6281 CFLAGS
="$SAVE_CFLAGS"
6285 ### Use -Wimplicit-function-declaration if the compiler supports it
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6287 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6288 SAVE_CFLAGS
="$CFLAGS"
6289 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6301 if ac_fn_c_try_compile
"$LINENO"; then :
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 if test $has_option = yes; then
6308 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6311 $as_echo "$has_option" >&6; }
6312 CFLAGS
="$SAVE_CFLAGS"
6319 #### Some other nice autoconf tests.
6322 ac_cpp
='$CPP $CPPFLAGS'
6323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6328 # On Suns, sometimes $CPP names a directory.
6329 if test -n "$CPP" && test -d "$CPP"; then
6332 if test -z "$CPP"; then
6333 if ${ac_cv_prog_CPP+:} false
; then :
6334 $as_echo_n "(cached) " >&6
6336 # Double quotes because CPP needs to be expanded
6337 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6340 for ac_c_preproc_warn_flag
in '' yes
6342 # Use a header file that comes with gcc, so configuring glibc
6343 # with a fresh cross-compiler works.
6344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6345 # <limits.h> exists even on freestanding compilers.
6346 # On the NeXT, cc -E runs the code through the compiler's parser,
6347 # not just through cpp. "Syntax error" is here to catch this case.
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6351 # include <limits.h>
6353 # include <assert.h>
6357 if ac_fn_c_try_cpp
"$LINENO"; then :
6360 # Broken: fails on valid input.
6363 rm -f conftest.err conftest.i conftest.
$ac_ext
6365 # OK, works on sane cases. Now check whether nonexistent headers
6366 # can be detected and how.
6367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 #include <ac_nonexistent.h>
6371 if ac_fn_c_try_cpp
"$LINENO"; then :
6372 # Broken: success on invalid input.
6375 # Passes both tests.
6379 rm -f conftest.err conftest.i conftest.
$ac_ext
6382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6383 rm -f conftest.i conftest.err conftest.
$ac_ext
6384 if $ac_preproc_ok; then :
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6397 $as_echo "$CPP" >&6; }
6399 for ac_c_preproc_warn_flag
in '' yes
6401 # Use a header file that comes with gcc, so configuring glibc
6402 # with a fresh cross-compiler works.
6403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404 # <limits.h> exists even on freestanding compilers.
6405 # On the NeXT, cc -E runs the code through the compiler's parser,
6406 # not just through cpp. "Syntax error" is here to catch this case.
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6410 # include <limits.h>
6412 # include <assert.h>
6416 if ac_fn_c_try_cpp
"$LINENO"; then :
6419 # Broken: fails on valid input.
6422 rm -f conftest.err conftest.i conftest.
$ac_ext
6424 # OK, works on sane cases. Now check whether nonexistent headers
6425 # can be detected and how.
6426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 #include <ac_nonexistent.h>
6430 if ac_fn_c_try_cpp
"$LINENO"; then :
6431 # Broken: success on invalid input.
6434 # Passes both tests.
6438 rm -f conftest.err conftest.i conftest.
$ac_ext
6441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6442 rm -f conftest.i conftest.err conftest.
$ac_ext
6443 if $ac_preproc_ok; then :
6446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6448 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6449 See \`config.log' for more details" "$LINENO" 5; }
6453 ac_cpp
='$CPP $CPPFLAGS'
6454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6459 if test "x$RANLIB" = x
; then
6460 if test -n "$ac_tool_prefix"; then
6461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6462 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_RANLIB+:} false
; then :
6466 $as_echo_n "(cached) " >&6
6468 if test -n "$RANLIB"; then
6469 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir
=.
6476 for ac_exec_ext
in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 RANLIB
=$ac_cv_prog_RANLIB
6489 if test -n "$RANLIB"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6491 $as_echo "$RANLIB" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6499 if test -z "$ac_cv_prog_RANLIB"; then
6500 ac_ct_RANLIB
=$RANLIB
6501 # Extract the first word of "ranlib", so it can be a program name with args.
6502 set dummy ranlib
; ac_word
=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6506 $as_echo_n "(cached) " >&6
6508 if test -n "$ac_ct_RANLIB"; then
6509 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir
=.
6516 for ac_exec_ext
in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6529 if test -n "$ac_ct_RANLIB"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6531 $as_echo "$ac_ct_RANLIB" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6537 if test "x$ac_ct_RANLIB" = x
; then
6540 case $cross_compiling:$ac_tool_warned in
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544 ac_tool_warned
=yes ;;
6546 RANLIB
=$ac_ct_RANLIB
6549 RANLIB
="$ac_cv_prog_RANLIB"
6554 ## Although we're running on an amd64 kernel, we're actually compiling for
6555 ## the x86 architecture. The user should probably have provided an
6556 ## explicit --build to `configure', but if everything else than the kernel
6557 ## is running in i386 mode, we can help them out.
6558 if test "$machine" = "amdx86-64"; then
6559 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6560 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6564 if test "$ac_cv_have_decl_i386" = "yes"; then
6565 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6567 machfile
="m/${machine}.h"
6571 # Extract the first word of "install-info", so it can be a program name with args.
6572 set dummy install-info
; ac_word
=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6576 $as_echo_n "(cached) " >&6
6578 case $INSTALL_INFO in
6580 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir
=.
6588 for ac_exec_ext
in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6602 if test -n "$INSTALL_INFO"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6604 $as_echo "$INSTALL_INFO" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6611 # Extract the first word of "install-info", so it can be a program name with args.
6612 set dummy install-info
; ac_word
=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6616 $as_echo_n "(cached) " >&6
6618 case $INSTALL_INFO in
6620 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6624 for as_dir
in /usr
/sbin
6627 test -z "$as_dir" && as_dir
=.
6628 for ac_exec_ext
in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6642 if test -n "$INSTALL_INFO"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6644 $as_echo "$INSTALL_INFO" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6651 # Extract the first word of "install-info", so it can be a program name with args.
6652 set dummy install-info
; ac_word
=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6656 $as_echo_n "(cached) " >&6
6658 case $INSTALL_INFO in
6660 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir
=.
6668 for ac_exec_ext
in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6682 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6683 if test -n "$INSTALL_INFO"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6685 $as_echo "$INSTALL_INFO" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6692 # Extract the first word of "gzip", so it can be a program name with args.
6693 set dummy
gzip; ac_word
=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6697 $as_echo_n "(cached) " >&6
6701 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir
=.
6709 for ac_exec_ext
in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6723 if test -n "$GZIP_PROG"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6725 $as_echo "$GZIP_PROG" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6734 ## Need makeinfo >= 4.6 (?) to build the manuals.
6735 # Extract the first word of "makeinfo", so it can be a program name with args.
6736 set dummy makeinfo
; ac_word
=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_path_MAKEINFO+:} false
; then :
6740 $as_echo_n "(cached) " >&6
6744 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir
=.
6752 for ac_exec_ext
in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6766 MAKEINFO
=$ac_cv_path_MAKEINFO
6767 if test -n "$MAKEINFO"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6769 $as_echo "$MAKEINFO" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6776 if test "$MAKEINFO" != "no" && \
6777 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
6781 ## Makeinfo is unusual. For a released Emacs, the manuals are
6782 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6783 ## therefore in the category of "special tools" not normally required, which
6784 ## configure does not have to check for (eg autoconf itself).
6785 ## In a Bazaar checkout on the other hand, the manuals are not included.
6786 ## So makeinfo is a requirement to build from Bazaar, and configure
6787 ## should test for it as it does for any other build requirement.
6788 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6789 ## with pre-built manuals, from a Bazaar checkout.
6792 if test "$MAKEINFO" = "no"; then
6794 if test "x${with_makeinfo}" = "xno"; then
6796 elif test ! -e $srcdir/info
/emacs
; then
6797 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6798 source tree does not seem to have pre-built manuals in the \`info' directory.
6799 Either install a suitable version of makeinfo, or re-run configure
6800 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6806 if test x
$GCC = xyes
; then
6807 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6808 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6810 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6811 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6815 late_LDFLAGS
=$LDFLAGS
6816 if test x
$GCC = xyes
; then
6817 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6819 LDFLAGS
="$LDFLAGS -znocombreloc"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6823 $as_echo_n "checking for -znocombreloc... " >&6; }
6824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6835 if ac_fn_c_try_link
"$LINENO"; then :
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6837 $as_echo "yes" >&6; }
6839 LDFLAGS
=$late_LDFLAGS
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6843 rm -f core conftest.err conftest.
$ac_objext \
6844 conftest
$ac_exeext conftest.
$ac_ext
6847 # The value of CPP is a quoted variable reference, so we need to do this
6848 # to get its actual value...
6849 CPP
=`eval "echo $CPP"`
6852 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6854 your-opsys-here
) CANNOT_DUMP
=yes ;;
6857 test "$CANNOT_DUMP" = "yes" && \
6859 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6865 UNEXEC_OBJ
=unexelf.o
6867 # MSDOS uses unexcoff.o
6868 # MSWindows uses unexw32.o
6870 UNEXEC_OBJ
=unexaix.o
6876 UNEXEC_OBJ
=unexmacosx.o
6879 UNEXEC_OBJ
=unexhp9k800.o
6882 # Use the Solaris dldump() function, called from unexsol.c, to dump
6883 # emacs, instead of the generic ELF dump code found in unexelf.c.
6884 # The resulting binary has a complete symbol table, and is better
6885 # for debugging and other observability tools (debuggers, pstack, etc).
6887 # If you encounter a problem using dldump(), please consider sending
6888 # a message to the OpenSolaris tools-linking mailing list:
6889 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6891 # It is likely that dldump() works with older Solaris too, but this has
6892 # not been tested, so for now this change is for Solaris 10 or newer.
6893 UNEXEC_OBJ
=unexsol.o
6900 ## Let `ld' find image libs and similar things in /usr/local/lib.
6901 ## The system compiler, GCC, has apparently been modified to not
6902 ## look there, contrary to what a stock GCC would do.
6903 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6907 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6908 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6912 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6916 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6917 ## otherwise Emacs dumps core on elf systems.
6918 LD_SWITCH_SYSTEM
="-Z"
6923 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6925 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6926 ## which has not been defined yet. When this was handled with cpp,
6927 ## it was expanded to null when configure sourced the s/*.h file.
6928 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6929 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6930 ## (or somesuch), but because it is supposed to go at the _front_
6931 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6932 ## Compare with the gnu-linux case below, which added to the end
6933 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6934 ## LD_SWITCH_SYSTEM_TEMACS.
6937 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6938 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6943 if test "$machine" = "alpha"; then
6944 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6945 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6949 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6950 ## With ELF, make sure that all common symbols get allocated to in the
6951 ## data section. Otherwise, the dump of temacs may miss variables in
6952 ## the shared library that have been initialized. For example, with
6953 ## GNU libc, __malloc_initialized would normally be resolved to the
6954 ## shared library's .bss section, which is fatal.
6955 if test "x$GCC" = "xyes"; then
6956 C_SWITCH_MACHINE
="-fno-common"
6958 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6961 UNEXEC_OBJ
=unexalpha.o
6969 ## Some programs in src produce warnings saying certain subprograms
6970 ## are too complex and need a MAXMEM value greater than 2000 for
6971 ## additional optimization. --nils@exp-math.uni-essen.de
6972 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6973 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6974 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6975 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6981 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6982 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6984 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6986 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6988 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6990 ## Motif needs -lgen.
6991 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6996 ### Make sure subsequent tests use flags consistent with the build flags.
6998 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6999 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7001 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7004 # Check whether --enable-largefile was given.
7005 if test "${enable_largefile+set}" = set; then :
7006 enableval
=$enable_largefile;
7009 if test "$enable_largefile" != no
; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7012 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7013 if ${ac_cv_sys_largefile_CC+:} false
; then :
7014 $as_echo_n "(cached) " >&6
7016 ac_cv_sys_largefile_CC
=no
7017 if test "$GCC" != yes; then
7020 # IRIX 6.2 and later do not support large files by default,
7021 # so use the C compiler's -n32 option if that helps.
7022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <sys/types.h>
7025 /* Check that off_t can represent 2**63 - 1 correctly.
7026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7027 since some C++ compilers masquerading as C compilers
7028 incorrectly reject 9223372036854775807. */
7029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7031 && LARGE_OFF_T % 2147483647 == 1)
7041 if ac_fn_c_try_compile
"$LINENO"; then :
7044 rm -f core conftest.err conftest.
$ac_objext
7046 if ac_fn_c_try_compile
"$LINENO"; then :
7047 ac_cv_sys_largefile_CC
=' -n32'; break
7049 rm -f core conftest.err conftest.
$ac_objext
7053 rm -f conftest.
$ac_ext
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7057 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7058 if test "$ac_cv_sys_largefile_CC" != no
; then
7059 CC
=$CC$ac_cv_sys_largefile_CC
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7063 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7064 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7065 $as_echo_n "(cached) " >&6
7068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 #include <sys/types.h>
7071 /* Check that off_t can represent 2**63 - 1 correctly.
7072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7073 since some C++ compilers masquerading as C compilers
7074 incorrectly reject 9223372036854775807. */
7075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7077 && LARGE_OFF_T % 2147483647 == 1)
7087 if ac_fn_c_try_compile
"$LINENO"; then :
7088 ac_cv_sys_file_offset_bits
=no
; break
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #define _FILE_OFFSET_BITS 64
7094 #include <sys/types.h>
7095 /* Check that off_t can represent 2**63 - 1 correctly.
7096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7097 since some C++ compilers masquerading as C compilers
7098 incorrectly reject 9223372036854775807. */
7099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7101 && LARGE_OFF_T % 2147483647 == 1)
7111 if ac_fn_c_try_compile
"$LINENO"; then :
7112 ac_cv_sys_file_offset_bits
=64; break
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7115 ac_cv_sys_file_offset_bits
=unknown
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7120 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7121 case $ac_cv_sys_file_offset_bits in #(
7124 cat >>confdefs.h
<<_ACEOF
7125 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7130 if test $ac_cv_sys_file_offset_bits = unknown
; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7132 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7133 if ${ac_cv_sys_large_files+:} false
; then :
7134 $as_echo_n "(cached) " >&6
7137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 /* Check that off_t can represent 2**63 - 1 correctly.
7141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7142 since some C++ compilers masquerading as C compilers
7143 incorrectly reject 9223372036854775807. */
7144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7146 && LARGE_OFF_T % 2147483647 == 1)
7156 if ac_fn_c_try_compile
"$LINENO"; then :
7157 ac_cv_sys_large_files
=no
; break
7159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #define _LARGE_FILES 1
7163 #include <sys/types.h>
7164 /* Check that off_t can represent 2**63 - 1 correctly.
7165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7166 since some C++ compilers masquerading as C compilers
7167 incorrectly reject 9223372036854775807. */
7168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7170 && LARGE_OFF_T % 2147483647 == 1)
7180 if ac_fn_c_try_compile
"$LINENO"; then :
7181 ac_cv_sys_large_files
=1; break
7183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 ac_cv_sys_large_files
=unknown
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7189 $as_echo "$ac_cv_sys_large_files" >&6; }
7190 case $ac_cv_sys_large_files in #(
7193 cat >>confdefs.h
<<_ACEOF
7194 #define _LARGE_FILES $ac_cv_sys_large_files
7204 ## If user specified a crt-dir, use that unconditionally.
7205 if test "X$CRT_DIR" = "X"; then
7207 case "$canonical" in
7208 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7209 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7210 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7211 ## For anything else (eg /usr/lib32), it is up the user to specify
7212 ## the location (bug#5655).
7213 ## Test for crtn.o, not just the directory, because sometimes the
7214 ## directory exists but does not have the relevant files (bug#1287).
7215 ## FIXME better to test for binary compatibility somehow.
7216 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7219 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7223 hpux10-20
) CRT_DIR
=/lib
;;
7226 ## Default is /usr/lib.
7227 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7231 ## Some platforms don't use any of these files, so it is not
7232 ## appropriate to put this test outside the if block.
7233 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7234 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7247 START_FILES
='pre-crt0.o'
7250 ## Adding -lm confuses the dynamic linker, so omit it.
7252 START_FILES
='pre-crt0.o'
7255 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7256 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7258 gnu-linux | gnu-kfreebsd
)
7259 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7260 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7262 hpux10-20 | hpux11
)
7264 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7267 if test -f $CRT_DIR/crti.o
; then
7268 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7269 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7271 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7272 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7283 if test "${with_sound}" != "no"; then
7284 # Sound support for GNU/Linux and the free BSDs.
7285 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7287 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7289 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7290 cat >>confdefs.h
<<_ACEOF
7291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7293 have_sound_header
=yes
7298 # Emulation library used on NetBSD.
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7300 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7301 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7302 $as_echo_n "(cached) " >&6
7304 ac_check_lib_save_LIBS
=$LIBS
7305 LIBS
="-lossaudio $LIBS"
7306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7309 /* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
7319 return _oss_ioctl ();
7324 if ac_fn_c_try_link
"$LINENO"; then :
7325 ac_cv_lib_ossaudio__oss_ioctl
=yes
7327 ac_cv_lib_ossaudio__oss_ioctl
=no
7329 rm -f core conftest.err conftest.
$ac_objext \
7330 conftest
$ac_exeext conftest.
$ac_ext
7331 LIBS
=$ac_check_lib_save_LIBS
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7334 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7335 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7344 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7348 # Extract the first word of "pkg-config", so it can be a program name with args.
7349 set dummy pkg-config
; ac_word
=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7353 $as_echo_n "(cached) " >&6
7357 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir
=.
7365 for ac_exec_ext
in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7379 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7380 if test -n "$PKG_CONFIG"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7382 $as_echo "$PKG_CONFIG" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7390 if test "$PKG_CONFIG" = "no" ; then
7393 PKG_CONFIG_MIN_VERSION
=0.9.0
7394 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7396 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7398 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400 $as_echo "yes" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7404 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7405 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7407 $as_echo "$ALSA_CFLAGS" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7410 $as_echo_n "checking ALSA_LIBS... " >&6; }
7411 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7413 $as_echo "$ALSA_LIBS" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7419 ## If we have a custom action on failure, don't print errors, but
7420 ## do set a variable so people can do so.
7421 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7433 if test $succeeded = yes; then
7439 if test $HAVE_ALSA = yes; then
7440 SAVE_CFLAGS
="$CFLAGS"
7441 SAVE_LDFLAGS
="$LDFLAGS"
7442 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7443 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <asoundlib.h>
7450 snd_lib_error_set_handler (0);
7455 if ac_fn_c_try_compile
"$LINENO"; then :
7456 emacs_alsa_normal
=yes
7458 emacs_alsa_normal
=no
7460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7461 if test "$emacs_alsa_normal" != yes; then
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <alsa/asoundlib.h>
7468 snd_lib_error_set_handler (0);
7473 if ac_fn_c_try_compile
"$LINENO"; then :
7474 emacs_alsa_subdir
=yes
7476 emacs_alsa_subdir
=no
7478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7479 if test "$emacs_alsa_subdir" != yes; then
7480 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7482 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7485 CFLAGS
="$SAVE_CFLAGS"
7486 LDFLAGS
="$SAVE_LDFLAGS"
7487 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7488 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7490 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7494 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7496 gnu-linux|freebsd|netbsd
)
7498 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7507 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7508 linux
/version.h sys
/systeminfo.h limits.h \
7509 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7510 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7511 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7513 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7515 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7516 cat >>confdefs.h
<<_ACEOF
7517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7526 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <sys/personality.h>
7533 personality (PER_LINUX32)
7538 if ac_fn_c_try_compile
"$LINENO"; then :
7539 emacs_cv_personality_linux32
=yes
7541 emacs_cv_personality_linux32
=no
7543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7545 $as_echo "$emacs_cv_personality_linux32" >&6; }
7547 if test $emacs_cv_personality_linux32 = yes; then
7549 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7553 for ac_header
in term.h
7555 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7556 if test "x$ac_cv_header_term_h" = xyes
; then :
7557 cat >>confdefs.h
<<_ACEOF
7558 #define HAVE_TERM_H 1
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7566 $as_echo_n "checking for ANSI C header files... " >&6; }
7567 if ${ac_cv_header_stdc+:} false
; then :
7568 $as_echo_n "(cached) " >&6
7570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7586 ac_cv_header_stdc
=yes
7588 ac_cv_header_stdc
=no
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7592 if test $ac_cv_header_stdc = yes; then
7593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7600 $EGREP "memchr" >/dev
/null
2>&1; then :
7603 ac_cv_header_stdc
=no
7609 if test $ac_cv_header_stdc = yes; then
7610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7617 $EGREP "free" >/dev
/null
2>&1; then :
7620 ac_cv_header_stdc
=no
7626 if test $ac_cv_header_stdc = yes; then
7627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7628 if test "$cross_compiling" = yes; then :
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7635 #if ((' ' & 0x0FF) == 0x020)
7636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7639 # define ISLOWER(c) \
7640 (('a' <= (c) && (c) <= 'i') \
7641 || ('j' <= (c) && (c) <= 'r') \
7642 || ('s' <= (c) && (c) <= 'z'))
7643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7651 for (i = 0; i < 256; i++)
7652 if (XOR (islower (i), ISLOWER (i))
7653 || toupper (i) != TOUPPER (i))
7658 if ac_fn_c_try_run
"$LINENO"; then :
7661 ac_cv_header_stdc
=no
7663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7664 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7670 $as_echo "$ac_cv_header_stdc" >&6; }
7671 if test $ac_cv_header_stdc = yes; then
7673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7678 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7679 if ${ac_cv_header_time+:} false
; then :
7680 $as_echo_n "(cached) " >&6
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 #include <sys/types.h>
7685 #include <sys/time.h>
7691 if ((struct tm *) 0)
7697 if ac_fn_c_try_compile
"$LINENO"; then :
7698 ac_cv_header_time
=yes
7700 ac_cv_header_time
=no
7702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7705 $as_echo "$ac_cv_header_time" >&6; }
7706 if test $ac_cv_header_time = yes; then
7708 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7712 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7713 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7719 cat >>confdefs.h
<<_ACEOF
7720 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7723 if test $ac_cv_have_decl_sys_siglist != yes; then
7724 # For Tru64, at least:
7725 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7726 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7732 cat >>confdefs.h
<<_ACEOF
7733 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7736 if test $ac_cv_have_decl___sys_siglist = yes; then
7738 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7743 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7744 if ${ac_cv_header_sys_wait_h+:} false
; then :
7745 $as_echo_n "(cached) " >&6
7747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7750 #include <sys/wait.h>
7752 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7755 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7763 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7768 if ac_fn_c_try_compile
"$LINENO"; then :
7769 ac_cv_header_sys_wait_h
=yes
7771 ac_cv_header_sys_wait_h
=no
7773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7776 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7777 if test $ac_cv_header_sys_wait_h = yes; then
7779 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7785 $as_echo_n "checking for struct utimbuf... " >&6; }
7786 if ${emacs_cv_struct_utimbuf+:} false
; then :
7787 $as_echo_n "(cached) " >&6
7789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #ifdef TIME_WITH_SYS_TIME
7792 #include <sys/time.h>
7795 #ifdef HAVE_SYS_TIME_H
7796 #include <sys/time.h>
7807 static struct utimbuf x; x.actime = x.modtime;
7812 if ac_fn_c_try_compile
"$LINENO"; then :
7813 emacs_cv_struct_utimbuf
=yes
7815 emacs_cv_struct_utimbuf
=no
7817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7820 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7821 if test $emacs_cv_struct_utimbuf = yes; then
7823 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7828 $as_echo_n "checking return type of signal handlers... " >&6; }
7829 if ${ac_cv_type_signal+:} false
; then :
7830 $as_echo_n "(cached) " >&6
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7840 return *(signal (0, 0)) (0) == 1;
7845 if ac_fn_c_try_compile
"$LINENO"; then :
7846 ac_cv_type_signal
=int
7848 ac_cv_type_signal
=void
7850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7853 $as_echo "$ac_cv_type_signal" >&6; }
7855 cat >>confdefs.h
<<_ACEOF
7856 #define RETSIGTYPE $ac_cv_type_signal
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7862 $as_echo_n "checking for speed_t... " >&6; }
7863 if ${emacs_cv_speed_t+:} false
; then :
7864 $as_echo_n "(cached) " >&6
7866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <termios.h>
7877 if ac_fn_c_try_compile
"$LINENO"; then :
7878 emacs_cv_speed_t
=yes
7882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7885 $as_echo "$emacs_cv_speed_t" >&6; }
7886 if test $emacs_cv_speed_t = yes; then
7888 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7893 $as_echo_n "checking for struct timeval... " >&6; }
7894 if ${emacs_cv_struct_timeval+:} false
; then :
7895 $as_echo_n "(cached) " >&6
7897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 #ifdef TIME_WITH_SYS_TIME
7900 #include <sys/time.h>
7903 #ifdef HAVE_SYS_TIME_H
7904 #include <sys/time.h>
7912 static struct timeval x; x.tv_sec = x.tv_usec;
7917 if ac_fn_c_try_compile
"$LINENO"; then :
7918 emacs_cv_struct_timeval
=yes
7920 emacs_cv_struct_timeval
=no
7922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7925 $as_echo "$emacs_cv_struct_timeval" >&6; }
7926 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7927 if test $emacs_cv_struct_timeval = yes; then
7929 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7934 $as_echo_n "checking for struct exception... " >&6; }
7935 if ${emacs_cv_struct_exception+:} false
; then :
7936 $as_echo_n "(cached) " >&6
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7944 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7949 if ac_fn_c_try_compile
"$LINENO"; then :
7950 emacs_cv_struct_exception
=yes
7952 emacs_cv_struct_exception
=no
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7957 $as_echo "$emacs_cv_struct_exception" >&6; }
7958 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7959 if test $emacs_cv_struct_exception != yes; then
7961 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7965 for ac_header
in sys
/socket.h
7967 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7968 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7969 cat >>confdefs.h
<<_ACEOF
7970 #define HAVE_SYS_SOCKET_H 1
7977 for ac_header
in net
/if.h
7979 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7980 #if HAVE_SYS_SOCKET_H
7981 #include <sys/socket.h>
7984 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7985 cat >>confdefs.h
<<_ACEOF
7986 #define HAVE_NET_IF_H 1
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7995 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7996 if ${ac_cv_struct_tm+:} false
; then :
7997 $as_echo_n "(cached) " >&6
7999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <sys/types.h>
8008 int *p = &tm.tm_sec;
8014 if ac_fn_c_try_compile
"$LINENO"; then :
8015 ac_cv_struct_tm
=time.h
8017 ac_cv_struct_tm
=sys
/time.h
8019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8022 $as_echo "$ac_cv_struct_tm" >&6; }
8023 if test $ac_cv_struct_tm = sys
/time.h
; then
8025 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8029 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8030 #include <$ac_cv_struct_tm>
8033 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_STRUCT_TM_TM_ZONE 1
8042 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8044 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8047 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8049 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8055 cat >>confdefs.h
<<_ACEOF
8056 #define HAVE_DECL_TZNAME $ac_have_decl
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8060 $as_echo_n "checking for tzname... " >&6; }
8061 if ${ac_cv_var_tzname+:} false
; then :
8062 $as_echo_n "(cached) " >&6
8064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8067 #if !HAVE_DECL_TZNAME
8068 extern char *tzname[];
8074 return tzname[0][0];
8079 if ac_fn_c_try_link
"$LINENO"; then :
8080 ac_cv_var_tzname
=yes
8084 rm -f core conftest.err conftest.
$ac_objext \
8085 conftest
$ac_exeext conftest.
$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8088 $as_echo "$ac_cv_var_tzname" >&6; }
8089 if test $ac_cv_var_tzname = yes; then
8091 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8096 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8098 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8100 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8104 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8105 #if HAVE_SYS_SOCKET_H
8106 #include <sys/socket.h>
8112 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8114 cat >>confdefs.h
<<_ACEOF
8115 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8120 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8121 #if HAVE_SYS_SOCKET_H
8122 #include <sys/socket.h>
8128 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8130 cat >>confdefs.h
<<_ACEOF
8131 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8136 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8137 #if HAVE_SYS_SOCKET_H
8138 #include <sys/socket.h>
8144 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8146 cat >>confdefs.h
<<_ACEOF
8147 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8152 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8153 #if HAVE_SYS_SOCKET_H
8154 #include <sys/socket.h>
8160 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8162 cat >>confdefs.h
<<_ACEOF
8163 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8168 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8169 #if HAVE_SYS_SOCKET_H
8170 #include <sys/socket.h>
8176 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8178 cat >>confdefs.h
<<_ACEOF
8179 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8188 $as_echo_n "checking for function prototypes... " >&6; }
8189 if test "$ac_cv_prog_cc_c89" != no
; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8193 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8196 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8204 $as_echo_n "checking for working volatile... " >&6; }
8205 if ${ac_cv_c_volatile+:} false
; then :
8206 $as_echo_n "(cached) " >&6
8208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8216 int * volatile y = (int *) 0;
8222 if ac_fn_c_try_compile
"$LINENO"; then :
8223 ac_cv_c_volatile
=yes
8227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8230 $as_echo "$ac_cv_c_volatile" >&6; }
8231 if test $ac_cv_c_volatile = no
; then
8233 $as_echo "#define volatile /**/" >>confdefs.h
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8238 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8239 if ${ac_cv_c_const+:} false
; then :
8240 $as_echo_n "(cached) " >&6
8242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8248 /* FIXME: Include the comments suggested by Paul. */
8250 /* Ultrix mips cc rejects this. */
8251 typedef int charset[2];
8253 /* SunOS 4.1.1 cc rejects this. */
8254 char const *const *pcpcc;
8256 /* NEC SVR4.0.2 mips cc rejects this. */
8257 struct point {int x, y;};
8258 static struct point const zero = {0,0};
8259 /* AIX XL C 1.02.0.0 rejects this.
8260 It does not let you subtract one const X* pointer from another in
8261 an arm of an if-expression whose if-part is not a constant
8263 const char *g = "string";
8264 pcpcc = &g + (g ? g-g : 0);
8265 /* HPUX 7.0 cc rejects these. */
8267 ppc = (char**) pcpcc;
8268 pcpcc = (char const *const *) ppc;
8269 { /* SCO 3.2v4 cc rejects this. */
8271 char const *s = 0 ? (char *) 0 : (char const *) 0;
8276 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8278 const int *foo = &x[0];
8281 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8282 typedef const int *iptr;
8286 { /* AIX XL C 1.02.0.0 rejects this saying
8287 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8288 struct s { int j; const int *ap[3]; };
8289 struct s *b; b->j = 5;
8291 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8295 return !cs[0] && !zero.x;
8302 if ac_fn_c_try_compile
"$LINENO"; then :
8307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8310 $as_echo "$ac_cv_c_const" >&6; }
8311 if test $ac_cv_c_const = no
; then
8313 $as_echo "#define const /**/" >>confdefs.h
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8318 $as_echo_n "checking for void * support... " >&6; }
8319 if ${emacs_cv_void_star+:} false
; then :
8320 $as_echo_n "(cached) " >&6
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8333 if ac_fn_c_try_compile
"$LINENO"; then :
8334 emacs_cv_void_star
=yes
8336 emacs_cv_void_star
=no
8338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8341 $as_echo "$emacs_cv_void_star" >&6; }
8342 if test $emacs_cv_void_star = yes; then
8343 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8346 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8351 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8352 if ${ac_cv_c_bigendian+:} false
; then :
8353 $as_echo_n "(cached) " >&6
8355 ac_cv_c_bigendian
=unknown
8356 # See if we're dealing with a universal compiler.
8357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 #ifndef __APPLE_CC__
8360 not a universal capable compiler
8365 if ac_fn_c_try_compile
"$LINENO"; then :
8367 # Check for potential -arch flags. It is not universal unless
8368 # there are at least two -arch flags with different values.
8371 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8372 if test -n "$ac_prev"; then
8374 i?
86 | x86_64 | ppc | ppc64
)
8375 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8378 ac_cv_c_bigendian
=universal
8384 elif test "x$ac_word" = "x-arch"; then
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 if test $ac_cv_c_bigendian = unknown
; then
8391 # See if sys/param.h defines the BYTE_ORDER macro.
8392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #include <sys/types.h>
8395 #include <sys/param.h>
8400 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8401 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8410 if ac_fn_c_try_compile
"$LINENO"; then :
8411 # It does; now see whether it defined to BIG_ENDIAN or not.
8412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <sys/types.h>
8415 #include <sys/param.h>
8420 #if BYTE_ORDER != BIG_ENDIAN
8428 if ac_fn_c_try_compile
"$LINENO"; then :
8429 ac_cv_c_bigendian
=yes
8431 ac_cv_c_bigendian
=no
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 if test $ac_cv_c_bigendian = unknown
; then
8438 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8446 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8454 if ac_fn_c_try_compile
"$LINENO"; then :
8455 # It does; now see whether it defined to _BIG_ENDIAN or not.
8456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8471 if ac_fn_c_try_compile
"$LINENO"; then :
8472 ac_cv_c_bigendian
=yes
8474 ac_cv_c_bigendian
=no
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 if test $ac_cv_c_bigendian = unknown
; then
8481 # Compile a test program.
8482 if test "$cross_compiling" = yes; then :
8483 # Try to guess by grepping values from an object file.
8484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 short int ascii_mm[] =
8487 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8488 short int ascii_ii[] =
8489 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 int use_ascii (int i) {
8491 return ascii_mm[i] + ascii_ii[i];
8493 short int ebcdic_ii[] =
8494 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8495 short int ebcdic_mm[] =
8496 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8497 int use_ebcdic (int i) {
8498 return ebcdic_mm[i] + ebcdic_ii[i];
8505 return use_ascii (foo) == use_ebcdic (foo);
8510 if ac_fn_c_try_compile
"$LINENO"; then :
8511 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8512 ac_cv_c_bigendian
=yes
8514 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8515 if test "$ac_cv_c_bigendian" = unknown
; then
8516 ac_cv_c_bigendian
=no
8518 # finding both strings is unlikely to happen, but who knows?
8519 ac_cv_c_bigendian
=unknown
8523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 $ac_includes_default
8532 /* Are we little or big endian? From Harbison&Steele. */
8536 char c[sizeof (long int)];
8539 return u.c[sizeof (long int) - 1] == 1;
8545 if ac_fn_c_try_run
"$LINENO"; then :
8546 ac_cv_c_bigendian
=no
8548 ac_cv_c_bigendian
=yes
8550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8557 $as_echo "$ac_cv_c_bigendian" >&6; }
8558 case $ac_cv_c_bigendian in #(
8560 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8566 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8570 as_fn_error $?
"unknown endianness
8571 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8576 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8577 if ${emacs_cv_attribute_aligned+:} false
; then :
8578 $as_echo_n "(cached) " >&6
8580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 char __attribute__ ((__aligned__ (1 << 3))) c;
8591 if ac_fn_c_try_compile
"$LINENO"; then :
8592 emacs_cv_attribute_aligned
=yes
8594 emacs_cv_attribute_aligned
=no
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8599 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8600 if test $emacs_cv_attribute_aligned = yes; then
8602 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8609 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8610 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8611 $as_echo_n "(cached) " >&6
8613 cat >conftest.
make <<\_ACEOF
8616 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8618 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8621 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8623 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8627 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8629 $as_echo "yes" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 SET_MAKE
="MAKE=${MAKE-make}"
8641 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8643 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8645 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8646 if test "x$testval" != x
; then
8649 ac_enable_autodepend
=no
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8652 $as_echo "$HAVE_GNU_MAKE" >&6; }
8653 if test $HAVE_GNU_MAKE = yes; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8655 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8656 SAVE_CFLAGS
="$CFLAGS"
8657 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8669 if ac_fn_c_try_compile
"$LINENO"; then :
8672 ac_enable_autodepend
=no
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8675 CFLAGS
="$SAVE_CFLAGS"
8676 test -f deps.d || ac_enable_autodepend
=no
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8679 $as_echo "$ac_enable_autodepend" >&6; }
8681 if test $ac_enable_autodepend = yes; then
8682 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8683 ## In parallel builds, another make might create depdir between
8684 ## the first test and mkdir, so stick another test on the end.
8685 ## Or use mkinstalldirs? mkdir -p is not portable.
8686 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8687 deps_frag
=autodeps.mk
8690 deps_frag
=$srcdir/src
/$deps_frag
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8697 $as_echo_n "checking for long file names... " >&6; }
8698 if ${ac_cv_sys_long_file_names+:} false
; then :
8699 $as_echo_n "(cached) " >&6
8701 ac_cv_sys_long_file_names
=yes
8702 # Test for long file names in all the places we know might matter:
8703 # . the current directory, where building will happen
8704 # $prefix/lib where we will be installing things
8705 # $exec_prefix/lib likewise
8706 # $TMPDIR if set, where it might want to write temporary files
8707 # /tmp where it might want to write temporary files
8710 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8711 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8712 # in the usual case where exec_prefix is '${prefix}'.
8714 . |
/* | ?
:[\\/]*) ;; #(
8717 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8718 ac_xdir
=$ac_dir/cf$$
8719 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8720 ac_tf1
=$ac_xdir/conftest9012345
8721 ac_tf2
=$ac_xdir/conftest9012346
8722 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8723 ac_cv_sys_long_file_names
=no
8724 rm -f -r "$ac_xdir" 2>/dev
/null
8725 test $ac_cv_sys_long_file_names = no
&& break
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8729 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8730 if test $ac_cv_sys_long_file_names = yes; then
8732 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8737 #### Choose a window system.
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8740 $as_echo_n "checking for X... " >&6; }
8743 # Check whether --with-x was given.
8744 if test "${with_x+set}" = set; then :
8748 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8749 if test "x$with_x" = xno
; then
8750 # The user explicitly disabled X.
8753 case $x_includes,$x_libraries in #(
8754 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8755 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8756 $as_echo_n "(cached) " >&6
8758 # One or both of the vars are not set, and there is no cached value.
8759 ac_x_includes
=no ac_x_libraries
=no
8760 rm -f -r conftest.dir
8761 if mkdir conftest.dir
; then
8763 cat >Imakefile
<<'_ACEOF'
8765 @echo incroot='${INCROOT}'
8767 @echo usrlibdir='${USRLIBDIR}'
8769 @echo libdir='${LIBDIR}'
8771 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8772 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8773 for ac_var
in incroot usrlibdir libdir
; do
8774 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8776 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8777 for ac_extension
in a so sl dylib la dll
; do
8778 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8779 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8780 ac_im_usrlibdir
=$ac_im_libdir; break
8783 # Screen out bogus values from the imake configuration. They are
8784 # bogus both because they are the default anyway, and because
8785 # using them would break gcc on systems where it needs fixed includes.
8786 case $ac_im_incroot in
8787 /usr
/include
) ac_x_includes
= ;;
8788 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8790 case $ac_im_usrlibdir in
8791 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8792 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8796 rm -f -r conftest.dir
8799 # Standard set of common directories for X headers.
8800 # Check X11 before X11Rn because it is often a symlink to the current release.
8814 /usr/local/X11/include
8815 /usr/local/X11R7/include
8816 /usr/local/X11R6/include
8817 /usr/local/X11R5/include
8818 /usr/local/X11R4/include
8820 /usr/local/include/X11
8821 /usr/local/include/X11R7
8822 /usr/local/include/X11R6
8823 /usr/local/include/X11R5
8824 /usr/local/include/X11R4
8828 /usr/XFree86/include/X11
8832 /usr/unsupported/include
8834 /usr/local/x11r5/include
8835 /usr/lpp/Xamples/include
8837 /usr/openwin/include
8838 /usr/openwin/share/include'
8840 if test "$ac_x_includes" = no
; then
8841 # Guess where to find include files, by looking for Xlib.h.
8842 # First, try using that file with no special directory specified.
8843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 #include <X11/Xlib.h>
8847 if ac_fn_c_try_cpp
"$LINENO"; then :
8848 # We can compile using X headers with no special include directory.
8851 for ac_dir
in $ac_x_header_dirs; do
8852 if test -r "$ac_dir/X11/Xlib.h"; then
8853 ac_x_includes
=$ac_dir
8858 rm -f conftest.err conftest.i conftest.
$ac_ext
8859 fi # $ac_x_includes = no
8861 if test "$ac_x_libraries" = no
; then
8862 # Check for the libraries.
8863 # See if we find them without any special options.
8864 # Don't add to $LIBS permanently.
8867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <X11/Xlib.h>
8878 if ac_fn_c_try_link
"$LINENO"; then :
8880 # We can link X programs with no special library path.
8884 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8886 # Don't even attempt the hair of trying to link an X program!
8887 for ac_extension
in a so sl dylib la dll
; do
8888 if test -r "$ac_dir/libX11.$ac_extension"; then
8889 ac_x_libraries
=$ac_dir
8895 rm -f core conftest.err conftest.
$ac_objext \
8896 conftest
$ac_exeext conftest.
$ac_ext
8897 fi # $ac_x_libraries = no
8899 case $ac_x_includes,$ac_x_libraries in #(
8901 # Didn't find X, or a directory has "'" in its name.
8902 ac_cv_have_x
="have_x=no";; #(
8904 # Record where we found X for the cache.
8905 ac_cv_have_x
="have_x=yes\
8906 ac_x_includes='$ac_x_includes'\
8907 ac_x_libraries='$ac_x_libraries'"
8913 eval "$ac_cv_have_x"
8916 if test "$have_x" != yes; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8918 $as_echo "$have_x" >&6; }
8921 # If each of the values was on the command line, it overrides each guess.
8922 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8923 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8924 # Update the cache value to reflect the command line values.
8925 ac_cv_have_x
="have_x=yes\
8926 ac_x_includes='$x_includes'\
8927 ac_x_libraries='$x_libraries'"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8929 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8932 if test "$no_x" = yes; then
8938 ## Workaround for bug in autoconf <= 2.62.
8939 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8940 ## No need to do anything special for these standard directories.
8941 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8943 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8947 LD_SWITCH_X_SITE_AUX
=
8948 LD_SWITCH_X_SITE_AUX_RPATH
=
8949 if test "${x_libraries}" != NONE
; then
8950 if test -n "${x_libraries}"; then
8951 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8952 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8953 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8955 x_default_search_path
=""
8956 x_search_path
=${x_libraries}
8957 if test -z "${x_search_path}"; then
8958 x_search_path
=/usr
/lib
8960 for x_library
in `echo ${x_search_path}: | \
8961 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8963 ${x_library}/X11/%L/%T/%N%C%S:\
8964 ${x_library}/X11/%l/%T/%N%C%S:\
8965 ${x_library}/X11/%T/%N%C%S:\
8966 ${x_library}/X11/%L/%T/%N%S:\
8967 ${x_library}/X11/%l/%T/%N%S:\
8968 ${x_library}/X11/%T/%N%S"
8969 if test x
"${x_default_search_path}" = x
; then
8970 x_default_search_path
=${x_search_path}
8972 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8979 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8980 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8983 if test x
"${x_includes}" = x
; then
8984 bitmapdir
=/usr
/include
/X11
/bitmaps
8986 # accumulate include directories that have X11 bitmap subdirectories
8988 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8989 if test -d "${bmd}/X11/bitmaps"; then
8990 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8992 if test -d "${bmd}/bitmaps"; then
8993 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8996 if test ${bmd_acc} != "dummyval"; then
8997 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9004 tmp_CPPFLAGS
="$CPPFLAGS"
9005 tmp_CFLAGS
="$CFLAGS"
9006 CPPFLAGS
="$CPPFLAGS -x objective-c"
9007 CFLAGS
="$CFLAGS -x objective-c"
9008 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9009 if test "${with_ns}" != no
; then
9010 if test "${opsys}" = darwin
; then
9012 ns_appdir
=`pwd`/nextstep
/Emacs.app
9013 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9014 ns_appresdir
=${ns_appdir}/Contents
/Resources
9015 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9016 elif test -f $GNUSTEP_CONFIG_FILE; then
9018 ns_appdir
=`pwd`/nextstep
/Emacs.app
9019 ns_appbindir
=${ns_appdir}/
9020 ns_appresdir
=${ns_appdir}/Resources
9021 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9022 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9023 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9024 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9025 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9026 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9027 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9028 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9029 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9030 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9031 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9032 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9037 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9038 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
9041 as_fn_error $?
"\`--with-ns' was specified, but the include
9042 files are missing or cannot be compiled." "$LINENO" 5
9046 NS_HAVE_NSINTEGER
=yes
9047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 #include <Foundation/NSObjCRuntime.h>
9058 if ac_fn_c_try_compile
"$LINENO"; then :
9059 ns_have_nsinteger
=yes
9061 ns_have_nsinteger
=no
9063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9064 if test $ns_have_nsinteger = no
; then
9065 NS_HAVE_NSINTEGER
=no
9074 if test "${HAVE_NS}" = yes; then
9075 window_system
=nextstep
9077 # set up packaging dirs
9078 exec_prefix
=${ns_appbindir}
9079 libexecdir
=${ns_appbindir}/libexec
9080 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9081 prefix
=${ns_appresdir}
9083 ns_frag
=$srcdir/src
/ns.mk
9084 NS_OBJ
="fontset.o fringe.o image.o"
9085 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9086 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9088 CFLAGS
="$tmp_CFLAGS"
9089 CPPFLAGS
="$tmp_CPPFLAGS"
9096 case "${window_system}" in
9100 case "${with_x_toolkit}" in
9101 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9102 motif
) USE_X_TOOLKIT
=MOTIF
;;
9104 USE_X_TOOLKIT
=none
;;
9105 gtk3
) with_gtk3
=yes
9106 USE_X_TOOLKIT
=none
;;
9107 no
) USE_X_TOOLKIT
=none
;;
9108 * ) USE_X_TOOLKIT
=maybe
;;
9118 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9119 # Extract the first word of "X", so it can be a program name with args.
9120 set dummy X
; ac_word
=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9124 $as_echo_n "(cached) " >&6
9126 if test -n "$HAVE_XSERVER"; then
9127 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir
=.
9134 for ac_exec_ext
in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_HAVE_XSERVER
="true"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9147 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9148 if test -n "$HAVE_XSERVER"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9150 $as_echo "$HAVE_XSERVER" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9157 if test "$HAVE_XSERVER" = true ||
9158 test -n "$DISPLAY" ||
9159 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9160 as_fn_error $?
"You seem to be running X, but no X development libraries
9161 were found. You should install the relevant development files for X
9162 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9163 sure you have development files for image handling, i.e.
9164 tiff, gif, jpeg, png and xpm.
9165 If you are sure you want Emacs compiled without X window support, pass
9167 to configure." "$LINENO" 5
9171 ### If we're using X11, we should use the X menu package.
9174 yes ) HAVE_MENUS
=yes ;;
9177 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9178 # Assume not, until told otherwise.
9181 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9182 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
9188 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9189 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9196 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9197 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
9198 $as_echo_n "(cached) " >&6
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 extern void (* __after_morecore_hook)();
9206 __after_morecore_hook = 0
9211 if ac_fn_c_try_link
"$LINENO"; then :
9212 emacs_cv_var___after_morecore_hook
=yes
9214 emacs_cv_var___after_morecore_hook
=no
9216 rm -f core conftest.err conftest.
$ac_objext \
9217 conftest
$ac_exeext conftest.
$ac_ext
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9220 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9221 if test $emacs_cv_var___after_morecore_hook = no
; then
9228 ## darwin ld insists on the use of malloc routines in the System framework.
9229 darwin|sol2-10
) system_malloc
=yes ;;
9232 if test "${system_malloc}" = "yes"; then
9234 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9238 (The GNU allocators don't work with this system configuration.)"
9242 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9243 VMLIMIT_OBJ
=vm-limit.o
9248 if test "$doug_lea_malloc" = "yes" ; then
9249 if test "$GNU_MALLOC" = yes ; then
9251 (Using Doug Lea's new malloc from the GNU C Library.)"
9254 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9257 ## Use mmap directly for allocating larger buffers.
9258 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9259 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9260 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9262 gnu
*) REL_ALLOC
=no
;;
9266 if test x
"${REL_ALLOC}" = x
; then
9267 REL_ALLOC
=${GNU_MALLOC}
9270 use_mmap_for_buffers
=no
9272 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9278 for ac_header
in $ac_header_list
9280 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9281 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9283 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9284 cat >>confdefs.h
<<_ACEOF
9285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9299 for ac_func
in getpagesize
9301 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9302 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9303 cat >>confdefs.h
<<_ACEOF
9304 #define HAVE_GETPAGESIZE 1
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9311 $as_echo_n "checking for working mmap... " >&6; }
9312 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9313 $as_echo_n "(cached) " >&6
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_mmap_fixed_mapped
=no
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 $ac_includes_default
9321 /* malloc might have been renamed as rpl_malloc. */
9324 /* Thanks to Mike Haertel and Jim Avera for this test.
9325 Here is a matrix of mmap possibilities:
9326 mmap private not fixed
9327 mmap private fixed at somewhere currently unmapped
9328 mmap private fixed at somewhere already mapped
9329 mmap shared not fixed
9330 mmap shared fixed at somewhere currently unmapped
9331 mmap shared fixed at somewhere already mapped
9332 For private mappings, we should verify that changes cannot be read()
9333 back from the file, nor mmap's back from the file at a different
9334 address. (There have been systems where private was not correctly
9335 implemented like the infamous i386 svr4.0, and systems where the
9336 VM page cache was not coherent with the file system buffer cache
9337 like early versions of FreeBSD and possibly contemporary NetBSD.)
9338 For shared mappings, we should conversely verify that changes get
9339 propagated back to all the places they're supposed to be.
9341 Grep wants private fixed already mapped.
9342 The main things grep needs to know about mmap are:
9343 * does it exist and is it safe to write into the mmap'd area
9344 * how to use it (BSD variants) */
9347 #include <sys/mman.h>
9349 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9353 /* This mess was copied from the GNU getpagesize.h. */
9354 #ifndef HAVE_GETPAGESIZE
9355 # ifdef _SC_PAGESIZE
9356 # define getpagesize() sysconf(_SC_PAGESIZE)
9357 # else /* no _SC_PAGESIZE */
9358 # ifdef HAVE_SYS_PARAM_H
9359 # include <sys/param.h>
9360 # ifdef EXEC_PAGESIZE
9361 # define getpagesize() EXEC_PAGESIZE
9362 # else /* no EXEC_PAGESIZE */
9364 # define getpagesize() NBPG * CLSIZE
9367 # endif /* no CLSIZE */
9368 # else /* no NBPG */
9370 # define getpagesize() NBPC
9371 # else /* no NBPC */
9373 # define getpagesize() PAGESIZE
9374 # endif /* PAGESIZE */
9375 # endif /* no NBPC */
9376 # endif /* no NBPG */
9377 # endif /* no EXEC_PAGESIZE */
9378 # else /* no HAVE_SYS_PARAM_H */
9379 # define getpagesize() 8192 /* punt totally */
9380 # endif /* no HAVE_SYS_PARAM_H */
9381 # endif /* no _SC_PAGESIZE */
9383 #endif /* no HAVE_GETPAGESIZE */
9388 char *data, *data2, *data3;
9393 pagesize = getpagesize ();
9395 /* First, make a file with some known garbage in it. */
9396 data = (char *) malloc (pagesize);
9399 for (i = 0; i < pagesize; ++i)
9400 *(data + i) = rand ();
9402 fd = creat ("conftest.mmap", 0600);
9405 if (write (fd, data, pagesize) != pagesize)
9409 /* Next, check that the tail of a page is zero-filled. File must have
9410 non-zero length, otherwise we risk SIGBUS for entire page. */
9411 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9415 if (write (fd2, cdata2, 1) != 1)
9417 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9418 if (data2 == MAP_FAILED)
9420 for (i = 0; i < pagesize; ++i)
9424 if (munmap (data2, pagesize))
9427 /* Next, try to mmap the file at a fixed address which already has
9428 something else allocated at it. If we can, also make sure that
9429 we see the same garbage. */
9430 fd = open ("conftest.mmap", O_RDWR);
9433 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9434 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9436 for (i = 0; i < pagesize; ++i)
9437 if (*(data + i) != *(data2 + i))
9440 /* Finally, make sure that changes to the mapped area do not
9441 percolate back to the file as seen by read(). (This is a bug on
9442 some variants of i386 svr4.0.) */
9443 for (i = 0; i < pagesize; ++i)
9444 *(data2 + i) = *(data2 + i) + 1;
9445 data3 = (char *) malloc (pagesize);
9448 if (read (fd, data3, pagesize) != pagesize)
9450 for (i = 0; i < pagesize; ++i)
9451 if (*(data + i) != *(data3 + i))
9457 if ac_fn_c_try_run
"$LINENO"; then :
9458 ac_cv_func_mmap_fixed_mapped
=yes
9460 ac_cv_func_mmap_fixed_mapped
=no
9462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9468 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9469 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9471 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9474 rm -f conftest.mmap conftest.txt
9476 if test $use_mmap_for_buffers = yes; then
9478 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9483 LIBS
="$LIBS_SYSTEM $LIBS"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9486 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9487 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9488 $as_echo_n "(cached) " >&6
9490 ac_check_lib_save_LIBS
=$LIBS
9492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9495 /* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
9505 return dnet_ntoa ();
9510 if ac_fn_c_try_link
"$LINENO"; then :
9511 ac_cv_lib_dnet_dnet_ntoa
=yes
9513 ac_cv_lib_dnet_dnet_ntoa
=no
9515 rm -f core conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9517 LIBS
=$ac_check_lib_save_LIBS
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9520 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9521 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9522 cat >>confdefs.h
<<_ACEOF
9523 #define HAVE_LIBDNET 1
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9532 $as_echo_n "checking for main in -lXbsd... " >&6; }
9533 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9534 $as_echo_n "(cached) " >&6
9536 ac_check_lib_save_LIBS
=$LIBS
9538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9550 if ac_fn_c_try_link
"$LINENO"; then :
9551 ac_cv_lib_Xbsd_main
=yes
9553 ac_cv_lib_Xbsd_main
=no
9555 rm -f core conftest.err conftest.
$ac_objext \
9556 conftest
$ac_exeext conftest.
$ac_ext
9557 LIBS
=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9560 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9561 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9562 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9567 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9568 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9569 $as_echo_n "(cached) " >&6
9571 ac_check_lib_save_LIBS
=$LIBS
9572 LIBS
="-lpthreads $LIBS"
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9591 if ac_fn_c_try_link
"$LINENO"; then :
9592 ac_cv_lib_pthreads_cma_open
=yes
9594 ac_cv_lib_pthreads_cma_open
=no
9596 rm -f core conftest.err conftest.
$ac_objext \
9597 conftest
$ac_exeext conftest.
$ac_ext
9598 LIBS
=$ac_check_lib_save_LIBS
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9601 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9602 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9603 cat >>confdefs.h
<<_ACEOF
9604 #define HAVE_LIBPTHREADS 1
9607 LIBS
="-lpthreads $LIBS"
9612 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9613 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9614 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9615 ## added to LIBS in configure would never contain the pthreads part,
9616 ## but the value used in Makefiles might. FIXME?
9618 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9619 ## be harmless on older versions of X where it happens to exist.
9620 test "$opsys" = "aix4-2" && \
9621 test $ac_cv_lib_pthreads_cma_open = yes && \
9622 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9628 $as_echo_n "checking for -bbigtoc option... " >&6; }
9629 if ${gdb_cv_bigtoc+:} false
; then :
9630 $as_echo_n "(cached) " >&6
9634 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9635 *) gdb_cv_bigtoc
=-bbigtoc ;;
9638 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9650 if ac_fn_c_try_link
"$LINENO"; then :
9655 rm -f core conftest.err conftest.
$ac_objext \
9656 conftest
$ac_exeext conftest.
$ac_ext
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9660 $as_echo "$gdb_cv_bigtoc" >&6; }
9664 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9665 # used for the tests that follow. We set them back to REAL_CFLAGS and
9666 # REAL_CPPFLAGS later on.
9668 REAL_CFLAGS
="$CFLAGS"
9669 REAL_CPPFLAGS
="$CPPFLAGS"
9671 if test "${HAVE_X11}" = "yes"; then
9672 DEFS
="$C_SWITCH_X_SITE $DEFS"
9673 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9675 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9676 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9678 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9679 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9680 # but it's more convenient here to set LD_RUN_PATH
9681 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9682 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9683 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9687 if test "${opsys}" = "gnu-linux"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9689 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9696 XOpenDisplay ("foo");
9701 if ac_fn_c_try_link
"$LINENO"; then :
9702 xlinux_first_failure
=no
9704 xlinux_first_failure
=yes
9706 rm -f core conftest.err conftest.
$ac_objext \
9707 conftest
$ac_exeext conftest.
$ac_ext
9708 if test "${xlinux_first_failure}" = "yes"; then
9709 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9710 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9711 OLD_CPPFLAGS
="$CPPFLAGS"
9713 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9714 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9715 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9716 LIBS
="$LIBS -b i486-linuxaout"
9717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9723 XOpenDisplay ("foo");
9728 if ac_fn_c_try_link
"$LINENO"; then :
9729 xlinux_second_failure
=no
9731 xlinux_second_failure
=yes
9733 rm -f core conftest.err conftest.
$ac_objext \
9734 conftest
$ac_exeext conftest.
$ac_ext
9735 if test "${xlinux_second_failure}" = "yes"; then
9736 # If we get the same failure with -b, there is no use adding -b.
9737 # So take it out. This plays safe.
9738 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9739 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9740 CPPFLAGS
="$OLD_CPPFLAGS"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9746 $as_echo "yes" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9754 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9755 # header files included from there.
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9757 $as_echo_n "checking for Xkb... " >&6; }
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <X11/Xlib.h>
9761 #include <X11/XKBlib.h>
9765 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9770 if ac_fn_c_try_link
"$LINENO"; then :
9775 rm -f core conftest.err conftest.
$ac_objext \
9776 conftest
$ac_exeext conftest.
$ac_ext
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9778 $as_echo "$emacs_xkb" >&6; }
9779 if test $emacs_xkb = yes; then
9781 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9785 for ac_func
in XrmSetDatabase XScreenResourceString \
9786 XScreenNumberOfScreen XSetWMProtocols
9788 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9790 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9791 cat >>confdefs.h
<<_ACEOF
9792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9800 if test "${window_system}" = "x11"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9802 $as_echo_n "checking X11 version 6... " >&6; }
9803 if ${emacs_cv_x11_version_6+:} false
; then :
9804 $as_echo_n "(cached) " >&6
9806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808 #include <X11/Xlib.h>
9812 #if XlibSpecificationRelease < 6
9820 if ac_fn_c_try_link
"$LINENO"; then :
9821 emacs_cv_x11_version_6
=yes
9823 emacs_cv_x11_version_6
=no
9825 rm -f core conftest.err conftest.
$ac_objext \
9826 conftest
$ac_exeext conftest.
$ac_ext
9829 if test $emacs_cv_x11_version_6 = yes; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9831 $as_echo "6 or newer" >&6; }
9833 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9836 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9838 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9843 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9849 $as_echo "before 6" >&6; }
9854 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9856 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9857 if test "${with_rsvg}" != "no"; then
9858 RSVG_REQUIRED
=2.11.0
9859 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9864 # Extract the first word of "pkg-config", so it can be a program name with args.
9865 set dummy pkg-config
; ac_word
=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9869 $as_echo_n "(cached) " >&6
9873 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir
=.
9881 for ac_exec_ext
in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9895 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9896 if test -n "$PKG_CONFIG"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9898 $as_echo "$PKG_CONFIG" >&6; }
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9906 if test "$PKG_CONFIG" = "no" ; then
9909 PKG_CONFIG_MIN_VERSION
=0.9.0
9910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9912 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9914 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916 $as_echo "yes" >&6; }
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9920 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9921 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9923 $as_echo "$RSVG_CFLAGS" >&6; }
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9926 $as_echo_n "checking RSVG_LIBS... " >&6; }
9927 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9929 $as_echo "$RSVG_LIBS" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9935 ## If we have a custom action on failure, don't print errors, but
9936 ## do set a variable so people can do so.
9937 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9949 if test $succeeded = yes; then
9958 if test $HAVE_RSVG = yes; then
9960 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9962 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9963 LIBS
="$RSVG_LIBS $LIBS"
9969 if test "${HAVE_X11}" = "yes"; then
9970 if test "${with_imagemagick}" != "no"; then
9971 IMAGEMAGICK_MODULE
="Wand"
9975 # Extract the first word of "pkg-config", so it can be a program name with args.
9976 set dummy pkg-config
; ac_word
=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9980 $as_echo_n "(cached) " >&6
9984 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9991 test -z "$as_dir" && as_dir
=.
9992 for ac_exec_ext
in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10006 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10007 if test -n "$PKG_CONFIG"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10009 $as_echo "$PKG_CONFIG" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10017 if test "$PKG_CONFIG" = "no" ; then
10020 PKG_CONFIG_MIN_VERSION
=0.9.0
10021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10023 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10025 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027 $as_echo "yes" >&6; }
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10031 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10032 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10034 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10037 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10038 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10040 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 IMAGEMAGICK_CFLAGS
=""
10045 IMAGEMAGICK_LIBS
=""
10046 ## If we have a custom action on failure, don't print errors, but
10047 ## do set a variable so people can do so.
10048 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10060 if test $succeeded = yes; then
10061 HAVE_IMAGEMAGICK
=yes
10069 if test $HAVE_IMAGEMAGICK = yes; then
10071 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10073 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10074 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10075 for ac_func
in MagickExportImagePixels
10077 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10078 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10079 cat >>confdefs.h
<<_ACEOF
10080 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10092 if test "${with_gtk3}" = "yes"; then
10095 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10100 # Extract the first word of "pkg-config", so it can be a program name with args.
10101 set dummy pkg-config
; ac_word
=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10105 $as_echo_n "(cached) " >&6
10107 case $PKG_CONFIG in
10109 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10113 for as_dir
in $PATH
10116 test -z "$as_dir" && as_dir
=.
10117 for ac_exec_ext
in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10131 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10132 if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134 $as_echo "$PKG_CONFIG" >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$PKG_CONFIG" = "no" ; then
10145 PKG_CONFIG_MIN_VERSION
=0.9.0
10146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10148 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10150 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10156 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10157 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10159 $as_echo "$GTK_CFLAGS" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10162 $as_echo_n "checking GTK_LIBS... " >&6; }
10163 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10165 $as_echo "$GTK_LIBS" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10171 ## If we have a custom action on failure, don't print errors, but
10172 ## do set a variable so people can do so.
10173 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10185 if test $succeeded = yes; then
10191 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10192 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10196 if test "$pkg_check_gtk" != "yes"; then
10198 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10201 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10206 # Extract the first word of "pkg-config", so it can be a program name with args.
10207 set dummy pkg-config
; ac_word
=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10211 $as_echo_n "(cached) " >&6
10213 case $PKG_CONFIG in
10215 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10219 for as_dir
in $PATH
10222 test -z "$as_dir" && as_dir
=.
10223 for ac_exec_ext
in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10237 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10238 if test -n "$PKG_CONFIG"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10240 $as_echo "$PKG_CONFIG" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10248 if test "$PKG_CONFIG" = "no" ; then
10251 PKG_CONFIG_MIN_VERSION
=0.9.0
10252 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10254 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10256 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10258 $as_echo "yes" >&6; }
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10262 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10263 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10265 $as_echo "$GTK_CFLAGS" >&6; }
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10268 $as_echo_n "checking GTK_LIBS... " >&6; }
10269 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10271 $as_echo "$GTK_LIBS" >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10277 ## If we have a custom action on failure, don't print errors, but
10278 ## do set a variable so people can do so.
10279 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10291 if test $succeeded = yes; then
10297 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10298 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10304 if test x
"$pkg_check_gtk" = xyes
; then
10308 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10309 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10310 LIBS
="$GTK_LIBS $LIBS"
10312 for ac_func
in gtk_main
10314 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10315 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10316 cat >>confdefs.h
<<_ACEOF
10317 #define HAVE_GTK_MAIN 1
10323 if test "${GTK_COMPILES}" != "yes"; then
10324 if test "$USE_X_TOOLKIT" != "maybe"; then
10325 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10330 $as_echo "#define USE_GTK 1" >>confdefs.h
10334 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10338 closing open displays. This is no problem if you just use
10339 one display, but if you use more than one and close one of them
10340 Emacs may crash." >&5
10341 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10342 closing open displays. This is no problem if you just use
10343 one display, but if you use more than one and close one of them
10344 Emacs may crash." >&2;}
10353 if test "${HAVE_GTK}" = "yes"; then
10355 if test "$with_toolkit_scroll_bars" != no
; then
10356 with_toolkit_scroll_bars
=yes
10359 HAVE_GTK_FILE_SELECTION
=no
10360 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10361 #include <gtk/gtk.h>
10363 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10364 HAVE_GTK_FILE_SELECTION
=yes
10366 HAVE_GTK_FILE_SELECTION
=no
10369 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10370 for ac_func
in gtk_file_selection_new
10372 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10373 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10374 cat >>confdefs.h
<<_ACEOF
10375 #define HAVE_GTK_FILE_SELECTION_NEW 1
10383 HAVE_GTK_AND_PTHREAD
=no
10384 for ac_header
in pthread.h
10386 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10387 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10388 cat >>confdefs.h
<<_ACEOF
10389 #define HAVE_PTHREAD_H 1
10396 if test "$ac_cv_header_pthread_h"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10398 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10399 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10400 $as_echo_n "(cached) " >&6
10402 ac_check_lib_save_LIBS
=$LIBS
10403 LIBS
="-lpthread $LIBS"
10404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 /* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10413 char pthread_self ();
10417 return pthread_self ();
10422 if ac_fn_c_try_link
"$LINENO"; then :
10423 ac_cv_lib_pthread_pthread_self
=yes
10425 ac_cv_lib_pthread_pthread_self
=no
10427 rm -f core conftest.err conftest.
$ac_objext \
10428 conftest
$ac_exeext conftest.
$ac_ext
10429 LIBS
=$ac_check_lib_save_LIBS
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10432 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10433 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10434 HAVE_GTK_AND_PTHREAD
=yes
10438 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10439 case "${canonical}" in
10441 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10444 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10448 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10449 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10450 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10451 gtk_orientable_set_orientation
10453 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10454 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10455 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10456 cat >>confdefs.h
<<_ACEOF
10457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 if test "${with_dbus}" = "yes"; then
10472 # Extract the first word of "pkg-config", so it can be a program name with args.
10473 set dummy pkg-config
; ac_word
=$2
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10477 $as_echo_n "(cached) " >&6
10479 case $PKG_CONFIG in
10481 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10485 for as_dir
in $PATH
10488 test -z "$as_dir" && as_dir
=.
10489 for ac_exec_ext
in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10503 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10504 if test -n "$PKG_CONFIG"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10506 $as_echo "$PKG_CONFIG" >&6; }
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10514 if test "$PKG_CONFIG" = "no" ; then
10517 PKG_CONFIG_MIN_VERSION
=0.9.0
10518 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10520 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10522 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524 $as_echo "yes" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10528 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10529 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10531 $as_echo "$DBUS_CFLAGS" >&6; }
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10534 $as_echo_n "checking DBUS_LIBS... " >&6; }
10535 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10537 $as_echo "$DBUS_LIBS" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10543 ## If we have a custom action on failure, don't print errors, but
10544 ## do set a variable so people can do so.
10545 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10557 if test $succeeded = yes; then
10563 if test "$HAVE_DBUS" = yes; then
10564 LIBS
="$LIBS $DBUS_LIBS"
10566 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10568 for ac_func
in dbus_watch_get_unix_fd
10570 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10571 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10572 cat >>confdefs.h
<<_ACEOF
10573 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10579 DBUS_OBJ
=dbusbind.o
10585 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10589 # Extract the first word of "pkg-config", so it can be a program name with args.
10590 set dummy pkg-config
; ac_word
=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10594 $as_echo_n "(cached) " >&6
10596 case $PKG_CONFIG in
10598 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10602 for as_dir
in $PATH
10605 test -z "$as_dir" && as_dir
=.
10606 for ac_exec_ext
in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10620 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10621 if test -n "$PKG_CONFIG"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10623 $as_echo "$PKG_CONFIG" >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10631 if test "$PKG_CONFIG" = "no" ; then
10634 PKG_CONFIG_MIN_VERSION
=0.9.0
10635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10637 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10639 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10645 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10646 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10648 $as_echo "$GCONF_CFLAGS" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10651 $as_echo_n "checking GCONF_LIBS... " >&6; }
10652 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10654 $as_echo "$GCONF_LIBS" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10660 ## If we have a custom action on failure, don't print errors, but
10661 ## do set a variable so people can do so.
10662 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10674 if test $succeeded = yes; then
10680 if test "$HAVE_GCONF" = yes; then
10682 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10684 for ac_func
in g_type_init
10686 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10687 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10688 cat >>confdefs.h
<<_ACEOF
10689 #define HAVE_G_TYPE_INIT 1
10700 if test "${with_selinux}" = "yes"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10702 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10703 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10704 $as_echo_n "(cached) " >&6
10706 ac_check_lib_save_LIBS
=$LIBS
10707 LIBS
="-lselinux $LIBS"
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10717 char lgetfilecon ();
10721 return lgetfilecon ();
10726 if ac_fn_c_try_link
"$LINENO"; then :
10727 ac_cv_lib_selinux_lgetfilecon
=yes
10729 ac_cv_lib_selinux_lgetfilecon
=no
10731 rm -f core conftest.err conftest.
$ac_objext \
10732 conftest
$ac_exeext conftest.
$ac_ext
10733 LIBS
=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10736 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10737 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10738 HAVE_LIBSELINUX
=yes
10743 if test "$HAVE_LIBSELINUX" = yes; then
10745 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10747 LIBSELINUX_LIBS
=-lselinux
10753 if test "${with_gnutls}" = "yes" ; then
10757 # Extract the first word of "pkg-config", so it can be a program name with args.
10758 set dummy pkg-config
; ac_word
=$2
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760 $as_echo_n "checking for $ac_word... " >&6; }
10761 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10762 $as_echo_n "(cached) " >&6
10764 case $PKG_CONFIG in
10766 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10770 for as_dir
in $PATH
10773 test -z "$as_dir" && as_dir
=.
10774 for ac_exec_ext
in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10788 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10789 if test -n "$PKG_CONFIG"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10791 $as_echo "$PKG_CONFIG" >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10799 if test "$PKG_CONFIG" = "no" ; then
10802 PKG_CONFIG_MIN_VERSION
=0.9.0
10803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10805 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10807 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809 $as_echo "yes" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10813 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10814 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10816 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10819 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10820 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10822 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 LIBGNUTLS_CFLAGS
=""
10828 ## If we have a custom action on failure, don't print errors, but
10829 ## do set a variable so people can do so.
10830 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10842 if test $succeeded = yes; then
10848 if test "${HAVE_GNUTLS}" = "yes"; then
10850 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10859 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10860 if test "$with_xaw3d" != no
; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10862 $as_echo_n "checking for xaw3d... " >&6; }
10863 if ${emacs_cv_xaw3d+:} false
; then :
10864 $as_echo_n "(cached) " >&6
10866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10869 #include <X11/Intrinsic.h>
10870 #include <X11/Xaw3d/Simple.h>
10879 if ac_fn_c_try_link
"$LINENO"; then :
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10881 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10882 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10883 $as_echo_n "(cached) " >&6
10885 ac_check_lib_save_LIBS
=$LIBS
10886 LIBS
="-lXaw3d $LIBS"
10887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10890 /* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10896 char XawScrollbarSetThumb ();
10900 return XawScrollbarSetThumb ();
10905 if ac_fn_c_try_link
"$LINENO"; then :
10906 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10908 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10910 rm -f core conftest.err conftest.
$ac_objext \
10911 conftest
$ac_exeext conftest.
$ac_ext
10912 LIBS
=$ac_check_lib_save_LIBS
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10915 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10916 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
10925 rm -f core conftest.err conftest.
$ac_objext \
10926 conftest
$ac_exeext conftest.
$ac_ext
10932 if test $emacs_cv_xaw3d = yes; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10934 $as_echo "yes; using Lucid toolkit" >&6; }
10935 USE_X_TOOLKIT
=LUCID
10939 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10945 $as_echo_n "checking for libXaw... " >&6; }
10946 if ${emacs_cv_xaw+:} false
; then :
10947 $as_echo_n "(cached) " >&6
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 #include <X11/Intrinsic.h>
10953 #include <X11/Xaw/Simple.h>
10962 if ac_fn_c_try_link
"$LINENO"; then :
10967 rm -f core conftest.err conftest.
$ac_objext \
10968 conftest
$ac_exeext conftest.
$ac_ext
10971 if test $emacs_cv_xaw = yes; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10973 $as_echo "yes; using Lucid toolkit" >&6; }
10974 USE_X_TOOLKIT
=LUCID
10976 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10977 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10980 $as_echo "no; do not use toolkit by default" >&6; }
10986 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10989 if test "${USE_X_TOOLKIT}" != "none"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10991 $as_echo_n "checking X11 toolkit version... " >&6; }
10992 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10993 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997 #include <X11/Intrinsic.h>
11001 #if XtSpecificationRelease < 6
11009 if ac_fn_c_try_link
"$LINENO"; then :
11010 emacs_cv_x11_toolkit_version_6
=yes
11012 emacs_cv_x11_toolkit_version_6
=no
11014 rm -f core conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11018 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11019 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11021 $as_echo "6 or newer" >&6; }
11023 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11025 LIBXTR6
="-lSM -lICE"
11027 ## Use libw.a along with X11R6 Xt.
11028 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11032 $as_echo "before 6" >&6; }
11036 if test x
$HAVE_X11XTR6 = xyes
; then
11037 LIBS
="-lXt -lSM -lICE $LIBS"
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11042 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11043 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
11044 $as_echo_n "(cached) " >&6
11046 ac_check_lib_save_LIBS
=$LIBS
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11057 char XmuConvertStandardSelection ();
11061 return XmuConvertStandardSelection ();
11066 if ac_fn_c_try_link
"$LINENO"; then :
11067 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11069 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11071 rm -f core conftest.err conftest.
$ac_objext \
11072 conftest
$ac_exeext conftest.
$ac_ext
11073 LIBS
=$ac_check_lib_save_LIBS
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11076 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11077 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
11078 cat >>confdefs.h
<<_ACEOF
11079 #define HAVE_LIBXMU 1
11086 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11092 ## These systems don't supply Xmu.
11094 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11099 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11100 if test "${HAVE_X11}" = "yes"; then
11101 if test "${USE_X_TOOLKIT}" != "none"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11103 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11104 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
11105 $as_echo_n "(cached) " >&6
11107 ac_check_lib_save_LIBS
=$LIBS
11108 LIBS
="-lXext $LIBS"
11109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11118 char XShapeQueryExtension ();
11122 return XShapeQueryExtension ();
11127 if ac_fn_c_try_link
"$LINENO"; then :
11128 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11130 ac_cv_lib_Xext_XShapeQueryExtension
=no
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 LIBS
=$ac_check_lib_save_LIBS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11137 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11138 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
11139 cat >>confdefs.h
<<_ACEOF
11140 #define HAVE_LIBXEXT 1
11143 LIBS
="-lXext $LIBS"
11151 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11153 $as_echo_n "checking for Motif version 2.1... " >&6; }
11154 if ${emacs_cv_motif_version_2_1+:} false
; then :
11155 $as_echo_n "(cached) " >&6
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11163 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11166 Motif version prior to 2.1.
11172 if ac_fn_c_try_compile
"$LINENO"; then :
11173 emacs_cv_motif_version_2_1
=yes
11175 emacs_cv_motif_version_2_1
=no
11177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11180 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11181 if test $emacs_cv_motif_version_2_1 = yes; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11183 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11184 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_check_lib_save_LIBS
=$LIBS
11189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11198 char XpCreateContext ();
11202 return XpCreateContext ();
11207 if ac_fn_c_try_link
"$LINENO"; then :
11208 ac_cv_lib_Xp_XpCreateContext
=yes
11210 ac_cv_lib_Xp_XpCreateContext
=no
11212 rm -f core conftest.err conftest.
$ac_objext \
11213 conftest
$ac_exeext conftest.
$ac_ext
11214 LIBS
=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11217 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11218 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11224 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11225 if ${emacs_cv_lesstif+:} false
; then :
11226 $as_echo_n "(cached) " >&6
11228 # We put this in CFLAGS temporarily to precede other -I options
11229 # that might be in CFLAGS temporarily.
11230 # We put this in CPPFLAGS where it precedes the other -I options.
11231 OLD_CPPFLAGS
=$CPPFLAGS
11233 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11234 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11246 if ac_fn_c_try_compile
"$LINENO"; then :
11247 emacs_cv_lesstif
=yes
11249 emacs_cv_lesstif
=no
11251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11254 $as_echo "$emacs_cv_lesstif" >&6; }
11255 if test $emacs_cv_lesstif = yes; then
11256 # Make sure this -I option remains in CPPFLAGS after it is set
11257 # back to REAL_CPPFLAGS.
11258 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11259 # have those other -I options anyway. Ultimately, having this
11260 # directory ultimately in CPPFLAGS will be enough.
11261 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11262 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11265 CPPFLAGS
=$OLD_CPPFLAGS
11271 USE_TOOLKIT_SCROLL_BARS
=no
11272 if test "${with_toolkit_scroll_bars}" != "no"; then
11273 if test "${USE_X_TOOLKIT}" != "none"; then
11274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11275 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11278 USE_TOOLKIT_SCROLL_BARS
=yes
11279 elif test "${HAVE_XAW3D}" = "yes"; then
11280 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11282 USE_TOOLKIT_SCROLL_BARS
=yes
11284 elif test "${HAVE_GTK}" = "yes"; then
11285 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11287 USE_TOOLKIT_SCROLL_BARS
=yes
11288 elif test "${HAVE_NS}" = "yes"; then
11289 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11291 USE_TOOLKIT_SCROLL_BARS
=yes
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 #include <X11/Xlib.h>
11299 #include <X11/Xresource.h>
11308 if ac_fn_c_try_compile
"$LINENO"; then :
11311 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 if test "${with_xim}" != "no"; then
11321 $as_echo "#define USE_XIM 1" >>confdefs.h
11326 if test "${HAVE_XIM}" != "no"; then
11327 late_CFLAGS
=$CFLAGS
11328 if test "$GCC" = yes; then
11329 CFLAGS
="$CFLAGS --pedantic-errors"
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 #include <X11/Xlib.h>
11335 #include <X11/Xresource.h>
11344 XPointer *client_data;
11346 /* If we're not using GCC, it's probably not XFree86, and this is
11347 probably right, but we can't use something like --pedantic-errors. */
11348 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11349 char*, XIMProc, XPointer*);
11351 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11357 if ac_fn_c_try_compile
"$LINENO"; then :
11358 emacs_cv_arg6_star
=yes
11360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11361 if test "$emacs_cv_arg6_star" = yes; then
11362 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11365 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11368 CFLAGS
=$late_CFLAGS
11371 ### Start of font-backend (under any platform) section.
11372 # (nothing here yet -- this is a placeholder)
11373 ### End of font-backend (under any platform) section.
11375 ### Start of font-backend (under X11) section.
11376 if test "${HAVE_X11}" = "yes"; then
11380 # Extract the first word of "pkg-config", so it can be a program name with args.
11381 set dummy pkg-config
; ac_word
=$2
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 $as_echo_n "checking for $ac_word... " >&6; }
11384 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11385 $as_echo_n "(cached) " >&6
11387 case $PKG_CONFIG in
11389 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11393 for as_dir
in $PATH
11396 test -z "$as_dir" && as_dir
=.
11397 for ac_exec_ext
in '' $ac_executable_extensions; do
11398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11411 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11412 if test -n "$PKG_CONFIG"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11414 $as_echo "$PKG_CONFIG" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11422 if test "$PKG_CONFIG" = "no" ; then
11425 PKG_CONFIG_MIN_VERSION
=0.9.0
11426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11428 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11430 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432 $as_echo "yes" >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11436 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11437 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11439 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11442 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11443 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11445 $as_echo "$FONTCONFIG_LIBS" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449 FONTCONFIG_CFLAGS
=""
11451 ## If we have a custom action on failure, don't print errors, but
11452 ## do set a variable so people can do so.
11453 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11460 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11461 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11465 if test $succeeded = yes; then
11472 ## Use -lXft if available, unless `--with-xft=no'.
11474 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11477 if test "x${with_xft}" != "xno"; then
11482 # Extract the first word of "pkg-config", so it can be a program name with args.
11483 set dummy pkg-config
; ac_word
=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11487 $as_echo_n "(cached) " >&6
11489 case $PKG_CONFIG in
11491 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11495 for as_dir
in $PATH
11498 test -z "$as_dir" && as_dir
=.
11499 for ac_exec_ext
in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11513 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11514 if test -n "$PKG_CONFIG"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11516 $as_echo "$PKG_CONFIG" >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11524 if test "$PKG_CONFIG" = "no" ; then
11527 PKG_CONFIG_MIN_VERSION
=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11530 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11532 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11538 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11539 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11541 $as_echo "$XFT_CFLAGS" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11544 $as_echo_n "checking XFT_LIBS... " >&6; }
11545 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11547 $as_echo "$XFT_LIBS" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so.
11555 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11567 if test $succeeded = yes; then
11573 ## Because xftfont.c uses XRenderQueryExtension, we also
11574 ## need to link to -lXrender.
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11577 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11578 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_check_lib_save_LIBS
=$LIBS
11582 LIBS
="-lXrender $LIBS"
11583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11592 char XRenderQueryExtension ();
11596 return XRenderQueryExtension ();
11601 if ac_fn_c_try_link
"$LINENO"; then :
11602 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11604 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11606 rm -f core conftest.err conftest.
$ac_objext \
11607 conftest
$ac_exeext conftest.
$ac_ext
11608 LIBS
=$ac_check_lib_save_LIBS
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11611 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11612 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11616 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11617 OLD_CPPFLAGS
="$CPPFLAGS"
11618 OLD_CFLAGS
="$CFLAGS"
11620 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11621 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11622 XFT_LIBS
="-lXrender $XFT_LIBS"
11623 LIBS
="$XFT_LIBS $LIBS"
11624 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11625 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11627 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11628 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11629 $as_echo_n "(cached) " >&6
11631 ac_check_lib_save_LIBS
=$LIBS
11632 LIBS
="-lXft $XFT_LIBS $LIBS"
11633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11642 char XftFontOpen ();
11646 return XftFontOpen ();
11651 if ac_fn_c_try_link
"$LINENO"; then :
11652 ac_cv_lib_Xft_XftFontOpen
=yes
11654 ac_cv_lib_Xft_XftFontOpen
=no
11656 rm -f core conftest.err conftest.
$ac_objext \
11657 conftest
$ac_exeext conftest.
$ac_ext
11658 LIBS
=$ac_check_lib_save_LIBS
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11661 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11662 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11670 if test "${HAVE_XFT}" = "yes"; then
11672 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11675 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11677 CPPFLAGS
="$OLD_CPPFLAGS"
11678 CFLAGS
="$OLD_CFLAGS"
11680 fi # "${HAVE_XFT}" = "yes"
11681 fi # "$HAVE_XFT" != no
11682 fi # "x${with_xft}" != "xno"
11684 if test "$HAVE_XFT" != "yes"; then
11688 ## We used to allow building with FreeType and without Xft.
11689 ## However, the ftx font backend driver is not in good shape.
11690 HAVE_FREETYPE
=$HAVE_XFT
11693 if test "${HAVE_FREETYPE}" = "yes"; then
11695 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11697 if test "${with_libotf}" != "no"; then
11701 # Extract the first word of "pkg-config", so it can be a program name with args.
11702 set dummy pkg-config
; ac_word
=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11706 $as_echo_n "(cached) " >&6
11708 case $PKG_CONFIG in
11710 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11714 for as_dir
in $PATH
11717 test -z "$as_dir" && as_dir
=.
11718 for ac_exec_ext
in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11732 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11733 if test -n "$PKG_CONFIG"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11735 $as_echo "$PKG_CONFIG" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11743 if test "$PKG_CONFIG" = "no" ; then
11746 PKG_CONFIG_MIN_VERSION
=0.9.0
11747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11749 $as_echo_n "checking for libotf... " >&6; }
11751 if $PKG_CONFIG --exists "libotf" 2>&5; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11757 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11758 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11760 $as_echo "$LIBOTF_CFLAGS" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11763 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11764 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11766 $as_echo "$LIBOTF_LIBS" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11772 ## If we have a custom action on failure, don't print errors, but
11773 ## do set a variable so people can do so.
11774 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11786 if test $succeeded = yes; then
11792 if test "$HAVE_LIBOTF" = "yes"; then
11794 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11797 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11798 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11799 $as_echo_n "(cached) " >&6
11801 ac_check_lib_save_LIBS
=$LIBS
11803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11806 /* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11812 char OTF_get_variation_glyphs ();
11816 return OTF_get_variation_glyphs ();
11821 if ac_fn_c_try_link
"$LINENO"; then :
11822 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11824 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11826 rm -f core conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11828 LIBS
=$ac_check_lib_save_LIBS
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11831 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11832 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11833 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11835 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11838 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11840 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11848 if test "${HAVE_LIBOTF}" = yes; then
11849 if test "${with_m17n_flt}" != "no"; then
11853 # Extract the first word of "pkg-config", so it can be a program name with args.
11854 set dummy pkg-config
; ac_word
=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 case $PKG_CONFIG in
11862 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11866 for as_dir
in $PATH
11869 test -z "$as_dir" && as_dir
=.
11870 for ac_exec_ext
in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11884 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11885 if test -n "$PKG_CONFIG"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11887 $as_echo "$PKG_CONFIG" >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11895 if test "$PKG_CONFIG" = "no" ; then
11898 PKG_CONFIG_MIN_VERSION
=0.9.0
11899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11901 $as_echo_n "checking for m17n-flt... " >&6; }
11903 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11909 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11910 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11912 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11915 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11916 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11918 $as_echo "$M17N_FLT_LIBS" >&6; }
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11924 ## If we have a custom action on failure, don't print errors, but
11925 ## do set a variable so people can do so.
11926 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11938 if test $succeeded = yes; then
11944 if test "$HAVE_M17N_FLT" = "yes"; then
11946 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11958 ### End of font-backend (under X11) section.
11969 ### Use -lXpm if available, unless `--with-xpm=no'.
11972 if test "${HAVE_X11}" = "yes"; then
11973 if test "${with_xpm}" != "no"; then
11974 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11977 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11978 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11979 $as_echo_n "(cached) " >&6
11981 ac_check_lib_save_LIBS
=$LIBS
11982 LIBS
="-lXpm -lX11 $LIBS"
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11992 char XpmReadFileToPixmap ();
11996 return XpmReadFileToPixmap ();
12001 if ac_fn_c_try_link
"$LINENO"; then :
12002 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12004 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12006 rm -f core conftest.err conftest.
$ac_objext \
12007 conftest
$ac_exeext conftest.
$ac_ext
12008 LIBS
=$ac_check_lib_save_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12011 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12012 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
12019 if test "${HAVE_XPM}" = "yes"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12021 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 #include "X11/xpm.h"
12025 #ifndef XpmReturnAllocPixels
12026 no_return_alloc_pixels
12030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12039 if test "${HAVE_XPM}" = "yes"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041 $as_echo "yes" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12049 if test "${HAVE_XPM}" = "yes"; then
12051 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12058 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12061 if test "${HAVE_X11}" = "yes"; then
12062 if test "${with_jpeg}" != "no"; then
12063 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12064 if test "x$ac_cv_header_jerror_h" = xyes
; then :
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12066 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12067 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
12068 $as_echo_n "(cached) " >&6
12070 ac_check_lib_save_LIBS
=$LIBS
12071 LIBS
="-ljpeg $LIBS"
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12081 char jpeg_destroy_compress ();
12085 return jpeg_destroy_compress ();
12090 if ac_fn_c_try_link
"$LINENO"; then :
12091 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12093 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12095 rm -f core conftest.err conftest.
$ac_objext \
12096 conftest
$ac_exeext conftest.
$ac_ext
12097 LIBS
=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12100 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12101 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
12110 if test "${HAVE_JPEG}" = "yes"; then
12111 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 #include <jpeglib.h>
12116 version=JPEG_LIB_VERSION
12119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12120 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12121 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12125 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12131 if test "${HAVE_JPEG}" = "yes"; then
12137 ### Use -lpng if available, unless `--with-png=no'.
12140 if test "${HAVE_X11}" = "yes"; then
12141 if test "${with_png}" != "no"; then
12142 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12143 # in /usr/include/libpng.
12144 for ac_header
in png.h libpng
/png.h
12146 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12148 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12149 cat >>confdefs.h
<<_ACEOF
12150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12157 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12159 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12160 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
12161 $as_echo_n "(cached) " >&6
12163 ac_check_lib_save_LIBS
=$LIBS
12164 LIBS
="-lpng -lz -lm $LIBS"
12165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12174 char png_get_channels ();
12178 return png_get_channels ();
12183 if ac_fn_c_try_link
"$LINENO"; then :
12184 ac_cv_lib_png_png_get_channels
=yes
12186 ac_cv_lib_png_png_get_channels
=no
12188 rm -f core conftest.err conftest.
$ac_objext \
12189 conftest
$ac_exeext conftest.
$ac_ext
12190 LIBS
=$ac_check_lib_save_LIBS
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12193 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12194 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
12201 if test "${HAVE_PNG}" = "yes"; then
12203 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12205 LIBPNG
="-lpng -lz -lm"
12210 ### Use -ltiff if available, unless `--with-tiff=no'.
12213 if test "${HAVE_X11}" = "yes"; then
12214 if test "${with_tiff}" != "no"; then
12215 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12216 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12218 # At least one tiff package requires the jpeg library.
12219 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12221 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12222 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12223 $as_echo_n "(cached) " >&6
12225 ac_check_lib_save_LIBS
=$LIBS
12226 LIBS
="-ltiff $tifflibs $LIBS"
12227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12236 char TIFFGetVersion ();
12240 return TIFFGetVersion ();
12245 if ac_fn_c_try_link
"$LINENO"; then :
12246 ac_cv_lib_tiff_TIFFGetVersion
=yes
12248 ac_cv_lib_tiff_TIFFGetVersion
=no
12250 rm -f core conftest.err conftest.
$ac_objext \
12251 conftest
$ac_exeext conftest.
$ac_ext
12252 LIBS
=$ac_check_lib_save_LIBS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12255 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12256 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12265 if test "${HAVE_TIFF}" = "yes"; then
12267 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12274 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12277 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12278 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12279 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12280 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12281 # Earlier versions can crash Emacs.
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12283 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12284 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12285 $as_echo_n "(cached) " >&6
12287 ac_check_lib_save_LIBS
=$LIBS
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12298 char EGifPutExtensionLast ();
12302 return EGifPutExtensionLast ();
12307 if ac_fn_c_try_link
"$LINENO"; then :
12308 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12310 ac_cv_lib_gif_EGifPutExtensionLast
=no
12312 rm -f core conftest.err conftest.
$ac_objext \
12313 conftest
$ac_exeext conftest.
$ac_ext
12314 LIBS
=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12317 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12318 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12328 if test "$HAVE_GIF" = yes; then
12330 elif test "$HAVE_GIF" = maybe
; then
12331 # If gif_lib.h but no libgif, try libungif.
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12333 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12334 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12335 $as_echo_n "(cached) " >&6
12337 ac_check_lib_save_LIBS
=$LIBS
12338 LIBS
="-lungif $LIBS"
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12348 char EGifPutExtensionLast ();
12352 return EGifPutExtensionLast ();
12357 if ac_fn_c_try_link
"$LINENO"; then :
12358 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12360 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12362 rm -f core conftest.err conftest.
$ac_objext \
12363 conftest
$ac_exeext conftest.
$ac_ext
12364 LIBS
=$ac_check_lib_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12367 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12368 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12374 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12377 if test "${HAVE_GIF}" = "yes"; then
12379 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12385 if test "${HAVE_X11}" = "yes"; then
12388 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12389 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12390 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12391 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12392 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12393 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12394 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12395 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12396 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12397 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12399 if test "X${MISSING}" != X
; then
12400 as_fn_error $?
"The following required libraries were not found:
12402 Maybe some development libraries/packages are missing?
12403 If you don't want to link with them give
12405 as options to configure" "$LINENO" 5
12409 ### Use -lgpm if available, unless `--with-gpm=no'.
12413 if test "${with_gpm}" != "no"; then
12414 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12415 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12417 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12418 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12419 $as_echo_n "(cached) " >&6
12421 ac_check_lib_save_LIBS
=$LIBS
12423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12436 return Gpm_Open ();
12441 if ac_fn_c_try_link
"$LINENO"; then :
12442 ac_cv_lib_gpm_Gpm_Open
=yes
12444 ac_cv_lib_gpm_Gpm_Open
=no
12446 rm -f core conftest.err conftest.
$ac_objext \
12447 conftest
$ac_exeext conftest.
$ac_ext
12448 LIBS
=$ac_check_lib_save_LIBS
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12451 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12452 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12460 if test "${HAVE_GPM}" = "yes"; then
12462 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12465 ## May be reset below.
12466 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12471 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12472 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12474 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12481 ### Use NeXTstep API to implement GUI.
12482 if test "${HAVE_NS}" = "yes"; then
12484 $as_echo "#define HAVE_NS 1" >>confdefs.h
12486 if test "${NS_IMPL_COCOA}" = "yes"; then
12488 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12492 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12494 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12496 # See also .m.o rule in Makefile.in */
12497 # FIXME: are all these flags really needed? Document here why. */
12498 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12499 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12501 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12503 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12506 # We also have mouse menus.
12512 ### Use session management (-lSM -lICE) if available
12515 if test "${HAVE_X11}" = "yes"; then
12516 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12517 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12519 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12520 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12521 $as_echo_n "(cached) " >&6
12523 ac_check_lib_save_LIBS
=$LIBS
12524 LIBS
="-lSM -lICE $LIBS"
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12534 char SmcOpenConnection ();
12538 return SmcOpenConnection ();
12543 if ac_fn_c_try_link
"$LINENO"; then :
12544 ac_cv_lib_SM_SmcOpenConnection
=yes
12546 ac_cv_lib_SM_SmcOpenConnection
=no
12548 rm -f core conftest.err conftest.
$ac_objext \
12549 conftest
$ac_exeext conftest.
$ac_ext
12550 LIBS
=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12553 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12554 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12562 if test "${HAVE_X_SM}" = "yes"; then
12564 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12566 LIBXSM
="-lSM -lICE"
12569 *) LIBS
="$LIBXSM $LIBS" ;;
12575 ### Use libxml (-lxml2) if available
12576 if test "${with_xml2}" != "no"; then
12577 ### I'm not sure what the version number should be, so I just guessed.
12581 # Extract the first word of "pkg-config", so it can be a program name with args.
12582 set dummy pkg-config
; ac_word
=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12586 $as_echo_n "(cached) " >&6
12588 case $PKG_CONFIG in
12590 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12594 for as_dir
in $PATH
12597 test -z "$as_dir" && as_dir
=.
12598 for ac_exec_ext
in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12612 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12613 if test -n "$PKG_CONFIG"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12615 $as_echo "$PKG_CONFIG" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12623 if test "$PKG_CONFIG" = "no" ; then
12626 PKG_CONFIG_MIN_VERSION
=0.9.0
12627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12629 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12631 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12637 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12638 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12640 $as_echo "$LIBXML2_CFLAGS" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12643 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12644 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12646 $as_echo "$LIBXML2_LIBS" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12652 ## If we have a custom action on failure, don't print errors, but
12653 ## do set a variable so people can do so.
12654 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12666 if test $succeeded = yes; then
12672 if test "${HAVE_LIBXML2}" = "yes"; then
12673 LIBS
="$LIBXML2_LIBS $LIBS"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12675 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12676 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_check_lib_save_LIBS
=$LIBS
12680 LIBS
="-lxml2 $LIBS"
12681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char htmlReadMemory ();
12694 return htmlReadMemory ();
12699 if ac_fn_c_try_link
"$LINENO"; then :
12700 ac_cv_lib_xml2_htmlReadMemory
=yes
12702 ac_cv_lib_xml2_htmlReadMemory
=no
12704 rm -f core conftest.err conftest.
$ac_objext \
12705 conftest
$ac_exeext conftest.
$ac_ext
12706 LIBS
=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12709 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12710 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12716 if test "${HAVE_LIBXML2}" = "yes"; then
12718 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12729 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12731 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12732 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12733 $as_echo_n "(cached) " >&6
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12746 if ac_fn_c_try_link
"$LINENO"; then :
12747 emacs_cv_netdb_declares_h_errno
=yes
12749 emacs_cv_netdb_declares_h_errno
=no
12751 rm -f core conftest.err conftest.
$ac_objext \
12752 conftest
$ac_exeext conftest.
$ac_ext
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12755 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12756 if test $emacs_cv_netdb_declares_h_errno = yes; then
12758 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12762 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12763 if test "x$ac_cv_type_size_t" = xyes
; then :
12767 cat >>confdefs.h
<<_ACEOF
12768 #define size_t unsigned int
12773 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12774 # for constant arguments. Useless!
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12776 $as_echo_n "checking for working alloca.h... " >&6; }
12777 if ${ac_cv_working_alloca_h+:} false
; then :
12778 $as_echo_n "(cached) " >&6
12780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #include <alloca.h>
12786 char *p = (char *) alloca (2 * sizeof (int));
12792 if ac_fn_c_try_link
"$LINENO"; then :
12793 ac_cv_working_alloca_h
=yes
12795 ac_cv_working_alloca_h
=no
12797 rm -f core conftest.err conftest.
$ac_objext \
12798 conftest
$ac_exeext conftest.
$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12801 $as_echo "$ac_cv_working_alloca_h" >&6; }
12802 if test $ac_cv_working_alloca_h = yes; then
12804 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12809 $as_echo_n "checking for alloca... " >&6; }
12810 if ${ac_cv_func_alloca_works+:} false
; then :
12811 $as_echo_n "(cached) " >&6
12813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12816 # define alloca __builtin_alloca
12819 # include <malloc.h>
12820 # define alloca _alloca
12822 # ifdef HAVE_ALLOCA_H
12823 # include <alloca.h>
12828 # ifndef alloca /* predefined by HP cc +Olibcalls */
12829 void *alloca (size_t);
12839 char *p = (char *) alloca (1);
12845 if ac_fn_c_try_link
"$LINENO"; then :
12846 ac_cv_func_alloca_works
=yes
12848 ac_cv_func_alloca_works
=no
12850 rm -f core conftest.err conftest.
$ac_objext \
12851 conftest
$ac_exeext conftest.
$ac_ext
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12854 $as_echo "$ac_cv_func_alloca_works" >&6; }
12856 if test $ac_cv_func_alloca_works = yes; then
12858 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12861 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12862 # that cause trouble. Some versions do not even contain alloca or
12863 # contain a buggy version. If you still want to use their alloca,
12864 # use ar to extract alloca.o from them instead of compiling alloca.c.
12866 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12868 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12872 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12873 if ${ac_cv_os_cray+:} false
; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #if defined CRAY && ! defined CRAY2
12885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12886 $EGREP "webecray" >/dev
/null
2>&1; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12895 $as_echo "$ac_cv_os_cray" >&6; }
12896 if test $ac_cv_os_cray = yes; then
12897 for ac_func
in _getb67 GETB67 getb67
; do
12898 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12900 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12902 cat >>confdefs.h
<<_ACEOF
12903 #define CRAY_STACKSEG_END $ac_func
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12913 $as_echo_n "checking stack direction for C alloca... " >&6; }
12914 if ${ac_cv_c_stack_direction+:} false
; then :
12915 $as_echo_n "(cached) " >&6
12917 if test "$cross_compiling" = yes; then :
12918 ac_cv_c_stack_direction
=0
12920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922 $ac_includes_default
12924 find_stack_direction ()
12926 static char *addr = 0;
12931 return find_stack_direction ();
12934 return (&dummy > addr) ? 1 : -1;
12940 return find_stack_direction () < 0;
12943 if ac_fn_c_try_run
"$LINENO"; then :
12944 ac_cv_c_stack_direction
=1
12946 ac_cv_c_stack_direction
=-1
12948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12954 $as_echo "$ac_cv_c_stack_direction" >&6; }
12955 cat >>confdefs.h
<<_ACEOF
12956 #define STACK_DIRECTION $ac_cv_c_stack_direction
12963 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12964 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12967 # fmod, logb, and frexp are found in -lm on most systems.
12968 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12970 $as_echo_n "checking for sqrt in -lm... " >&6; }
12971 if ${ac_cv_lib_m_sqrt+:} false
; then :
12972 $as_echo_n "(cached) " >&6
12974 ac_check_lib_save_LIBS
=$LIBS
12976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12994 if ac_fn_c_try_link
"$LINENO"; then :
12995 ac_cv_lib_m_sqrt
=yes
12997 ac_cv_lib_m_sqrt
=no
12999 rm -f core conftest.err conftest.
$ac_objext \
13000 conftest
$ac_exeext conftest.
$ac_ext
13001 LIBS
=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13004 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13005 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
13006 cat >>confdefs.h
<<_ACEOF
13007 #define HAVE_LIBM 1
13015 # Check for mail-locking functions in a "mail" library. Probably this should
13016 # have the same check as for liblockfile below.
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13018 $as_echo_n "checking for maillock in -lmail... " >&6; }
13019 if ${ac_cv_lib_mail_maillock+:} false
; then :
13020 $as_echo_n "(cached) " >&6
13022 ac_check_lib_save_LIBS
=$LIBS
13023 LIBS
="-lmail $LIBS"
13024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13037 return maillock ();
13042 if ac_fn_c_try_link
"$LINENO"; then :
13043 ac_cv_lib_mail_maillock
=yes
13045 ac_cv_lib_mail_maillock
=no
13047 rm -f core conftest.err conftest.
$ac_objext \
13048 conftest
$ac_exeext conftest.
$ac_ext
13049 LIBS
=$ac_check_lib_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13052 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13053 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13059 if test $have_mail = yes; then
13061 LIBS
="$LIBS_MAIL $LIBS"
13063 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13069 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13070 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13071 $as_echo_n "(cached) " >&6
13073 ac_check_lib_save_LIBS
=$LIBS
13074 LIBS
="-llockfile $LIBS"
13075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13088 return maillock ();
13093 if ac_fn_c_try_link
"$LINENO"; then :
13094 ac_cv_lib_lockfile_maillock
=yes
13096 ac_cv_lib_lockfile_maillock
=no
13098 rm -f core conftest.err conftest.
$ac_objext \
13099 conftest
$ac_exeext conftest.
$ac_ext
13100 LIBS
=$ac_check_lib_save_LIBS
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13103 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13104 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13110 if test $have_lockfile = yes; then
13111 LIBS_MAIL
=-llockfile
13112 LIBS
="$LIBS_MAIL $LIBS"
13114 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13117 # If we have the shared liblockfile, assume we must use it for mail
13118 # locking (e.g. Debian). If we couldn't link against liblockfile
13119 # (no liblockfile.a installed), ensure that we don't need to.
13120 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13121 set dummy liblockfile.so
; ac_word
=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_prog_liblockfile+:} false
; then :
13125 $as_echo_n "(cached) " >&6
13127 if test -n "$liblockfile"; then
13128 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13131 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13132 for as_dir
in $as_dummy
13135 test -z "$as_dir" && as_dir
=.
13136 for ac_exec_ext
in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_liblockfile
="yes"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13149 liblockfile
=$ac_cv_prog_liblockfile
13150 if test -n "$liblockfile"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13152 $as_echo "$liblockfile" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13159 if test $ac_cv_prog_liblockfile = yes; then
13160 as_fn_error $?
"Shared liblockfile found but can't link against it.
13161 This probably means that movemail could lose mail.
13162 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13165 for ac_func
in touchlock
13167 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13168 if test "x$ac_cv_func_touchlock" = xyes
; then :
13169 cat >>confdefs.h
<<_ACEOF
13170 #define HAVE_TOUCHLOCK 1
13176 for ac_header
in maillock.h
13178 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_maillock_h" = xyes
; then :
13180 cat >>confdefs.h
<<_ACEOF
13181 #define HAVE_MAILLOCK_H 1
13190 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13191 ## interlock access to the mail spool. The alternative is a lock file named
13192 ## /usr/spool/mail/$USER.lock.
13195 aix4-2
) mail_lock
="lockf" ;;
13197 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13199 ## On GNU/Linux systems, both methods are used by various mail programs.
13200 ## I assume most people are using newer mailers that have heard of flock.
13201 ## Change this if you need to.
13202 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13203 ## configure gets the right answers, and that means *NOT* using flock.
13204 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13205 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13206 ## Debian maintainer hasn't provided a clean fix for Emacs.
13207 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13208 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13209 ## correct logic. -- fx
13210 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13211 ## liblockfile is a Free Software replacement for libmail, used on
13212 ## Debian systems and elsewhere. -rfr.
13215 if test $have_mail = yes ||
test $have_lockfile = yes; then
13216 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13222 case "$mail_lock" in
13224 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13228 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13231 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13236 for ac_func
in gethostname getdomainname dup2 \
13237 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13238 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13239 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13240 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13241 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13242 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13243 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13244 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13245 cfmakeraw cfsetspeed isnan copysign __executable_start
13247 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13249 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13250 cat >>confdefs.h
<<_ACEOF
13251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13259 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13260 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13261 $as_echo_n "(cached) " >&6
13263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13269 __builtin_unwind_init ();
13274 if ac_fn_c_try_link
"$LINENO"; then :
13275 emacs_cv_func___builtin_unwind_init
=yes
13277 emacs_cv_func___builtin_unwind_init
=no
13279 rm -f core conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13283 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13284 if test $emacs_cv_func___builtin_unwind_init = yes; then
13286 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13290 for ac_header
in sys
/un.h
13292 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13293 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13294 cat >>confdefs.h
<<_ACEOF
13295 #define HAVE_SYS_UN_H 1
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13304 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13305 if ${ac_cv_sys_largefile_source+:} false
; then :
13306 $as_echo_n "(cached) " >&6
13309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311 #include <sys/types.h> /* for off_t */
13316 int (*fp) (FILE *, off_t, int) = fseeko;
13317 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13322 if ac_fn_c_try_link
"$LINENO"; then :
13323 ac_cv_sys_largefile_source
=no
; break
13325 rm -f core conftest.err conftest.
$ac_objext \
13326 conftest
$ac_exeext conftest.
$ac_ext
13327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #define _LARGEFILE_SOURCE 1
13330 #include <sys/types.h> /* for off_t */
13335 int (*fp) (FILE *, off_t, int) = fseeko;
13336 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13341 if ac_fn_c_try_link
"$LINENO"; then :
13342 ac_cv_sys_largefile_source
=1; break
13344 rm -f core conftest.err conftest.
$ac_objext \
13345 conftest
$ac_exeext conftest.
$ac_ext
13346 ac_cv_sys_largefile_source
=unknown
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13351 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13352 case $ac_cv_sys_largefile_source in #(
13355 cat >>confdefs.h
<<_ACEOF
13356 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13362 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13363 # in glibc 2.1.3, but that breaks too many other things.
13364 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13365 if test $ac_cv_sys_largefile_source != unknown
; then
13367 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13373 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13374 if ${ac_cv_func_getpgrp_void+:} false
; then :
13375 $as_echo_n "(cached) " >&6
13377 # Use it with a single arg.
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 $ac_includes_default
13389 if ac_fn_c_try_compile
"$LINENO"; then :
13390 ac_cv_func_getpgrp_void
=no
13392 ac_cv_func_getpgrp_void
=yes
13394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13398 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13399 if test $ac_cv_func_getpgrp_void = yes; then
13401 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13406 # Configure gnulib.
13417 LIBC_FATAL_STDERR_
=1
13418 export LIBC_FATAL_STDERR_
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13422 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13423 if ${ac_cv_c_bigendian+:} false
; then :
13424 $as_echo_n "(cached) " >&6
13426 ac_cv_c_bigendian
=unknown
13427 # See if we're dealing with a universal compiler.
13428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 #ifndef __APPLE_CC__
13431 not a universal capable compiler
13436 if ac_fn_c_try_compile
"$LINENO"; then :
13438 # Check for potential -arch flags. It is not universal unless
13439 # there are at least two -arch flags with different values.
13442 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13443 if test -n "$ac_prev"; then
13445 i?
86 | x86_64 | ppc | ppc64
)
13446 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13449 ac_cv_c_bigendian
=universal
13455 elif test "x$ac_word" = "x-arch"; then
13460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13461 if test $ac_cv_c_bigendian = unknown
; then
13462 # See if sys/param.h defines the BYTE_ORDER macro.
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <sys/types.h>
13466 #include <sys/param.h>
13471 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13472 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13474 bogus endian macros
13481 if ac_fn_c_try_compile
"$LINENO"; then :
13482 # It does; now see whether it defined to BIG_ENDIAN or not.
13483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13486 #include <sys/param.h>
13491 #if BYTE_ORDER != BIG_ENDIAN
13499 if ac_fn_c_try_compile
"$LINENO"; then :
13500 ac_cv_c_bigendian
=yes
13502 ac_cv_c_bigendian
=no
13504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13508 if test $ac_cv_c_bigendian = unknown
; then
13509 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 #include <limits.h>
13517 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13518 bogus endian macros
13525 if ac_fn_c_try_compile
"$LINENO"; then :
13526 # It does; now see whether it defined to _BIG_ENDIAN or not.
13527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 #include <limits.h>
13534 #ifndef _BIG_ENDIAN
13542 if ac_fn_c_try_compile
"$LINENO"; then :
13543 ac_cv_c_bigendian
=yes
13545 ac_cv_c_bigendian
=no
13547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13551 if test $ac_cv_c_bigendian = unknown
; then
13552 # Compile a test program.
13553 if test "$cross_compiling" = yes; then :
13554 # Try to guess by grepping values from an object file.
13555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 short int ascii_mm[] =
13558 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13559 short int ascii_ii[] =
13560 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13561 int use_ascii (int i) {
13562 return ascii_mm[i] + ascii_ii[i];
13564 short int ebcdic_ii[] =
13565 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13566 short int ebcdic_mm[] =
13567 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13568 int use_ebcdic (int i) {
13569 return ebcdic_mm[i] + ebcdic_ii[i];
13576 return use_ascii (foo) == use_ebcdic (foo);
13581 if ac_fn_c_try_compile
"$LINENO"; then :
13582 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13583 ac_cv_c_bigendian
=yes
13585 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13586 if test "$ac_cv_c_bigendian" = unknown
; then
13587 ac_cv_c_bigendian
=no
13589 # finding both strings is unlikely to happen, but who knows?
13590 ac_cv_c_bigendian
=unknown
13594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 $ac_includes_default
13603 /* Are we little or big endian? From Harbison&Steele. */
13607 char c[sizeof (long int)];
13610 return u.c[sizeof (long int) - 1] == 1;
13616 if ac_fn_c_try_run
"$LINENO"; then :
13617 ac_cv_c_bigendian
=no
13619 ac_cv_c_bigendian
=yes
13621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13628 $as_echo "$ac_cv_c_bigendian" >&6; }
13629 case $ac_cv_c_bigendian in #(
13631 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13637 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13641 as_fn_error $?
"unknown endianness
13642 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13647 $as_echo_n "checking for inline... " >&6; }
13648 if ${ac_cv_c_inline+:} false
; then :
13649 $as_echo_n "(cached) " >&6
13652 for ac_kw
in inline __inline__ __inline
; do
13653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655 #ifndef __cplusplus
13657 static $ac_kw foo_t static_foo () {return 0; }
13658 $ac_kw foo_t foo () {return 0; }
13662 if ac_fn_c_try_compile
"$LINENO"; then :
13663 ac_cv_c_inline
=$ac_kw
13665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13666 test "$ac_cv_c_inline" != no
&& break
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13671 $as_echo "$ac_cv_c_inline" >&6; }
13673 case $ac_cv_c_inline in
13676 case $ac_cv_c_inline in
13678 *) ac_val
=$ac_cv_c_inline;;
13680 cat >>confdefs.h
<<_ACEOF
13681 #ifndef __cplusplus
13682 #define inline $ac_val
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13690 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13691 if ${gl_cv_func_c99_strtold+:} false
; then :
13692 $as_echo_n "(cached) " >&6
13694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696 /* On HP-UX before 11.23, strtold returns a struct instead of
13697 long double. Reject implementations like that, by requiring
13698 compatibility with the C99 prototype. */
13699 #include <stdlib.h>
13700 static long double (*p) (char const *, char **) = strtold;
13702 test (char const *nptr, char **endptr)
13705 r = strtold (nptr, endptr);
13711 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13716 if ac_fn_c_try_link
"$LINENO"; then :
13717 gl_cv_func_c99_strtold
=yes
13719 gl_cv_func_c99_strtold
=no
13721 rm -f core conftest.err conftest.
$ac_objext \
13722 conftest
$ac_exeext conftest.
$ac_ext
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13725 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13726 if test $gl_cv_func_c99_strtold = yes; then
13728 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13733 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13734 if ${ac_cv_struct_st_dm_mode+:} false
; then :
13735 $as_echo_n "(cached) " >&6
13737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13740 #include <sys/types.h>
13741 #include <sys/stat.h>
13745 struct stat s; s.st_dm_mode;
13750 if ac_fn_c_try_compile
"$LINENO"; then :
13751 ac_cv_struct_st_dm_mode
=yes
13753 ac_cv_struct_st_dm_mode
=no
13755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13758 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13760 if test $ac_cv_struct_st_dm_mode = yes; then
13762 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13767 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13768 if test "x$ac_cv_have_decl_strmode" = xyes
; then :
13774 cat >>confdefs.h
<<_ACEOF
13775 #define HAVE_DECL_STRMODE $ac_have_decl
13781 GNULIB_CALLOC_POSIX
=0;
13782 GNULIB_CANONICALIZE_FILE_NAME
=0;
13783 GNULIB_GETLOADAVG
=0;
13784 GNULIB_GETSUBOPT
=0;
13786 GNULIB_MALLOC_POSIX
=0;
13790 GNULIB_MKOSTEMPS
=0;
13796 GNULIB_REALLOC_POSIX
=0;
13803 GNULIB_SYSTEM_POSIX
=0;
13809 HAVE_CANONICALIZE_FILE_NAME
=1;
13810 HAVE_DECL_GETLOADAVG
=1;
13824 HAVE_DECL_SETENV
=1;
13828 HAVE_STRUCT_RANDOM_DATA
=1;
13829 HAVE_SYS_LOADAVG_H
=0;
13831 HAVE_DECL_UNSETENV
=1;
13833 REPLACE_CANONICALIZE_FILE_NAME
=0;
13839 REPLACE_REALPATH
=0;
13842 REPLACE_UNSETENV
=0;
13851 GNULIB_EUIDACCESS
=0;
13852 GNULIB_FACCESSAT
=0;
13856 GNULIB_FTRUNCATE
=0;
13858 GNULIB_GETDOMAINNAME
=0;
13859 GNULIB_GETDTABLESIZE
=0;
13860 GNULIB_GETGROUPS
=0;
13861 GNULIB_GETHOSTNAME
=0;
13863 GNULIB_GETLOGIN_R
=0;
13864 GNULIB_GETPAGESIZE
=0;
13865 GNULIB_GETUSERSHELL
=0;
13875 GNULIB_READLINKAT
=0;
13879 GNULIB_SYMLINKAT
=0;
13880 GNULIB_TTYNAME_R
=0;
13881 GNULIB_UNISTD_H_GETOPT
=0;
13882 GNULIB_UNISTD_H_SIGPIPE
=0;
13896 HAVE_GETDTABLESIZE
=1;
13898 HAVE_GETHOSTNAME
=1;
13900 HAVE_GETPAGESIZE
=1;
13915 HAVE_DECL_ENVIRON
=1;
13916 HAVE_DECL_FCHDIR
=1;
13917 HAVE_DECL_GETDOMAINNAME
=1;
13918 HAVE_DECL_GETLOGIN_R
=1;
13919 HAVE_DECL_GETPAGESIZE
=1;
13920 HAVE_DECL_GETUSERSHELL
=1;
13921 HAVE_DECL_TTYNAME_R
=1;
13923 HAVE_SYS_PARAM_H
=0;
13928 REPLACE_FCHOWNAT
=0;
13930 REPLACE_GETDOMAINNAME
=0;
13931 REPLACE_GETLOGIN_R
=0;
13932 REPLACE_GETGROUPS
=0;
13933 REPLACE_GETPAGESIZE
=0;
13940 REPLACE_READLINK
=0;
13944 REPLACE_TTYNAME_R
=0;
13946 REPLACE_UNLINKAT
=0;
13949 UNISTD_H_HAVE_WINSOCK2_H
=0;
13950 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13956 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13957 if ${gl_cv_have_include_next+:} false
; then :
13958 $as_echo_n "(cached) " >&6
13960 rm -rf conftestd1a conftestd1b conftestd2
13961 mkdir conftestd1a conftestd1b conftestd2
13962 cat <<EOF > conftestd1a/conftest.h
13963 #define DEFINED_IN_CONFTESTD1
13964 #include_next <conftest.h>
13965 #ifdef DEFINED_IN_CONFTESTD2
13968 #error "include_next doesn't work"
13971 cat <<EOF > conftestd1b/conftest.h
13972 #define DEFINED_IN_CONFTESTD1
13974 #include_next <conftest.h>
13975 #ifdef DEFINED_IN_CONFTESTD2
13978 #error "include_next doesn't work"
13981 cat <<EOF > conftestd2/conftest.h
13982 #ifndef DEFINED_IN_CONFTESTD1
13983 #error "include_next test doesn't work"
13985 #define DEFINED_IN_CONFTESTD2
13987 gl_save_CPPFLAGS
="$CPPFLAGS"
13988 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <conftest.h>
13993 if ac_fn_c_try_compile
"$LINENO"; then :
13994 gl_cv_have_include_next
=yes
13996 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 #include <conftest.h>
14001 if ac_fn_c_try_compile
"$LINENO"; then :
14002 gl_cv_have_include_next
=buggy
14004 gl_cv_have_include_next
=no
14006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14010 CPPFLAGS
="$gl_save_CPPFLAGS"
14011 rm -rf conftestd1a conftestd1b conftestd2
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14015 $as_echo "$gl_cv_have_include_next" >&6; }
14016 PRAGMA_SYSTEM_HEADER
=
14017 if test $gl_cv_have_include_next = yes; then
14018 INCLUDE_NEXT
=include_next
14019 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14020 if test -n "$GCC"; then
14021 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14024 if test $gl_cv_have_include_next = buggy
; then
14025 INCLUDE_NEXT
=include
14026 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14028 INCLUDE_NEXT
=include
14029 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14036 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14037 if ${gl_cv_pragma_columns+:} false
; then :
14038 $as_echo_n "(cached) " >&6
14040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14049 $EGREP "choke me" >/dev
/null
2>&1; then :
14050 gl_cv_pragma_columns
=yes
14052 gl_cv_pragma_columns
=no
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14059 $as_echo "$gl_cv_pragma_columns" >&6; }
14060 if test $gl_cv_pragma_columns = yes; then
14061 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14082 if test $gl_cv_have_include_next = yes; then
14083 gl_cv_next_getopt_h
='<'getopt.h
'>'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14086 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14087 if ${gl_cv_next_getopt_h+:} false
; then :
14088 $as_echo_n "(cached) " >&6
14091 if test $ac_cv_header_getopt_h = yes; then
14094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 #include <getopt.h>
14100 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14101 *) gl_absname_cpp
="$ac_cpp" ;;
14103 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14104 sed -n '\#/getopt.h#{
14105 s#.*"\(.*/getopt.h\)".*#\1#
14111 gl_cv_next_getopt_h
='<'getopt.h
'>'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14117 $as_echo "$gl_cv_next_getopt_h" >&6; }
14119 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14121 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14123 gl_next_as_first_directive
='<'getopt.h
'>'
14125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14126 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14128 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14133 if test $ac_cv_header_getopt_h = yes; then
14142 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14143 for ac_header
in getopt.h
14145 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14146 if test "x$ac_cv_header_getopt_h" = xyes
; then :
14147 cat >>confdefs.h
<<_ACEOF
14148 #define HAVE_GETOPT_H 1
14152 gl_replace_getopt
=yes
14159 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14160 for ac_func
in getopt_long_only
14162 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14163 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
14164 cat >>confdefs.h
<<_ACEOF
14165 #define HAVE_GETOPT_LONG_ONLY 1
14169 gl_replace_getopt
=yes
14175 if test -z "$gl_replace_getopt"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14177 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14178 if ${gl_cv_func_getopt_posix+:} false
; then :
14179 $as_echo_n "(cached) " >&6
14182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 #include <unistd.h>
14188 int *p = &optreset; return optreset;
14193 if ac_fn_c_try_compile
"$LINENO"; then :
14196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 #include <getopt.h>
14202 return !getopt_clip;
14207 if ac_fn_c_try_compile
"$LINENO"; then :
14212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14216 gl_save_CPPFLAGS
=$CPPFLAGS
14217 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14218 if test "$cross_compiling" = yes; then :
14220 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14221 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14222 *) gl_cv_func_getopt_posix
="guessing yes";;
14226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14229 #include <unistd.h>
14230 #include <stdlib.h>
14231 #include <string.h>
14241 argv[argc++] = "program";
14242 argv[argc++] = "-a";
14243 argv[argc++] = "foo";
14244 argv[argc++] = "bar";
14246 optind = OPTIND_MIN;
14249 c = getopt (argc, argv, "ab");
14252 c = getopt (argc, argv, "ab");
14255 if (!(optind == 2))
14258 /* Some internal state exists at this point. */
14264 argv[argc++] = "program";
14265 argv[argc++] = "donald";
14266 argv[argc++] = "-p";
14267 argv[argc++] = "billy";
14268 argv[argc++] = "duck";
14269 argv[argc++] = "-a";
14270 argv[argc++] = "bar";
14272 optind = OPTIND_MIN;
14275 c = getopt (argc, argv, "+abp:q:");
14278 if (!(strcmp (argv[0], "program") == 0))
14280 if (!(strcmp (argv[1], "donald") == 0))
14282 if (!(strcmp (argv[2], "-p") == 0))
14284 if (!(strcmp (argv[3], "billy") == 0))
14286 if (!(strcmp (argv[4], "duck") == 0))
14288 if (!(strcmp (argv[5], "-a") == 0))
14290 if (!(strcmp (argv[6], "bar") == 0))
14292 if (!(optind == 1))
14295 /* Detect MacOS 10.5, AIX 7.1 bug. */
14297 char *argv[3] = { "program", "-ab", NULL };
14298 optind = OPTIND_MIN;
14300 if (getopt (2, argv, "ab:") != 'a')
14302 if (getopt (2, argv, "ab:") != '?')
14314 if ac_fn_c_try_run
"$LINENO"; then :
14315 gl_cv_func_getopt_posix
=yes
14317 gl_cv_func_getopt_posix
=no
14319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14323 CPPFLAGS
=$gl_save_CPPFLAGS
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14327 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14328 case "$gl_cv_func_getopt_posix" in
14329 *no
) gl_replace_getopt
=yes ;;
14333 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14335 $as_echo_n "checking for working GNU getopt function... " >&6; }
14336 if ${gl_cv_func_getopt_gnu+:} false
; then :
14337 $as_echo_n "(cached) " >&6
14339 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14340 # optstring is necessary for programs like m4 that have POSIX-mandated
14341 # semantics for supporting options interspersed with files.
14342 # Also, since getopt_long is a GNU extension, we require optind=0.
14343 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14344 # so take care to revert to the correct (non-)export state.
14345 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14346 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14347 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14348 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14349 *) gl_had_POSIXLY_CORRECT
= ;;
14352 export POSIXLY_CORRECT
14353 if test "$cross_compiling" = yes; then :
14354 case $host_os:$ac_cv_have_decl_optreset in
14355 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14356 *:yes) gl_cv_func_getopt_gnu
=no
;;
14357 *) gl_cv_func_getopt_gnu
=yes;;
14361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 #include <getopt.h>
14364 #include <stddef.h>
14365 #include <string.h>
14372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14373 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14374 OSF/1 5.1, Solaris 10. */
14377 myargv[0] = "conftest";
14381 if (getopt (2, myargv, "+a") != '?')
14384 /* This code succeeds on glibc 2.8, mingw,
14385 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14386 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14388 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14391 if (getopt (4, argv, "p::") != 'p')
14393 else if (optarg != NULL)
14395 else if (getopt (4, argv, "p::") != -1)
14397 else if (optind != 2)
14400 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14402 char *argv[] = { "program", "foo", "-p", NULL };
14404 if (getopt (3, argv, "-p") != 1)
14406 else if (getopt (3, argv, "-p") != 'p')
14409 /* This code fails on glibc 2.11. */
14411 char *argv[] = { "program", "-b", "-a", NULL };
14412 optind = opterr = 0;
14413 if (getopt (3, argv, "+:a:b") != 'b')
14415 else if (getopt (3, argv, "+:a:b") != ':')
14424 if ac_fn_c_try_run
"$LINENO"; then :
14425 gl_cv_func_getopt_gnu
=yes
14427 gl_cv_func_getopt_gnu
=no
14429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14433 case $gl_had_POSIXLY_CORRECT in
14435 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14436 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14441 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14442 if test "$gl_cv_func_getopt_gnu" = "no"; then
14443 gl_replace_getopt
=yes
14447 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14448 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14454 cat >>confdefs.h
<<_ACEOF
14455 #define HAVE_DECL_GETENV $ac_have_decl
14463 if test -n "$gl_replace_getopt"; then :
14469 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14473 GNULIB_UNISTD_H_GETOPT
=1
14482 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14492 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14504 GNULIB_NANOSLEEP
=0;
14508 HAVE_DECL_LOCALTIME_R
=1;
14512 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14513 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14514 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14515 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14520 for ac_func
in $ac_func_list
14522 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14524 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14525 cat >>confdefs.h
<<_ACEOF
14526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 gl_cv_c_multiarch
=no
14536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #ifndef __APPLE_CC__
14539 not a universal capable compiler
14544 if ac_fn_c_try_compile
"$LINENO"; then :
14548 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14549 if test -n "$prev"; then
14551 i?
86 | x86_64 | ppc | ppc64
)
14552 if test -z "$arch" ||
test "$arch" = "$word"; then
14555 gl_cv_c_multiarch
=yes
14561 if test "x$word" = "x-arch"; then
14568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14569 if test $gl_cv_c_multiarch = yes; then
14570 APPLE_UNIVERSAL_BUILD
=1
14572 APPLE_UNIVERSAL_BUILD
=0
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14577 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14578 if ${ac_cv_header_stdbool_h+:} false
; then :
14579 $as_echo_n "(cached) " >&6
14581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14584 #include <stdbool.h>
14586 "error: bool is not defined"
14589 "error: false is not defined"
14592 "error: false is not 0"
14595 "error: true is not defined"
14598 "error: true is not 1"
14600 #ifndef __bool_true_false_are_defined
14601 "error: __bool_true_false_are_defined is not defined"
14604 struct s { _Bool s: 1; _Bool t; } s;
14606 char a[true == 1 ? 1 : -1];
14607 char b[false == 0 ? 1 : -1];
14608 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14609 char d[(bool) 0.5 == true ? 1 : -1];
14610 /* See body of main program for 'e'. */
14611 char f[(_Bool) 0.0 == false ? 1 : -1];
14613 char h[sizeof (_Bool)];
14614 char i[sizeof s.t];
14615 enum { j = false, k = true, l = false * true, m = true * 256 };
14616 /* The following fails for
14617 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14619 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14620 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14621 /* Catch a bug in an HP-UX C compiler. See
14622 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14623 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14635 /* Refer to every declared value, to avoid compiler optimizations. */
14636 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14637 + !m + !n + !o + !p + !q + !pq);
14643 if ac_fn_c_try_compile
"$LINENO"; then :
14644 ac_cv_header_stdbool_h
=yes
14646 ac_cv_header_stdbool_h
=no
14648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14651 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14652 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14653 if test "x$ac_cv_type__Bool" = xyes
; then :
14655 cat >>confdefs.h
<<_ACEOF
14656 #define HAVE__BOOL 1
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14670 $as_echo_n "checking for wchar_t... " >&6; }
14671 if ${gt_cv_c_wchar_t+:} false
; then :
14672 $as_echo_n "(cached) " >&6
14674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 #include <stddef.h>
14677 wchar_t foo = (wchar_t)'\0';
14686 if ac_fn_c_try_compile
"$LINENO"; then :
14687 gt_cv_c_wchar_t
=yes
14691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14694 $as_echo "$gt_cv_c_wchar_t" >&6; }
14695 if test $gt_cv_c_wchar_t = yes; then
14697 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14703 $as_echo_n "checking for unsigned long long int... " >&6; }
14704 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14705 $as_echo_n "(cached) " >&6
14707 ac_cv_type_unsigned_long_long_int
=yes
14708 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14712 /* For now, do not test the preprocessor; as of 2007 there are too many
14713 implementations with broken preprocessors. Perhaps this can
14714 be revisited in 2012. In the meantime, code should not expect
14715 #if to work with literals wider than 32 bits. */
14716 /* Test literals. */
14717 long long int ll = 9223372036854775807ll;
14718 long long int nll = -9223372036854775807LL;
14719 unsigned long long int ull = 18446744073709551615ULL;
14720 /* Test constant expressions. */
14721 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14723 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14729 /* Test availability of runtime routines for shift and division. */
14730 long long int llmax = 9223372036854775807ll;
14731 unsigned long long int ullmax = 18446744073709551615ull;
14732 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14733 | (llmax / ll) | (llmax % ll)
14734 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14735 | (ullmax / ull) | (ullmax % ull));
14741 if ac_fn_c_try_link
"$LINENO"; then :
14744 ac_cv_type_unsigned_long_long_int
=no
14746 rm -f core conftest.err conftest.
$ac_objext \
14747 conftest
$ac_exeext conftest.
$ac_ext
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14751 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14752 if test $ac_cv_type_unsigned_long_long_int = yes; then
14754 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14761 $as_echo_n "checking for long long int... " >&6; }
14762 if ${ac_cv_type_long_long_int+:} false
; then :
14763 $as_echo_n "(cached) " >&6
14765 ac_cv_type_long_long_int
=yes
14766 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14767 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14768 if test $ac_cv_type_long_long_int = yes; then
14769 if test "$cross_compiling" = yes; then :
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #include <limits.h>
14777 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14778 # define LLONG_MAX (HALF - 1 + HALF)
14783 long long int n = 1;
14787 long long int m = n << i;
14790 if (LLONG_MAX / 2 < m)
14798 if ac_fn_c_try_run
"$LINENO"; then :
14801 ac_cv_type_long_long_int
=no
14803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14804 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14811 $as_echo "$ac_cv_type_long_long_int" >&6; }
14812 if test $ac_cv_type_long_long_int = yes; then
14814 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14823 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14825 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14827 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14846 GNULIB_UTIMENSAT
=0;
14860 REPLACE_FUTIMENS
=0;
14866 REPLACE_UTIMENSAT
=0;
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14869 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14870 if ${ac_cv_header_stat_broken+:} false
; then :
14871 $as_echo_n "(cached) " >&6
14873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <sys/types.h>
14876 #include <sys/stat.h>
14878 #if defined S_ISBLK && defined S_IFDIR
14879 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14882 #if defined S_ISBLK && defined S_IFCHR
14883 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14886 #if defined S_ISLNK && defined S_IFREG
14887 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14890 #if defined S_ISSOCK && defined S_IFREG
14891 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14895 if ac_fn_c_try_compile
"$LINENO"; then :
14896 ac_cv_header_stat_broken
=no
14898 ac_cv_header_stat_broken
=yes
14900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14903 $as_echo "$ac_cv_header_stat_broken" >&6; }
14904 if test $ac_cv_header_stat_broken = yes; then
14906 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14913 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14914 if ${ac_cv_c_restrict+:} false
; then :
14915 $as_echo_n "(cached) " >&6
14917 ac_cv_c_restrict
=no
14918 # The order here caters to the fact that C++ does not require restrict.
14919 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 typedef int * int_ptr;
14923 int foo (int_ptr $ac_kw ip) {
14930 int * $ac_kw t = s;
14937 if ac_fn_c_try_compile
"$LINENO"; then :
14938 ac_cv_c_restrict
=$ac_kw
14940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14941 test "$ac_cv_c_restrict" != no
&& break
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14946 $as_echo "$ac_cv_c_restrict" >&6; }
14948 case $ac_cv_c_restrict in
14950 no
) $as_echo "#define restrict /**/" >>confdefs.h
14952 *) cat >>confdefs.h
<<_ACEOF
14953 #define restrict $ac_cv_c_restrict
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14963 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14964 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14965 $as_echo_n "(cached) " >&6
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14974 static struct timespec x; x.tv_sec = x.tv_nsec;
14979 if ac_fn_c_try_compile
"$LINENO"; then :
14980 gl_cv_sys_struct_timespec_in_time_h
=yes
14982 gl_cv_sys_struct_timespec_in_time_h
=no
14984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14987 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14989 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14990 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14991 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14992 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14993 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14996 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14997 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14998 $as_echo_n "(cached) " >&6
15000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #include <sys/time.h>
15007 static struct timespec x; x.tv_sec = x.tv_nsec;
15012 if ac_fn_c_try_compile
"$LINENO"; then :
15013 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15015 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15020 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15021 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15022 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15025 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15026 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15027 $as_echo_n "(cached) " >&6
15029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 #include <pthread.h>
15036 static struct timespec x; x.tv_sec = x.tv_nsec;
15041 if ac_fn_c_try_compile
"$LINENO"; then :
15042 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15044 gl_cv_sys_struct_timespec_in_pthread_h
=no
15046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15049 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15050 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15051 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15070 if test $gl_cv_have_include_next = yes; then
15071 gl_cv_next_time_h
='<'time.h
'>'
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15074 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15075 if ${gl_cv_next_time_h+:} false
; then :
15076 $as_echo_n "(cached) " >&6
15079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15085 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15086 *) gl_absname_cpp
="$ac_cpp" ;;
15088 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15089 sed -n '\#/time.h#{
15090 s#.*"\(.*/time.h\)".*#\1#
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15099 $as_echo "$gl_cv_next_time_h" >&6; }
15101 NEXT_TIME_H
=$gl_cv_next_time_h
15103 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15105 gl_next_as_first_directive
='<'time.h
'>'
15107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15108 gl_next_as_first_directive
=$gl_cv_next_time_h
15110 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15117 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15118 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
15124 cat >>confdefs.h
<<_ACEOF
15125 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15132 GL_COND_LIBTOOL_TRUE
=
15133 GL_COND_LIBTOOL_FALSE
='#'
15135 GL_COND_LIBTOOL_TRUE
='#'
15136 GL_COND_LIBTOOL_FALSE
=
15139 gl_cond_libtool
=false
15152 gl_source_base
='lib'
15153 # Code from module arg-nonnull:
15154 # Code from module c++defs:
15155 # Code from module crypto/md5:
15165 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15172 # Code from module dtoastr:
15174 # Code from module extensions:
15175 # Code from module filemode:
15186 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15190 # Code from module getloadavg:
15193 # Persuade glibc <stdlib.h> to declare getloadavg().
15196 # Make sure getloadavg.c is where it belongs, at configure-time.
15197 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15198 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15202 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15203 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15204 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15205 if test "x$ac_cv_func_getloadavg" = xyes
; then :
15210 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15211 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15212 # to get the right answer into the cache.
15213 # For kstat on solaris, we need to test for libelf and libkvm to force the
15214 # definition of SVR4 below.
15215 if test $gl_have_func = no
; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15217 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15218 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
15219 $as_echo_n "(cached) " >&6
15221 ac_check_lib_save_LIBS
=$LIBS
15223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15226 /* Override any GCC internal prototype to avoid an error.
15227 Use char because int might match the return type of a GCC
15228 builtin and then its argument prototype would still apply. */
15236 return elf_begin ();
15241 if ac_fn_c_try_link
"$LINENO"; then :
15242 ac_cv_lib_elf_elf_begin
=yes
15244 ac_cv_lib_elf_elf_begin
=no
15246 rm -f core conftest.err conftest.
$ac_objext \
15247 conftest
$ac_exeext conftest.
$ac_ext
15248 LIBS
=$ac_check_lib_save_LIBS
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15251 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15252 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15257 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15258 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
15259 $as_echo_n "(cached) " >&6
15261 ac_check_lib_save_LIBS
=$LIBS
15263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15266 /* Override any GCC internal prototype to avoid an error.
15267 Use char because int might match the return type of a GCC
15268 builtin and then its argument prototype would still apply. */
15276 return kvm_open ();
15281 if ac_fn_c_try_link
"$LINENO"; then :
15282 ac_cv_lib_kvm_kvm_open
=yes
15284 ac_cv_lib_kvm_kvm_open
=no
15286 rm -f core conftest.err conftest.
$ac_objext \
15287 conftest
$ac_exeext conftest.
$ac_ext
15288 LIBS
=$ac_check_lib_save_LIBS
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15291 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15292 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
15296 # Check for the 4.4BSD definition of getloadavg.
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15298 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15299 if ${ac_cv_lib_util_getloadavg+:} false
; then :
15300 $as_echo_n "(cached) " >&6
15302 ac_check_lib_save_LIBS
=$LIBS
15303 LIBS
="-lutil $LIBS"
15304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15307 /* Override any GCC internal prototype to avoid an error.
15308 Use char because int might match the return type of a GCC
15309 builtin and then its argument prototype would still apply. */
15313 char getloadavg ();
15317 return getloadavg ();
15322 if ac_fn_c_try_link
"$LINENO"; then :
15323 ac_cv_lib_util_getloadavg
=yes
15325 ac_cv_lib_util_getloadavg
=no
15327 rm -f core conftest.err conftest.
$ac_objext \
15328 conftest
$ac_exeext conftest.
$ac_ext
15329 LIBS
=$ac_check_lib_save_LIBS
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15332 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15333 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
15334 LIBS
="-lutil $LIBS" gl_have_func
=yes
15339 if test $gl_have_func = no
; then
15340 # There is a commonly available library for RS/6000 AIX.
15341 # Since it is not a standard part of AIX, it might be installed locally.
15342 gl_getloadavg_LIBS
=$LIBS
15343 LIBS
="-L/usr/local/lib $LIBS"
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15345 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15346 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
15347 $as_echo_n "(cached) " >&6
15349 ac_check_lib_save_LIBS
=$LIBS
15350 LIBS
="-lgetloadavg $LIBS"
15351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15354 /* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15360 char getloadavg ();
15364 return getloadavg ();
15369 if ac_fn_c_try_link
"$LINENO"; then :
15370 ac_cv_lib_getloadavg_getloadavg
=yes
15372 ac_cv_lib_getloadavg_getloadavg
=no
15374 rm -f core conftest.err conftest.
$ac_objext \
15375 conftest
$ac_exeext conftest.
$ac_ext
15376 LIBS
=$ac_check_lib_save_LIBS
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15379 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15380 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
15381 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15383 LIBS
=$gl_getloadavg_LIBS
15388 # Set up the replacement function if necessary.
15389 if test $gl_have_func = no
; then
15398 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15401 # Figure out what our getloadavg.c needs.
15403 # Solaris has libkstat which does not require root.
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15405 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15406 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
15407 $as_echo_n "(cached) " >&6
15409 ac_check_lib_save_LIBS
=$LIBS
15410 LIBS
="-lkstat $LIBS"
15411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15414 /* Override any GCC internal prototype to avoid an error.
15415 Use char because int might match the return type of a GCC
15416 builtin and then its argument prototype would still apply. */
15420 char kstat_open ();
15424 return kstat_open ();
15429 if ac_fn_c_try_link
"$LINENO"; then :
15430 ac_cv_lib_kstat_kstat_open
=yes
15432 ac_cv_lib_kstat_kstat_open
=no
15434 rm -f core conftest.err conftest.
$ac_objext \
15435 conftest
$ac_exeext conftest.
$ac_ext
15436 LIBS
=$ac_check_lib_save_LIBS
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15439 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15440 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
15441 cat >>confdefs.h
<<_ACEOF
15442 #define HAVE_LIBKSTAT 1
15445 LIBS
="-lkstat $LIBS"
15449 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15451 # On HPUX9, an unprivileged user can get load averages this way.
15452 if test $gl_have_func = no
; then
15453 for ac_func
in pstat_getdynamic
15455 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15456 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
15457 cat >>confdefs.h
<<_ACEOF
15458 #define HAVE_PSTAT_GETDYNAMIC 1
15466 # AIX has libperfstat which does not require root
15467 if test $gl_have_func = no
; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15469 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15470 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
15471 $as_echo_n "(cached) " >&6
15473 ac_check_lib_save_LIBS
=$LIBS
15474 LIBS
="-lperfstat $LIBS"
15475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15478 /* Override any GCC internal prototype to avoid an error.
15479 Use char because int might match the return type of a GCC
15480 builtin and then its argument prototype would still apply. */
15484 char perfstat_cpu_total ();
15488 return perfstat_cpu_total ();
15493 if ac_fn_c_try_link
"$LINENO"; then :
15494 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15496 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15498 rm -f core conftest.err conftest.
$ac_objext \
15499 conftest
$ac_exeext conftest.
$ac_ext
15500 LIBS
=$ac_check_lib_save_LIBS
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15503 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15504 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
15505 cat >>confdefs.h
<<_ACEOF
15506 #define HAVE_LIBPERFSTAT 1
15509 LIBS
="-lperfstat $LIBS"
15513 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15516 if test $gl_have_func = no
; then
15517 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15518 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
15521 $as_echo "#define DGUX 1" >>confdefs.h
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15524 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15525 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
15526 $as_echo_n "(cached) " >&6
15528 ac_check_lib_save_LIBS
=$LIBS
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15533 /* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15539 char dg_sys_info ();
15543 return dg_sys_info ();
15548 if ac_fn_c_try_link
"$LINENO"; then :
15549 ac_cv_lib_dgc_dg_sys_info
=yes
15551 ac_cv_lib_dgc_dg_sys_info
=no
15553 rm -f core conftest.err conftest.
$ac_objext \
15554 conftest
$ac_exeext conftest.
$ac_ext
15555 LIBS
=$ac_check_lib_save_LIBS
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15558 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15559 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
15560 cat >>confdefs.h
<<_ACEOF
15561 #define HAVE_LIBDGC 1
15573 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15574 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15575 # Irix 4.0.5F has the header but not the library.
15576 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15577 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15580 $as_echo "#define SVR4 1" >>confdefs.h
15584 if test $gl_have_func = no
; then
15585 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15586 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
15589 $as_echo "#define UMAX 1" >>confdefs.h
15592 $as_echo "#define UMAX4_3 1" >>confdefs.h
15599 if test $gl_have_func = no
; then
15600 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15601 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
15602 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15609 if test $gl_have_func = no
; then
15610 for ac_header
in mach
/mach.h
15612 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15613 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
15614 cat >>confdefs.h
<<_ACEOF
15615 #define HAVE_MACH_MACH_H 1
15624 for ac_header
in nlist.h
15626 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15627 if test "x$ac_cv_header_nlist_h" = xyes
; then :
15628 cat >>confdefs.h
<<_ACEOF
15629 #define HAVE_NLIST_H 1
15631 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15633 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
15635 cat >>confdefs.h
<<_ACEOF
15636 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15649 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15650 x.n_un.n_name = "";
15658 if ac_fn_c_try_link
"$LINENO"; then :
15660 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15663 rm -f core conftest.err conftest.
$ac_objext \
15664 conftest
$ac_exeext conftest.
$ac_ext
15674 if test "x$gl_save_LIBS" = x
; then
15675 GETLOADAVG_LIBS
=$LIBS
15677 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15682 # Test whether the system declares getloadavg. Solaris has the function
15683 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15684 for ac_header
in sys
/loadavg.h
15686 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15687 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
15688 cat >>confdefs.h
<<_ACEOF
15689 #define HAVE_SYS_LOADAVG_H 1
15696 if test $ac_cv_header_sys_loadavg_h = yes; then
15697 HAVE_SYS_LOADAVG_H
=1
15699 HAVE_SYS_LOADAVG_H
=0
15701 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15702 # include <sys/loadavg.h>
15704 #include <stdlib.h>
15706 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
15709 HAVE_DECL_GETLOADAVG
=0
15716 GNULIB_GETLOADAVG
=1
15720 # Code from module getopt-gnu:
15727 # Code from module getopt-posix:
15733 if test -n "$gl_replace_getopt"; then :
15739 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15743 GNULIB_UNISTD_H_GETOPT
=1
15752 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15762 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15772 # Code from module gettext-h:
15775 # Code from module ignore-value:
15777 # Code from module include_next:
15778 # Code from module intprops:
15779 # Code from module mktime:
15785 if test $APPLE_UNIVERSAL_BUILD = 1; then
15786 # A universal build on Apple MacOS X platforms.
15787 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15788 # But we need a configuration result that is valid in both modes.
15789 ac_cv_func_working_mktime
=no
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15792 $as_echo_n "checking for working mktime... " >&6; }
15793 if ${ac_cv_func_working_mktime+:} false
; then :
15794 $as_echo_n "(cached) " >&6
15796 if test "$cross_compiling" = yes; then :
15797 ac_cv_func_working_mktime
=no
15799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 /* Test program from Paul Eggert and Tony Leneis. */
15802 #include <limits.h>
15803 #include <stdlib.h>
15806 #ifdef HAVE_UNISTD_H
15807 # include <unistd.h>
15811 # define alarm(X) /* empty */
15814 /* Work around redefinition to rpl_putenv by other config tests. */
15817 static time_t time_t_max;
15818 static time_t time_t_min;
15820 /* Values we'll use to set the TZ environment variable. */
15821 static char *tz_strings[] = {
15822 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15823 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15825 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15827 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15828 Based on a problem report from Andreas Jaeger. */
15830 spring_forward_gap ()
15832 /* glibc (up to about 1998-10-07) failed this test. */
15835 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15836 instead of "TZ=America/Vancouver" in order to detect the bug even
15837 on systems that don't support the Olson extension, or don't have the
15838 full zoneinfo tables installed. */
15839 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15848 return mktime (&tm) != (time_t) -1;
15852 mktime_test1 (time_t now)
15855 return ! (lt = localtime (&now)) || mktime (lt) == now;
15859 mktime_test (time_t now)
15861 return (mktime_test1 (now)
15862 && mktime_test1 ((time_t) (time_t_max - now))
15863 && mktime_test1 ((time_t) (time_t_min + now)));
15869 /* Based on code from Ariel Faigon. */
15879 return tm.tm_mon == 2 && tm.tm_mday == 31;
15883 bigtime_test (int j)
15887 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15888 now = mktime (&tm);
15889 if (now != (time_t) -1)
15891 struct tm *lt = localtime (&now);
15893 && lt->tm_year == tm.tm_year
15894 && lt->tm_mon == tm.tm_mon
15895 && lt->tm_mday == tm.tm_mday
15896 && lt->tm_hour == tm.tm_hour
15897 && lt->tm_min == tm.tm_min
15898 && lt->tm_sec == tm.tm_sec
15899 && lt->tm_yday == tm.tm_yday
15900 && lt->tm_wday == tm.tm_wday
15901 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15902 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15911 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15912 ignoring leap seconds. */
15913 unsigned long int answer = 2527315200UL;
15917 tm.tm_year = 2050 - 1900;
15920 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15923 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15924 instead of "TZ=America/Vancouver" in order to detect the bug even
15925 on systems that don't support the Olson extension, or don't have the
15926 full zoneinfo tables installed. */
15927 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15931 /* Check that the result is either a failure, or close enough
15932 to the correct answer that we can assume the discrepancy is
15933 due to leap seconds. */
15934 return (t == (time_t) -1
15935 || (0 < t && answer - 120 <= t && t <= answer + 120));
15944 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15945 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15947 /* This test makes some buggy mktime implementations loop.
15948 Give up after 60 seconds; a mktime slower than that
15949 isn't worth using anyway. */
15952 time_t_max = (! time_t_signed
15954 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15956 time_t_min = (! time_t_signed
15958 : time_t_signed_magnitude
15962 delta = time_t_max / 997; /* a suitable prime number */
15963 for (i = 0; i < N_STRINGS; i++)
15966 putenv (tz_strings[i]);
15968 for (t = 0; t <= time_t_max - delta; t += delta)
15969 if (! mktime_test (t))
15971 if (! (mktime_test ((time_t) 1)
15972 && mktime_test ((time_t) (60 * 60))
15973 && mktime_test ((time_t) (60 * 60 * 24))))
15976 for (j = 1; ; j <<= 1)
15977 if (! bigtime_test (j))
15979 else if (INT_MAX / 2 < j)
15981 if (! bigtime_test (INT_MAX))
15984 if (! irix_6_4_bug ())
15986 if (! spring_forward_gap ())
15988 if (! year_2050_test ())
15993 if ac_fn_c_try_run
"$LINENO"; then :
15994 ac_cv_func_working_mktime
=yes
15996 ac_cv_func_working_mktime
=no
15998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16004 $as_echo "$ac_cv_func_working_mktime" >&6; }
16005 if test $ac_cv_func_working_mktime = no
; then
16014 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16018 if test $ac_cv_func_working_mktime = no
; then
16034 # Code from module multiarch:
16036 # Code from module stdbool:
16040 # Define two additional variables used in the Makefile substitution.
16042 if test "$ac_cv_header_stdbool_h" = yes; then
16045 STDBOOL_H
='stdbool.h'
16049 if test "$ac_cv_type__Bool" = yes; then
16056 # Code from module stddef:
16060 if test $gt_cv_c_wchar_t = no
; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16065 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16066 if ${gl_cv_decl_null_works+:} false
; then :
16067 $as_echo_n "(cached) " >&6
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <stddef.h>
16072 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16082 if ac_fn_c_try_compile
"$LINENO"; then :
16083 gl_cv_decl_null_works
=yes
16085 gl_cv_decl_null_works
=no
16087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16090 $as_echo "$gl_cv_decl_null_works" >&6; }
16091 if test $gl_cv_decl_null_works = no
; then
16095 if test -n "$STDDEF_H"; then
16104 if test $gl_cv_have_include_next = yes; then
16105 gl_cv_next_stddef_h
='<'stddef.h
'>'
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16108 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16109 if ${gl_cv_next_stddef_h+:} false
; then :
16110 $as_echo_n "(cached) " >&6
16113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #include <stddef.h>
16119 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16120 *) gl_absname_cpp
="$ac_cpp" ;;
16122 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16123 sed -n '\#/stddef.h#{
16124 s#.*"\(.*/stddef.h\)".*#\1#
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16133 $as_echo "$gl_cv_next_stddef_h" >&6; }
16135 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16137 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16139 gl_next_as_first_directive
='<'stddef.h
'>'
16141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16142 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16144 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16151 # Code from module stdint:
16155 if test $ac_cv_type_long_long_int = yes; then
16156 HAVE_LONG_LONG_INT
=1
16158 HAVE_LONG_LONG_INT
=0
16162 if test $ac_cv_type_unsigned_long_long_int = yes; then
16163 HAVE_UNSIGNED_LONG_LONG_INT
=1
16165 HAVE_UNSIGNED_LONG_LONG_INT
=0
16170 if test $ac_cv_header_wchar_h = yes; then
16177 if test $ac_cv_header_inttypes_h = yes; then
16184 if test $ac_cv_header_sys_types_h = yes; then
16200 if test $gl_cv_have_include_next = yes; then
16201 gl_cv_next_stdint_h
='<'stdint.h
'>'
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16204 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16205 if ${gl_cv_next_stdint_h+:} false
; then :
16206 $as_echo_n "(cached) " >&6
16209 if test $ac_cv_header_stdint_h = yes; then
16212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16214 #include <stdint.h>
16218 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16219 *) gl_absname_cpp
="$ac_cpp" ;;
16221 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16222 sed -n '\#/stdint.h#{
16223 s#.*"\(.*/stdint.h\)".*#\1#
16229 gl_cv_next_stdint_h
='<'stdint.h
'>'
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16235 $as_echo "$gl_cv_next_stdint_h" >&6; }
16237 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16239 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16241 gl_next_as_first_directive
='<'stdint.h
'>'
16243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16244 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16246 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16251 if test $ac_cv_header_stdint_h = yes; then
16258 if test $ac_cv_header_stdint_h = yes; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16260 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16261 if ${gl_cv_header_working_stdint_h+:} false
; then :
16262 $as_echo_n "(cached) " >&6
16264 gl_cv_header_working_stdint_h
=no
16265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16269 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16270 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16271 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16272 #include <stdint.h>
16273 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16274 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16275 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16279 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16280 included before <wchar.h>. */
16281 #include <stddef.h>
16282 #include <signal.h>
16284 # include <stdio.h>
16286 # include <wchar.h>
16291 int8_t a1 = INT8_MAX;
16292 int8_t a1min = INT8_MIN;
16295 int16_t a2 = INT16_MAX;
16296 int16_t a2min = INT16_MIN;
16299 int32_t a3 = INT32_MAX;
16300 int32_t a3min = INT32_MIN;
16303 int64_t a4 = INT64_MAX;
16304 int64_t a4min = INT64_MIN;
16307 uint8_t b1 = UINT8_MAX;
16309 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16312 uint16_t b2 = UINT16_MAX;
16315 uint32_t b3 = UINT32_MAX;
16318 uint64_t b4 = UINT64_MAX;
16320 int_least8_t c1 = INT8_C (0x7f);
16321 int_least8_t c1max = INT_LEAST8_MAX;
16322 int_least8_t c1min = INT_LEAST8_MIN;
16323 int_least16_t c2 = INT16_C (0x7fff);
16324 int_least16_t c2max = INT_LEAST16_MAX;
16325 int_least16_t c2min = INT_LEAST16_MIN;
16326 int_least32_t c3 = INT32_C (0x7fffffff);
16327 int_least32_t c3max = INT_LEAST32_MAX;
16328 int_least32_t c3min = INT_LEAST32_MIN;
16329 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16330 int_least64_t c4max = INT_LEAST64_MAX;
16331 int_least64_t c4min = INT_LEAST64_MIN;
16332 uint_least8_t d1 = UINT8_C (0xff);
16333 uint_least8_t d1max = UINT_LEAST8_MAX;
16334 uint_least16_t d2 = UINT16_C (0xffff);
16335 uint_least16_t d2max = UINT_LEAST16_MAX;
16336 uint_least32_t d3 = UINT32_C (0xffffffff);
16337 uint_least32_t d3max = UINT_LEAST32_MAX;
16338 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16339 uint_least64_t d4max = UINT_LEAST64_MAX;
16340 int_fast8_t e1 = INT_FAST8_MAX;
16341 int_fast8_t e1min = INT_FAST8_MIN;
16342 int_fast16_t e2 = INT_FAST16_MAX;
16343 int_fast16_t e2min = INT_FAST16_MIN;
16344 int_fast32_t e3 = INT_FAST32_MAX;
16345 int_fast32_t e3min = INT_FAST32_MIN;
16346 int_fast64_t e4 = INT_FAST64_MAX;
16347 int_fast64_t e4min = INT_FAST64_MIN;
16348 uint_fast8_t f1 = UINT_FAST8_MAX;
16349 uint_fast16_t f2 = UINT_FAST16_MAX;
16350 uint_fast32_t f3 = UINT_FAST32_MAX;
16351 uint_fast64_t f4 = UINT_FAST64_MAX;
16353 intptr_t g = INTPTR_MAX;
16354 intptr_t gmin = INTPTR_MIN;
16357 uintptr_t h = UINTPTR_MAX;
16359 intmax_t i = INTMAX_MAX;
16360 uintmax_t j = UINTMAX_MAX;
16362 #include <limits.h> /* for CHAR_BIT */
16363 #define TYPE_MINIMUM(t) \
16364 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16365 #define TYPE_MAXIMUM(t) \
16366 ((t) ((t) 0 < (t) -1 \
16368 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16371 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16372 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16374 /* Detect bug in FreeBSD 6.0 / ia64. */
16375 int check_SIG_ATOMIC:
16376 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16377 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16379 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16381 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16382 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16384 /* Detect bug in mingw. */
16386 WINT_MIN == TYPE_MINIMUM (wint_t)
16387 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16390 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16392 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16393 int check_UINT16_C:
16394 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16396 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16398 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16401 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16404 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16407 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16409 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16410 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16411 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16412 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16413 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16414 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16415 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16416 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16417 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16418 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16419 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16430 if ac_fn_c_try_compile
"$LINENO"; then :
16431 if test "$cross_compiling" = yes; then :
16432 gl_cv_header_working_stdint_h
=yes
16435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16439 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16440 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16441 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16442 #include <stdint.h>
16445 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16446 included before <wchar.h>. */
16447 #include <stddef.h>
16448 #include <signal.h>
16450 # include <stdio.h>
16452 # include <wchar.h>
16457 #include <string.h>
16458 #define MVAL(macro) MVAL1(macro)
16459 #define MVAL1(expression) #expression
16460 static const char *macro_values[] =
16494 for (mv = macro_values; *mv != NULL; mv++)
16496 const char *value = *mv;
16497 /* Test whether it looks like a cast expression. */
16498 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16499 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16500 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16501 || strncmp (value, "((int)"/*)*/, 6) == 0
16502 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16503 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16504 return mv - macro_values + 1;
16512 if ac_fn_c_try_run
"$LINENO"; then :
16513 gl_cv_header_working_stdint_h
=yes
16515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16525 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16527 if test "$gl_cv_header_working_stdint_h" = yes; then
16530 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16532 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16533 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16534 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16535 cat >>confdefs.h
<<_ACEOF
16536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16543 if test $ac_cv_header_sys_inttypes_h = yes; then
16544 HAVE_SYS_INTTYPES_H
=1
16546 HAVE_SYS_INTTYPES_H
=0
16549 if test $ac_cv_header_sys_bitypes_h = yes; then
16550 HAVE_SYS_BITYPES_H
=1
16552 HAVE_SYS_BITYPES_H
=0
16558 if test $APPLE_UNIVERSAL_BUILD = 0; then
16561 for gltype
in ptrdiff_t size_t
; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16563 $as_echo_n "checking for bit size of $gltype... " >&6; }
16564 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16565 $as_echo_n "(cached) " >&6
16567 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16569 included before <wchar.h>. */
16570 #include <stddef.h>
16571 #include <signal.h>
16573 # include <stdio.h>
16575 # include <wchar.h>
16578 #include <limits.h>"; then :
16584 eval gl_cv_bitsizeof_
${gltype}=\
$result
16587 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16589 $as_echo "$ac_res" >&6; }
16590 eval result
=\
$gl_cv_bitsizeof_${gltype}
16591 if test $result = unknown
; then
16594 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16595 cat >>confdefs.h
<<_ACEOF
16596 #define BITSIZEOF_${GLTYPE} $result
16599 eval BITSIZEOF_
${GLTYPE}=\
$result
16606 for gltype
in sig_atomic_t wchar_t wint_t
; do
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16608 $as_echo_n "checking for bit size of $gltype... " >&6; }
16609 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16610 $as_echo_n "(cached) " >&6
16612 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16614 included before <wchar.h>. */
16615 #include <stddef.h>
16616 #include <signal.h>
16618 # include <stdio.h>
16620 # include <wchar.h>
16623 #include <limits.h>"; then :
16629 eval gl_cv_bitsizeof_
${gltype}=\
$result
16632 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16634 $as_echo "$ac_res" >&6; }
16635 eval result
=\
$gl_cv_bitsizeof_${gltype}
16636 if test $result = unknown
; then
16639 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16640 cat >>confdefs.h
<<_ACEOF
16641 #define BITSIZEOF_${GLTYPE} $result
16644 eval BITSIZEOF_
${GLTYPE}=\
$result
16650 for gltype
in sig_atomic_t wchar_t wint_t
; do
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16652 $as_echo_n "checking whether $gltype is signed... " >&6; }
16653 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
16654 $as_echo_n "(cached) " >&6
16656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16660 included before <wchar.h>. */
16661 #include <stddef.h>
16662 #include <signal.h>
16664 # include <stdio.h>
16666 # include <wchar.h>
16669 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16678 if ac_fn_c_try_compile
"$LINENO"; then :
16683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16684 eval gl_cv_type_
${gltype}_signed
=\
$result
16687 eval ac_res
=\
$gl_cv_type_${gltype}_signed
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16689 $as_echo "$ac_res" >&6; }
16690 eval result
=\
$gl_cv_type_${gltype}_signed
16691 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16692 if test "$result" = yes; then
16693 cat >>confdefs.h
<<_ACEOF
16694 #define HAVE_SIGNED_${GLTYPE} 1
16697 eval HAVE_SIGNED_
${GLTYPE}=1
16699 eval HAVE_SIGNED_
${GLTYPE}=0
16704 gl_cv_type_ptrdiff_t_signed
=yes
16705 gl_cv_type_size_t_signed
=no
16706 if test $APPLE_UNIVERSAL_BUILD = 0; then
16709 for gltype
in ptrdiff_t size_t
; do
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16711 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16712 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16713 $as_echo_n "(cached) " >&6
16715 eval gl_cv_type_
${gltype}_suffix
=no
16716 eval result
=\
$gl_cv_type_${gltype}_signed
16717 if test "$result" = yes; then
16722 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16724 '') gltype1
='int';;
16725 l
) gltype1
='long int';;
16726 ll
) gltype1
='long long int';;
16727 i64
) gltype1
='__int64';;
16728 u
) gltype1
='unsigned int';;
16729 ul
) gltype1
='unsigned long int';;
16730 ull
) gltype1
='unsigned long long int';;
16731 ui64
)gltype1
='unsigned __int64';;
16733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16737 included before <wchar.h>. */
16738 #include <stddef.h>
16739 #include <signal.h>
16741 # include <stdio.h>
16743 # include <wchar.h>
16746 extern $gltype foo;
16747 extern $gltype1 foo;
16756 if ac_fn_c_try_compile
"$LINENO"; then :
16757 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16760 eval result
=\
$gl_cv_type_${gltype}_suffix
16761 test "$result" != no
&& break
16764 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16766 $as_echo "$ac_res" >&6; }
16767 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16768 eval result
=\
$gl_cv_type_${gltype}_suffix
16769 test "$result" = no
&& result
=
16770 eval ${GLTYPE}_SUFFIX
=\
$result
16771 cat >>confdefs.h
<<_ACEOF
16772 #define ${GLTYPE}_SUFFIX $result
16781 for gltype
in sig_atomic_t wchar_t wint_t
; do
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16783 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16784 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16785 $as_echo_n "(cached) " >&6
16787 eval gl_cv_type_
${gltype}_suffix
=no
16788 eval result
=\
$gl_cv_type_${gltype}_signed
16789 if test "$result" = yes; then
16794 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16796 '') gltype1
='int';;
16797 l
) gltype1
='long int';;
16798 ll
) gltype1
='long long int';;
16799 i64
) gltype1
='__int64';;
16800 u
) gltype1
='unsigned int';;
16801 ul
) gltype1
='unsigned long int';;
16802 ull
) gltype1
='unsigned long long int';;
16803 ui64
)gltype1
='unsigned __int64';;
16805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16809 included before <wchar.h>. */
16810 #include <stddef.h>
16811 #include <signal.h>
16813 # include <stdio.h>
16815 # include <wchar.h>
16818 extern $gltype foo;
16819 extern $gltype1 foo;
16828 if ac_fn_c_try_compile
"$LINENO"; then :
16829 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16832 eval result
=\
$gl_cv_type_${gltype}_suffix
16833 test "$result" != no
&& break
16836 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16838 $as_echo "$ac_res" >&6; }
16839 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16840 eval result
=\
$gl_cv_type_${gltype}_suffix
16841 test "$result" = no
&& result
=
16842 eval ${GLTYPE}_SUFFIX
=\
$result
16843 cat >>confdefs.h
<<_ACEOF
16844 #define ${GLTYPE}_SUFFIX $result
16855 # Code from module stdlib:
16866 if test $gl_cv_have_include_next = yes; then
16867 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16870 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16871 if ${gl_cv_next_stdlib_h+:} false
; then :
16872 $as_echo_n "(cached) " >&6
16875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 #include <stdlib.h>
16881 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16882 *) gl_absname_cpp
="$ac_cpp" ;;
16884 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16885 sed -n '\#/stdlib.h#{
16886 s#.*"\(.*/stdlib.h\)".*#\1#
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16895 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16897 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
16899 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16901 gl_next_as_first_directive
='<'stdlib.h
'>'
16903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16904 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
16906 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
16914 # Code from module strftime:
16925 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
16928 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16936 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16940 # Code from module sys_stat:
16957 if test $gl_cv_have_include_next = yes; then
16958 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16961 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16962 if ${gl_cv_next_sys_stat_h+:} false
; then :
16963 $as_echo_n "(cached) " >&6
16966 if test $ac_cv_header_sys_stat_h = yes; then
16969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 #include <sys/stat.h>
16975 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16976 *) gl_absname_cpp
="$ac_cpp" ;;
16978 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16979 sed -n '\#/sys/stat.h#{
16980 s#.*"\(.*/sys/stat.h\)".*#\1#
16986 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16992 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16994 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
16996 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16998 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17001 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17003 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17009 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17010 #include <sys/stat.h>
17012 if test "x$ac_cv_type_nlink_t" = xyes
; then :
17016 $as_echo "#define nlink_t int" >>confdefs.h
17024 # Code from module time:
17028 # Code from module time_r:
17036 if test $ac_cv_have_decl_localtime_r = no
; then
17037 HAVE_DECL_LOCALTIME_R
=0
17041 if test $ac_cv_func_localtime_r = yes; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17044 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17045 if ${gl_cv_time_r_posix+:} false
; then :
17046 $as_echo_n "(cached) " >&6
17048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17054 /* We don't need to append 'restrict's to the argument types,
17055 even though the POSIX signature has the 'restrict's,
17056 since C99 says they can't affect type compatibility. */
17057 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17059 /* Check the return type is a pointer.
17060 On HP-UX 10 it is 'int'. */
17061 *localtime_r (0, 0);
17067 if ac_fn_c_try_compile
"$LINENO"; then :
17068 gl_cv_time_r_posix
=yes
17070 gl_cv_time_r_posix
=no
17072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17076 $as_echo "$gl_cv_time_r_posix" >&6; }
17077 if test $gl_cv_time_r_posix = yes; then
17078 REPLACE_LOCALTIME_R
=0
17080 REPLACE_LOCALTIME_R
=1
17085 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17094 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17108 # Code from module unistd:
17122 if test $gl_cv_have_include_next = yes; then
17123 gl_cv_next_unistd_h
='<'unistd.h
'>'
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17126 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17127 if ${gl_cv_next_unistd_h+:} false
; then :
17128 $as_echo_n "(cached) " >&6
17131 if test $ac_cv_header_unistd_h = yes; then
17134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 #include <unistd.h>
17140 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17141 *) gl_absname_cpp
="$ac_cpp" ;;
17143 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17144 sed -n '\#/unistd.h#{
17145 s#.*"\(.*/unistd.h\)".*#\1#
17151 gl_cv_next_unistd_h
='<'unistd.h
'>'
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17157 $as_echo "$gl_cv_next_unistd_h" >&6; }
17159 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17161 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17163 gl_next_as_first_directive
='<'unistd.h
'>'
17165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17166 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17168 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17173 if test $ac_cv_header_unistd_h = yes; then
17182 # Code from module warn-on-use:
17183 # End of code from modules
17204 gl_source_base
='tests'
17205 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
17207 gl_module_indicator_condition
=$gltests_WITNESS
17217 LIBGNU_LIBDEPS
="$gl_libdeps"
17219 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
17223 # Emacs does not care about lstat's behavior on files whose names end in
17224 # trailing slashes, so it does not use the gnulib lstat module.
17225 # However, Emacs does want the "#define lstat stat" in sys/stat.h
17226 # when lstat does not exist, so it pretends to use the lstat module
17227 # even though it implements only the lstat-checking part of that module.
17231 test $ac_cv_func_lstat = yes || HAVE_LSTAT
=0
17241 for ac_func
in grantpt
17243 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
17244 if test "x$ac_cv_func_grantpt" = xyes
; then :
17245 cat >>confdefs.h
<<_ACEOF
17246 #define HAVE_GRANTPT 1
17253 # PTY-related GNU extensions.
17254 for ac_func
in getpt
17256 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
17257 if test "x$ac_cv_func_getpt" = xyes
; then :
17258 cat >>confdefs.h
<<_ACEOF
17259 #define HAVE_GETPT 1
17266 # Check this now, so that we will NOT find the above functions in ncurses.
17267 # That is because we have not set up to link ncurses in lib-src.
17268 # It's better to believe a function is not available
17269 # than to expect to find it in ncurses.
17270 # Also we need tputs and friends to be able to build at all.
17271 have_tputs_et_al
=true
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17273 $as_echo_n "checking for library containing tputs... " >&6; }
17274 if ${ac_cv_search_tputs+:} false
; then :
17275 $as_echo_n "(cached) " >&6
17277 ac_func_search_save_LIBS
=$LIBS
17278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17281 /* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17296 for ac_lib
in '' ncurses terminfo termcap
; do
17297 if test -z "$ac_lib"; then
17298 ac_res
="none required"
17301 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17303 if ac_fn_c_try_link
"$LINENO"; then :
17304 ac_cv_search_tputs
=$ac_res
17306 rm -f core conftest.err conftest.
$ac_objext \
17308 if ${ac_cv_search_tputs+:} false
; then :
17312 if ${ac_cv_search_tputs+:} false
; then :
17315 ac_cv_search_tputs
=no
17317 rm conftest.
$ac_ext
17318 LIBS
=$ac_func_search_save_LIBS
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17321 $as_echo "$ac_cv_search_tputs" >&6; }
17322 ac_res
=$ac_cv_search_tputs
17323 if test "$ac_res" != no
; then :
17324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17327 have_tputs_et_al
=false
17330 if test "$have_tputs_et_al" != true
; then
17331 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17332 Maybe some development libraries/packages are missing? Try installing
17333 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17335 # Must define this when any termcap library is found.
17337 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17339 ## FIXME This was the cpp logic, but I am not sure it is right.
17340 ## The above test has not necessarily found libncurses.
17341 HAVE_LIBNCURSES
=yes
17343 ## Use terminfo instead of termcap?
17344 ## Note only system files NOT using terminfo are:
17345 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17346 ## darwin|gnu without ncurses.
17350 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17351 ## hpux10-20: Use the system provided termcap(3) library.
17352 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17353 ## is necessary. Otherwise Emacs dumps core when run -nw.
17354 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17356 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17357 ## The ncurses library has been moved out of the System framework in
17358 ## Mac OS X 10.2. So if configure detects it, set the command-line
17359 ## option to use it.
17361 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17362 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17364 LIBS_TERMCAP
="-lncurses"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17370 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17371 if ${emacs_cv_freebsd_terminfo+:} false
; then :
17372 $as_echo_n "(cached) " >&6
17374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 #include <osreldate.h>
17380 #if __FreeBSD_version < 400000
17388 if ac_fn_c_try_link
"$LINENO"; then :
17389 emacs_cv_freebsd_terminfo
=yes
17391 emacs_cv_freebsd_terminfo
=no
17393 rm -f core conftest.err conftest.
$ac_objext \
17394 conftest
$ac_exeext conftest.
$ac_ext
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17399 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17401 if test $emacs_cv_freebsd_terminfo = yes; then
17403 LIBS_TERMCAP
="-lncurses"
17405 LIBS_TERMCAP
="-ltermcap"
17410 if test $ac_cv_search_tputs = -lterminfo; then
17412 LIBS_TERMCAP
="-lterminfo"
17414 LIBS_TERMCAP
="-ltermcap"
17421 ## hpux: Make sure we get select from libc rather than from libcurses
17422 ## because libcurses on HPUX 10.10 has a broken version of select.
17423 ## We used to use -lc -lcurses, but this may be cleaner.
17424 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17426 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17428 ## Must use system termcap, if we use any termcap. It does special things.
17429 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17432 TERMCAP_OBJ
=tparam.o
17433 if test $TERMINFO = yes; then
17435 $as_echo "#define TERMINFO 1" >>confdefs.h
17438 ## Default used to be -ltermcap. Add a case above if need something else.
17439 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17441 TERMCAP_OBJ
=terminfo.o
17447 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17451 #include <netinet/in.h>
17452 #include <arpa/nameser.h>
17453 #include <resolv.h>
17462 if ac_fn_c_try_link
"$LINENO"; then :
17467 rm -f core conftest.err conftest.
$ac_objext \
17468 conftest
$ac_exeext conftest.
$ac_ext
17469 if test "$have_res_init" = no
; then
17471 LIBS
="$LIBS -lresolv"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17473 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476 #include <netinet/in.h>
17477 #include <arpa/nameser.h>
17478 #include <resolv.h>
17487 if ac_fn_c_try_link
"$LINENO"; then :
17492 rm -f core conftest.err conftest.
$ac_objext \
17493 conftest
$ac_exeext conftest.
$ac_ext
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17495 $as_echo "$have_res_init" >&6; }
17496 if test "$have_res_init" = yes ; then
17502 if test "$have_res_init" = yes; then
17504 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17508 # Do we need the Hesiod library to provide the support routines?
17510 if test "$with_hesiod" != no
; then
17511 # Don't set $LIBS here -- see comments above. FIXME which comments?
17512 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17513 if test "x$ac_cv_func_res_send" = xyes
; then :
17516 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
17517 if test "x$ac_cv_func___res_send" = xyes
; then :
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17521 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17522 if ${ac_cv_lib_resolv_res_send+:} false
; then :
17523 $as_echo_n "(cached) " >&6
17525 ac_check_lib_save_LIBS
=$LIBS
17526 LIBS
="-lresolv $LIBS"
17527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17530 /* Override any GCC internal prototype to avoid an error.
17531 Use char because int might match the return type of a GCC
17532 builtin and then its argument prototype would still apply. */
17540 return res_send ();
17545 if ac_fn_c_try_link
"$LINENO"; then :
17546 ac_cv_lib_resolv_res_send
=yes
17548 ac_cv_lib_resolv_res_send
=no
17550 rm -f core conftest.err conftest.
$ac_objext \
17551 conftest
$ac_exeext conftest.
$ac_ext
17552 LIBS
=$ac_check_lib_save_LIBS
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17555 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17556 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17560 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17561 if ${ac_cv_lib_resolv___res_send+:} false
; then :
17562 $as_echo_n "(cached) " >&6
17564 ac_check_lib_save_LIBS
=$LIBS
17565 LIBS
="-lresolv $LIBS"
17566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17569 /* Override any GCC internal prototype to avoid an error.
17570 Use char because int might match the return type of a GCC
17571 builtin and then its argument prototype would still apply. */
17575 char __res_send ();
17579 return __res_send ();
17584 if ac_fn_c_try_link
"$LINENO"; then :
17585 ac_cv_lib_resolv___res_send
=yes
17587 ac_cv_lib_resolv___res_send
=no
17589 rm -f core conftest.err conftest.
$ac_objext \
17590 conftest
$ac_exeext conftest.
$ac_ext
17591 LIBS
=$ac_check_lib_save_LIBS
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17594 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17595 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
17605 if test "$resolv" = yes ; then
17610 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17611 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17615 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17616 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
17617 $as_echo_n "(cached) " >&6
17619 ac_check_lib_save_LIBS
=$LIBS
17620 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17624 /* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17630 char hes_getmailhost ();
17634 return hes_getmailhost ();
17639 if ac_fn_c_try_link
"$LINENO"; then :
17640 ac_cv_lib_hesiod_hes_getmailhost
=yes
17642 ac_cv_lib_hesiod_hes_getmailhost
=no
17644 rm -f core conftest.err conftest.
$ac_objext \
17645 conftest
$ac_exeext conftest.
$ac_ext
17646 LIBS
=$ac_check_lib_save_LIBS
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17649 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17650 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
17659 if test x
"$hesiod" = xyes
; then
17661 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17668 # Do we need libresolv (due to res_init or Hesiod)?
17669 if test "$resolv" = yes ; then
17671 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17679 # These tell us which Kerberos-related libraries to use.
17686 if test "${with_kerberos}" != no
; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17688 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17689 if ${ac_cv_lib_com_err_com_err+:} false
; then :
17690 $as_echo_n "(cached) " >&6
17692 ac_check_lib_save_LIBS
=$LIBS
17693 LIBS
="-lcom_err $LIBS"
17694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17697 /* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17712 if ac_fn_c_try_link
"$LINENO"; then :
17713 ac_cv_lib_com_err_com_err
=yes
17715 ac_cv_lib_com_err_com_err
=no
17717 rm -f core conftest.err conftest.
$ac_objext \
17718 conftest
$ac_exeext conftest.
$ac_ext
17719 LIBS
=$ac_check_lib_save_LIBS
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17722 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17723 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
17729 if test $have_com_err = yes; then
17730 COM_ERRLIB
=-lcom_err
17731 LIBS
="$COM_ERRLIB $LIBS"
17733 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17737 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17738 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
17739 $as_echo_n "(cached) " >&6
17741 ac_check_lib_save_LIBS
=$LIBS
17742 LIBS
="-lcrypto $LIBS"
17743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17752 char mit_des_cbc_encrypt ();
17756 return mit_des_cbc_encrypt ();
17761 if ac_fn_c_try_link
"$LINENO"; then :
17762 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17764 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17766 rm -f core conftest.err conftest.
$ac_objext \
17767 conftest
$ac_exeext conftest.
$ac_ext
17768 LIBS
=$ac_check_lib_save_LIBS
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17771 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17772 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
17778 if test $have_crypto = yes; then
17780 LIBS
="$CRYPTOLIB $LIBS"
17782 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17786 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17787 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
17788 $as_echo_n "(cached) " >&6
17790 ac_check_lib_save_LIBS
=$LIBS
17791 LIBS
="-lk5crypto $LIBS"
17792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17801 char mit_des_cbc_encrypt ();
17805 return mit_des_cbc_encrypt ();
17810 if ac_fn_c_try_link
"$LINENO"; then :
17811 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17813 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17815 rm -f core conftest.err conftest.
$ac_objext \
17816 conftest
$ac_exeext conftest.
$ac_ext
17817 LIBS
=$ac_check_lib_save_LIBS
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17820 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17821 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
17827 if test $have_k5crypto = yes; then
17828 CRYPTOLIB
=-lk5crypto
17829 LIBS
="$CRYPTOLIB $LIBS"
17831 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17835 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17836 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
17837 $as_echo_n "(cached) " >&6
17839 ac_check_lib_save_LIBS
=$LIBS
17840 LIBS
="-lkrb5 $LIBS"
17841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17844 /* Override any GCC internal prototype to avoid an error.
17845 Use char because int might match the return type of a GCC
17846 builtin and then its argument prototype would still apply. */
17850 char krb5_init_context ();
17854 return krb5_init_context ();
17859 if ac_fn_c_try_link
"$LINENO"; then :
17860 ac_cv_lib_krb5_krb5_init_context
=yes
17862 ac_cv_lib_krb5_krb5_init_context
=no
17864 rm -f core conftest.err conftest.
$ac_objext \
17865 conftest
$ac_exeext conftest.
$ac_ext
17866 LIBS
=$ac_check_lib_save_LIBS
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17869 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17870 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
17876 if test $have_krb5=yes; then
17878 LIBS
="$KRB5LIB $LIBS"
17880 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17883 if test "${with_kerberos5}" = no
; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17885 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17886 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
17887 $as_echo_n "(cached) " >&6
17889 ac_check_lib_save_LIBS
=$LIBS
17890 LIBS
="-ldes425 $LIBS"
17891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17900 char des_cbc_encrypt ();
17904 return des_cbc_encrypt ();
17909 if ac_fn_c_try_link
"$LINENO"; then :
17910 ac_cv_lib_des425_des_cbc_encrypt
=yes
17912 ac_cv_lib_des425_des_cbc_encrypt
=no
17914 rm -f core conftest.err conftest.
$ac_objext \
17915 conftest
$ac_exeext conftest.
$ac_ext
17916 LIBS
=$ac_check_lib_save_LIBS
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17919 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17920 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
17926 if test $have_des425 = yes; then
17928 LIBS
="$DESLIB $LIBS"
17930 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17934 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17935 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
17936 $as_echo_n "(cached) " >&6
17938 ac_check_lib_save_LIBS
=$LIBS
17940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17943 /* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17949 char des_cbc_encrypt ();
17953 return des_cbc_encrypt ();
17958 if ac_fn_c_try_link
"$LINENO"; then :
17959 ac_cv_lib_des_des_cbc_encrypt
=yes
17961 ac_cv_lib_des_des_cbc_encrypt
=no
17963 rm -f core conftest.err conftest.
$ac_objext \
17964 conftest
$ac_exeext conftest.
$ac_ext
17965 LIBS
=$ac_check_lib_save_LIBS
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17968 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17969 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
17975 if test $have_des = yes; then
17977 LIBS
="$DESLIB $LIBS"
17979 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17984 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17985 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
17986 $as_echo_n "(cached) " >&6
17988 ac_check_lib_save_LIBS
=$LIBS
17989 LIBS
="-lkrb4 $LIBS"
17990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17993 /* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
17999 char krb_get_cred ();
18003 return krb_get_cred ();
18008 if ac_fn_c_try_link
"$LINENO"; then :
18009 ac_cv_lib_krb4_krb_get_cred
=yes
18011 ac_cv_lib_krb4_krb_get_cred
=no
18013 rm -f core conftest.err conftest.
$ac_objext \
18014 conftest
$ac_exeext conftest.
$ac_ext
18015 LIBS
=$ac_check_lib_save_LIBS
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18018 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18019 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
18025 if test $have_krb4 = yes; then
18027 LIBS
="$KRB4LIB $LIBS"
18029 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18033 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18034 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
18035 $as_echo_n "(cached) " >&6
18037 ac_check_lib_save_LIBS
=$LIBS
18039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18048 char krb_get_cred ();
18052 return krb_get_cred ();
18057 if ac_fn_c_try_link
"$LINENO"; then :
18058 ac_cv_lib_krb_krb_get_cred
=yes
18060 ac_cv_lib_krb_krb_get_cred
=no
18062 rm -f core conftest.err conftest.
$ac_objext \
18063 conftest
$ac_exeext conftest.
$ac_ext
18064 LIBS
=$ac_check_lib_save_LIBS
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18067 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18068 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
18074 if test $have_krb = yes; then
18076 LIBS
="$KRB4LIB $LIBS"
18078 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18084 if test "${with_kerberos5}" != no
; then
18085 for ac_header
in krb5.h
18087 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18088 if test "x$ac_cv_header_krb5_h" = xyes
; then :
18089 cat >>confdefs.h
<<_ACEOF
18090 #define HAVE_KRB5_H 1
18092 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18094 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
18096 cat >>confdefs.h
<<_ACEOF
18097 #define HAVE_KRB5_ERROR_TEXT 1
18102 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18104 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
18106 cat >>confdefs.h
<<_ACEOF
18107 #define HAVE_KRB5_ERROR_E_TEXT 1
18118 for ac_header
in des.h
18120 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18121 if test "x$ac_cv_header_des_h" = xyes
; then :
18122 cat >>confdefs.h
<<_ACEOF
18123 #define HAVE_DES_H 1
18127 for ac_header
in kerberosIV
/des.h
18129 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18130 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
18131 cat >>confdefs.h
<<_ACEOF
18132 #define HAVE_KERBEROSIV_DES_H 1
18136 for ac_header
in kerberos
/des.h
18138 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18139 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
18140 cat >>confdefs.h
<<_ACEOF
18141 #define HAVE_KERBEROS_DES_H 1
18156 for ac_header
in krb.h
18158 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18159 if test "x$ac_cv_header_krb_h" = xyes
; then :
18160 cat >>confdefs.h
<<_ACEOF
18161 #define HAVE_KRB_H 1
18165 for ac_header
in kerberosIV
/krb.h
18167 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18168 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
18169 cat >>confdefs.h
<<_ACEOF
18170 #define HAVE_KERBEROSIV_KRB_H 1
18174 for ac_header
in kerberos
/krb.h
18176 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18177 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
18178 cat >>confdefs.h
<<_ACEOF
18179 #define HAVE_KERBEROS_KRB_H 1
18195 for ac_header
in com_err.h
18197 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18198 if test "x$ac_cv_header_com_err_h" = xyes
; then :
18199 cat >>confdefs.h
<<_ACEOF
18200 #define HAVE_COM_ERR_H 1
18215 # Solaris requires -lintl if you want strerror (which calls dgettext)
18216 # to return localized messages.
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18218 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18219 if ${ac_cv_lib_intl_dgettext+:} false
; then :
18220 $as_echo_n "(cached) " >&6
18222 ac_check_lib_save_LIBS
=$LIBS
18223 LIBS
="-lintl $LIBS"
18224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18227 /* Override any GCC internal prototype to avoid an error.
18228 Use char because int might match the return type of a GCC
18229 builtin and then its argument prototype would still apply. */
18237 return dgettext ();
18242 if ac_fn_c_try_link
"$LINENO"; then :
18243 ac_cv_lib_intl_dgettext
=yes
18245 ac_cv_lib_intl_dgettext
=no
18247 rm -f core conftest.err conftest.
$ac_objext \
18248 conftest
$ac_exeext conftest.
$ac_ext
18249 LIBS
=$ac_check_lib_save_LIBS
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18252 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18253 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
18254 cat >>confdefs.h
<<_ACEOF
18255 #define HAVE_LIBINTL 1
18258 LIBS
="-lintl $LIBS"
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18264 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18265 if ${emacs_cv_localtime_cache+:} false
; then :
18266 $as_echo_n "(cached) " >&6
18268 if test x
$ac_cv_func_tzset = xyes
; then
18269 if test "$cross_compiling" = yes; then :
18270 # If we have tzset, assume the worst when cross-compiling.
18271 emacs_cv_localtime_cache
=yes
18273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18276 char TZ_GMT0[] = "TZ=GMT0";
18277 char TZ_PST8[] = "TZ=PST8";
18280 time_t now = time ((time_t *) 0);
18281 int hour_GMT0, hour_unset;
18282 if (putenv (TZ_GMT0) != 0)
18284 hour_GMT0 = localtime (&now)->tm_hour;
18286 hour_unset = localtime (&now)->tm_hour;
18287 if (putenv (TZ_PST8) != 0)
18289 if (localtime (&now)->tm_hour == hour_GMT0)
18292 if (localtime (&now)->tm_hour != hour_unset)
18297 if ac_fn_c_try_run
"$LINENO"; then :
18298 emacs_cv_localtime_cache
=no
18300 emacs_cv_localtime_cache
=yes
18302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18307 # If we lack tzset, report that localtime does not cache TZ,
18308 # since we can't invalidate the cache if we don't have tzset.
18309 emacs_cv_localtime_cache
=no
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18313 $as_echo "$emacs_cv_localtime_cache" >&6; }
18314 if test $emacs_cv_localtime_cache = yes; then
18316 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18320 if test "x$HAVE_TIMEVAL" = xyes
; then
18321 for ac_func
in gettimeofday
18323 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18324 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
18325 cat >>confdefs.h
<<_ACEOF
18326 #define HAVE_GETTIMEOFDAY 1
18332 if test $ac_cv_func_gettimeofday = yes; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18334 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18335 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
18336 $as_echo_n "(cached) " >&6
18338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 #ifdef TIME_WITH_SYS_TIME
18342 #include <sys/time.h>
18345 #ifdef HAVE_SYS_TIME_H
18346 #include <sys/time.h>
18354 struct timeval time;
18355 gettimeofday (&time, 0);
18360 if ac_fn_c_try_compile
"$LINENO"; then :
18361 emacs_cv_gettimeofday_two_arguments
=yes
18363 emacs_cv_gettimeofday_two_arguments
=no
18365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18368 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18369 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18371 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18378 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18379 if test "x$ac_cv_func_socket" = xyes
; then :
18385 if test $ok_so_far = yes; then
18386 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18387 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
18395 if test $ok_so_far = yes; then
18396 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18397 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
18405 if test $ok_so_far = yes; then
18407 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18411 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18413 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18418 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18419 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421 $as_echo "yes" >&6; }
18423 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427 $as_echo "no" >&6; }
18430 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18431 if test "x$ac_cv_type_pid_t" = xyes
; then :
18435 cat >>confdefs.h
<<_ACEOF
18441 for ac_header
in vfork.h
18443 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18444 if test "x$ac_cv_header_vfork_h" = xyes
; then :
18445 cat >>confdefs.h
<<_ACEOF
18446 #define HAVE_VFORK_H 1
18453 for ac_func
in fork vfork
18455 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18456 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18457 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18458 cat >>confdefs.h
<<_ACEOF
18459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18465 if test "x$ac_cv_func_fork" = xyes
; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18467 $as_echo_n "checking for working fork... " >&6; }
18468 if ${ac_cv_func_fork_works+:} false
; then :
18469 $as_echo_n "(cached) " >&6
18471 if test "$cross_compiling" = yes; then :
18472 ac_cv_func_fork_works
=cross
18474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 $ac_includes_default
18481 /* By Ruediger Kuhlmann. */
18482 return fork () < 0;
18488 if ac_fn_c_try_run
"$LINENO"; then :
18489 ac_cv_func_fork_works
=yes
18491 ac_cv_func_fork_works
=no
18493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18499 $as_echo "$ac_cv_func_fork_works" >&6; }
18502 ac_cv_func_fork_works
=$ac_cv_func_fork
18504 if test "x$ac_cv_func_fork_works" = xcross
; then
18506 *-*-amigaos* |
*-*-msdosdjgpp*)
18507 # Override, as these systems have only a dummy fork() stub
18508 ac_cv_func_fork_works
=no
18511 ac_cv_func_fork_works
=yes
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18515 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18517 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18518 if test "x$ac_cv_func_vfork" = xyes
; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18520 $as_echo_n "checking for working vfork... " >&6; }
18521 if ${ac_cv_func_vfork_works+:} false
; then :
18522 $as_echo_n "(cached) " >&6
18524 if test "$cross_compiling" = yes; then :
18525 ac_cv_func_vfork_works
=cross
18527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 /* Thanks to Paul Eggert for this test. */
18530 $ac_includes_default
18531 #include <sys/wait.h>
18532 #ifdef HAVE_VFORK_H
18533 # include <vfork.h>
18535 /* On some sparc systems, changes by the child to local and incoming
18536 argument registers are propagated back to the parent. The compiler
18537 is told about this with #include <vfork.h>, but some compilers
18538 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18539 static variable whose address is put into a register that is
18540 clobbered by the vfork. */
18543 sparc_address_test (int arg)
18545 sparc_address_test (arg) int arg;
18548 static pid_t child;
18566 pid_t parent = getpid ();
18569 sparc_address_test (0);
18574 /* Here is another test for sparc vfork register problems. This
18575 test uses lots of local variables, at least as many local
18576 variables as main has allocated so far including compiler
18577 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18578 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18579 reuse the register of parent for one of the local variables,
18580 since it will think that parent can't possibly be used any more
18581 in this routine. Assigning to the local variable will thus
18582 munge parent in the parent process. */
18584 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18585 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18586 /* Convince the compiler that p..p7 are live; otherwise, it might
18587 use the same hardware register for all 8 local variables. */
18588 if (p != p1 || p != p2 || p != p3 || p != p4
18589 || p != p5 || p != p6 || p != p7)
18592 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18593 from child file descriptors. If the child closes a descriptor
18594 before it execs or exits, this munges the parent's descriptor
18595 as well. Test for this by closing stdout in the child. */
18596 _exit(close(fileno(stdout)) != 0);
18601 while (wait(&status) != child)
18604 /* Was there some problem with vforking? */
18607 /* Did the child fail? (This shouldn't happen.) */
18610 /* Did the vfork/compiler bug occur? */
18611 || parent != getpid()
18613 /* Did the file descriptor bug occur? */
18614 || fstat(fileno(stdout), &st) != 0
18619 if ac_fn_c_try_run
"$LINENO"; then :
18620 ac_cv_func_vfork_works
=yes
18622 ac_cv_func_vfork_works
=no
18624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18630 $as_echo "$ac_cv_func_vfork_works" >&6; }
18633 if test "x$ac_cv_func_fork_works" = xcross
; then
18634 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18636 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18639 if test "x$ac_cv_func_vfork_works" = xyes
; then
18641 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18645 $as_echo "#define vfork fork" >>confdefs.h
18648 if test "x$ac_cv_func_fork_works" = xyes
; then
18650 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18656 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18657 if ${emacs_cv_langinfo_codeset+:} false
; then :
18658 $as_echo_n "(cached) " >&6
18660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18662 #include <langinfo.h>
18666 char* cs = nl_langinfo(CODESET);
18671 if ac_fn_c_try_link
"$LINENO"; then :
18672 emacs_cv_langinfo_codeset
=yes
18674 emacs_cv_langinfo_codeset
=no
18676 rm -f core conftest.err conftest.
$ac_objext \
18677 conftest
$ac_exeext conftest.
$ac_ext
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18681 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18682 if test $emacs_cv_langinfo_codeset = yes; then
18684 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18688 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18689 if test "x$ac_cv_type_size_t" = xyes
; then :
18691 cat >>confdefs.h
<<_ACEOF
18692 #define HAVE_SIZE_T 1
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18700 $as_echo_n "checking for mbstate_t... " >&6; }
18701 if ${ac_cv_type_mbstate_t+:} false
; then :
18702 $as_echo_n "(cached) " >&6
18704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 $ac_includes_default
18707 # include <wchar.h>
18711 mbstate_t x; return sizeof x;
18716 if ac_fn_c_try_compile
"$LINENO"; then :
18717 ac_cv_type_mbstate_t
=yes
18719 ac_cv_type_mbstate_t
=no
18721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18724 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18725 if test $ac_cv_type_mbstate_t = yes; then
18727 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18731 $as_echo "#define mbstate_t int" >>confdefs.h
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18736 $as_echo_n "checking for C restricted array declarations... " >&6; }
18737 if ${emacs_cv_c_restrict_arr+:} false
; then :
18738 $as_echo_n "(cached) " >&6
18740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742 void fred (int x[__restrict]);
18751 if ac_fn_c_try_compile
"$LINENO"; then :
18752 emacs_cv_c_restrict_arr
=yes
18754 emacs_cv_c_restrict_arr
=no
18756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18759 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18760 if test "$emacs_cv_c_restrict_arr" = yes; then
18762 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18768 # Set up the CFLAGS for real compilation, so we can substitute it.
18769 CFLAGS
="$REAL_CFLAGS"
18770 CPPFLAGS
="$REAL_CPPFLAGS"
18772 ## Hack to detect a buggy GCC version.
18773 if test "x$GCC" = xyes \
18774 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18775 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
18776 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
18777 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18780 version
=$PACKAGE_VERSION
18782 ### Specify what sort of things we'll be editing into Makefile and config.h.
18783 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18807 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18808 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18809 ## end of LIBX_BASE, but nothing ever set it.
18814 ## Used in lwlib/Makefile.in.
18816 if test -n "${machfile}"; then
18817 M_FILE
="\$(srcdir)/${machfile}"
18821 S_FILE
="\$(srcdir)/${opsysfile}"
18832 cat >>confdefs.h
<<_ACEOF
18833 #define EMACS_CONFIGURATION "${canonical}"
18837 cat >>confdefs.h
<<_ACEOF
18838 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18841 if test -n "$machfile"; then
18843 cat >>confdefs.h
<<_ACEOF
18844 #define config_machfile "${machfile}"
18849 cat >>confdefs.h
<<_ACEOF
18850 #define config_opsysfile "${opsysfile}"
18857 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18859 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18862 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18864 if test "$HAVE_XFT" = "yes"; then
18865 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18866 elif test "$HAVE_FREETYPE" = "yes"; then
18867 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
18877 if test "${USE_X_TOOLKIT}" != "none" ; then
18878 WIDGET_OBJ
=widget.o
18880 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18882 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18884 $as_echo "#define USE_LUCID 1" >>confdefs.h
18886 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18888 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18893 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18894 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
18898 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18899 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18900 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
18904 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18905 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
18908 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
18914 case "$USE_X_TOOLKIT" in
18915 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
18916 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
18917 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
18921 if test "$USE_X_TOOLKIT" = "none"; then
18922 LIBXT_OTHER
="\$(LIBXSM)"
18923 OLDXMENU_TARGET
="really-oldXMenu"
18925 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18926 OLDXMENU_TARGET
="really-lwlib"
18930 ## The X Menu stuff is present in the X10 distribution, but missing
18931 ## from X11. If we have X10, just use the installed library;
18932 ## otherwise, use our own copy.
18933 if test "${HAVE_X11}" = "yes" ; then
18935 $as_echo "#define HAVE_X11 1" >>confdefs.h
18938 if test "$USE_X_TOOLKIT" = "none"; then
18939 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
18941 OLDXMENU
="\${lwlibdir}/liblw.a"
18943 LIBXMENU
="\$(OLDXMENU)"
18944 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
18945 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
18947 ## For a syntactically valid Makefile; not actually used for anything.
18948 ## See comments in src/Makefile.in.
18950 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18951 if test "${HAVE_X_WINDOWS}" = "yes"; then
18960 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
18973 if test "${HAVE_MENUS}" = "yes" ; then
18975 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18979 if test "${GNU_MALLOC}" = "yes" ; then
18981 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18986 if test "${REL_ALLOC}" = "yes" ; then
18988 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18991 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
18995 if test "$opsys" = "cygwin"; then
18996 CYGWIN_OBJ
="sheap.o"
18997 ## Cygwin differs because of its unexec().
18999 POST_ALLOC_OBJ
=lastfile.o
19002 PRE_ALLOC_OBJ
=lastfile.o
19011 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19014 ## The -headerpad option tells ld (see man page) to leave room at the
19015 ## end of the header for adding load commands. Needed for dumping.
19016 ## 0x690 is the total size of 30 segment load commands (at 56
19017 ## each); under Cocoa 31 commands are required.
19018 if test "$HAVE_NS" = "yes"; then
19019 libs_nsgui
="-framework AppKit"
19020 headerpad_extra
=6C8
19023 headerpad_extra
=690
19025 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19027 ## This is here because src/Makefile.in did some extra fiddling around
19028 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19029 ## #ifndef LD_SWITCH_SYSTEM
19030 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19031 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19032 ## not using gcc, darwin system not on an alpha (ie darwin, since
19033 ## darwin + alpha does not occur).
19034 ## Because this was done in src/Makefile.in, the resulting part of
19035 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19036 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19037 ## rather than LD_SWITCH_SYSTEM.
19038 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19039 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19042 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19043 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19044 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19045 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19046 ## had different values in configure (in ac_link) and src/Makefile.in.
19047 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19048 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19050 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19053 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19054 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19063 ## gnu: GNU needs its own crt0.
19064 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19066 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19067 ## library search parth, i.e. it won't search /usr/lib for libc and
19068 ## friends. Using -nostartfiles instead avoids this problem, and
19069 ## will also work on earlier NetBSD releases.
19070 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19072 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19073 ## MkLinux/LinuxPPC needs this.
19074 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19077 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19083 if test "x$ORDINARY_LINK" = "xyes"; then
19087 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19090 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19091 ## freebsd, gnu-* not on macppc|ibms390x.
19092 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19094 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19095 ## places that are difficult to figure out at make time. Fortunately,
19096 ## these same versions allow you to pass arbitrary flags on to the
19097 ## linker, so there is no reason not to use it as a linker.
19099 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19100 ## searching for libraries in its internal directories, so we have to
19101 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19102 LD_FIRSTFLAG
="-nostdlib"
19105 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19106 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19111 ## FIXME? The logic here is not precisely the same as that above.
19112 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19113 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19115 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19118 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19121 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19122 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19128 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19129 ## immediately undefine it again and redefine it to empty.
19130 ## Was the C_SWITCH_X_SITE part really necessary?
19131 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19137 ## Ask GCC where to find libgcc.a.
19138 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19145 ## If we're using X11/GNUstep, define some consequences.
19146 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19148 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19151 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19153 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19154 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19156 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19157 test "$HAVE_X_WINDOWS" = "yes" && \
19158 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19168 #### Report on what we decided to do.
19169 #### Report GTK as a toolkit, even if it doesn't use Xt.
19170 #### It makes printing result more understandable as using GTK sets
19171 #### toolkit_scroll_bars to yes by default.
19172 if test "${HAVE_GTK}" = "yes"; then
19177 if test -n "$machfile"; then
19178 and_machfile
=" and \`${machfile}'"
19182 Configured for \`${canonical}'.
19184 Where should the build process find the source code? ${srcdir}
19185 What operating system and machine description files should Emacs use?
19186 \`${opsysfile}'${and_machfile}
19187 What compiler should emacs be built with? ${CC} ${CFLAGS}
19188 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19189 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19190 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19191 What window system should Emacs use? ${window_system}
19192 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19194 if test -n "${x_includes}"; then
19195 echo " Where do we find X Windows header files? ${x_includes}"
19197 echo " Where do we find X Windows header files? Standard dirs"
19199 if test -n "${x_libraries}"; then
19200 echo " Where do we find X Windows libraries? ${x_libraries}"
19202 echo " Where do we find X Windows libraries? Standard dirs"
19205 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19206 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19207 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19208 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19209 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19210 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19211 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19212 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19214 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19215 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19216 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19217 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19218 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19219 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19221 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19222 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19223 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19224 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19226 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19229 if test $USE_XASSERTS = yes; then
19230 echo " Compiling with asserts turned on."
19231 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
19236 if test "$HAVE_NS" = "yes"; then
19238 echo "You must run \"make install\" in order to test the built application.
19239 The installed application will go to nextstep/Emacs.app and can be
19240 run or moved from there."
19241 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19242 echo "The application will be fully self-contained."
19244 echo "The lisp resources for the application will be installed under ${prefix}.
19245 You may need to run \"make install\" with sudo. The application will fail
19246 to run if these resources are not installed."
19252 # Remove any trailing slashes in these variables.
19253 test "${prefix}" != NONE
&&
19254 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19255 test "${exec_prefix}" != NONE
&&
19256 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19258 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"
19261 ac_config_commands
="$ac_config_commands mkdirs"
19264 ac_config_commands
="$ac_config_commands epaths"
19267 ac_config_commands
="$ac_config_commands gdbinit"
19270 cat >confcache
<<\_ACEOF
19271 # This file is a shell script that caches the results of configure
19272 # tests run on this system so they can be shared between configure
19273 # scripts and configure runs, see configure's option --config-cache.
19274 # It is not useful on other systems. If it contains results you don't
19275 # want to keep, you may remove or edit it.
19277 # config.status only pays attention to the cache file if you give it
19278 # the --recheck option to rerun configure.
19280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19282 # following values.
19286 # The following way of writing the cache mishandles newlines in values,
19287 # but we know of no workaround that is simple, portable, and efficient.
19288 # So, we kill variables containing newlines.
19289 # Ultrix sh set writes to stderr and can't be redirected directly,
19290 # and sets the high bit in the cache file unless we assign to the vars.
19292 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19293 eval ac_val
=\$
$ac_var
19297 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19301 _ | IFS | as_nl
) ;; #(
19302 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19303 *) { eval $ac_var=; unset $ac_var;} ;;
19309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19310 *${as_nl}ac_space
=\
*)
19311 # `set' does not quote correctly, so add quotes: double-quote
19312 # substitution turns \\\\ into \\, and sed turns \\ into \.
19315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19318 # `set' quotes correctly as required by POSIX, so do not add quotes.
19319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19332 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19333 if test -w "$cache_file"; then
19334 if test "x$cache_file" != "x/dev/null"; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19336 $as_echo "$as_me: updating cache $cache_file" >&6;}
19337 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19338 cat confcache
>"$cache_file"
19340 case $cache_file in #(
19342 mv -f confcache
"$cache_file"$$
&&
19343 mv -f "$cache_file"$$
"$cache_file" ;; #(
19345 mv -f confcache
"$cache_file" ;;
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19351 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19356 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19357 # Let make expand exec_prefix.
19358 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19360 DEFS
=-DHAVE_CONFIG_H
19365 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19366 # 1. Remove the extension, and $U if already installed.
19367 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19368 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19370 # will be set to the directory where LIBOBJS objects are built.
19371 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19372 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19374 LIBOBJS
=$ac_libobjs
19376 LTLIBOBJS
=$ac_ltlibobjs
19379 if test -n "$EXEEXT"; then
19381 am__EXEEXT_FALSE
='#'
19383 am__EXEEXT_TRUE
='#'
19387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19388 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19392 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19396 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19397 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19404 if test -n "$gl_LIBOBJS"; then
19405 # Remove the extension.
19406 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19407 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19408 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19409 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19412 gl_LIBOBJS
=$gl_libobjs
19414 gl_LTLIBOBJS
=$gl_ltlibobjs
19420 if test -n "$gltests_LIBOBJS"; then
19421 # Remove the extension.
19422 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19423 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19424 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19425 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19428 gltests_LIBOBJS
=$gltests_libobjs
19430 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19434 : "${CONFIG_STATUS=./config.status}"
19436 ac_clean_files_save
=$ac_clean_files
19437 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19443 # Generated by $as_me.
19444 # Run this file to recreate the current configuration.
19445 # Compiler output produced by configure, useful for debugging
19446 # configure, is in config.log if it exists.
19449 ac_cs_recheck=false
19452 SHELL=\${CONFIG_SHELL-$SHELL}
19455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19456 ## -------------------- ##
19457 ## M4sh Initialization. ##
19458 ## -------------------- ##
19460 # Be more Bourne compatible
19461 DUALCASE
=1; export DUALCASE
# for MKS sh
19462 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19466 # is contrary to our usage. Disable this feature.
19467 alias -g '${1+"$@"}'='"$@"'
19468 setopt NO_GLOB_SUBST
19470 case `(set -o) 2>/dev/null` in #(
19482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19483 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19486 # Prefer a ksh shell builtin over an external printf program on Solaris,
19487 # but without wasting forks for bash or zsh.
19488 if test -z "$BASH_VERSION$ZSH_VERSION" \
19489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19490 as_echo='print
-r --'
19491 as_echo_n='print
-rn --'
19492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19493 as_echo='printf %s
\n'
19494 as_echo_n='printf %s
'
19496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19497 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19498 as_echo_n='/usr
/ucb
/echo -n'
19500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19501 as_echo_n_body='eval
19505 expr "X$arg" : "X\\(.*\\)$as_nl";
19506 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19508 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19510 export as_echo_n_body
19511 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19513 export as_echo_body
19514 as_echo='sh
-c $as_echo_body as_echo
'
19517 # The user is always right.
19518 if test "${PATH_SEPARATOR+set}" != set; then
19520 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19521 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19528 # We need space, tab and new line, in precisely that order. Quoting is
19529 # there to prevent editors from complaining about space-tab.
19530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19531 # splitting by setting IFS to empty value.)
19534 # Find who we are. Look in the path if we contain no directory separator.
19537 *[\\/]* ) as_myself=$0 ;;
19538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19539 for as_dir in $PATH
19542 test -z "$as_dir" && as_dir=.
19543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19549 # We did not find ourselves, most probably we were run as `sh COMMAND'
19550 # in which case we are not to be found in the path.
19551 if test "x$as_myself" = x
; then
19554 if test ! -f "$as_myself"; then
19555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19559 # Unset variables that we do not need and which cause bugs (e.g. in
19560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19561 # suppresses any "Segmentation fault" message there. '((' could
19562 # trigger a bug in pdksh 5.2.14.
19563 for as_var
in BASH_ENV ENV MAIL MAILPATH
19564 do eval test x\
${$as_var+set} = xset \
19565 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19582 # ----------------------------------------
19583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19585 # script with STATUS, using 1 if that was 0.
19588 as_status
=$1; test $as_status -eq 0 && as_status
=1
19590 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19593 $as_echo "$as_me: error: $2" >&2
19594 as_fn_exit
$as_status
19598 # as_fn_set_status STATUS
19599 # -----------------------
19600 # Set $? to STATUS, without forking.
19601 as_fn_set_status
()
19604 } # as_fn_set_status
19606 # as_fn_exit STATUS
19607 # -----------------
19608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19612 as_fn_set_status
$1
19618 # Portably unset VAR.
19621 { eval $1=; unset $1;}
19623 as_unset
=as_fn_unset
19624 # as_fn_append VAR VALUE
19625 # ----------------------
19626 # Append the text in VALUE to the end of the definition contained in VAR. Take
19627 # advantage of any shell optimizations that allow amortized linear growth over
19628 # repeated appends, instead of the typical quadratic growth present in naive
19630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19631 eval 'as_fn_append ()
19642 # as_fn_arith ARG...
19643 # ------------------
19644 # Perform arithmetic evaluation on the ARGs, and store the result in the
19645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19646 # must be portable across $(()) and expr.
19647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19648 eval 'as_fn_arith ()
19655 as_val
=`expr "$@" || test $? -eq 1`
19660 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19661 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19667 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19668 as_basename
=basename
19673 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19679 as_me
=`$as_basename -- "$0" ||
19680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19681 X"$0" : 'X\(//\)$' \| \
19682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19684 sed '/^.*\/\([^/][^/]*\)\/*$/{
19698 # Avoid depending upon Character Ranges.
19699 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19700 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19701 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19702 as_cr_digits
='0123456789'
19703 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19705 ECHO_C
= ECHO_N
= ECHO_T
=
19706 case `echo -n x` in #(((((
19708 case `echo 'xy\c'` in
19709 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19711 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19718 rm -f conf$$ conf$$.exe conf$$.
file
19719 if test -d conf$$.dir
; then
19720 rm -f conf$$.dir
/conf$$.
file
19723 mkdir conf$$.dir
2>/dev
/null
19725 if (echo >conf$$.
file) 2>/dev
/null
; then
19726 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19728 # ... but there are two gotchas:
19729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19731 # In both cases, we have to default to `cp -p'.
19732 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19734 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19742 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19743 rmdir conf$$.dir
2>/dev
/null
19748 # Create "$as_dir" as a directory, including parents if necessary.
19753 -*) as_dir
=.
/$as_dir;;
19755 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19759 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19760 *) as_qdir
=$as_dir;;
19762 as_dirs
="'$as_qdir' $as_dirs"
19763 as_dir
=`$as_dirname -- "$as_dir" ||
19764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19765 X"$as_dir" : 'X\(//\)[^/]' \| \
19766 X"$as_dir" : 'X\(//\)$' \| \
19767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19768 $as_echo X"$as_dir" |
19769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19773 /^X\(\/\/\)[^/].*/{
19786 test -d "$as_dir" && break
19788 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19789 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19793 if mkdir
-p .
2>/dev
/null
; then
19794 as_mkdir_p
='mkdir -p "$as_dir"'
19796 test -d .
/-p && rmdir .
/-p
19800 if test -x / >/dev
/null
2>&1; then
19801 as_test_x
='test -x'
19803 if ls -dL / >/dev
/null
2>&1; then
19810 if test -d "$1"; then
19816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19817 ???[sx]*):;;*)false;;esac;fi
19821 as_executable_p
=$as_test_x
19823 # Sed expression to map a string onto a valid CPP name.
19824 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19826 # Sed expression to map a string onto a valid variable name.
19827 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19831 ## ----------------------------------- ##
19832 ## Main body of $CONFIG_STATUS script. ##
19833 ## ----------------------------------- ##
19835 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19838 # Save the log message, to keep $0 and so on meaningful, and to
19839 # report actual input values of CONFIG_FILES etc. instead of their
19840 # values after options handling.
19842 This file was extended by emacs $as_me 24.0.50, which was
19843 generated by GNU Autoconf 2.68. Invocation command line was
19845 CONFIG_FILES = $CONFIG_FILES
19846 CONFIG_HEADERS = $CONFIG_HEADERS
19847 CONFIG_LINKS = $CONFIG_LINKS
19848 CONFIG_COMMANDS = $CONFIG_COMMANDS
19851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19856 case $ac_config_files in *"
19857 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19860 case $ac_config_headers in *"
19861 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19866 # Files that config.status was made for.
19867 config_files="$ac_config_files"
19868 config_headers="$ac_config_headers"
19869 config_commands="$ac_config_commands"
19873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19875 \`$as_me' instantiates files and other configuration actions
19876 from templates according to the current configuration. Unless the files
19877 and actions are specified as TAGs, all are instantiated by default.
19879 Usage: $0 [OPTION]... [TAG]...
19881 -h, --help print this help, then exit
19882 -V, --version print version number and configuration settings, then exit
19883 --config print configuration, then exit
19884 -q, --quiet, --silent
19885 do not print progress messages
19886 -d, --debug don't remove temporary files
19887 --recheck update $as_me by reconfiguring in the same conditions
19888 --file=FILE[:TEMPLATE]
19889 instantiate the configuration file FILE
19890 --header=FILE[:TEMPLATE]
19891 instantiate the configuration header FILE
19893 Configuration files:
19896 Configuration headers:
19899 Configuration commands:
19902 Report bugs to the package provider."
19905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19906 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19908 emacs config.status 24.0.50
19909 configured by $0, generated by GNU Autoconf 2.68,
19910 with options \\"\$ac_cs_config\\"
19912 Copyright (C) 2010 Free Software Foundation, Inc.
19913 This config.status script is free software; the Free Software Foundation
19914 gives unlimited permission to copy, distribute and modify it."
19921 test -n "\$AWK" || AWK=awk
19924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19925 # The default lists apply if the user does not specify any file.
19931 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19932 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19936 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19948 # Handling of the options.
19949 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19951 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19952 $as_echo "$ac_cs_version"; exit ;;
19953 --config |
--confi |
--conf |
--con |
--co |
--c )
19954 $as_echo "$ac_cs_config"; exit ;;
19955 --debug |
--debu |
--deb |
--de |
--d |
-d )
19957 --file |
--fil |
--fi |
--f )
19960 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19961 '') as_fn_error $?
"missing file argument" ;;
19963 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19964 ac_need_defaults
=false
;;
19965 --header |
--heade |
--head |
--hea )
19968 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19970 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19971 ac_need_defaults
=false
;;
19973 # Conflict between --help and --header
19974 as_fn_error $?
"ambiguous option: \`$1'
19975 Try \`$0 --help' for more information.";;
19976 --help |
--hel |
-h )
19977 $as_echo "$ac_cs_usage"; exit ;;
19978 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19979 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19982 # This is an error.
19983 -*) as_fn_error $?
"unrecognized option: \`$1'
19984 Try \`$0 --help' for more information." ;;
19986 *) as_fn_append ac_config_targets
" $1"
19987 ac_need_defaults
=false
;;
19993 ac_configure_extra_args
=
19995 if $ac_cs_silent; then
19997 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20002 if \$ac_cs_recheck; then
20003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20006 CONFIG_SHELL='$SHELL'
20007 export CONFIG_SHELL
20012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20017 ## Running $as_me. ##
20023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20027 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20028 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20034 # Handling of arguments.
20035 for ac_config_target
in $ac_config_targets
20037 case $ac_config_target in
20038 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20039 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20040 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20041 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20042 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20043 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20044 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20045 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20046 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20047 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20048 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20049 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20050 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20051 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20052 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20053 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20054 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20055 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20057 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20062 # If the user did not use the arguments to specify the items to instantiate,
20063 # then the envvar interface is used. Set only those that are not.
20064 # We use the long form for the default assignment because of an extremely
20065 # bizarre bug on SunOS 4.1.3.
20066 if $ac_need_defaults; then
20067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20072 # Have a temporary directory for convenience. Make it in the build tree
20073 # simply because there is no reason against having it here, and in addition,
20074 # creating and moving files from /tmp can sometimes cause problems.
20075 # Hook for its removal unless debugging.
20076 # Note that there is a small window in which the directory will not be cleaned:
20077 # after its creation but before its name has been assigned to `$tmp'.
20081 trap 'exit_status=$?
20082 : "${ac_tmp:=$tmp}"
20083 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20085 trap 'as_fn_exit 1' 1 2 13 15
20087 # Create a (secure) tmp directory for tmp files.
20090 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20094 tmp
=.
/conf$$
-$RANDOM
20095 (umask 077 && mkdir
"$tmp")
20096 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20099 # Set up the scripts for CONFIG_FILES section.
20100 # No need to generate them if there are no CONFIG_FILES.
20101 # This happens for instance with `./config.status config.h'.
20102 if test -n "$CONFIG_FILES"; then
20104 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20105 ac_cs_awk_getline
=:
20106 ac_cs_awk_pipe_init
=
20107 ac_cs_awk_read_file
='
20108 while ((getline aline < (F[key])) > 0)
20111 ac_cs_awk_pipe_fini
=
20113 ac_cs_awk_getline
=false
20114 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20115 ac_cs_awk_read_file
='
20117 print "cat " F[key] " &&"
20118 '$ac_cs_awk_pipe_init
20119 # The final `:' finishes the AND list.
20120 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20122 ac_cr
=`echo X | tr X '\015'`
20123 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20124 # But we know of no other shell where ac_cr would be empty at this
20125 # point, so we can use a bashism as a fallback.
20126 if test "x$ac_cr" = x
; then
20127 eval ac_cr
=\$
\'\\r
\'
20129 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20130 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20133 ac_cs_awk_cr
=$ac_cr
20136 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20139 # Create commands to substitute file output variables.
20141 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20142 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20143 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20146 } >conf$
$files.sh
&&
20147 . .
/conf$
$files.sh ||
20148 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20149 rm -f conf$
$files.sh
20152 echo "cat >conf$$subs.awk <<_ACEOF" &&
20153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20155 } >conf$$subs.sh ||
20156 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20159 for ac_last_try in false false false false false :; do
20160 . ./conf$$subs.sh ||
20161 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20163 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20164 if test $ac_delim_n = $ac_delim_num; then
20166 elif $ac_last_try; then
20167 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20169 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20172 rm -f conf$$subs.sh
20174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20179 s/^/S["/; s
/!.
*/"]=/
20189 s/\(.\{148\}\)..*/\1/
20191 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20196 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20203 s/\(.\{148\}\)..*/\1/
20205 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20209 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20214 ' <conf$$subs.awk | sed '
20219 ' >>$CONFIG_STATUS || ac_write_fail=1
20220 rm -f conf$$subs.awk
20221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20223 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20224 for (key in S) S_is_set[key] = 1
20226 \$ac_cs_awk_pipe_init
20230 nfields = split(line, field, "@
")
20232 len = length(field[1])
20233 for (i = 2; i < nfields; i++) {
20235 keylen = length(key)
20236 if (S_is_set[key]) {
20238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20239 len += length(value) + length(field[++i])
20244 if (nfields == 3 && !substed) {
20246 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20247 \$ac_cs_awk_read_file
20253 \$ac_cs_awk_pipe_fini
20256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20257 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20258 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20261 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20262 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20265 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20266 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20267 # trailing colons and then remove the whole line if VPATH becomes empty
20268 # (actually we leave an empty line to preserve line numbers).
20269 if test "x
$srcdir" = x.; then
20270 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289 fi # test -n "$CONFIG_FILES"
20291 # Set up the scripts for CONFIG_HEADERS section.
20292 # No need to generate them if there are no CONFIG_HEADERS.
20293 # This happens for instance with `./config.status Makefile'.
20294 if test -n "$CONFIG_HEADERS"; then
20295 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20299 # Transform confdefs.h into an awk script `defines.awk', embedded as
20300 # here-document in config.status, that substitutes the proper values into
20301 # config.h.in to produce config.h.
20303 # Create a delimiter string that does not exist in confdefs.h, to ease
20304 # handling of long lines.
20306 for ac_last_try in false false :; do
20307 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20308 if test -z "$ac_tt"; then
20310 elif $ac_last_try; then
20311 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20313 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20317 # For the awk script, D is an array of macro values keyed by name,
20318 # likewise P contains macro parameters if any. Preserve backslash
20319 # newline sequences.
20321 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20323 s/.\{148\}/&'"$ac_delim"'/g
20326 s/^[ ]*#[ ]*define[ ][ ]*/ /
20333 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20335 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20340 D["\
1"]=" \
3\\\\\\n
"\\/p
20342 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20347 s/.\{148\}/&'"$ac_delim"'/g
20352 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20355 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20357 ' <confdefs.h | sed '
20358 s/'"$ac_delim"'/"\\\
20359 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20362 for (key in D) D_is_set[key] = 1
20365 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20367 split(line, arg, " ")
20368 if (arg[1] == "#") {
20372 defundef
= substr
(arg
[1], 2)
20375 split(mac1
, mac2
, "(") #)
20377 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20378 if (D_is_set
[macro
]) {
20379 # Preserve the white space surrounding the "#".
20380 print prefix
"define", macro P
[macro
] D
[macro
]
20383 # Replace #undef with comments. This is necessary, for example,
20384 # in the case of _POSIX_SOURCE, which is predefined and required
20385 # on some systems where configure will not decide to define it.
20386 if (defundef
== "undef") {
20387 print
"/*", prefix defundef
, macro
, "*/"
20395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20396 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20397 fi # test -n "$CONFIG_HEADERS"
20400 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20405 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20407 case $ac_mode$ac_tag in
20409 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20410 :[FH
]-) ac_tag
=-:-;;
20411 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20428 -) ac_f
="$ac_tmp/stdin";;
20429 *) # Look for the file first in the build tree, then in the source tree
20430 # (if the path is not absolute). The absolute path cannot be DOS-style,
20431 # because $ac_f cannot contain `:'.
20435 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20437 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20439 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20440 as_fn_append ac_file_inputs
" '$ac_f'"
20443 # Let's still pretend it is `configure' which instantiates (i.e., don't
20444 # use $as_me), people would be surprised to read:
20445 # /* config.h. Generated by config.status. */
20446 configure_input
='Generated from '`
20447 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20449 if test x
"$ac_file" != x-
; then
20450 configure_input
="$ac_file. $configure_input"
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20452 $as_echo "$as_me: creating $ac_file" >&6;}
20454 # Neutralize special characters interpreted by sed in replacement strings.
20455 case $configure_input in #(
20456 *\
&* |
*\|
* |
*\\* )
20457 ac_sed_conf_input
=`$as_echo "$configure_input" |
20458 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20459 *) ac_sed_conf_input
=$configure_input;;
20463 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20464 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20469 ac_dir
=`$as_dirname -- "$ac_file" ||
20470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20471 X"$ac_file" : 'X\(//\)[^/]' \| \
20472 X"$ac_file" : 'X\(//\)$' \| \
20473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20474 $as_echo X"$ac_file" |
20475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20479 /^X\(\/\/\)[^/].*/{
20492 as_dir
="$ac_dir"; as_fn_mkdir_p
20496 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20498 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20499 # A ".." for each directory in $ac_dir_suffix.
20500 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20501 case $ac_top_builddir_sub in
20502 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20503 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20506 ac_abs_top_builddir
=$ac_pwd
20507 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20508 # for backward compatibility:
20509 ac_top_builddir
=$ac_top_build_prefix
20512 .
) # We are building in place.
20514 ac_top_srcdir
=$ac_top_builddir_sub
20515 ac_abs_top_srcdir
=$ac_pwd ;;
20516 [\\/]* | ?
:[\\/]* ) # Absolute name.
20517 ac_srcdir
=$srcdir$ac_dir_suffix;
20518 ac_top_srcdir
=$srcdir
20519 ac_abs_top_srcdir
=$srcdir ;;
20520 *) # Relative name.
20521 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20522 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20523 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20525 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20535 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20536 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20538 ac_MKDIR_P
=$MKDIR_P
20540 [\\/$
]* | ?
:[\\/]* ) ;;
20541 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20546 # If the template does not know about datarootdir, expand it.
20547 # FIXME: This hack should be removed a few years after 2.60.
20548 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20559 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20560 *datarootdir
*) ac_datarootdir_seen
=yes;;
20561 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20563 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20566 ac_datarootdir_hack='
20567 s&@datadir@&$datadir&g
20568 s&@docdir@&$docdir&g
20569 s&@infodir@&$infodir&g
20570 s&@localedir@&$localedir&g
20571 s&@mandir@&$mandir&g
20572 s&\\\${datarootdir}&$datarootdir&g' ;;
20576 # Neutralize VPATH when `$srcdir' = `.'.
20577 # Shell code in configure.ac might set extrasub.
20578 # FIXME: do we really want to maintain this feature?
20579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20580 ac_sed_extra="$ac_vpsub
20583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20585 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20586 s|@configure_input@|
$ac_sed_conf_input|
;t t
20587 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20588 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20589 s
&@srcdir@
&$ac_srcdir&;t t
20590 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20591 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20592 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20593 s
&@builddir@
&$ac_builddir&;t t
20594 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20595 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20596 s
&@INSTALL@
&$ac_INSTALL&;t t
20597 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20598 $ac_datarootdir_hack
20600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20601 if $ac_cs_awk_getline; then
20602 $AWK -f "$ac_tmp/subs.
awk"
20604 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20606 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20611 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20613 which seems to be undefined. Please make sure it is defined" >&5
20614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20615 which seems to be undefined. Please make sure it is defined" >&2;}
20617 rm -f "$ac_tmp/stdin"
20619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20628 if test x"$ac_file" != x-; then
20630 $as_echo "/* $configure_input */" \
20631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20632 } >"$ac_tmp/config.h" \
20633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20636 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20639 mv "$ac_tmp/config.h" "$ac_file" \
20640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20643 $as_echo "/* $configure_input */" \
20644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20645 || as_fn_error $? "could not create -" "$LINENO" 5
20647 # Compute "$ac_file"'s index
in $config_headers.
20650 for _am_header
in $config_headers :; do
20651 case $_am_header in
20652 $_am_arg |
$_am_arg:* )
20655 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20658 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20659 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$_am_arg" : 'X\(//\)[^/]' \| \
20661 X"$_am_arg" : 'X\(//\)$' \| \
20662 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20663 $as_echo X"$_am_arg" |
20664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20668 /^X\(\/\/\)[^/].*/{
20680 s/.*/./; q'`/stamp-h
$_am_stamp_count
20683 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20684 $as_echo "$as_me: executing $ac_file commands" >&6;}
20689 case $ac_file$ac_mode in
20690 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20691 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20692 # are listed without --file. Let's play safe and only enable the eval
20693 # if we detect the quoting.
20694 case $CONFIG_FILES in
20695 *\'*) eval set x
"$CONFIG_FILES" ;;
20696 *) set x
$CONFIG_FILES ;;
20701 # Strip MF so we end up with the name of the file.
20702 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20703 # Check whether this is an Automake generated Makefile or not.
20704 # We used to match only the files named `Makefile.in', but
20705 # some people rename them; so instead we look at the file content.
20706 # Grep'ing the first line is not enough: some people post-process
20707 # each Makefile.in and add a new line on top of each file to say so.
20708 # Grep'ing the whole file is not good either: AIX grep has a line
20709 # limit of 2048, but all sed's we know have understand at least 4000.
20710 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20711 dirpart
=`$as_dirname -- "$mf" ||
20712 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713 X"$mf" : 'X\(//\)[^/]' \| \
20714 X"$mf" : 'X\(//\)$' \| \
20715 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20721 /^X\(\/\/\)[^/].*/{
20737 # Extract the definition of DEPDIR, am__include, and am__quote
20738 # from the Makefile without running `make'.
20739 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20740 test -z "$DEPDIR" && continue
20741 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20742 test -z "am__include" && continue
20743 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20744 # When using ansi2knr, U may be empty or an underscore; expand it
20745 U
=`sed -n 's/^U = //p' < "$mf"`
20746 # Find all dependency output files, they are included files with
20747 # $(DEPDIR) in their names. We invoke sed twice because it is the
20748 # simplest approach to changing $(DEPDIR) to its actual value in the
20750 for file in `sed -n "
20751 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20752 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20753 # Make sure the directory exists.
20754 test -f "$dirpart/$file" && continue
20755 fdir
=`$as_dirname -- "$file" ||
20756 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20757 X"$file" : 'X\(//\)[^/]' \| \
20758 X"$file" : 'X\(//\)$' \| \
20759 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20760 $as_echo X"$file" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20765 /^X\(\/\/\)[^/].*/{
20778 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20779 # echo "creating $dirpart/$file"
20780 echo '# dummy' > "$dirpart/$file"
20786 for dir
in etc lisp
; do
20787 test -d ${dir} || mkdir
${dir}
20791 echo creating src
/epaths.h
20792 ${MAKE-make} epaths-force
20795 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20796 echo creating src
/.gdbinit
20797 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20807 ac_clean_files
=$ac_clean_files_save
20809 test $ac_write_fail = 0 ||
20810 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20813 # configure is writing to config.log, and then calls config.status.
20814 # config.status does its own redirection, appending to config.log.
20815 # Unfortunately, on DOS this fails, as config.log is still kept open
20816 # by configure, so config.status won't be able to write to it; its
20817 # output is simply discarded. So we exec the FD to /dev/null,
20818 # effectively closing config.log, so it can be properly (re)opened and
20819 # appended to by config.status. When coming back to configure, we
20820 # need to make the FD available again.
20821 if test "$no_create" != yes; then
20823 ac_config_status_args
=
20824 test "$silent" = yes &&
20825 ac_config_status_args
="$ac_config_status_args --quiet"
20827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20830 # would make configure fail if this is the last instruction.
20831 $ac_cs_success || as_fn_exit
1
20833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20835 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}