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
682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
692 HAVE_SIGNED_SIG_ATOMIC_T
695 BITSIZEOF_SIG_ATOMIC_T
701 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
706 HAVE_UNSIGNED_LONG_LONG_INT
708 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
715 APPLE_UNIVERSAL_BUILD
723 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
1171 # Initialize some variables set by options.
1173 ac_init_version
=false
1174 ac_unrecognized_opts
=
1175 ac_unrecognized_sep
=
1176 # The variables have the same names as the options, with
1177 # dashes changed to underlines.
1178 cache_file
=/dev
/null
1185 program_transform_name
=s
,x
,x
,
1193 # Installation directory options.
1194 # These are left unexpanded so users can "make install exec_prefix=/foo"
1195 # and all the variables that are supposed to be based on exec_prefix
1196 # by default will actually change.
1197 # Use braces instead of parens because sh, perl, etc. also accept them.
1198 # (The list follows the same order as the GNU Coding Standards.)
1199 bindir
='${exec_prefix}/bin'
1200 sbindir
='${exec_prefix}/sbin'
1201 libexecdir
='${exec_prefix}/libexec'
1202 datarootdir
='${prefix}/share'
1203 datadir
='${datarootdir}'
1204 sysconfdir
='${prefix}/etc'
1205 sharedstatedir
='${prefix}/com'
1206 localstatedir
='${prefix}/var'
1207 includedir
='${prefix}/include'
1208 oldincludedir
='/usr/include'
1209 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1210 infodir
='${datarootdir}/info'
1215 libdir
='${exec_prefix}/lib'
1216 localedir
='${datarootdir}/locale'
1217 mandir
='${datarootdir}/man'
1223 # If the previous option needs an argument, assign it.
1224 if test -n "$ac_prev"; then
1225 eval $ac_prev=\
$ac_option
1231 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1236 # Accept the important Cygnus configure options, so we can diagnose typos.
1238 case $ac_dashdash$ac_option in
1242 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1244 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1245 bindir
=$ac_optarg ;;
1247 -build |
--build |
--buil |
--bui |
--bu)
1248 ac_prev
=build_alias
;;
1249 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1250 build_alias
=$ac_optarg ;;
1252 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1253 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1254 ac_prev
=cache_file
;;
1255 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1256 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1257 cache_file
=$ac_optarg ;;
1259 --config-cache |
-C)
1260 cache_file
=config.cache
;;
1262 -datadir |
--datadir |
--datadi |
--datad)
1264 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1265 datadir
=$ac_optarg ;;
1267 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1268 |
--dataroo |
--dataro |
--datar)
1269 ac_prev
=datarootdir
;;
1270 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1271 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1272 datarootdir
=$ac_optarg ;;
1274 -disable-* |
--disable-*)
1275 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error $?
"invalid feature name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "enable_
$ac_useropt"
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval enable_
$ac_useropt=no
;;
1290 -docdir |
--docdir |
--docdi |
--doc |
--do)
1292 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1293 docdir
=$ac_optarg ;;
1295 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1297 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1298 dvidir
=$ac_optarg ;;
1300 -enable-* |
--enable-*)
1301 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1304 as_fn_error $?
"invalid feature name: $ac_useropt"
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "enable_
$ac_useropt"
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval enable_
$ac_useropt=\
$ac_optarg ;;
1316 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1317 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1318 |
--exec |
--exe |
--ex)
1319 ac_prev
=exec_prefix
;;
1320 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1321 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1322 |
--exec=* |
--exe=* |
--ex=*)
1323 exec_prefix
=$ac_optarg ;;
1325 -gas |
--gas |
--ga |
--g)
1326 # Obsolete; use --with-gas.
1329 -help |
--help |
--hel |
--he |
-h)
1330 ac_init_help
=long
;;
1331 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1332 ac_init_help
=recursive
;;
1333 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1334 ac_init_help
=short
;;
1336 -host |
--host |
--hos |
--ho)
1337 ac_prev
=host_alias
;;
1338 -host=* |
--host=* |
--hos=* |
--ho=*)
1339 host_alias
=$ac_optarg ;;
1341 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1343 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1345 htmldir
=$ac_optarg ;;
1347 -includedir |
--includedir |
--includedi |
--included |
--include \
1348 |
--includ |
--inclu |
--incl |
--inc)
1349 ac_prev
=includedir
;;
1350 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1351 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1352 includedir
=$ac_optarg ;;
1354 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1356 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1357 infodir
=$ac_optarg ;;
1359 -libdir |
--libdir |
--libdi |
--libd)
1361 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1362 libdir
=$ac_optarg ;;
1364 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1365 |
--libexe |
--libex |
--libe)
1366 ac_prev
=libexecdir
;;
1367 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1368 |
--libexe=* |
--libex=* |
--libe=*)
1369 libexecdir
=$ac_optarg ;;
1371 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1372 ac_prev
=localedir
;;
1373 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1374 localedir
=$ac_optarg ;;
1376 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1377 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1378 ac_prev
=localstatedir
;;
1379 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1380 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1381 localstatedir
=$ac_optarg ;;
1383 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1385 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1386 mandir
=$ac_optarg ;;
1388 -nfp |
--nfp |
--nf)
1389 # Obsolete; use --without-fp.
1392 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1393 |
--no-cr |
--no-c |
-n)
1396 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1397 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1400 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1401 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1402 |
--oldin |
--oldi |
--old |
--ol |
--o)
1403 ac_prev
=oldincludedir
;;
1404 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1405 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1406 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1407 oldincludedir
=$ac_optarg ;;
1409 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1411 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1412 prefix
=$ac_optarg ;;
1414 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1415 |
--program-pre |
--program-pr |
--program-p)
1416 ac_prev
=program_prefix
;;
1417 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1418 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1419 program_prefix
=$ac_optarg ;;
1421 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1422 |
--program-suf |
--program-su |
--program-s)
1423 ac_prev
=program_suffix
;;
1424 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1425 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1426 program_suffix
=$ac_optarg ;;
1428 -program-transform-name |
--program-transform-name \
1429 |
--program-transform-nam |
--program-transform-na \
1430 |
--program-transform-n |
--program-transform- \
1431 |
--program-transform |
--program-transfor \
1432 |
--program-transfo |
--program-transf \
1433 |
--program-trans |
--program-tran \
1434 |
--progr-tra |
--program-tr |
--program-t)
1435 ac_prev
=program_transform_name
;;
1436 -program-transform-name=* |
--program-transform-name=* \
1437 |
--program-transform-nam=* |
--program-transform-na=* \
1438 |
--program-transform-n=* |
--program-transform-=* \
1439 |
--program-transform=* |
--program-transfor=* \
1440 |
--program-transfo=* |
--program-transf=* \
1441 |
--program-trans=* |
--program-tran=* \
1442 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1443 program_transform_name
=$ac_optarg ;;
1445 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1447 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1448 pdfdir
=$ac_optarg ;;
1450 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1452 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1455 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1456 |
-silent |
--silent |
--silen |
--sile |
--sil)
1459 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1461 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1463 sbindir
=$ac_optarg ;;
1465 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1466 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1467 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1469 ac_prev
=sharedstatedir
;;
1470 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1471 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1472 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1474 sharedstatedir
=$ac_optarg ;;
1476 -site |
--site |
--sit)
1478 -site=* |
--site=* |
--sit=*)
1481 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1483 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1484 srcdir
=$ac_optarg ;;
1486 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1487 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1488 ac_prev
=sysconfdir
;;
1489 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1490 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1491 sysconfdir
=$ac_optarg ;;
1493 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1494 ac_prev
=target_alias
;;
1495 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1496 target_alias
=$ac_optarg ;;
1498 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1501 -version |
--version |
--versio |
--versi |
--vers |
-V)
1502 ac_init_version
=: ;;
1505 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1508 as_fn_error $?
"invalid package name: $ac_useropt"
1509 ac_useropt_orig
=$ac_useropt
1510 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1515 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1516 ac_unrecognized_sep
=', ';;
1518 eval with_
$ac_useropt=\
$ac_optarg ;;
1520 -without-* |
--without-*)
1521 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1524 as_fn_error $?
"invalid package name: $ac_useropt"
1525 ac_useropt_orig
=$ac_useropt
1526 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1531 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1532 ac_unrecognized_sep
=', ';;
1534 eval with_
$ac_useropt=no
;;
1537 # Obsolete; use --with-x.
1540 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1541 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1542 ac_prev
=x_includes
;;
1543 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1544 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1545 x_includes
=$ac_optarg ;;
1547 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1548 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1549 ac_prev
=x_libraries
;;
1550 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1551 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1552 x_libraries
=$ac_optarg ;;
1554 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1555 Try \`$0 --help' for more information"
1559 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1560 # Reject names that are not valid shell variable names.
1561 case $ac_envvar in #(
1562 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1563 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1565 eval $ac_envvar=\
$ac_optarg
1566 export $ac_envvar ;;
1569 # FIXME: should be removed in autoconf 3.0.
1570 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1571 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1572 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1573 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1579 if test -n "$ac_prev"; then
1580 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1581 as_fn_error $?
"missing argument to $ac_option"
1584 if test -n "$ac_unrecognized_opts"; then
1585 case $enable_option_checking in
1587 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1588 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1592 # Check all directory arguments for consistency.
1593 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1594 datadir sysconfdir sharedstatedir localstatedir includedir \
1595 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1596 libdir localedir mandir
1598 eval ac_val
=\$
$ac_var
1599 # Remove trailing slashes.
1602 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1603 eval $ac_var=\
$ac_val;;
1605 # Be sure to have absolute directory names.
1607 [\\/$
]* | ?
:[\\/]* ) continue;;
1608 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1610 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1613 # There might be people who depend on the old broken behavior: `$host'
1614 # used to hold the argument of --host etc.
1615 # FIXME: To remove some day.
1618 target
=$target_alias
1620 # FIXME: To remove some day.
1621 if test "x$host_alias" != x
; then
1622 if test "x$build_alias" = x
; then
1623 cross_compiling
=maybe
1624 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1625 If a cross compiler is detected then cross compile mode will be used" >&2
1626 elif test "x$build_alias" != "x$host_alias"; then
1632 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1634 test "$silent" = yes && exec 6>/dev
/null
1637 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1638 ac_ls_di
=`ls -di .` &&
1639 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1640 as_fn_error $?
"working directory cannot be determined"
1641 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1642 as_fn_error $?
"pwd does not report name of working directory"
1645 # Find the source files, if location was not specified.
1646 if test -z "$srcdir"; then
1647 ac_srcdir_defaulted
=yes
1648 # Try the directory containing this script, then the parent directory.
1649 ac_confdir
=`$as_dirname -- "$as_myself" ||
1650 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1651 X"$as_myself" : 'X\(//\)[^/]' \| \
1652 X"$as_myself" : 'X\(//\)$' \| \
1653 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1654 $as_echo X"$as_myself" |
1655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1673 if test ! -r "$srcdir/$ac_unique_file"; then
1677 ac_srcdir_defaulted
=no
1679 if test ! -r "$srcdir/$ac_unique_file"; then
1680 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1681 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1683 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1685 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1687 # When building in place, set srcdir=.
1688 if test "$ac_abs_confdir" = "$ac_pwd"; then
1691 # Remove unnecessary trailing slashes from srcdir.
1692 # Double slashes in file names in object file debugging info
1693 # mess up M-x gdb in Emacs.
1695 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1697 for ac_var
in $ac_precious_vars; do
1698 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1699 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1700 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1701 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1705 # Report the --help message.
1707 if test "$ac_init_help" = "long"; then
1708 # Omit some internal or obsolete options to make the list less imposing.
1709 # This message is too long to be a string in the A/UX 3.1 sh.
1711 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1713 Usage: $0 [OPTION]... [VAR=VALUE]...
1715 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1716 VAR=VALUE. See below for descriptions of some of the useful variables.
1718 Defaults for the options are specified in brackets.
1721 -h, --help display this help and exit
1722 --help=short display options specific to this package
1723 --help=recursive display the short help of all the included packages
1724 -V, --version display version information and exit
1725 -q, --quiet, --silent do not print \`checking ...' messages
1726 --cache-file=FILE cache test results in FILE [disabled]
1727 -C, --config-cache alias for \`--cache-file=config.cache'
1728 -n, --no-create do not create output files
1729 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1731 Installation directories:
1732 --prefix=PREFIX install architecture-independent files in PREFIX
1733 [$ac_default_prefix]
1734 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1737 By default, \`make install' will install all the files in
1738 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1739 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1740 for instance \`--prefix=\$HOME'.
1742 For better control, use the options below.
1744 Fine tuning of the installation directories:
1745 --bindir=DIR user executables [EPREFIX/bin]
1746 --sbindir=DIR system admin executables [EPREFIX/sbin]
1747 --libexecdir=DIR program executables [EPREFIX/libexec]
1748 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1749 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1750 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1751 --libdir=DIR object code libraries [EPREFIX/lib]
1752 --includedir=DIR C header files [PREFIX/include]
1753 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1754 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1755 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1756 --infodir=DIR info documentation [DATAROOTDIR/info]
1757 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1758 --mandir=DIR man documentation [DATAROOTDIR/man]
1759 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1760 --htmldir=DIR html documentation [DOCDIR]
1761 --dvidir=DIR dvi documentation [DOCDIR]
1762 --pdfdir=DIR pdf documentation [DOCDIR]
1763 --psdir=DIR ps documentation [DOCDIR]
1769 --program-prefix=PREFIX prepend PREFIX to installed program names
1770 --program-suffix=SUFFIX append SUFFIX to installed program names
1771 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1774 --x-includes=DIR X include files are
in DIR
1775 --x-libraries=DIR X library files are
in DIR
1778 --build=BUILD configure
for building on BUILD
[guessed
]
1779 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1783 if test -n "$ac_init_help"; then
1784 case $ac_init_help in
1785 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1790 --disable-option-checking ignore unrecognized
--enable/--with options
1791 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1792 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1793 --disable-ns-self-contained
1794 disable self contained build under NeXTstep
1795 --enable-asserts compile code with asserts enabled
1796 --enable-maintainer-mode
1797 enable make rules and dependencies not useful
(and
1798 sometimes confusing
) to the casual installer
1799 --enable-locallisppath=PATH
1800 directories Emacs should search
for lisp files
1801 specific to this site
1802 --enable-checking[=LIST
]
1803 enable expensive run-time checks. With LIST
, enable
1804 only specific categories of checks. Categories are
:
1805 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1806 stringfreelist
, xmallocoverrun
, conslist
1807 --enable-use-lisp-union-type
1808 use a union
for the Lisp_Object data
type. This is
1809 only useful
for development
for catching certain
1811 --enable-profiling build emacs with profiling support. This might not
1812 work on all platforms
1813 --enable-autodepend automatically generate dependencies to .h-files.
1814 Requires GNU Make and Gcc. Enabled
if GNU Make and
1816 --disable-dependency-tracking speeds up one-time build
1817 --enable-dependency-tracking do not reject slow dependency extractors
1818 --disable-largefile omit support
for large files
1821 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1822 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1823 --without-pop don
't support POP mail retrieval with movemail
1824 --with-kerberos support Kerberos-authenticated POP
1825 --with-kerberos5 support Kerberos version 5 authenticated POP
1826 --with-hesiod support Hesiod to get the POP server host
1827 --with-mmdf support MMDF mailboxes
1828 --with-mail-unlink unlink, rather than empty, mail spool after reading
1829 --with-mailhost=HOSTNAME
1830 string giving default POP mail host
1831 --without-sound don't compile with sound support
1832 --without-sync-input process async input synchronously
1833 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1834 lucid or athena
, motif
, no
)
1835 --without-xpm don
't compile with XPM image support
1836 --without-jpeg don't compile with JPEG image support
1837 --without-tiff don
't compile with TIFF image support
1838 --without-gif don't compile with GIF image support
1839 --without-png don
't compile with PNG image support
1840 --without-rsvg don't compile with SVG image support
1841 --without-xml2 don
't compile with XML parsing support
1842 --without-imagemagick don't compile with ImageMagick image support
1843 --without-xft don
't use XFT for anti aliased fonts
1844 --without-libotf don't use libotf
for OpenType font support
1845 --without-m17n-flt don
't use m17n-flt for text shaping
1846 --without-toolkit-scroll-bars
1847 don't use Motif or Xaw3d scroll bars
1848 --without-xaw3d don
't use Xaw3d
1849 --without-xim don't use X11 XIM
1850 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1851 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1853 --without-dbus don't compile with D-Bus support
1854 --without-gconf don
't compile with GConf support
1855 --without-selinux don't compile with SELinux support
1856 --without-gnutls don
't use -lgnutls for SSL/TLS support
1857 --without-makeinfo don't require makeinfo
for building manuals
1858 --without-compress-info don
't compress the installed Info pages
1859 --with-pkg-config-prog=PATH
1860 path to pkg-config for finding GTK and librsvg
1861 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1862 /usr/lib, or /usr/lib64 on some platforms.
1863 --with-gameuser=USER user for shared game score files
1864 --with-gnustep-conf=PATH
1865 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1866 or /etc/GNUstep/GNUstep.conf
1867 --with-x use the X Window System
1869 Some influential environment variables:
1870 CC C compiler command
1871 CFLAGS C compiler flags
1872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1873 nonstandard directory <lib dir>
1874 LIBS libraries to pass to the linker, e.g. -l<library>
1875 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1876 you have headers in a nonstandard directory <include dir>
1878 XMKMF Path to xmkmf, Makefile generator for X Window System
1880 Use these variables to override the choices made by `configure' or to
help
1881 it to
find libraries and programs with nonstandard names
/locations.
1883 Report bugs to the package provider.
1888 if test "$ac_init_help" = "recursive"; then
1889 # If there are subdirs, report their specific --help.
1890 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1891 test -d "$ac_dir" ||
1892 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1897 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1899 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1900 # A ".." for each directory in $ac_dir_suffix.
1901 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1902 case $ac_top_builddir_sub in
1903 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1904 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1907 ac_abs_top_builddir
=$ac_pwd
1908 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1909 # for backward compatibility:
1910 ac_top_builddir
=$ac_top_build_prefix
1913 .
) # We are building in place.
1915 ac_top_srcdir
=$ac_top_builddir_sub
1916 ac_abs_top_srcdir
=$ac_pwd ;;
1917 [\\/]* | ?
:[\\/]* ) # Absolute name.
1918 ac_srcdir
=$srcdir$ac_dir_suffix;
1919 ac_top_srcdir
=$srcdir
1920 ac_abs_top_srcdir
=$srcdir ;;
1922 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1923 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1924 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1926 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1928 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1929 # Check for guested configure.
1930 if test -f "$ac_srcdir/configure.gnu"; then
1932 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1933 elif test -f "$ac_srcdir/configure"; then
1935 $SHELL "$ac_srcdir/configure" --help=recursive
1937 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1939 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1943 test -n "$ac_init_help" && exit $ac_status
1944 if $ac_init_version; then
1946 emacs configure
24.0.50
1947 generated by GNU Autoconf
2.68
1949 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1950 This configure
script is free software
; the Free Software Foundation
1951 gives unlimited permission to copy
, distribute and modify it.
1956 ## ------------------------ ##
1957 ## Autoconf initialization. ##
1958 ## ------------------------ ##
1960 # ac_fn_c_try_compile LINENO
1961 # --------------------------
1962 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_compile
()
1965 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1966 rm -f conftest.
$ac_objext
1967 if { { ac_try
="$ac_compile"
1969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_compile") 2>conftest.err
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest.$ac_objext; then :
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1996 } # ac_fn_c_try_compile
1998 # ac_fn_c_try_cpp LINENO
1999 # ----------------------
2000 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_cpp conftest.$ac_ext"
2006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2007 *) ac_try_echo
=$ac_try;;
2009 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2013 if test -s conftest.err
; then
2014 grep -v '^ *+' conftest.err
>conftest.er1
2015 cat conftest.er1
>&5
2016 mv -f conftest.er1 conftest.err
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } > conftest.i
&& {
2020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2021 test ! -s conftest.err
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.
$ac_ext >&5
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status
$ac_retval
2035 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038 # the include files in INCLUDES and setting the cache variable VAR
2040 ac_fn_c_check_header_mongrel
()
2042 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2043 if eval \
${$3+:} false
; then :
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \
${$3+:} false
; then :
2047 $as_echo_n "(cached) " >&6
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2053 # Is the header compilable?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055 $as_echo_n "checking $2 usability... " >&6; }
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2061 if ac_fn_c_try_compile
"$LINENO"; then :
2062 ac_header_compiler
=yes
2064 ac_header_compiler
=no
2066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068 $as_echo "$ac_header_compiler" >&6; }
2070 # Is the header present?
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072 $as_echo_n "checking $2 presence... " >&6; }
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 if ac_fn_c_try_cpp
"$LINENO"; then :
2078 ac_header_preproc
=yes
2080 ac_header_preproc
=no
2082 rm -f conftest.err conftest.i conftest.
$ac_ext
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084 $as_echo "$ac_header_preproc" >&6; }
2086 # So? What about this header?
2087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \
${$3+:} false
; then :
2110 $as_echo_n "(cached) " >&6
2112 eval "$3=\$ac_header_compiler"
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 } # ac_fn_c_check_header_mongrel
2122 # ac_fn_c_try_run LINENO
2123 # ----------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125 # that executables *can* be run.
2128 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2129 if { { ac_try
="$ac_link"
2131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2142 *) ac_try_echo
=$ac_try;;
2144 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.
$ac_ext >&5
2156 ac_retval
=$ac_status
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status
$ac_retval
2164 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2165 # -------------------------------------------------------
2166 # Tests whether HEADER exists and can be compiled using the include files in
2167 # INCLUDES, setting the cache variable VAR accordingly.
2168 ac_fn_c_check_header_compile
()
2170 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \
${$3+:} false
; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2181 if ac_fn_c_try_compile
"$LINENO"; then :
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_header_compile
2195 # ac_fn_c_try_link LINENO
2196 # -----------------------
2197 # Try to link conftest.$ac_ext, and return whether this succeeded.
2200 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2201 rm -f conftest.
$ac_objext conftest
$ac_exeext
2202 if { { ac_try
="$ac_link"
2204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208 $as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_link") 2>conftest.err
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && {
2218 test -z "$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 } && test -s conftest$ac_exeext && {
2221 test "$cross_compiling" = yes ||
2222 $as_test_x conftest$ac_exeext
2226 $as_echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2231 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2232 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2233 # interfere with the next link command; also delete a directory that is
2234 # left behind by Apple's compiler. We do this before executing the actions.
2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2239 } # ac_fn_c_try_link
2241 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2242 # ---------------------------------------------
2243 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2245 ac_fn_c_check_decl ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2249 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2251 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2261 #ifndef $as_decl_name
2263 (void) $as_decl_use;
2265 (void) $as_decl_name;
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_decl
2287 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2288 # ----------------------------------------------
2289 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2290 ac_fn_c_check_header_preproc ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 if ac_fn_c_try_cpp "$LINENO"; then :
2307 rm -f conftest.err conftest.i conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_header_preproc
2316 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2317 # ----------------------------------------------------
2318 # Tries to find if the field MEMBER exists in type AGGR, after including
2319 # INCLUDES, setting cache variable VAR accordingly.
2320 ac_fn_c_check_member ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2324 $as_echo_n "checking for $2.$3... " >&6; }
2325 if eval \${$4+:} false; then :
2326 $as_echo_n "(cached) " >&6
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2341 if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2351 if (sizeof ac_aggr.$3)
2357 if ac_fn_c_try_compile "$LINENO"; then :
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 } # ac_fn_c_check_member
2373 # ac_fn_c_check_func LINENO FUNC VAR
2374 # ----------------------------------
2375 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2376 ac_fn_c_check_func ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2388 #define $2 innocuous_$2
2390 /* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $2 (); below.
2392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2393 <limits.h> exists even on freestanding compilers. */
2396 # include <limits.h>
2398 # include <assert.h>
2403 /* Override any GCC internal prototype to avoid an error.
2404 Use char because int might match the return type of a GCC
2405 builtin and then its argument prototype would still apply. */
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined __stub_$2 || defined __stub___$2
2425 if ac_fn_c_try_link "$LINENO"; then :
2430 rm -f core conftest.err conftest.$ac_objext \
2431 conftest$ac_exeext conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 } # ac_fn_c_check_func
2440 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2441 # -------------------------------------------
2442 # Tests whether TYPE exists after having included INCLUDES, setting cache
2443 # variable VAR accordingly.
2444 ac_fn_c_check_type ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if eval \${$3+:} false; then :
2450 $as_echo_n "(cached) " >&6
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2478 if ac_fn_c_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_type
2494 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2495 # --------------------------------------------
2496 # Tries to find the compile-time value of EXPR in a program that includes
2497 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2499 ac_fn_c_compute_int ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if test "$cross_compiling" = yes; then
2503 # Depending upon the size, compute the lo and hi bounds.
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2510 static int test_array [1 - 2 * !(($2) >= 0)];
2517 if ac_fn_c_try_compile "$LINENO"; then :
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534 ac_hi=$ac_mid; break
2536 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2537 if test $ac_lo -le $ac_mid; then
2541 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2552 static int test_array [1 - 2 * !(($2) < 0)];
2559 if ac_fn_c_try_compile "$LINENO"; then :
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2568 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576 ac_lo=$ac_mid; break
2578 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2579 if test $ac_mid -le $ac_hi; then
2583 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 # Binary search between lo and hi bounds.
2594 while test "x$ac_lo" != "x$ac_hi"; do
2595 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2602 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2609 if ac_fn_c_try_compile "$LINENO"; then :
2612 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2624 static long int longval () { return $2; }
2625 static unsigned long int ulongval () { return $2; }
2632 FILE *f = fopen ("conftest.val", "w");
2637 long int i = longval ();
2640 fprintf (f, "%ld", i);
2644 unsigned long int i = ulongval ();
2647 fprintf (f, "%lu", i);
2649 /* Do not output a trailing newline, as this causes \r\n confusion
2650 on some platforms. */
2651 return ferror (f) || fclose (f) != 0;
2657 if ac_fn_c_try_run "$LINENO"; then :
2658 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2663 conftest.$ac_objext conftest.beam conftest.$ac_ext
2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668 as_fn_set_status $ac_retval
2670 } # ac_fn_c_compute_int
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by emacs $as_me 24.0.50, which was
2676 generated by GNU Autoconf 2.68. Invocation command line was
2688 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2689 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2690 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2691 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2692 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2695 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2697 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2698 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2699 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2700 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2701 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2702 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2703 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_must_keep_next=false
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2747 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2765 -* ) ac_must_keep_next=true ;;
2768 as_fn_append ac_configure_args " '$ac_arg'"
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2786 $as_echo "## ---------------- ##
2787 ## Cache variables. ##
2788 ## ---------------- ##"
2790 # The following way of writing the cache mishandles newlines in values,
2792 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2793 eval ac_val=\$$ac_var
2797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2801 _ | IFS | as_nl) ;; #(
2802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2803 *) { eval $ac_var=; unset $ac_var;} ;;
2808 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2809 *${as_nl}ac_space=\ *)
2811 "s/'\''/'\''\\\\'\'''\''/g;
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 $as_echo "## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##"
2826 for ac_var in $ac_subst_vars
2828 eval ac_val=\$$ac_var
2830 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 $as_echo "$ac_var='\''$ac_val'\''"
2836 if test -n "$ac_subst_files"; then
2837 $as_echo "## ------------------- ##
2838 ## File substitutions. ##
2839 ## ------------------- ##"
2841 for ac_var in $ac_subst_files
2843 eval ac_val=\$$ac_var
2845 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 $as_echo "$ac_var='\''$ac_val'\''"
2852 if test -s confdefs.h; then
2853 $as_echo "## ----------- ##
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2909 if test -n "$CONFIG_SITE"; then
2910 # We do not want a PATH search for config.site.
2911 case $CONFIG_SITE in #((
2912 -*) ac_site_file1=./$CONFIG_SITE;;
2913 */*) ac_site_file1=$CONFIG_SITE;;
2914 *) ac_site_file1=./$CONFIG_SITE;;
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2931 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "failed to load site
script $ac_site_file
2934 See \
`config.log' for more details" "$LINENO" 5; }
2938 if test -r "$cache_file"; then
2939 # Some versions of bash will fail to source /dev/null (special files
2940 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2941 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2943 $as_echo "$as_me: loading cache $cache_file" >&6;}
2945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2946 *) . "./$cache_file";;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2951 $as_echo "$as_me: creating cache $cache_file" >&6;}
2955 as_fn_append ac_header_list " stdlib.h"
2956 as_fn_append ac_header_list " unistd.h"
2957 as_fn_append ac_header_list " sys/param.h"
2958 gl_getopt_required=GNU
2959 as_fn_append ac_header_list " getopt.h"
2960 as_fn_append ac_func_list " lstat"
2961 as_fn_append ac_func_list " alarm"
2962 as_fn_append ac_func_list " readlink"
2963 as_fn_append ac_header_list " wchar.h"
2964 as_fn_append ac_header_list " stdint.h"
2965 as_fn_append ac_func_list " tzset"
2966 as_fn_append ac_func_list " symlink"
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 # Check that the precious variables saved in the cache have kept the same
2972 ac_cache_corrupted=false
2973 for ac_var in $ac_precious_vars; do
2974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2975 eval ac_new_set=\$ac_env_${ac_var}_set
2976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2977 eval ac_new_val=\$ac_env_${ac_var}_value
2978 case $ac_old_set,$ac_new_set in
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2981 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2985 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2986 ac_cache_corrupted=: ;;
2989 if test "x$ac_old_val" != "x$ac_new_val"; then
2990 # differences in whitespace do not lead to failure.
2991 ac_old_val_w=`echo x
$ac_old_val`
2992 ac_new_val_w=`echo x
$ac_new_val`
2993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2995 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2996 ac_cache_corrupted=:
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2999 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3000 eval $ac_var=\$ac_old_val
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3003 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3005 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3008 # Pass precious variables to config.status.
3009 if test "$ac_new_set" = set; then
3011 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3012 *) ac_arg=$ac_var=$ac_new_val ;;
3014 case " $ac_configure_args " in
3015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3016 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3020 if $ac_cache_corrupted; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3024 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3025 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3027 ## -------------------- ##
3028 ## Main body of script. ##
3029 ## -------------------- ##
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3041 am__api_version='1.11'
3044 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3045 if test -f "$ac_dir/install-sh"; then
3047 ac_install_sh="$ac_aux_dir/install-sh -c"
3049 elif test -f "$ac_dir/install.sh"; then
3051 ac_install_sh="$ac_aux_dir/install.sh -c"
3053 elif test -f "$ac_dir/shtool"; then
3055 ac_install_sh="$ac_aux_dir/shtool install -c"
3059 if test -z "$ac_aux_dir"; then
3060 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3063 # These three variables are undocumented and unsupported,
3064 # and are intended to be withdrawn in a future Autoconf release.
3065 # They can cause serious problems if a builder's source tree is in a directory
3066 # whose full name contains unusual characters.
3067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3072 # Find a good install program. We prefer a C program (faster),
3073 # so one script is as good as another. But avoid the broken or
3074 # incompatible versions:
3075 # SysV /etc/install, /usr/sbin/install
3076 # SunOS /usr/etc/install
3077 # IRIX /sbin/install
3079 # AmigaOS /C/install, which installs bootblocks on floppy discs
3080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3083 # OS/2's system install, which has a completely different semantic
3084 # ./install, which can be erroneously created by make from ./install.sh.
3085 # Reject install programs that cannot install multiple files.
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3087 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3088 if test -z "$INSTALL"; then
3089 if ${ac_cv_path_install+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 # Account for people who put trailing slashes in PATH elements.
3098 case $as_dir/ in #((
3099 ./ | .// | /[cC]/* | \
3100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3101 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3104 # OSF1 and SCO ODT 3.0 have their own names for install.
3105 # Don't use installbsd from OSF since it installs stuff as root
3107 for ac_prog in ginstall scoinst install; do
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3110 if test $ac_prog = install &&
3111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # AIX install. It has an incompatible calling convention.
3114 elif test $ac_prog = install &&
3115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3116 # program-specific install script used by HP pwplus--don't use.
3119 rm -rf conftest.one conftest.two conftest.dir
3120 echo one > conftest.one
3121 echo two > conftest.two
3123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3124 test -s conftest.one && test -s conftest.two &&
3125 test -s conftest.dir/conftest.one &&
3126 test -s conftest.dir/conftest.two
3128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3141 rm -rf conftest.one conftest.two conftest.dir
3144 if test "${ac_cv_path_install+set}" = set; then
3145 INSTALL=$ac_cv_path_install
3147 # As a last resort, use the slow shell script. Don't cache a
3148 # value for INSTALL within a source directory, because that will
3149 # break other packages using the cache if that directory is
3150 # removed, or if the value is a relative name.
3151 INSTALL=$ac_install_sh
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3155 $as_echo "$INSTALL" >&6; }
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3166 $as_echo_n "checking whether build environment is sane... " >&6; }
3169 echo timestamp > conftest.file
3170 # Reject unsafe characters in $srcdir or the absolute working directory
3171 # name. Accept space and tab only in the latter.
3175 *[\\\"\#\$\&\'\`$am_lf]*)
3176 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3179 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3180 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3183 # Do `set' in a subshell so we don't clobber the current shell's
3184 # arguments. Must try -L first in case configure is actually a
3185 # symlink; some systems play weird games with the mod time of symlinks
3186 # (eg FreeBSD returns the mod time of the symlink's containing
3189 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3190 if test "$*" = "X"; then
3192 set X
`ls -t "$srcdir/configure" conftest.file`
3195 if test "$*" != "X $srcdir/configure conftest.file" \
3196 && test "$*" != "X conftest.file $srcdir/configure"; then
3198 # If neither matched, then we have a broken ls. This can happen
3199 # if, for instance, CONFIG_SHELL is bash and it inherits a
3200 # broken ls alias from the environment. This has actually
3201 # happened. Such a system could not be considered "sane".
3202 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3203 alias in your environment" "$LINENO" 5
3206 test "$2" = conftest.
file
3212 as_fn_error $?
"newly created file is older than distributed files!
3213 Check your system clock" "$LINENO" 5
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3216 $as_echo "yes" >&6; }
3217 test "$program_prefix" != NONE
&&
3218 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3219 # Use a double $ so make ignores it.
3220 test "$program_suffix" != NONE
&&
3221 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3222 # Double any \ or $.
3223 # By default was `s,x,x', remove it if useless.
3224 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3225 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3227 # expand $ac_aux_dir to an absolute path
3228 am_aux_dir
=`cd $ac_aux_dir && pwd`
3230 if test x
"${MISSING+set}" != xset
; then
3233 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3235 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3238 # Use eval to expand $SHELL
3239 if eval "$MISSING --run true"; then
3240 am_missing_run
="$MISSING --run "
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3244 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3247 if test x
"${install_sh}" != xset
; then
3250 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3252 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3256 # Installed binaries are usually stripped using `strip' when the user
3257 # run `make install-strip'. However `strip' might not be the right
3258 # tool to use in cross-compilation environments, therefore Automake
3259 # will honor the `STRIP' environment variable to overrule this program.
3260 if test "$cross_compiling" != no
; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3263 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_STRIP+:} false
; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$STRIP"; then
3270 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir
=.
3277 for ac_exec_ext
in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 STRIP
=$ac_cv_prog_STRIP
3290 if test -n "$STRIP"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3292 $as_echo "$STRIP" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3300 if test -z "$ac_cv_prog_STRIP"; then
3302 # Extract the first word of "strip", so it can be a program name with args.
3303 set dummy strip
; ac_word
=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$ac_ct_STRIP"; then
3310 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir
=.
3317 for ac_exec_ext
in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_ac_ct_STRIP
="strip"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3330 if test -n "$ac_ct_STRIP"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3332 $as_echo "$ac_ct_STRIP" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3338 if test "x$ac_ct_STRIP" = x
; then
3341 case $cross_compiling:$ac_tool_warned in
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345 ac_tool_warned
=yes ;;
3350 STRIP
="$ac_cv_prog_STRIP"
3354 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3357 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3358 if test -z "$MKDIR_P"; then
3359 if ${ac_cv_path_mkdir+:} false
; then :
3360 $as_echo_n "(cached) " >&6
3362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3363 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3366 test -z "$as_dir" && as_dir
=.
3367 for ac_prog
in mkdir gmkdir
; do
3368 for ac_exec_ext
in '' $ac_executable_extensions; do
3369 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3370 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3371 'mkdir (GNU coreutils) '* | \
3372 'mkdir (coreutils) '* | \
3373 'mkdir (fileutils) '4.1*)
3374 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3384 test -d .
/--version && rmdir .
/--version
3385 if test "${ac_cv_path_mkdir+set}" = set; then
3386 MKDIR_P
="$ac_cv_path_mkdir -p"
3388 # As a last resort, use the slow shell script. Don't cache a
3389 # value for MKDIR_P within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the value is a relative name.
3392 MKDIR_P
="$ac_install_sh -d"
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3396 $as_echo "$MKDIR_P" >&6; }
3401 [\\/$
]* | ?
:[\\/]*) ;;
3402 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3405 for ac_prog
in gawk mawk nawk
awk
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy
$ac_prog; ac_word
=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_AWK+:} false
; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$AWK"; then
3415 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir
=.
3422 for ac_exec_ext
in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_AWK
="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test -n "$AWK"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3437 $as_echo "$AWK" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 test -n "$AWK" && break
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3448 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3450 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3451 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3452 $as_echo_n "(cached) " >&6
3454 cat >conftest.
make <<\_ACEOF
3457 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3459 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3460 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3462 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3464 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3468 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 SET_MAKE
="MAKE=${MAKE-make}"
3478 rm -rf .tst
2>/dev
/null
3479 mkdir .tst
2>/dev
/null
3480 if test -d .tst
; then
3485 rmdir .tst
2>/dev
/null
3487 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3488 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3489 # is not polluted with repeated "-I."
3490 am__isrc
=' -I$(srcdir)'
3491 # test to see if srcdir already configured
3492 if test -f $srcdir/config.status
; then
3493 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3497 # test whether we have cygpath
3498 if test -z "$CYGPATH_W"; then
3499 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3500 CYGPATH_W
='cygpath -w'
3507 # Define the identity of the package.
3512 cat >>confdefs.h
<<_ACEOF
3513 #define PACKAGE "$PACKAGE"
3517 cat >>confdefs.h
<<_ACEOF
3518 #define VERSION "$VERSION"
3521 # Some tools Automake needs.
3523 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3526 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3529 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3532 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3535 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3537 # We need awk for the "check" target. The system "awk" is bad on
3539 # Always define AMTAR for backward compatibility.
3541 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3543 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3552 lispdir
='${datadir}/emacs/${version}/lisp'
3553 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3554 '${datadir}/emacs/site-lisp'
3555 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3556 etcdir
='${datadir}/emacs/${version}/etc'
3557 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3558 docdir
='${datadir}/emacs/${version}/etc'
3559 gamedir
='${localstatedir}/games/emacs'
3564 # Check whether --with-pop was given.
3565 if test "${with_pop+set}" = set; then :
3571 if test "$with_pop" = yes; then
3572 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3577 # Check whether --with-kerberos was given.
3578 if test "${with_kerberos+set}" = set; then :
3579 withval
=$with_kerberos;
3584 if test "$with_kerberos" != no
; then
3585 $as_echo "#define KERBEROS 1" >>confdefs.h
3590 # Check whether --with-kerberos5 was given.
3591 if test "${with_kerberos5+set}" = set; then :
3592 withval
=$with_kerberos5;
3597 if test "${with_kerberos5}" != no
; then
3598 if test "${with_kerberos}" = no
; then
3600 $as_echo "#define KERBEROS 1" >>confdefs.h
3604 $as_echo "#define KERBEROS5 1" >>confdefs.h
3609 # Check whether --with-hesiod was given.
3610 if test "${with_hesiod+set}" = set; then :
3611 withval
=$with_hesiod;
3616 if test "$with_hesiod" != no
; then
3618 $as_echo "#define HESIOD 1" >>confdefs.h
3623 # Check whether --with-mmdf was given.
3624 if test "${with_mmdf+set}" = set; then :
3630 if test "$with_mmdf" != no
; then
3632 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3637 # Check whether --with-mail-unlink was given.
3638 if test "${with_mail_unlink+set}" = set; then :
3639 withval
=$with_mail_unlink;
3644 if test "$with_mail_unlink" != no
; then
3646 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3651 # Check whether --with-mailhost was given.
3652 if test "${with_mailhost+set}" = set; then :
3653 withval
=$with_mailhost;
3654 cat >>confdefs.h
<<_ACEOF
3655 #define MAILHOST "$withval"
3662 # Check whether --with-sound was given.
3663 if test "${with_sound+set}" = set; then :
3664 withval
=$with_sound;
3671 # Check whether --with-sync-input was given.
3672 if test "${with_sync_input+set}" = set; then :
3673 withval
=$with_sync_input;
3678 if test "$with_sync_input" = yes; then
3680 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3685 # Check whether --with-x-toolkit was given.
3686 if test "${with_x_toolkit+set}" = set; then :
3687 withval
=$with_x_toolkit; case "${withval}" in
3688 y | ye |
yes ) val
=gtk
;;
3690 l | lu | luc | luci | lucid
) val
=lucid
;;
3691 a |
at | ath | athe | athen | athena
) val
=athena
;;
3692 m | mo | mot | moti | motif
) val
=motif
;;
3693 g | gt | gtk
) val
=gtk
;;
3696 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3697 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3698 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3707 # Check whether --with-xpm was given.
3708 if test "${with_xpm+set}" = set; then :
3715 # Check whether --with-jpeg was given.
3716 if test "${with_jpeg+set}" = set; then :
3723 # Check whether --with-tiff was given.
3724 if test "${with_tiff+set}" = set; then :
3731 # Check whether --with-gif was given.
3732 if test "${with_gif+set}" = set; then :
3739 # Check whether --with-png was given.
3740 if test "${with_png+set}" = set; then :
3747 # Check whether --with-rsvg was given.
3748 if test "${with_rsvg+set}" = set; then :
3755 # Check whether --with-xml2 was given.
3756 if test "${with_xml2+set}" = set; then :
3763 # Check whether --with-imagemagick was given.
3764 if test "${with_imagemagick+set}" = set; then :
3765 withval
=$with_imagemagick;
3767 with_imagemagick
=yes
3772 # Check whether --with-xft was given.
3773 if test "${with_xft+set}" = set; then :
3780 # Check whether --with-libotf was given.
3781 if test "${with_libotf+set}" = set; then :
3782 withval
=$with_libotf;
3788 # Check whether --with-m17n-flt was given.
3789 if test "${with_m17n_flt+set}" = set; then :
3790 withval
=$with_m17n_flt;
3797 # Check whether --with-toolkit-scroll-bars was given.
3798 if test "${with_toolkit_scroll_bars+set}" = set; then :
3799 withval
=$with_toolkit_scroll_bars;
3801 with_toolkit_scroll_bars
=yes
3805 # Check whether --with-xaw3d was given.
3806 if test "${with_xaw3d+set}" = set; then :
3807 withval
=$with_xaw3d;
3813 # Check whether --with-xim was given.
3814 if test "${with_xim+set}" = set; then :
3821 # Check whether --with-ns was given.
3822 if test "${with_ns+set}" = set; then :
3830 # Check whether --with-gpm was given.
3831 if test "${with_gpm+set}" = set; then :
3838 # Check whether --with-dbus was given.
3839 if test "${with_dbus+set}" = set; then :
3846 # Check whether --with-gconf was given.
3847 if test "${with_gconf+set}" = set; then :
3848 withval
=$with_gconf;
3854 # Check whether --with-selinux was given.
3855 if test "${with_selinux+set}" = set; then :
3856 withval
=$with_selinux;
3862 # Check whether --with-gnutls was given.
3863 if test "${with_gnutls+set}" = set; then :
3864 withval
=$with_gnutls;
3870 ## For the times when you want to build Emacs but don't have
3871 ## a suitable makeinfo, and can live without the manuals.
3873 # Check whether --with-makeinfo was given.
3874 if test "${with_makeinfo+set}" = set; then :
3875 withval
=$with_makeinfo;
3881 ## This is an option because I do not know if all info/man support
3882 ## compressed files, nor how to test if they do so.
3884 # Check whether --with-compress-info was given.
3885 if test "${with_compress_info+set}" = set; then :
3886 withval
=$with_compress_info;
3888 with_compress_info
=yes
3891 if test $with_compress_info = yes; then
3899 # Check whether --with-pkg-config-prog was given.
3900 if test "${with_pkg_config_prog+set}" = set; then :
3901 withval
=$with_pkg_config_prog;
3904 if test "X${with_pkg_config_prog}" != X
; then
3905 if test "${with_pkg_config_prog}" != yes; then
3906 PKG_CONFIG
="${with_pkg_config_prog}"
3912 # Check whether --with-crt-dir was given.
3913 if test "${with_crt_dir+set}" = set; then :
3914 withval
=$with_crt_dir;
3917 CRT_DIR
="${with_crt_dir}"
3920 # Check whether --with-gameuser was given.
3921 if test "${with_gameuser+set}" = set; then :
3922 withval
=$with_gameuser;
3925 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3926 && gameuser
="${with_gameuser}"
3927 test "X$gameuser" = X
&& gameuser
=games
3930 # Check whether --with-gnustep-conf was given.
3931 if test "${with_gnustep_conf+set}" = set; then :
3932 withval
=$with_gnustep_conf;
3935 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3936 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3937 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3938 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3940 # Check whether --enable-ns-self-contained was given.
3941 if test "${enable_ns_self_contained+set}" = set; then :
3942 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3944 EN_NS_SELF_CONTAINED
=yes
3948 # Check whether --enable-asserts was given.
3949 if test "${enable_asserts+set}" = set; then :
3950 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3956 # Check whether --enable-maintainer-mode was given.
3957 if test "${enable_maintainer_mode+set}" = set; then :
3958 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3960 USE_MAINTAINER_MODE
=no
3963 if test $USE_MAINTAINER_MODE = yes; then
3970 # Check whether --enable-locallisppath was given.
3971 if test "${enable_locallisppath+set}" = set; then :
3972 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3974 elif test "${enableval}" != "yes"; then
3975 locallisppath
=${enableval}
3980 # Check whether --enable-checking was given.
3981 if test "${enable_checking+set}" = set; then :
3982 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3985 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3986 for check
in $ac_checking_flags
3989 # these set all the flags to specific states
3990 yes) ac_enable_checking
=1 ;;
3991 no
) ac_enable_checking
= ;
3992 ac_gc_check_stringbytes
= ;
3993 ac_gc_check_string_overrun
= ;
3994 ac_gc_check_string_free_list
= ;
3995 ac_xmalloc_overrun
= ;
3996 ac_gc_check_cons_list
= ;;
3997 all
) ac_enable_checking
=1 ;
3998 ac_gc_check_stringbytes
=1 ;
3999 ac_gc_check_string_overrun
=1 ;
4000 ac_gc_check_string_free_list
=1 ;
4001 ac_xmalloc_overrun
=1 ;
4002 ac_gc_check_cons_list
=1 ;;
4003 # these enable particular checks
4004 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4005 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4006 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4007 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4008 conslist
) ac_gc_check_cons_list
=1 ;;
4009 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
4014 if test x
$ac_enable_checking != x
; then
4016 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4019 if test x
$ac_gc_check_stringbytes != x
; then
4021 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4024 if test x
$ac_gc_check_stringoverrun != x
; then
4026 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4029 if test x
$ac_gc_check_string_free_list != x
; then
4031 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4034 if test x
$ac_xmalloc_overrun != x
; then
4036 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4039 if test x
$ac_gc_check_cons_list != x
; then
4041 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4045 # Check whether --enable-use-lisp-union-type was given.
4046 if test "${enable_use_lisp_union_type+set}" = set; then :
4047 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4049 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4056 # Check whether --enable-profiling was given.
4057 if test "${enable_profiling+set}" = set; then :
4058 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4061 if test x
$ac_enable_profiling != x
; then
4062 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4068 # Check whether --enable-autodepend was given.
4069 if test "${enable_autodepend+set}" = set; then :
4070 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4072 ac_enable_autodepend
=yes
4076 #### Make srcdir absolute, if it isn't already. It's important to
4077 #### avoid running the path through pwd unnecessarily, since pwd can
4078 #### give you automounter prefixes, which can go away. We do all this
4079 #### so Emacs can find its files when run uninstalled.
4080 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4085 ## We may be able to use the $PWD environment variable to make this
4086 ## absolute. But sometimes PWD is inaccurate.
4087 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4088 ## but that tested only for a well-formed and valid PWD,
4089 ## it did not object when PWD was well-formed and valid but just wrong.
4090 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4094 srcdir
="`(cd ${srcdir}; pwd)`"
4097 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4100 #### Check if the source directory already has a configured system in it.
4101 if test `pwd` != `(cd ${srcdir} && pwd)` \
4102 && test -f "${srcdir}/src/config.h" ; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4104 as a build directory right now; it has been configured in its own
4105 right. To configure in another directory as well, you MUST
4106 use GNU make. If you do not have GNU make, then you must
4107 now do \`make distclean' in ${srcdir},
4108 and then run $0 again." >&5
4109 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4110 as a build directory right now; it has been configured in its own
4111 right. To configure in another directory as well, you MUST
4112 use GNU make. If you do not have GNU make, then you must
4113 now do \`make distclean' in ${srcdir},
4114 and then run $0 again." >&2;}
4117 #### Given the configuration name, set machfile and opsysfile to the
4118 #### names of the m/*.h and s/*.h files we should use.
4120 ### Canonicalize the configuration name.
4122 # Make sure we can run config.sub.
4123 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4124 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4127 $as_echo_n "checking build system type... " >&6; }
4128 if ${ac_cv_build+:} false
; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_build_alias
=$build_alias
4132 test "x$ac_build_alias" = x
&&
4133 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4134 test "x$ac_build_alias" = x
&&
4135 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4136 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4137 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4141 $as_echo "$ac_cv_build" >&6; }
4142 case $ac_cv_build in
4144 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4147 ac_save_IFS
=$IFS; IFS
='-'
4153 # Remember, the first character of IFS is used to create $*,
4154 # except with old shells:
4157 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4161 $as_echo_n "checking host system type... " >&6; }
4162 if ${ac_cv_host+:} false
; then :
4163 $as_echo_n "(cached) " >&6
4165 if test "x$host_alias" = x
; then
4166 ac_cv_host
=$ac_cv_build
4168 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4169 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4174 $as_echo "$ac_cv_host" >&6; }
4177 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4180 ac_save_IFS
=$IFS; IFS
='-'
4186 # Remember, the first character of IFS is used to create $*,
4187 # except with old shells:
4190 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4194 configuration
=${host_alias-${build_alias-$host}}
4198 ### If you add support for a new configuration, add code to this
4199 ### switch statement to recognize your configuration name and select
4200 ### the appropriate operating system and machine description files.
4202 ### You would hope that you could choose an m/*.h file pretty much
4203 ### based on the machine portion of the configuration name, and an s/*.h
4204 ### file based on the operating system portion. However, it turns out
4205 ### that each m/*.h file is pretty manufacturer-specific - for
4206 ### example mips.h is MIPS
4207 ### So we basically have to have a special case for each
4208 ### configuration name.
4210 ### As far as handling version numbers on operating systems is
4211 ### concerned, make sure things will fail in a fixable way. If
4212 ### /etc/MACHINES doesn't say anything about version numbers, be
4213 ### prepared to handle anything reasonably. If version numbers
4214 ### matter, be sure /etc/MACHINES says something about it.
4216 machine
='' opsys
='' unported
=no
4217 case "${canonical}" in
4222 case ${canonical} in
4223 alpha
*) machine
=alpha
;;
4224 s390-
*) machine
=ibms390
;;
4225 s390x-
*) machine
=ibms390x
;;
4226 powerpc
*) machine
=macppc
;;
4227 sparc
*) machine
=sparc
;;
4228 ia64
*) machine
=ia64
;;
4229 m68k
*) machine
=m68k
;;
4230 x86_64
*) machine
=amdx86-64
;;
4237 case "${canonical}" in
4238 alpha
*) machine
=alpha
;;
4239 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4240 ia64-
*) machine
=ia64
;;
4241 i
[3456]86-*) machine
=intel386
;;
4242 powerpc-
*) machine
=macppc
;;
4243 sparc-
*) machine
=sparc
;;
4244 sparc64-
*) machine
=sparc
;;
4248 ## FreeBSD kernel + glibc based userland
4251 case "${canonical}" in
4252 alpha
*) machine
=alpha
;;
4253 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4254 ia64-
*) machine
=ia64
;;
4255 i
[3456]86-*) machine
=intel386
;;
4256 powerpc-
*) machine
=macppc
;;
4257 sparc-
*) machine
=sparc
;;
4258 sparc64-
*) machine
=sparc
;;
4265 case "${canonical}" in
4266 alpha
*) machine
=alpha
;;
4267 x86_64-
*) machine
=amdx86-64
;;
4268 i
[3456]86-*) machine
=intel386
;;
4269 m68k-
*) machine
=m68k
;;
4270 powerpc-
*) machine
=macppc
;;
4271 sparc
*-) machine
=sparc
;;
4272 vax-
*) machine
=vax
;;
4279 case "${canonical}" in
4280 alpha
*) machine
=alpha
;;
4281 x86_64-
*) machine
=amdx86-64
;;
4282 i386-
*) machine
=intel386
;;
4283 powerpc-
*) machine
=macppc
;;
4284 sparc
*) machine
=sparc
;;
4285 vax-
*) machine
=vax
;;
4289 ## Apple Darwin / Mac OS X
4291 case "${canonical}" in
4292 i
[3456]86-* ) machine
=intel386
;;
4293 powerpc-
* ) machine
=macppc
;;
4294 x86_64-
* ) machine
=amdx86-64
;;
4298 # Define CPP as follows to make autoconf work correctly.
4299 CPP
="${CC-cc} -E -no-cpp-precomp"
4300 # Use fink packages if available.
4301 if test -d /sw
/include
&& test -d /sw
/lib
; then
4302 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4303 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4304 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4308 ## HP 9000 series 700 and 800, running HP/UX
4309 hppa
*-hp-hpux10.2
* )
4312 hppa
*-hp-hpux1[1-9]* )
4314 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4317 ia64
*-hp-hpux1[1-9]* )
4318 machine
=hp800 opsys
=hpux11
4319 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4320 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4324 hppa
*-*-linux-gnu* )
4325 machine
=hp800 opsys
=gnu-linux
4329 rs6000-ibm-aix4.
[23]* )
4330 machine
=ibmrs6000 opsys
=aix4-2
4332 powerpc-ibm-aix4.
[23]* )
4333 machine
=ibmrs6000 opsys
=aix4-2
4335 rs6000-ibm-aix
[56]* )
4336 machine
=ibmrs6000 opsys
=aix4-2
4338 powerpc-ibm-aix
[56]* )
4339 machine
=ibmrs6000 opsys
=aix4-2
4342 ## Silicon Graphics machines
4345 machine
=iris4d opsys
=irix6-5
4346 # Without defining _LANGUAGE_C, things get masked out in the headers
4347 # so that, for instance, grepping for `free' in stdlib.h fails and
4348 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4349 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4350 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4355 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4356 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4357 case "${canonical}" in
4358 i
[3456]86-*-* ) machine
=intel386
;;
4359 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4360 sparc
* ) machine
=sparc
;;
4363 case "${canonical}" in
4364 *-sunos5.6
* |
*-solaris2.6
* )
4366 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4369 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4371 emacs_check_sunpro_c
=yes
4372 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4374 *-sunos5* |
*-solaris* )
4376 emacs_check_sunpro_c
=yes
4377 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4380 ## Watch out for a compiler that we know will not work.
4381 case "${canonical}" in
4382 *-solaris* |
*-sunos5* )
4383 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4384 ## /usr/ucb/cc doesn't work;
4385 ## we should find some other compiler that does work.
4393 ## Intel 386 machines where we don't care about the manufacturer.
4396 case "${canonical}" in
4397 *-cygwin ) opsys
=cygwin
;;
4398 *-darwin* ) opsys
=darwin
4399 CPP
="${CC-cc} -E -no-cpp-precomp"
4401 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4402 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4403 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4404 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4413 ### If the code above didn't choose an operating system, just choose
4414 ### an operating system based on the configuration name. You really
4415 ### only want to use this when you have no idea what the right
4416 ### operating system is; if you know what operating systems a machine
4417 ### runs, it's cleaner to make it explicit in the case statement
4419 if test x
"${opsys}" = x
; then
4420 case "${canonical}" in
4421 *-gnu* ) opsys
=gnu
;;
4430 if test $unported = yes; then
4431 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4432 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4435 if test -n "$machine"; then
4436 machfile
="m/${machine}.h"
4440 opsysfile
="s/${opsys}.h"
4443 #### Choose a compiler.
4444 test -n "$CC" && cc_specified
=yes
4446 # Save the value of CFLAGS that the user specified.
4447 SPECIFIED_CFLAGS
="$CFLAGS"
4450 ac_cpp
='$CPP $CPPFLAGS'
4451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_CC+:} false
; then :
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC
="$CC" # Let the user override the test.
4465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir
=.
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4493 if test -z "$ac_cv_prog_CC"; then
4495 # Extract the first word of "gcc", so it can be a program name with args.
4496 set dummy gcc
; ac_word
=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir
=.
4510 for ac_exec_ext
in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC
="gcc"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4531 if test "x$ac_ct_CC" = x
; then
4534 case $cross_compiling:$ac_tool_warned in
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned
=yes ;;
4546 if test -z "$CC"; then
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4549 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_CC+:} false
; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -n "$CC"; then
4556 ac_cv_prog_CC
="$CC" # Let the user override the test.
4558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir
=.
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578 $as_echo "$CC" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4587 if test -z "$CC"; then
4588 # Extract the first word of "cc", so it can be a program name with args.
4589 set dummy cc
; ac_word
=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_CC+:} false
; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC
="$CC" # Let the user override the test.
4599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir
=.
4604 for ac_exec_ext
in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4607 ac_prog_rejected
=yes
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy
$ac_cv_prog_CC
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set CC to just the basename; use the full file name.
4627 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$CC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog
in cl.exe
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC
="$CC" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$CC" && break
4687 if test -z "$CC"; then
4689 for ac_prog
in cl.exe
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy
$ac_prog; ac_word
=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_CC"; then
4699 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir
=.
4706 for ac_exec_ext
in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_CC
="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4719 if test -n "$ac_ct_CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4721 $as_echo "$ac_ct_CC" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$ac_ct_CC" && break
4731 if test "x$ac_ct_CC" = x
; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned
=yes ;;
4747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4749 as_fn_error $?
"no acceptable C compiler found in \$PATH
4750 See \`config.log' for more details" "$LINENO" 5; }
4752 # Provide some information about the compiler.
4753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4756 for ac_option
in --version -v -V -qversion; do
4757 { { ac_try
="$ac_compiler $ac_option >&5"
4759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763 $as_echo "$ac_try_echo"; } >&5
4764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4766 if test -s conftest.err; then
4768 ... rest of stderr output deleted ...
4769 10q' conftest.err >conftest.er1
4770 cat conftest.er1 >&5
4772 rm -f conftest.er1 conftest.err
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 ac_clean_files_save=$ac_clean_files
4789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4790 # Try to create an executable without -o first, disregard a.out.
4791 # It will help us diagnose broken compilers, and finding out an intuition
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4794 $as_echo_n "checking whether the C compiler works... " >&6; }
4795 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4797 # The possible output files:
4798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4801 for ac_file in $ac_files
4804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4810 if { { ac_try="$ac_link_default"
4812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4813 *) ac_try_echo
=$ac_try;;
4815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4816 $as_echo "$ac_try_echo"; } >&5
4817 (eval "$ac_link_default") 2>&5
4819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820 test $ac_status = 0; }; then :
4821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4824 # so that the user can short-circuit this test for compilers unknown to
4826 for ac_file
in $ac_files ''
4828 test -f "$ac_file" ||
continue
4830 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4833 # We found the default executable, but exeext='' is most
4837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4839 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4841 # We set ac_cv_exeext here because the later test for it is not
4842 # safe: cross compilers may not add the suffix if given an `-o'
4843 # argument, so we may need to know it at that point already.
4844 # Even if this section looks crufty: it has the advantage of
4851 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4856 if test -z "$ac_file"; then :
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 $as_echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 as_fn_error
77 "C compiler cannot create executables
4865 See \`config.log' for more details" "$LINENO" 5; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868 $as_echo "yes" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4871 $as_echo_n "checking for C compiler default output file name... " >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4873 $as_echo "$ac_file" >&6; }
4874 ac_exeext
=$ac_cv_exeext
4876 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4877 ac_clean_files
=$ac_clean_files_save
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4879 $as_echo_n "checking for suffix of executables... " >&6; }
4880 if { { ac_try
="$ac_link"
4882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4886 $as_echo "$ac_try_echo"; } >&5
4887 (eval "$ac_link") 2>&5
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }; then :
4891 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4892 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4893 # work properly (i.e., refer to `conftest.exe'), while it won't with
4895 for ac_file
in conftest.exe conftest conftest.
*; do
4896 test -f "$ac_file" ||
continue
4898 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4899 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4907 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4908 See \`config.log' for more details" "$LINENO" 5; }
4910 rm -f conftest conftest
$ac_cv_exeext
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4912 $as_echo "$ac_cv_exeext" >&6; }
4914 rm -f conftest.
$ac_ext
4915 EXEEXT
=$ac_cv_exeext
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4923 FILE *f = fopen ("conftest.out", "w");
4924 return ferror (f) || fclose (f) != 0;
4930 ac_clean_files
="$ac_clean_files conftest.out"
4931 # Check that the compiler produces executables we can run. If not, either
4932 # the compiler is broken, or we cross compile.
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4934 $as_echo_n "checking whether we are cross compiling... " >&6; }
4935 if test "$cross_compiling" != yes; then
4936 { { ac_try
="$ac_link"
4938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942 $as_echo "$ac_try_echo"; } >&5
4943 (eval "$ac_link") 2>&5
4945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; }
4947 if { ac_try='./conftest$ac_cv_exeext'
4948 { { case "(($ac_try" in
4949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4950 *) ac_try_echo
=$ac_try;;
4952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953 $as_echo "$ac_try_echo"; } >&5
4954 (eval "$ac_try") 2>&5
4956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }; }; then
4960 if test "$cross_compiling" = maybe
; then
4963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $?
"cannot run C compiled programs.
4966 If you meant to cross compile, use \`--host'.
4967 See \`config.log' for more details" "$LINENO" 5; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4972 $as_echo "$cross_compiling" >&6; }
4974 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4975 ac_clean_files
=$ac_clean_files_save
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4977 $as_echo_n "checking for suffix of object files... " >&6; }
4978 if ${ac_cv_objext+:} false
; then :
4979 $as_echo_n "(cached) " >&6
4981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4992 rm -f conftest.o conftest.obj
4993 if { { ac_try
="$ac_compile"
4995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4999 $as_echo "$ac_try_echo"; } >&5
5000 (eval "$ac_compile") 2>&5
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }; then :
5004 for ac_file in conftest.o conftest.obj conftest.*; do
5005 test -f "$ac_file" || continue;
5007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5018 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5019 See \
`config.log' for more details" "$LINENO" 5; }
5021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5024 $as_echo "$ac_cv_objext" >&6; }
5025 OBJEXT=$ac_cv_objext
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5028 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5029 if ${ac_cv_c_compiler_gnu+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5046 if ac_fn_c_try_compile "$LINENO"; then :
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5056 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5057 if test $ac_compiler_gnu = yes; then
5062 ac_test_CFLAGS=${CFLAGS+set}
5063 ac_save_CFLAGS=$CFLAGS
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5065 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5066 if ${ac_cv_prog_cc_g+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 ac_save_c_werror_flag=$ac_c_werror_flag
5070 ac_c_werror_flag=yes
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5084 if ac_fn_c_try_compile "$LINENO"; then :
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5099 if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5115 if ac_fn_c_try_compile "$LINENO"; then :
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_c_werror_flag=$ac_save_c_werror_flag
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5126 $as_echo "$ac_cv_prog_cc_g" >&6; }
5127 if test "$ac_test_CFLAGS" = set; then
5128 CFLAGS=$ac_save_CFLAGS
5129 elif test $ac_cv_prog_cc_g = yes; then
5130 if test "$GCC" = yes; then
5136 if test "$GCC" = yes; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5143 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5144 if ${ac_cv_prog_cc_c89+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 ac_cv_prog_cc_c89=no
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5153 #include <sys/types.h>
5154 #include <sys/stat.h>
5155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5156 struct buf { int x; };
5157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5158 static char *e (p, i)
5164 static char *f (char * (*g) (char **, int), char **p, ...)
5169 s = g (p, va_arg (v,int));
5174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5175 function prototypes and stuff, but not '\xHH' hex character constants.
5176 These don't provoke an error unfortunately, instead are silently treated
5177 as 'x'. The following induces an error, until -std is added to get
5178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5179 array size at least. It's necessary to write '\x00'==0 to get something
5180 that's true only with -std. */
5181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5184 inside strings and character constants. */
5186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5188 int test (int i, double x);
5189 struct s1 {int (*f) (int a);};
5190 struct s2 {int (*f) (double a);};
5191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5205 CC="$ac_save_CC $ac_arg"
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 ac_cv_prog_cc_c89=$ac_arg
5209 rm -f core conftest.err conftest.$ac_objext
5210 test "x$ac_cv_prog_cc_c89" != "xno" && break
5212 rm -f conftest.$ac_ext
5217 case "x$ac_cv_prog_cc_c89" in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5220 $as_echo "none needed" >&6; } ;;
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5223 $as_echo "unsupported" >&6; } ;;
5225 CC="$CC $ac_cv_prog_cc_c89"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229 if test "x$ac_cv_prog_cc_c89" != xno; then :
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 DEPDIR="${am__leading_dot}deps"
5240 ac_config_commands="$ac_config_commands depfiles"
5243 am_make=${MAKE-make}
5244 cat > confinc << 'END'
5246 @echo this is the am__doit target
5249 # If we don't find an include directive, just comment out the code.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5251 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5255 # First try GNU make style include.
5256 echo "include confinc" > confmf
5257 # Ignore all kinds of additional output from `make'.
5258 case `$am_make -s -f confmf 2> /dev/null` in #(
5259 *the\ am__doit\ target*)
5265 # Now try BSD make style include.
5266 if test "$am__include" = "#"; then
5267 echo '.include
"confinc"' > confmf
5268 case `$am_make -s -f confmf 2> /dev/null` in #(
5269 *the\ am__doit\ target*)
5270 am__include=.include
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5279 $as_echo "$_am_result" >&6; }
5280 rm -f confinc confmf
5282 # Check whether --enable-dependency-tracking was given.
5283 if test "${enable_dependency_tracking+set}" = set; then :
5284 enableval=$enable_dependency_tracking;
5287 if test "x$enable_dependency_tracking" != xno; then
5288 am_depcomp="$ac_aux_dir/depcomp"
5291 if test "x$enable_dependency_tracking" != xno
; then
5301 depcc
="$CC" am_compiler_list
=
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5304 $as_echo_n "checking dependency style of $depcc... " >&6; }
5305 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5306 $as_echo_n "(cached) " >&6
5308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5309 # We make a subdir and do the tests there. Otherwise we can end up
5310 # making bogus files that we don't know about and never remove. For
5311 # instance it was reported that on HP-UX the gcc test will end up
5312 # making a dummy file named `D' -- because `-MD' means `put the output
5315 # Copy depcomp to subdir because otherwise we won't find it if we're
5316 # using a relative directory.
5317 cp "$am_depcomp" conftest.dir
5319 # We will build objects and dependencies in a subdirectory because
5320 # it helps to detect inapplicable dependency modes. For instance
5321 # both Tru64's cc and ICC support -MD to output dependencies as a
5322 # side effect of compilation, but ICC will put the dependencies in
5323 # the current directory while Tru64 will put them in the object
5327 am_cv_CC_dependencies_compiler_type
=none
5328 if test "$am_compiler_list" = ""; then
5329 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5332 case " $depcc " in #(
5333 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5336 for depmode
in $am_compiler_list; do
5337 # Setup a source with many dependencies, because some compilers
5338 # like to wrap large dependency lists on column 80 (with \), and
5339 # we should not choose a depcomp mode which is confused by this.
5341 # We need to recreate these files for each test, as the compiler may
5342 # overwrite some of them when testing with obscure command lines.
5343 # This happens at least with the AIX C compiler.
5345 for i
in 1 2 3 4 5 6; do
5346 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5348 # Solaris 8's {/usr,}/bin/sh.
5349 touch sub
/conftst
$i.h
5351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5354 # mode. It turns out that the SunPro C++ compiler does not properly
5355 # handle `-M -o', and we need to detect this. Also, some Intel
5356 # versions had trouble with output in subdirs
5357 am__obj
=sub
/conftest.
${OBJEXT-o}
5358 am__minus_obj
="-o $am__obj"
5361 # This depmode causes a compiler race in universal mode.
5362 test "$am__universal" = false ||
continue
5365 # after this tag, mechanisms are not by side-effect, so they'll
5366 # only be used when explicitly requested
5367 if test "x$enable_dependency_tracking" = xyes
; then
5373 msvisualcpp | msvcmsys
)
5374 # This compiler won't grok `-c -o', but also, the minuso test has
5375 # not run yet. These depmodes are late enough in the game, and
5376 # so weak that their functioning should not be impacted.
5377 am__obj
=conftest.
${OBJEXT-o}
5382 if depmode
=$depmode \
5383 source=sub
/conftest.c object
=$am__obj \
5384 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5385 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5386 >/dev
/null
2>conftest.err
&&
5387 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5388 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5389 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5390 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5391 # icc doesn't choke on unknown options, it will just issue warnings
5392 # or remarks (even with -Werror). So we grep stderr for any message
5393 # that says an option was ignored or not supported.
5394 # When given -MP, icc 7.0 and 7.1 complain thusly:
5395 # icc: Command line warning: ignoring option '-M'; no argument required
5396 # The diagnosis changed in icc 8.0:
5397 # icc: Command line remark: option '-MP' not supported
5398 if (grep 'ignoring option' conftest.err ||
5399 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5400 am_cv_CC_dependencies_compiler_type
=$depmode
5409 am_cv_CC_dependencies_compiler_type
=none
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5415 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5418 test "x$enable_dependency_tracking" != xno \
5419 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5421 am__fastdepCC_FALSE
='#'
5423 am__fastdepCC_TRUE
='#'
5424 am__fastdepCC_FALSE
=
5428 if test "x$CC" != xcc
; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5430 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5433 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5435 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5436 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5437 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5438 $as_echo_n "(cached) " >&6
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5451 # Make sure it works both with $CC and with simple cc.
5452 # We do the test twice because some compilers refuse to overwrite an
5453 # existing .o file with -o, though they will create one.
5454 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5456 if { { case "(($ac_try" in
5457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5461 $as_echo "$ac_try_echo"; } >&5
5462 (eval "$ac_try") 2>&5
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; } &&
5466 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5468 *) ac_try_echo
=$ac_try;;
5470 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5471 $as_echo "$ac_try_echo"; } >&5
5472 (eval "$ac_try") 2>&5
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; };
5477 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5478 if test "x$CC" != xcc
; then
5479 # Test first that cc exists at all.
5480 if { ac_try
='cc -c conftest.$ac_ext >&5'
5481 { { case "(($ac_try" in
5482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5486 $as_echo "$ac_try_echo"; } >&5
5487 (eval "$ac_try") 2>&5
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5490 test $ac_status = 0; }; }; then
5491 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5493 if { { case "(($ac_try" in
5494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5495 *) ac_try_echo
=$ac_try;;
5497 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498 $as_echo "$ac_try_echo"; } >&5
5499 (eval "$ac_try") 2>&5
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; } &&
5503 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5508 $as_echo "$ac_try_echo"; } >&5
5509 (eval "$ac_try") 2>&5
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; };
5517 # cc exists but doesn't like -o.
5518 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5523 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5525 rm -f core conftest*
5528 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5530 $as_echo "yes" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5535 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5539 # FIXME: we rely on the cache variable name because
5540 # there is no other way.
5542 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5543 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5544 if test "$am_t" != yes; then
5545 # Losing compiler, so override with the script.
5546 # FIXME: It is wrong to rewrite CC.
5547 # But if we don't then we get into trouble of one sort or another.
5548 # A longer-term fix would be to have automake use am__CC in this case,
5549 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5550 CC="$am_aux_dir/compile $CC"
5555 # Initialize gnulib right after verifying that the C compiler works.
5556 if test -n "$ac_tool_prefix"; then
5557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_RANLIB+:} false; then :
5562 $as_echo_n "(cached) " >&6
5564 if test -n "$RANLIB"; then
5565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 RANLIB=$ac_cv_prog_RANLIB
5585 if test -n "$RANLIB"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5587 $as_echo "$RANLIB" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5595 if test -z "$ac_cv_prog_RANLIB"; then
5596 ac_ct_RANLIB=$RANLIB
5597 # Extract the first word of "ranlib", so it can be a program name with args.
5598 set dummy ranlib; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 if test -n "$ac_ct_RANLIB"; then
5605 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_RANLIB="ranlib"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5625 if test -n "$ac_ct_RANLIB"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5627 $as_echo "$ac_ct_RANLIB" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5633 if test "x$ac_ct_RANLIB" = x; then
5636 case $cross_compiling:$ac_tool_warned in
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640 ac_tool_warned=yes ;;
5642 RANLIB=$ac_ct_RANLIB
5645 RANLIB="$ac_cv_prog_RANLIB"
5650 ac_cpp='$CPP $CPPFLAGS'
5651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5655 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5656 # On Suns, sometimes $CPP names a directory.
5657 if test -n "$CPP" && test -d "$CPP"; then
5660 if test -z "$CPP"; then
5661 if ${ac_cv_prog_CPP+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 # Double quotes because CPP needs to be expanded
5665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5668 for ac_c_preproc_warn_flag in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5679 # include <limits.h>
5681 # include <assert.h>
5685 if ac_fn_c_try_cpp "$LINENO"; then :
5688 # Broken: fails on valid input.
5691 rm -f conftest.err conftest.i conftest.$ac_ext
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <ac_nonexistent.h>
5699 if ac_fn_c_try_cpp "$LINENO"; then :
5700 # Broken: success on invalid input.
5703 # Passes both tests.
5707 rm -f conftest.err conftest.i conftest.$ac_ext
5710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5711 rm -f conftest.i conftest.err conftest.
$ac_ext
5712 if $ac_preproc_ok; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5725 $as_echo "$CPP" >&6; }
5727 for ac_c_preproc_warn_flag
in '' yes
5729 # Use a header file that comes with gcc, so configuring glibc
5730 # with a fresh cross-compiler works.
5731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732 # <limits.h> exists even on freestanding compilers.
5733 # On the NeXT, cc -E runs the code through the compiler's parser,
5734 # not just through cpp. "Syntax error" is here to catch this case.
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 # include <limits.h>
5740 # include <assert.h>
5744 if ac_fn_c_try_cpp
"$LINENO"; then :
5747 # Broken: fails on valid input.
5750 rm -f conftest.err conftest.i conftest.
$ac_ext
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <ac_nonexistent.h>
5758 if ac_fn_c_try_cpp
"$LINENO"; then :
5759 # Broken: success on invalid input.
5762 # Passes both tests.
5766 rm -f conftest.err conftest.i conftest.
$ac_ext
5769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770 rm -f conftest.i conftest.err conftest.
$ac_ext
5771 if $ac_preproc_ok; then :
5774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5776 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5777 See \`config.log' for more details" "$LINENO" 5; }
5781 ac_cpp
='$CPP $CPPFLAGS'
5782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5788 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5789 if ${ac_cv_path_GREP+:} false
; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -z "$GREP"; then
5793 ac_path_GREP_found
=false
5794 # Loop through the user's path and test for each of PROGNAME-LIST
5795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5796 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5799 test -z "$as_dir" && as_dir
=.
5800 for ac_prog
in grep ggrep
; do
5801 for ac_exec_ext
in '' $ac_executable_extensions; do
5802 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5803 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5804 # Check for GNU ac_path_GREP and select it if it is found.
5805 # Check for GNU $ac_path_GREP
5806 case `"$ac_path_GREP" --version 2>&1` in
5808 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5811 $as_echo_n 0123456789 >"conftest.in"
5814 cat "conftest.in" "conftest.in" >"conftest.tmp"
5815 mv "conftest.tmp" "conftest.in"
5816 cp "conftest.in" "conftest.nl"
5817 $as_echo 'GREP' >> "conftest.nl"
5818 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5819 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5820 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5821 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5822 # Best one so far, save it but keep looking for a better one
5823 ac_cv_path_GREP
="$ac_path_GREP"
5824 ac_path_GREP_max
=$ac_count
5826 # 10*(2^10) chars as input seems more than enough
5827 test $ac_count -gt 10 && break
5829 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5832 $ac_path_GREP_found && break 3
5837 if test -z "$ac_cv_path_GREP"; then
5838 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5841 ac_cv_path_GREP
=$GREP
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5846 $as_echo "$ac_cv_path_GREP" >&6; }
5847 GREP
="$ac_cv_path_GREP"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5851 $as_echo_n "checking for egrep... " >&6; }
5852 if ${ac_cv_path_EGREP+:} false
; then :
5853 $as_echo_n "(cached) " >&6
5855 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5856 then ac_cv_path_EGREP
="$GREP -E"
5858 if test -z "$EGREP"; then
5859 ac_path_EGREP_found
=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5862 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5865 test -z "$as_dir" && as_dir
=.
5866 for ac_prog
in egrep; do
5867 for ac_exec_ext
in '' $ac_executable_extensions; do
5868 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5870 # Check for GNU ac_path_EGREP and select it if it is found.
5871 # Check for GNU $ac_path_EGREP
5872 case `"$ac_path_EGREP" --version 2>&1` in
5874 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5877 $as_echo_n 0123456789 >"conftest.in"
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'EGREP' >> "conftest.nl"
5884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5885 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5886 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_EGREP
="$ac_path_EGREP"
5890 ac_path_EGREP_max
=$ac_count
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5895 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5898 $ac_path_EGREP_found && break 3
5903 if test -z "$ac_cv_path_EGREP"; then
5904 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5907 ac_cv_path_EGREP
=$EGREP
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5913 $as_echo "$ac_cv_path_EGREP" >&6; }
5914 EGREP
="$ac_cv_path_EGREP"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5918 $as_echo_n "checking for ANSI C header files... " >&6; }
5919 if ${ac_cv_header_stdc+:} false
; then :
5920 $as_echo_n "(cached) " >&6
5922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5937 if ac_fn_c_try_compile
"$LINENO"; then :
5938 ac_cv_header_stdc
=yes
5940 ac_cv_header_stdc
=no
5942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5944 if test $ac_cv_header_stdc = yes; then
5945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 $EGREP "memchr" >/dev
/null
2>&1; then :
5955 ac_cv_header_stdc
=no
5961 if test $ac_cv_header_stdc = yes; then
5962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 $EGREP "free" >/dev
/null
2>&1; then :
5972 ac_cv_header_stdc
=no
5978 if test $ac_cv_header_stdc = yes; then
5979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5980 if test "$cross_compiling" = yes; then :
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5987 #if ((' ' & 0x0FF) == 0x020)
5988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991 # define ISLOWER(c) \
5992 (('a' <= (c) && (c) <= 'i') \
5993 || ('j' <= (c) && (c) <= 'r') \
5994 || ('s' <= (c) && (c) <= 'z'))
5995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6003 for (i = 0; i < 256; i++)
6004 if (XOR (islower (i), ISLOWER (i))
6005 || toupper (i) != TOUPPER (i))
6010 if ac_fn_c_try_run
"$LINENO"; then :
6013 ac_cv_header_stdc
=no
6015 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6016 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6022 $as_echo "$ac_cv_header_stdc" >&6; }
6023 if test $ac_cv_header_stdc = yes; then
6025 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6030 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6031 inttypes.h stdint.h unistd.h
6033 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6036 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6050 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6057 if test "$MINIX" = yes; then
6059 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6062 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6065 $as_echo "#define _MINIX 1" >>confdefs.h
6072 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6079 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6080 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6081 $as_echo_n "(cached) " >&6
6083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6086 # define __EXTENSIONS__ 1
6087 $ac_includes_default
6096 if ac_fn_c_try_compile
"$LINENO"; then :
6097 ac_cv_safe_to_define___extensions__
=yes
6099 ac_cv_safe_to_define___extensions__
=no
6101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6104 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6105 test $ac_cv_safe_to_define___extensions__ = yes &&
6106 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6108 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6110 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6112 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6114 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6125 # Code from module arg-nonnull:
6126 # Code from module c++defs:
6127 # Code from module crypto/md5:
6128 # Code from module dosname:
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 lstat:
6141 # Code from module mktime:
6142 # Code from module multiarch:
6143 # Code from module readlink:
6144 # Code from module stat:
6145 # Code from module stdbool:
6146 # Code from module stddef:
6147 # Code from module stdint:
6148 # Code from module stdlib:
6149 # Code from module strftime:
6150 # Code from module symlink:
6151 # Code from module sys_stat:
6152 # Code from module time:
6153 # Code from module time_r:
6154 # Code from module unistd:
6155 # Code from module warn-on-use:
6158 # On Suns, sometimes $CPP names a directory.
6159 if test -n "$CPP" && test -d "$CPP"; then
6163 ## If not using gcc, and on Solaris, and no CPP specified, see if
6164 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6165 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6166 test x
"$CPP" = x
; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6168 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6169 if ${emacs_cv_sunpro_c+:} false
; then :
6170 $as_echo_n "(cached) " >&6
6172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6186 if ac_fn_c_try_link
"$LINENO"; then :
6187 emacs_cv_sunpro_c
=yes
6189 emacs_cv_sunpro_c
=no
6191 rm -f core conftest.err conftest.
$ac_objext \
6192 conftest
$ac_exeext conftest.
$ac_ext
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6196 $as_echo "$emacs_cv_sunpro_c" >&6; }
6198 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6199 NON_GNU_CPP
="$CC -E -Xs"
6203 #### Some systems specify a CPP to use unless we are using GCC.
6204 #### Now that we know whether we are using GCC, we can decide whether
6205 #### to use that one.
6206 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6211 #### Some systems specify a CC to use unless we are using GCC.
6212 #### Now that we know whether we are using GCC, we can decide whether
6213 #### to use that one.
6214 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6215 test x
$cc_specified != xyes
6220 if test x
$GCC = xyes
; then
6221 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6223 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6226 ### Use -Wdeclaration-after-statement if the compiler supports it
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6228 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6229 SAVE_CFLAGS
="$CFLAGS"
6230 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6242 if ac_fn_c_try_compile
"$LINENO"; then :
6247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6248 if test $has_option = yes; then
6249 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6252 $as_echo "$has_option" >&6; }
6253 CFLAGS
="$SAVE_CFLAGS"
6257 ### Use -Wold-style-definition if the compiler supports it
6258 # This can be removed when conversion to standard C is finished.
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6260 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6261 SAVE_CFLAGS
="$CFLAGS"
6262 CFLAGS
="$CFLAGS -Wold-style-definition"
6263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6274 if ac_fn_c_try_compile
"$LINENO"; then :
6279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 if test $has_option = yes; then
6281 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6284 $as_echo "$has_option" >&6; }
6285 CFLAGS
="$SAVE_CFLAGS"
6289 ### Use -Wimplicit-function-declaration if the compiler supports it
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6291 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6292 SAVE_CFLAGS
="$CFLAGS"
6293 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6305 if ac_fn_c_try_compile
"$LINENO"; then :
6310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 if test $has_option = yes; then
6312 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6315 $as_echo "$has_option" >&6; }
6316 CFLAGS
="$SAVE_CFLAGS"
6323 #### Some other nice autoconf tests.
6326 ac_cpp
='$CPP $CPPFLAGS'
6327 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6332 # On Suns, sometimes $CPP names a directory.
6333 if test -n "$CPP" && test -d "$CPP"; then
6336 if test -z "$CPP"; then
6337 if ${ac_cv_prog_CPP+:} false
; then :
6338 $as_echo_n "(cached) " >&6
6340 # Double quotes because CPP needs to be expanded
6341 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6344 for ac_c_preproc_warn_flag
in '' yes
6346 # Use a header file that comes with gcc, so configuring glibc
6347 # with a fresh cross-compiler works.
6348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6349 # <limits.h> exists even on freestanding compilers.
6350 # On the NeXT, cc -E runs the code through the compiler's parser,
6351 # not just through cpp. "Syntax error" is here to catch this case.
6352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6355 # include <limits.h>
6357 # include <assert.h>
6361 if ac_fn_c_try_cpp
"$LINENO"; then :
6364 # Broken: fails on valid input.
6367 rm -f conftest.err conftest.i conftest.
$ac_ext
6369 # OK, works on sane cases. Now check whether nonexistent headers
6370 # can be detected and how.
6371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 #include <ac_nonexistent.h>
6375 if ac_fn_c_try_cpp
"$LINENO"; then :
6376 # Broken: success on invalid input.
6379 # Passes both tests.
6383 rm -f conftest.err conftest.i conftest.
$ac_ext
6386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6387 rm -f conftest.i conftest.err conftest.
$ac_ext
6388 if $ac_preproc_ok; then :
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6401 $as_echo "$CPP" >&6; }
6403 for ac_c_preproc_warn_flag
in '' yes
6405 # Use a header file that comes with gcc, so configuring glibc
6406 # with a fresh cross-compiler works.
6407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6408 # <limits.h> exists even on freestanding compilers.
6409 # On the NeXT, cc -E runs the code through the compiler's parser,
6410 # not just through cpp. "Syntax error" is here to catch this case.
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6414 # include <limits.h>
6416 # include <assert.h>
6420 if ac_fn_c_try_cpp
"$LINENO"; then :
6423 # Broken: fails on valid input.
6426 rm -f conftest.err conftest.i conftest.
$ac_ext
6428 # OK, works on sane cases. Now check whether nonexistent headers
6429 # can be detected and how.
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <ac_nonexistent.h>
6434 if ac_fn_c_try_cpp
"$LINENO"; then :
6435 # Broken: success on invalid input.
6438 # Passes both tests.
6442 rm -f conftest.err conftest.i conftest.
$ac_ext
6445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6446 rm -f conftest.i conftest.err conftest.
$ac_ext
6447 if $ac_preproc_ok; then :
6450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6452 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6453 See \`config.log' for more details" "$LINENO" 5; }
6457 ac_cpp
='$CPP $CPPFLAGS'
6458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6463 if test "x$RANLIB" = x
; then
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6466 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_RANLIB+:} false
; then :
6470 $as_echo_n "(cached) " >&6
6472 if test -n "$RANLIB"; then
6473 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir
=.
6480 for ac_exec_ext
in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 RANLIB
=$ac_cv_prog_RANLIB
6493 if test -n "$RANLIB"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6495 $as_echo "$RANLIB" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6503 if test -z "$ac_cv_prog_RANLIB"; then
6504 ac_ct_RANLIB
=$RANLIB
6505 # Extract the first word of "ranlib", so it can be a program name with args.
6506 set dummy ranlib
; ac_word
=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$ac_ct_RANLIB"; then
6513 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir
=.
6520 for ac_exec_ext
in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6533 if test -n "$ac_ct_RANLIB"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6535 $as_echo "$ac_ct_RANLIB" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6541 if test "x$ac_ct_RANLIB" = x
; then
6544 case $cross_compiling:$ac_tool_warned in
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned
=yes ;;
6550 RANLIB
=$ac_ct_RANLIB
6553 RANLIB
="$ac_cv_prog_RANLIB"
6558 ## Although we're running on an amd64 kernel, we're actually compiling for
6559 ## the x86 architecture. The user should probably have provided an
6560 ## explicit --build to `configure', but if everything else than the kernel
6561 ## is running in i386 mode, we can help them out.
6562 if test "$machine" = "amdx86-64"; then
6563 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6564 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6568 if test "$ac_cv_have_decl_i386" = "yes"; then
6569 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6571 machfile
="m/${machine}.h"
6575 # Extract the first word of "install-info", so it can be a program name with args.
6576 set dummy install-info
; ac_word
=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6580 $as_echo_n "(cached) " >&6
6582 case $INSTALL_INFO in
6584 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir
=.
6592 for ac_exec_ext
in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6606 if test -n "$INSTALL_INFO"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6608 $as_echo "$INSTALL_INFO" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6615 # Extract the first word of "install-info", so it can be a program name with args.
6616 set dummy install-info
; ac_word
=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6620 $as_echo_n "(cached) " >&6
6622 case $INSTALL_INFO in
6624 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6628 for as_dir
in /usr
/sbin
6631 test -z "$as_dir" && as_dir
=.
6632 for ac_exec_ext
in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6646 if test -n "$INSTALL_INFO"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6648 $as_echo "$INSTALL_INFO" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6655 # Extract the first word of "install-info", so it can be a program name with args.
6656 set dummy install-info
; ac_word
=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6660 $as_echo_n "(cached) " >&6
6662 case $INSTALL_INFO in
6664 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir
=.
6672 for ac_exec_ext
in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6686 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6687 if test -n "$INSTALL_INFO"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6689 $as_echo "$INSTALL_INFO" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6696 # Extract the first word of "gzip", so it can be a program name with args.
6697 set dummy
gzip; ac_word
=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6701 $as_echo_n "(cached) " >&6
6705 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir
=.
6713 for ac_exec_ext
in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6727 if test -n "$GZIP_PROG"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6729 $as_echo "$GZIP_PROG" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6738 ## Need makeinfo >= 4.6 (?) to build the manuals.
6739 # Extract the first word of "makeinfo", so it can be a program name with args.
6740 set dummy makeinfo
; ac_word
=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_path_MAKEINFO+:} false
; then :
6744 $as_echo_n "(cached) " >&6
6748 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir
=.
6756 for ac_exec_ext
in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6770 MAKEINFO
=$ac_cv_path_MAKEINFO
6771 if test -n "$MAKEINFO"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6773 $as_echo "$MAKEINFO" >&6; }
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6780 if test "$MAKEINFO" != "no" && \
6781 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
6785 ## Makeinfo is unusual. For a released Emacs, the manuals are
6786 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6787 ## therefore in the category of "special tools" not normally required, which
6788 ## configure does not have to check for (eg autoconf itself).
6789 ## In a Bazaar checkout on the other hand, the manuals are not included.
6790 ## So makeinfo is a requirement to build from Bazaar, and configure
6791 ## should test for it as it does for any other build requirement.
6792 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6793 ## with pre-built manuals, from a Bazaar checkout.
6796 if test "$MAKEINFO" = "no"; then
6798 if test "x${with_makeinfo}" = "xno"; then
6800 elif test ! -e $srcdir/info
/emacs
; then
6801 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6802 source tree does not seem to have pre-built manuals in the \`info' directory.
6803 Either install a suitable version of makeinfo, or re-run configure
6804 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6810 if test x
$GCC = xyes
; then
6811 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6812 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6814 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6815 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6819 late_LDFLAGS
=$LDFLAGS
6820 if test x
$GCC = xyes
; then
6821 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6823 LDFLAGS
="$LDFLAGS -znocombreloc"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6827 $as_echo_n "checking for -znocombreloc... " >&6; }
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6839 if ac_fn_c_try_link
"$LINENO"; then :
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6843 LDFLAGS
=$late_LDFLAGS
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6847 rm -f core conftest.err conftest.
$ac_objext \
6848 conftest
$ac_exeext conftest.
$ac_ext
6851 # The value of CPP is a quoted variable reference, so we need to do this
6852 # to get its actual value...
6853 CPP
=`eval "echo $CPP"`
6856 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6858 your-opsys-here
) CANNOT_DUMP
=yes ;;
6861 test "$CANNOT_DUMP" = "yes" && \
6863 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6869 UNEXEC_OBJ
=unexelf.o
6871 # MSDOS uses unexcoff.o
6872 # MSWindows uses unexw32.o
6874 UNEXEC_OBJ
=unexaix.o
6880 UNEXEC_OBJ
=unexmacosx.o
6883 UNEXEC_OBJ
=unexhp9k800.o
6886 # Use the Solaris dldump() function, called from unexsol.c, to dump
6887 # emacs, instead of the generic ELF dump code found in unexelf.c.
6888 # The resulting binary has a complete symbol table, and is better
6889 # for debugging and other observability tools (debuggers, pstack, etc).
6891 # If you encounter a problem using dldump(), please consider sending
6892 # a message to the OpenSolaris tools-linking mailing list:
6893 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6895 # It is likely that dldump() works with older Solaris too, but this has
6896 # not been tested, so for now this change is for Solaris 10 or newer.
6897 UNEXEC_OBJ
=unexsol.o
6904 ## Let `ld' find image libs and similar things in /usr/local/lib.
6905 ## The system compiler, GCC, has apparently been modified to not
6906 ## look there, contrary to what a stock GCC would do.
6907 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6911 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6912 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6916 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6920 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6921 ## otherwise Emacs dumps core on elf systems.
6922 LD_SWITCH_SYSTEM
="-Z"
6927 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6929 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6930 ## which has not been defined yet. When this was handled with cpp,
6931 ## it was expanded to null when configure sourced the s/*.h file.
6932 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6933 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6934 ## (or somesuch), but because it is supposed to go at the _front_
6935 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6936 ## Compare with the gnu-linux case below, which added to the end
6937 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6938 ## LD_SWITCH_SYSTEM_TEMACS.
6941 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6942 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6947 if test "$machine" = "alpha"; then
6948 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6949 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6953 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6954 ## With ELF, make sure that all common symbols get allocated to in the
6955 ## data section. Otherwise, the dump of temacs may miss variables in
6956 ## the shared library that have been initialized. For example, with
6957 ## GNU libc, __malloc_initialized would normally be resolved to the
6958 ## shared library's .bss section, which is fatal.
6959 if test "x$GCC" = "xyes"; then
6960 C_SWITCH_MACHINE
="-fno-common"
6962 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6965 UNEXEC_OBJ
=unexalpha.o
6973 ## Some programs in src produce warnings saying certain subprograms
6974 ## are too complex and need a MAXMEM value greater than 2000 for
6975 ## additional optimization. --nils@exp-math.uni-essen.de
6976 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6977 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6978 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6979 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6985 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6986 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6988 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6990 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6992 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6994 ## Motif needs -lgen.
6995 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7000 ### Make sure subsequent tests use flags consistent with the build flags.
7002 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7003 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7005 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7008 # Check whether --enable-largefile was given.
7009 if test "${enable_largefile+set}" = set; then :
7010 enableval
=$enable_largefile;
7013 if test "$enable_largefile" != no
; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7016 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7017 if ${ac_cv_sys_largefile_CC+:} false
; then :
7018 $as_echo_n "(cached) " >&6
7020 ac_cv_sys_largefile_CC
=no
7021 if test "$GCC" != yes; then
7024 # IRIX 6.2 and later do not support large files by default,
7025 # so use the C compiler's -n32 option if that helps.
7026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 /* Check that off_t can represent 2**63 - 1 correctly.
7030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7031 since some C++ compilers masquerading as C compilers
7032 incorrectly reject 9223372036854775807. */
7033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7035 && LARGE_OFF_T % 2147483647 == 1)
7045 if ac_fn_c_try_compile
"$LINENO"; then :
7048 rm -f core conftest.err conftest.
$ac_objext
7050 if ac_fn_c_try_compile
"$LINENO"; then :
7051 ac_cv_sys_largefile_CC
=' -n32'; break
7053 rm -f core conftest.err conftest.
$ac_objext
7057 rm -f conftest.
$ac_ext
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7061 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7062 if test "$ac_cv_sys_largefile_CC" != no
; then
7063 CC
=$CC$ac_cv_sys_largefile_CC
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7067 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7068 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7069 $as_echo_n "(cached) " >&6
7072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <sys/types.h>
7075 /* Check that off_t can represent 2**63 - 1 correctly.
7076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7077 since some C++ compilers masquerading as C compilers
7078 incorrectly reject 9223372036854775807. */
7079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7081 && LARGE_OFF_T % 2147483647 == 1)
7091 if ac_fn_c_try_compile
"$LINENO"; then :
7092 ac_cv_sys_file_offset_bits
=no
; break
7094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #define _FILE_OFFSET_BITS 64
7098 #include <sys/types.h>
7099 /* Check that off_t can represent 2**63 - 1 correctly.
7100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7101 since some C++ compilers masquerading as C compilers
7102 incorrectly reject 9223372036854775807. */
7103 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7105 && LARGE_OFF_T % 2147483647 == 1)
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7116 ac_cv_sys_file_offset_bits
=64; break
7118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 ac_cv_sys_file_offset_bits
=unknown
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7124 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7125 case $ac_cv_sys_file_offset_bits in #(
7128 cat >>confdefs.h
<<_ACEOF
7129 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7134 if test $ac_cv_sys_file_offset_bits = unknown
; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7136 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7137 if ${ac_cv_sys_large_files+:} false
; then :
7138 $as_echo_n "(cached) " >&6
7141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7160 if ac_fn_c_try_compile
"$LINENO"; then :
7161 ac_cv_sys_large_files
=no
; break
7163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #define _LARGE_FILES 1
7167 #include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7184 if ac_fn_c_try_compile
"$LINENO"; then :
7185 ac_cv_sys_large_files
=1; break
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7188 ac_cv_sys_large_files
=unknown
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7193 $as_echo "$ac_cv_sys_large_files" >&6; }
7194 case $ac_cv_sys_large_files in #(
7197 cat >>confdefs.h
<<_ACEOF
7198 #define _LARGE_FILES $ac_cv_sys_large_files
7208 ## If user specified a crt-dir, use that unconditionally.
7209 if test "X$CRT_DIR" = "X"; then
7211 case "$canonical" in
7212 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7213 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7214 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7215 ## For anything else (eg /usr/lib32), it is up the user to specify
7216 ## the location (bug#5655).
7217 ## Test for crtn.o, not just the directory, because sometimes the
7218 ## directory exists but does not have the relevant files (bug#1287).
7219 ## FIXME better to test for binary compatibility somehow.
7220 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7223 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7227 hpux10-20
) CRT_DIR
=/lib
;;
7230 ## Default is /usr/lib.
7231 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7235 ## Some platforms don't use any of these files, so it is not
7236 ## appropriate to put this test outside the if block.
7237 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7238 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7251 START_FILES
='pre-crt0.o'
7254 ## Adding -lm confuses the dynamic linker, so omit it.
7256 START_FILES
='pre-crt0.o'
7259 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7260 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7262 gnu-linux | gnu-kfreebsd
)
7263 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7264 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7266 hpux10-20 | hpux11
)
7268 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7271 if test -f $CRT_DIR/crti.o
; then
7272 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7273 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7275 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7276 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7287 if test "${with_sound}" != "no"; then
7288 # Sound support for GNU/Linux and the free BSDs.
7289 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7291 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7293 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7294 cat >>confdefs.h
<<_ACEOF
7295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 have_sound_header
=yes
7302 # Emulation library used on NetBSD.
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7304 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7305 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7306 $as_echo_n "(cached) " >&6
7308 ac_check_lib_save_LIBS
=$LIBS
7309 LIBS
="-lossaudio $LIBS"
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7313 /* Override any GCC internal prototype to avoid an error.
7314 Use char because int might match the return type of a GCC
7315 builtin and then its argument prototype would still apply. */
7323 return _oss_ioctl ();
7328 if ac_fn_c_try_link
"$LINENO"; then :
7329 ac_cv_lib_ossaudio__oss_ioctl
=yes
7331 ac_cv_lib_ossaudio__oss_ioctl
=no
7333 rm -f core conftest.err conftest.
$ac_objext \
7334 conftest
$ac_exeext conftest.
$ac_ext
7335 LIBS
=$ac_check_lib_save_LIBS
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7338 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7339 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7348 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7352 # Extract the first word of "pkg-config", so it can be a program name with args.
7353 set dummy pkg-config
; ac_word
=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7357 $as_echo_n "(cached) " >&6
7361 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir
=.
7369 for ac_exec_ext
in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7383 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7384 if test -n "$PKG_CONFIG"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7386 $as_echo "$PKG_CONFIG" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7394 if test "$PKG_CONFIG" = "no" ; then
7397 PKG_CONFIG_MIN_VERSION
=0.9.0
7398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7400 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7402 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404 $as_echo "yes" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7408 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7409 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7411 $as_echo "$ALSA_CFLAGS" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7414 $as_echo_n "checking ALSA_LIBS... " >&6; }
7415 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7417 $as_echo "$ALSA_LIBS" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 ## If we have a custom action on failure, don't print errors, but
7424 ## do set a variable so people can do so.
7425 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7437 if test $succeeded = yes; then
7443 if test $HAVE_ALSA = yes; then
7444 SAVE_CFLAGS
="$CFLAGS"
7445 SAVE_LDFLAGS
="$LDFLAGS"
7446 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7447 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #include <asoundlib.h>
7454 snd_lib_error_set_handler (0);
7459 if ac_fn_c_try_compile
"$LINENO"; then :
7460 emacs_alsa_normal
=yes
7462 emacs_alsa_normal
=no
7464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7465 if test "$emacs_alsa_normal" != yes; then
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <alsa/asoundlib.h>
7472 snd_lib_error_set_handler (0);
7477 if ac_fn_c_try_compile
"$LINENO"; then :
7478 emacs_alsa_subdir
=yes
7480 emacs_alsa_subdir
=no
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 if test "$emacs_alsa_subdir" != yes; then
7484 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7486 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7489 CFLAGS
="$SAVE_CFLAGS"
7490 LDFLAGS
="$SAVE_LDFLAGS"
7491 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7492 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7494 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7498 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7500 gnu-linux|freebsd|netbsd
)
7502 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7511 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7512 linux
/version.h sys
/systeminfo.h limits.h \
7513 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7514 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7515 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7517 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7518 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7519 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7520 cat >>confdefs.h
<<_ACEOF
7521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7530 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <sys/personality.h>
7537 personality (PER_LINUX32)
7542 if ac_fn_c_try_compile
"$LINENO"; then :
7543 emacs_cv_personality_linux32
=yes
7545 emacs_cv_personality_linux32
=no
7547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7549 $as_echo "$emacs_cv_personality_linux32" >&6; }
7551 if test $emacs_cv_personality_linux32 = yes; then
7553 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7557 for ac_header
in term.h
7559 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7560 if test "x$ac_cv_header_term_h" = xyes
; then :
7561 cat >>confdefs.h
<<_ACEOF
7562 #define HAVE_TERM_H 1
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7570 $as_echo_n "checking for ANSI C header files... " >&6; }
7571 if ${ac_cv_header_stdc+:} false
; then :
7572 $as_echo_n "(cached) " >&6
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7589 if ac_fn_c_try_compile
"$LINENO"; then :
7590 ac_cv_header_stdc
=yes
7592 ac_cv_header_stdc
=no
7594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7596 if test $ac_cv_header_stdc = yes; then
7597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604 $EGREP "memchr" >/dev
/null
2>&1; then :
7607 ac_cv_header_stdc
=no
7613 if test $ac_cv_header_stdc = yes; then
7614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "free" >/dev
/null
2>&1; then :
7624 ac_cv_header_stdc
=no
7630 if test $ac_cv_header_stdc = yes; then
7631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7632 if test "$cross_compiling" = yes; then :
7635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7639 #if ((' ' & 0x0FF) == 0x020)
7640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7643 # define ISLOWER(c) \
7644 (('a' <= (c) && (c) <= 'i') \
7645 || ('j' <= (c) && (c) <= 'r') \
7646 || ('s' <= (c) && (c) <= 'z'))
7647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7655 for (i = 0; i < 256; i++)
7656 if (XOR (islower (i), ISLOWER (i))
7657 || toupper (i) != TOUPPER (i))
7662 if ac_fn_c_try_run
"$LINENO"; then :
7665 ac_cv_header_stdc
=no
7667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7674 $as_echo "$ac_cv_header_stdc" >&6; }
7675 if test $ac_cv_header_stdc = yes; then
7677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7682 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7683 if ${ac_cv_header_time+:} false
; then :
7684 $as_echo_n "(cached) " >&6
7686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <sys/types.h>
7689 #include <sys/time.h>
7695 if ((struct tm *) 0)
7701 if ac_fn_c_try_compile
"$LINENO"; then :
7702 ac_cv_header_time
=yes
7704 ac_cv_header_time
=no
7706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7709 $as_echo "$ac_cv_header_time" >&6; }
7710 if test $ac_cv_header_time = yes; then
7712 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7716 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7717 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7723 cat >>confdefs.h
<<_ACEOF
7724 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7727 if test $ac_cv_have_decl_sys_siglist != yes; then
7728 # For Tru64, at least:
7729 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7730 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7736 cat >>confdefs.h
<<_ACEOF
7737 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7740 if test $ac_cv_have_decl___sys_siglist = yes; then
7742 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7747 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7748 if ${ac_cv_header_sys_wait_h+:} false
; then :
7749 $as_echo_n "(cached) " >&6
7751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7754 #include <sys/wait.h>
7756 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7759 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7767 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7772 if ac_fn_c_try_compile
"$LINENO"; then :
7773 ac_cv_header_sys_wait_h
=yes
7775 ac_cv_header_sys_wait_h
=no
7777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7780 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7781 if test $ac_cv_header_sys_wait_h = yes; then
7783 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7789 $as_echo_n "checking for struct utimbuf... " >&6; }
7790 if ${emacs_cv_struct_utimbuf+:} false
; then :
7791 $as_echo_n "(cached) " >&6
7793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 #ifdef TIME_WITH_SYS_TIME
7796 #include <sys/time.h>
7799 #ifdef HAVE_SYS_TIME_H
7800 #include <sys/time.h>
7811 static struct utimbuf x; x.actime = x.modtime;
7816 if ac_fn_c_try_compile
"$LINENO"; then :
7817 emacs_cv_struct_utimbuf
=yes
7819 emacs_cv_struct_utimbuf
=no
7821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7824 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7825 if test $emacs_cv_struct_utimbuf = yes; then
7827 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7832 $as_echo_n "checking return type of signal handlers... " >&6; }
7833 if ${ac_cv_type_signal+:} false
; then :
7834 $as_echo_n "(cached) " >&6
7836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 #include <sys/types.h>
7844 return *(signal (0, 0)) (0) == 1;
7849 if ac_fn_c_try_compile
"$LINENO"; then :
7850 ac_cv_type_signal
=int
7852 ac_cv_type_signal
=void
7854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7857 $as_echo "$ac_cv_type_signal" >&6; }
7859 cat >>confdefs.h
<<_ACEOF
7860 #define RETSIGTYPE $ac_cv_type_signal
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7866 $as_echo_n "checking for speed_t... " >&6; }
7867 if ${emacs_cv_speed_t+:} false
; then :
7868 $as_echo_n "(cached) " >&6
7870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 #include <termios.h>
7881 if ac_fn_c_try_compile
"$LINENO"; then :
7882 emacs_cv_speed_t
=yes
7886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7889 $as_echo "$emacs_cv_speed_t" >&6; }
7890 if test $emacs_cv_speed_t = yes; then
7892 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7897 $as_echo_n "checking for struct timeval... " >&6; }
7898 if ${emacs_cv_struct_timeval+:} false
; then :
7899 $as_echo_n "(cached) " >&6
7901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 #ifdef TIME_WITH_SYS_TIME
7904 #include <sys/time.h>
7907 #ifdef HAVE_SYS_TIME_H
7908 #include <sys/time.h>
7916 static struct timeval x; x.tv_sec = x.tv_usec;
7921 if ac_fn_c_try_compile
"$LINENO"; then :
7922 emacs_cv_struct_timeval
=yes
7924 emacs_cv_struct_timeval
=no
7926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7929 $as_echo "$emacs_cv_struct_timeval" >&6; }
7930 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7931 if test $emacs_cv_struct_timeval = yes; then
7933 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7938 $as_echo_n "checking for struct exception... " >&6; }
7939 if ${emacs_cv_struct_exception+:} false
; then :
7940 $as_echo_n "(cached) " >&6
7942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7948 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7953 if ac_fn_c_try_compile
"$LINENO"; then :
7954 emacs_cv_struct_exception
=yes
7956 emacs_cv_struct_exception
=no
7958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7961 $as_echo "$emacs_cv_struct_exception" >&6; }
7962 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7963 if test $emacs_cv_struct_exception != yes; then
7965 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7969 for ac_header
in sys
/socket.h
7971 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7972 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7973 cat >>confdefs.h
<<_ACEOF
7974 #define HAVE_SYS_SOCKET_H 1
7981 for ac_header
in net
/if.h
7983 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7984 #if HAVE_SYS_SOCKET_H
7985 #include <sys/socket.h>
7988 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7989 cat >>confdefs.h
<<_ACEOF
7990 #define HAVE_NET_IF_H 1
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7999 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8000 if ${ac_cv_struct_tm+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #include <sys/types.h>
8012 int *p = &tm.tm_sec;
8018 if ac_fn_c_try_compile
"$LINENO"; then :
8019 ac_cv_struct_tm
=time.h
8021 ac_cv_struct_tm
=sys
/time.h
8023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8026 $as_echo "$ac_cv_struct_tm" >&6; }
8027 if test $ac_cv_struct_tm = sys
/time.h
; then
8029 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8033 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8034 #include <$ac_cv_struct_tm>
8037 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8039 cat >>confdefs.h
<<_ACEOF
8040 #define HAVE_STRUCT_TM_TM_ZONE 1
8046 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8048 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8051 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8053 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8059 cat >>confdefs.h
<<_ACEOF
8060 #define HAVE_DECL_TZNAME $ac_have_decl
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8064 $as_echo_n "checking for tzname... " >&6; }
8065 if ${ac_cv_var_tzname+:} false
; then :
8066 $as_echo_n "(cached) " >&6
8068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8071 #if !HAVE_DECL_TZNAME
8072 extern char *tzname[];
8078 return tzname[0][0];
8083 if ac_fn_c_try_link
"$LINENO"; then :
8084 ac_cv_var_tzname
=yes
8088 rm -f core conftest.err conftest.
$ac_objext \
8089 conftest
$ac_exeext conftest.
$ac_ext
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8092 $as_echo "$ac_cv_var_tzname" >&6; }
8093 if test $ac_cv_var_tzname = yes; then
8095 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8100 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8102 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8104 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8108 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8109 #if HAVE_SYS_SOCKET_H
8110 #include <sys/socket.h>
8116 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8118 cat >>confdefs.h
<<_ACEOF
8119 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8124 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8125 #if HAVE_SYS_SOCKET_H
8126 #include <sys/socket.h>
8132 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8134 cat >>confdefs.h
<<_ACEOF
8135 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8140 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8141 #if HAVE_SYS_SOCKET_H
8142 #include <sys/socket.h>
8148 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8150 cat >>confdefs.h
<<_ACEOF
8151 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8156 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8157 #if HAVE_SYS_SOCKET_H
8158 #include <sys/socket.h>
8164 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8166 cat >>confdefs.h
<<_ACEOF
8167 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8172 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8180 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8182 cat >>confdefs.h
<<_ACEOF
8183 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8192 $as_echo_n "checking for function prototypes... " >&6; }
8193 if test "$ac_cv_prog_cc_c89" != no
; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195 $as_echo "yes" >&6; }
8197 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8200 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8208 $as_echo_n "checking for working volatile... " >&6; }
8209 if ${ac_cv_c_volatile+:} false
; then :
8210 $as_echo_n "(cached) " >&6
8212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8220 int * volatile y = (int *) 0;
8226 if ac_fn_c_try_compile
"$LINENO"; then :
8227 ac_cv_c_volatile
=yes
8231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8234 $as_echo "$ac_cv_c_volatile" >&6; }
8235 if test $ac_cv_c_volatile = no
; then
8237 $as_echo "#define volatile /**/" >>confdefs.h
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8242 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8243 if ${ac_cv_c_const+:} false
; then :
8244 $as_echo_n "(cached) " >&6
8246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8252 /* FIXME: Include the comments suggested by Paul. */
8254 /* Ultrix mips cc rejects this. */
8255 typedef int charset[2];
8257 /* SunOS 4.1.1 cc rejects this. */
8258 char const *const *pcpcc;
8260 /* NEC SVR4.0.2 mips cc rejects this. */
8261 struct point {int x, y;};
8262 static struct point const zero = {0,0};
8263 /* AIX XL C 1.02.0.0 rejects this.
8264 It does not let you subtract one const X* pointer from another in
8265 an arm of an if-expression whose if-part is not a constant
8267 const char *g = "string";
8268 pcpcc = &g + (g ? g-g : 0);
8269 /* HPUX 7.0 cc rejects these. */
8271 ppc = (char**) pcpcc;
8272 pcpcc = (char const *const *) ppc;
8273 { /* SCO 3.2v4 cc rejects this. */
8275 char const *s = 0 ? (char *) 0 : (char const *) 0;
8280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8282 const int *foo = &x[0];
8285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8286 typedef const int *iptr;
8290 { /* AIX XL C 1.02.0.0 rejects this saying
8291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8292 struct s { int j; const int *ap[3]; };
8293 struct s *b; b->j = 5;
8295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8299 return !cs[0] && !zero.x;
8306 if ac_fn_c_try_compile
"$LINENO"; then :
8311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8314 $as_echo "$ac_cv_c_const" >&6; }
8315 if test $ac_cv_c_const = no
; then
8317 $as_echo "#define const /**/" >>confdefs.h
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8322 $as_echo_n "checking for void * support... " >&6; }
8323 if ${emacs_cv_void_star+:} false
; then :
8324 $as_echo_n "(cached) " >&6
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8337 if ac_fn_c_try_compile
"$LINENO"; then :
8338 emacs_cv_void_star
=yes
8340 emacs_cv_void_star
=no
8342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8345 $as_echo "$emacs_cv_void_star" >&6; }
8346 if test $emacs_cv_void_star = yes; then
8347 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8350 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8355 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8356 if ${ac_cv_c_bigendian+:} false
; then :
8357 $as_echo_n "(cached) " >&6
8359 ac_cv_c_bigendian
=unknown
8360 # See if we're dealing with a universal compiler.
8361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #ifndef __APPLE_CC__
8364 not a universal capable compiler
8369 if ac_fn_c_try_compile
"$LINENO"; then :
8371 # Check for potential -arch flags. It is not universal unless
8372 # there are at least two -arch flags with different values.
8375 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8376 if test -n "$ac_prev"; then
8378 i?
86 | x86_64 | ppc | ppc64
)
8379 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8382 ac_cv_c_bigendian
=universal
8388 elif test "x$ac_word" = "x-arch"; then
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8394 if test $ac_cv_c_bigendian = unknown
; then
8395 # See if sys/param.h defines the BYTE_ORDER macro.
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8404 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8405 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8414 if ac_fn_c_try_compile
"$LINENO"; then :
8415 # It does; now see whether it defined to BIG_ENDIAN or not.
8416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <sys/types.h>
8419 #include <sys/param.h>
8424 #if BYTE_ORDER != BIG_ENDIAN
8432 if ac_fn_c_try_compile
"$LINENO"; then :
8433 ac_cv_c_bigendian
=yes
8435 ac_cv_c_bigendian
=no
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 if test $ac_cv_c_bigendian = unknown
; then
8442 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8450 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8458 if ac_fn_c_try_compile
"$LINENO"; then :
8459 # It does; now see whether it defined to _BIG_ENDIAN or not.
8460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8475 if ac_fn_c_try_compile
"$LINENO"; then :
8476 ac_cv_c_bigendian
=yes
8478 ac_cv_c_bigendian
=no
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 if test $ac_cv_c_bigendian = unknown
; then
8485 # Compile a test program.
8486 if test "$cross_compiling" = yes; then :
8487 # Try to guess by grepping values from an object file.
8488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 short int ascii_mm[] =
8491 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8492 short int ascii_ii[] =
8493 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8494 int use_ascii (int i) {
8495 return ascii_mm[i] + ascii_ii[i];
8497 short int ebcdic_ii[] =
8498 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8499 short int ebcdic_mm[] =
8500 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8501 int use_ebcdic (int i) {
8502 return ebcdic_mm[i] + ebcdic_ii[i];
8509 return use_ascii (foo) == use_ebcdic (foo);
8514 if ac_fn_c_try_compile
"$LINENO"; then :
8515 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8516 ac_cv_c_bigendian
=yes
8518 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8519 if test "$ac_cv_c_bigendian" = unknown
; then
8520 ac_cv_c_bigendian
=no
8522 # finding both strings is unlikely to happen, but who knows?
8523 ac_cv_c_bigendian
=unknown
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 $ac_includes_default
8536 /* Are we little or big endian? From Harbison&Steele. */
8540 char c[sizeof (long int)];
8543 return u.c[sizeof (long int) - 1] == 1;
8549 if ac_fn_c_try_run
"$LINENO"; then :
8550 ac_cv_c_bigendian
=no
8552 ac_cv_c_bigendian
=yes
8554 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8555 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8561 $as_echo "$ac_cv_c_bigendian" >&6; }
8562 case $ac_cv_c_bigendian in #(
8564 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8570 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8574 as_fn_error $?
"unknown endianness
8575 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8580 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8581 if ${emacs_cv_attribute_aligned+:} false
; then :
8582 $as_echo_n "(cached) " >&6
8584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 char __attribute__ ((__aligned__ (1 << 3))) c;
8595 if ac_fn_c_try_compile
"$LINENO"; then :
8596 emacs_cv_attribute_aligned
=yes
8598 emacs_cv_attribute_aligned
=no
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8603 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8604 if test $emacs_cv_attribute_aligned = yes; then
8606 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8611 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8613 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8614 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8615 $as_echo_n "(cached) " >&6
8617 cat >conftest.
make <<\_ACEOF
8620 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8622 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8623 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8625 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8627 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8631 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633 $as_echo "yes" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 SET_MAKE
="MAKE=${MAKE-make}"
8645 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8647 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8649 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8650 if test "x$testval" != x
; then
8653 ac_enable_autodepend
=no
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8656 $as_echo "$HAVE_GNU_MAKE" >&6; }
8657 if test $HAVE_GNU_MAKE = yes; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8659 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8660 SAVE_CFLAGS
="$CFLAGS"
8661 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8673 if ac_fn_c_try_compile
"$LINENO"; then :
8676 ac_enable_autodepend
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8679 CFLAGS
="$SAVE_CFLAGS"
8680 test -f deps.d || ac_enable_autodepend
=no
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8683 $as_echo "$ac_enable_autodepend" >&6; }
8685 if test $ac_enable_autodepend = yes; then
8686 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8687 ## In parallel builds, another make might create depdir between
8688 ## the first test and mkdir, so stick another test on the end.
8689 ## Or use mkinstalldirs? mkdir -p is not portable.
8690 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8691 deps_frag
=autodeps.mk
8694 deps_frag
=$srcdir/src
/$deps_frag
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8701 $as_echo_n "checking for long file names... " >&6; }
8702 if ${ac_cv_sys_long_file_names+:} false
; then :
8703 $as_echo_n "(cached) " >&6
8705 ac_cv_sys_long_file_names
=yes
8706 # Test for long file names in all the places we know might matter:
8707 # . the current directory, where building will happen
8708 # $prefix/lib where we will be installing things
8709 # $exec_prefix/lib likewise
8710 # $TMPDIR if set, where it might want to write temporary files
8711 # /tmp where it might want to write temporary files
8714 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8715 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8716 # in the usual case where exec_prefix is '${prefix}'.
8718 . |
/* | ?
:[\\/]*) ;; #(
8721 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8722 ac_xdir
=$ac_dir/cf$$
8723 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8724 ac_tf1
=$ac_xdir/conftest9012345
8725 ac_tf2
=$ac_xdir/conftest9012346
8726 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8727 ac_cv_sys_long_file_names
=no
8728 rm -f -r "$ac_xdir" 2>/dev
/null
8729 test $ac_cv_sys_long_file_names = no
&& break
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8733 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8734 if test $ac_cv_sys_long_file_names = yes; then
8736 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8741 #### Choose a window system.
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8744 $as_echo_n "checking for X... " >&6; }
8747 # Check whether --with-x was given.
8748 if test "${with_x+set}" = set; then :
8752 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8753 if test "x$with_x" = xno
; then
8754 # The user explicitly disabled X.
8757 case $x_includes,$x_libraries in #(
8758 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8759 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8760 $as_echo_n "(cached) " >&6
8762 # One or both of the vars are not set, and there is no cached value.
8763 ac_x_includes
=no ac_x_libraries
=no
8764 rm -f -r conftest.dir
8765 if mkdir conftest.dir
; then
8767 cat >Imakefile
<<'_ACEOF'
8769 @echo incroot='${INCROOT}'
8771 @echo usrlibdir='${USRLIBDIR}'
8773 @echo libdir='${LIBDIR}'
8775 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8776 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8777 for ac_var
in incroot usrlibdir libdir
; do
8778 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8780 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8781 for ac_extension
in a so sl dylib la dll
; do
8782 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8783 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8784 ac_im_usrlibdir
=$ac_im_libdir; break
8787 # Screen out bogus values from the imake configuration. They are
8788 # bogus both because they are the default anyway, and because
8789 # using them would break gcc on systems where it needs fixed includes.
8790 case $ac_im_incroot in
8791 /usr
/include
) ac_x_includes
= ;;
8792 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8794 case $ac_im_usrlibdir in
8795 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8796 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8800 rm -f -r conftest.dir
8803 # Standard set of common directories for X headers.
8804 # Check X11 before X11Rn because it is often a symlink to the current release.
8818 /usr/local/X11/include
8819 /usr/local/X11R7/include
8820 /usr/local/X11R6/include
8821 /usr/local/X11R5/include
8822 /usr/local/X11R4/include
8824 /usr/local/include/X11
8825 /usr/local/include/X11R7
8826 /usr/local/include/X11R6
8827 /usr/local/include/X11R5
8828 /usr/local/include/X11R4
8832 /usr/XFree86/include/X11
8836 /usr/unsupported/include
8838 /usr/local/x11r5/include
8839 /usr/lpp/Xamples/include
8841 /usr/openwin/include
8842 /usr/openwin/share/include'
8844 if test "$ac_x_includes" = no
; then
8845 # Guess where to find include files, by looking for Xlib.h.
8846 # First, try using that file with no special directory specified.
8847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 #include <X11/Xlib.h>
8851 if ac_fn_c_try_cpp
"$LINENO"; then :
8852 # We can compile using X headers with no special include directory.
8855 for ac_dir
in $ac_x_header_dirs; do
8856 if test -r "$ac_dir/X11/Xlib.h"; then
8857 ac_x_includes
=$ac_dir
8862 rm -f conftest.err conftest.i conftest.
$ac_ext
8863 fi # $ac_x_includes = no
8865 if test "$ac_x_libraries" = no
; then
8866 # Check for the libraries.
8867 # See if we find them without any special options.
8868 # Don't add to $LIBS permanently.
8871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #include <X11/Xlib.h>
8882 if ac_fn_c_try_link
"$LINENO"; then :
8884 # We can link X programs with no special library path.
8888 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8890 # Don't even attempt the hair of trying to link an X program!
8891 for ac_extension
in a so sl dylib la dll
; do
8892 if test -r "$ac_dir/libX11.$ac_extension"; then
8893 ac_x_libraries
=$ac_dir
8899 rm -f core conftest.err conftest.
$ac_objext \
8900 conftest
$ac_exeext conftest.
$ac_ext
8901 fi # $ac_x_libraries = no
8903 case $ac_x_includes,$ac_x_libraries in #(
8905 # Didn't find X, or a directory has "'" in its name.
8906 ac_cv_have_x
="have_x=no";; #(
8908 # Record where we found X for the cache.
8909 ac_cv_have_x
="have_x=yes\
8910 ac_x_includes='$ac_x_includes'\
8911 ac_x_libraries='$ac_x_libraries'"
8917 eval "$ac_cv_have_x"
8920 if test "$have_x" != yes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8922 $as_echo "$have_x" >&6; }
8925 # If each of the values was on the command line, it overrides each guess.
8926 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8927 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8928 # Update the cache value to reflect the command line values.
8929 ac_cv_have_x
="have_x=yes\
8930 ac_x_includes='$x_includes'\
8931 ac_x_libraries='$x_libraries'"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8933 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8936 if test "$no_x" = yes; then
8942 ## Workaround for bug in autoconf <= 2.62.
8943 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8944 ## No need to do anything special for these standard directories.
8945 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8947 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8951 LD_SWITCH_X_SITE_AUX
=
8952 LD_SWITCH_X_SITE_AUX_RPATH
=
8953 if test "${x_libraries}" != NONE
; then
8954 if test -n "${x_libraries}"; then
8955 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8956 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8957 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8959 x_default_search_path
=""
8960 x_search_path
=${x_libraries}
8961 if test -z "${x_search_path}"; then
8962 x_search_path
=/usr
/lib
8964 for x_library
in `echo ${x_search_path}: | \
8965 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8967 ${x_library}/X11/%L/%T/%N%C%S:\
8968 ${x_library}/X11/%l/%T/%N%C%S:\
8969 ${x_library}/X11/%T/%N%C%S:\
8970 ${x_library}/X11/%L/%T/%N%S:\
8971 ${x_library}/X11/%l/%T/%N%S:\
8972 ${x_library}/X11/%T/%N%S"
8973 if test x
"${x_default_search_path}" = x
; then
8974 x_default_search_path
=${x_search_path}
8976 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8983 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8984 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8987 if test x
"${x_includes}" = x
; then
8988 bitmapdir
=/usr
/include
/X11
/bitmaps
8990 # accumulate include directories that have X11 bitmap subdirectories
8992 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8993 if test -d "${bmd}/X11/bitmaps"; then
8994 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8996 if test -d "${bmd}/bitmaps"; then
8997 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9000 if test ${bmd_acc} != "dummyval"; then
9001 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9008 tmp_CPPFLAGS
="$CPPFLAGS"
9009 tmp_CFLAGS
="$CFLAGS"
9010 CPPFLAGS
="$CPPFLAGS -x objective-c"
9011 CFLAGS
="$CFLAGS -x objective-c"
9012 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9013 if test "${with_ns}" != no
; then
9014 if test "${opsys}" = darwin
; then
9016 ns_appdir
=`pwd`/nextstep
/Emacs.app
9017 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9018 ns_appresdir
=${ns_appdir}/Contents
/Resources
9019 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9020 elif test -f $GNUSTEP_CONFIG_FILE; then
9022 ns_appdir
=`pwd`/nextstep
/Emacs.app
9023 ns_appbindir
=${ns_appdir}/
9024 ns_appresdir
=${ns_appdir}/Resources
9025 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9026 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9027 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9028 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9029 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9030 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9031 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9032 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9033 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9034 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9035 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9036 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9041 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9042 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
9045 as_fn_error $?
"\`--with-ns' was specified, but the include
9046 files are missing or cannot be compiled." "$LINENO" 5
9050 NS_HAVE_NSINTEGER
=yes
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <Foundation/NSObjCRuntime.h>
9062 if ac_fn_c_try_compile
"$LINENO"; then :
9063 ns_have_nsinteger
=yes
9065 ns_have_nsinteger
=no
9067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9068 if test $ns_have_nsinteger = no
; then
9069 NS_HAVE_NSINTEGER
=no
9078 if test "${HAVE_NS}" = yes; then
9079 window_system
=nextstep
9081 # set up packaging dirs
9082 exec_prefix
=${ns_appbindir}
9083 libexecdir
=${ns_appbindir}/libexec
9084 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9085 prefix
=${ns_appresdir}
9087 ns_frag
=$srcdir/src
/ns.mk
9088 NS_OBJ
="fontset.o fringe.o image.o"
9089 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9090 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9092 CFLAGS
="$tmp_CFLAGS"
9093 CPPFLAGS
="$tmp_CPPFLAGS"
9100 case "${window_system}" in
9104 case "${with_x_toolkit}" in
9105 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9106 motif
) USE_X_TOOLKIT
=MOTIF
;;
9108 USE_X_TOOLKIT
=none
;;
9109 gtk3
) with_gtk3
=yes
9110 USE_X_TOOLKIT
=none
;;
9111 no
) USE_X_TOOLKIT
=none
;;
9112 * ) USE_X_TOOLKIT
=maybe
;;
9122 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9123 # Extract the first word of "X", so it can be a program name with args.
9124 set dummy X
; ac_word
=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9128 $as_echo_n "(cached) " >&6
9130 if test -n "$HAVE_XSERVER"; then
9131 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9137 test -z "$as_dir" && as_dir
=.
9138 for ac_exec_ext
in '' $ac_executable_extensions; do
9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_prog_HAVE_XSERVER
="true"
9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9151 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9152 if test -n "$HAVE_XSERVER"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9154 $as_echo "$HAVE_XSERVER" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9161 if test "$HAVE_XSERVER" = true ||
9162 test -n "$DISPLAY" ||
9163 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9164 as_fn_error $?
"You seem to be running X, but no X development libraries
9165 were found. You should install the relevant development files for X
9166 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9167 sure you have development files for image handling, i.e.
9168 tiff, gif, jpeg, png and xpm.
9169 If you are sure you want Emacs compiled without X window support, pass
9171 to configure." "$LINENO" 5
9175 ### If we're using X11, we should use the X menu package.
9178 yes ) HAVE_MENUS
=yes ;;
9181 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9182 # Assume not, until told otherwise.
9185 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9186 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
9192 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9193 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9200 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9201 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
9202 $as_echo_n "(cached) " >&6
9204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 extern void (* __after_morecore_hook)();
9210 __after_morecore_hook = 0
9215 if ac_fn_c_try_link
"$LINENO"; then :
9216 emacs_cv_var___after_morecore_hook
=yes
9218 emacs_cv_var___after_morecore_hook
=no
9220 rm -f core conftest.err conftest.
$ac_objext \
9221 conftest
$ac_exeext conftest.
$ac_ext
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9224 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9225 if test $emacs_cv_var___after_morecore_hook = no
; then
9232 ## darwin ld insists on the use of malloc routines in the System framework.
9233 darwin|sol2-10
) system_malloc
=yes ;;
9236 if test "${system_malloc}" = "yes"; then
9238 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9242 (The GNU allocators don't work with this system configuration.)"
9246 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9247 VMLIMIT_OBJ
=vm-limit.o
9252 if test "$doug_lea_malloc" = "yes" ; then
9253 if test "$GNU_MALLOC" = yes ; then
9255 (Using Doug Lea's new malloc from the GNU C Library.)"
9258 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9261 ## Use mmap directly for allocating larger buffers.
9262 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9263 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9264 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9266 gnu
*) REL_ALLOC
=no
;;
9270 if test x
"${REL_ALLOC}" = x
; then
9271 REL_ALLOC
=${GNU_MALLOC}
9274 use_mmap_for_buffers
=no
9276 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9282 for ac_header
in $ac_header_list
9284 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9285 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9287 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9288 cat >>confdefs.h
<<_ACEOF
9289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9303 for ac_func
in getpagesize
9305 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9306 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9307 cat >>confdefs.h
<<_ACEOF
9308 #define HAVE_GETPAGESIZE 1
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9315 $as_echo_n "checking for working mmap... " >&6; }
9316 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 if test "$cross_compiling" = yes; then :
9320 ac_cv_func_mmap_fixed_mapped
=no
9322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 /* malloc might have been renamed as rpl_malloc. */
9328 /* Thanks to Mike Haertel and Jim Avera for this test.
9329 Here is a matrix of mmap possibilities:
9330 mmap private not fixed
9331 mmap private fixed at somewhere currently unmapped
9332 mmap private fixed at somewhere already mapped
9333 mmap shared not fixed
9334 mmap shared fixed at somewhere currently unmapped
9335 mmap shared fixed at somewhere already mapped
9336 For private mappings, we should verify that changes cannot be read()
9337 back from the file, nor mmap's back from the file at a different
9338 address. (There have been systems where private was not correctly
9339 implemented like the infamous i386 svr4.0, and systems where the
9340 VM page cache was not coherent with the file system buffer cache
9341 like early versions of FreeBSD and possibly contemporary NetBSD.)
9342 For shared mappings, we should conversely verify that changes get
9343 propagated back to all the places they're supposed to be.
9345 Grep wants private fixed already mapped.
9346 The main things grep needs to know about mmap are:
9347 * does it exist and is it safe to write into the mmap'd area
9348 * how to use it (BSD variants) */
9351 #include <sys/mman.h>
9353 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9357 /* This mess was copied from the GNU getpagesize.h. */
9358 #ifndef HAVE_GETPAGESIZE
9359 # ifdef _SC_PAGESIZE
9360 # define getpagesize() sysconf(_SC_PAGESIZE)
9361 # else /* no _SC_PAGESIZE */
9362 # ifdef HAVE_SYS_PARAM_H
9363 # include <sys/param.h>
9364 # ifdef EXEC_PAGESIZE
9365 # define getpagesize() EXEC_PAGESIZE
9366 # else /* no EXEC_PAGESIZE */
9368 # define getpagesize() NBPG * CLSIZE
9371 # endif /* no CLSIZE */
9372 # else /* no NBPG */
9374 # define getpagesize() NBPC
9375 # else /* no NBPC */
9377 # define getpagesize() PAGESIZE
9378 # endif /* PAGESIZE */
9379 # endif /* no NBPC */
9380 # endif /* no NBPG */
9381 # endif /* no EXEC_PAGESIZE */
9382 # else /* no HAVE_SYS_PARAM_H */
9383 # define getpagesize() 8192 /* punt totally */
9384 # endif /* no HAVE_SYS_PARAM_H */
9385 # endif /* no _SC_PAGESIZE */
9387 #endif /* no HAVE_GETPAGESIZE */
9392 char *data, *data2, *data3;
9397 pagesize = getpagesize ();
9399 /* First, make a file with some known garbage in it. */
9400 data = (char *) malloc (pagesize);
9403 for (i = 0; i < pagesize; ++i)
9404 *(data + i) = rand ();
9406 fd = creat ("conftest.mmap", 0600);
9409 if (write (fd, data, pagesize) != pagesize)
9413 /* Next, check that the tail of a page is zero-filled. File must have
9414 non-zero length, otherwise we risk SIGBUS for entire page. */
9415 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9419 if (write (fd2, cdata2, 1) != 1)
9421 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9422 if (data2 == MAP_FAILED)
9424 for (i = 0; i < pagesize; ++i)
9428 if (munmap (data2, pagesize))
9431 /* Next, try to mmap the file at a fixed address which already has
9432 something else allocated at it. If we can, also make sure that
9433 we see the same garbage. */
9434 fd = open ("conftest.mmap", O_RDWR);
9437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9440 for (i = 0; i < pagesize; ++i)
9441 if (*(data + i) != *(data2 + i))
9444 /* Finally, make sure that changes to the mapped area do not
9445 percolate back to the file as seen by read(). (This is a bug on
9446 some variants of i386 svr4.0.) */
9447 for (i = 0; i < pagesize; ++i)
9448 *(data2 + i) = *(data2 + i) + 1;
9449 data3 = (char *) malloc (pagesize);
9452 if (read (fd, data3, pagesize) != pagesize)
9454 for (i = 0; i < pagesize; ++i)
9455 if (*(data + i) != *(data3 + i))
9461 if ac_fn_c_try_run
"$LINENO"; then :
9462 ac_cv_func_mmap_fixed_mapped
=yes
9464 ac_cv_func_mmap_fixed_mapped
=no
9466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9472 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9473 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9475 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9478 rm -f conftest.mmap conftest.txt
9480 if test $use_mmap_for_buffers = yes; then
9482 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9487 LIBS
="$LIBS_SYSTEM $LIBS"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9490 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9491 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9492 $as_echo_n "(cached) " >&6
9494 ac_check_lib_save_LIBS
=$LIBS
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9509 return dnet_ntoa ();
9514 if ac_fn_c_try_link
"$LINENO"; then :
9515 ac_cv_lib_dnet_dnet_ntoa
=yes
9517 ac_cv_lib_dnet_dnet_ntoa
=no
9519 rm -f core conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 LIBS
=$ac_check_lib_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9524 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9525 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9526 cat >>confdefs.h
<<_ACEOF
9527 #define HAVE_LIBDNET 1
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9536 $as_echo_n "checking for main in -lXbsd... " >&6; }
9537 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9538 $as_echo_n "(cached) " >&6
9540 ac_check_lib_save_LIBS
=$LIBS
9542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9554 if ac_fn_c_try_link
"$LINENO"; then :
9555 ac_cv_lib_Xbsd_main
=yes
9557 ac_cv_lib_Xbsd_main
=no
9559 rm -f core conftest.err conftest.
$ac_objext \
9560 conftest
$ac_exeext conftest.
$ac_ext
9561 LIBS
=$ac_check_lib_save_LIBS
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9564 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9565 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9566 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9571 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9572 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9573 $as_echo_n "(cached) " >&6
9575 ac_check_lib_save_LIBS
=$LIBS
9576 LIBS
="-lpthreads $LIBS"
9577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9580 /* Override any GCC internal prototype to avoid an error.
9581 Use char because int might match the return type of a GCC
9582 builtin and then its argument prototype would still apply. */
9595 if ac_fn_c_try_link
"$LINENO"; then :
9596 ac_cv_lib_pthreads_cma_open
=yes
9598 ac_cv_lib_pthreads_cma_open
=no
9600 rm -f core conftest.err conftest.
$ac_objext \
9601 conftest
$ac_exeext conftest.
$ac_ext
9602 LIBS
=$ac_check_lib_save_LIBS
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9605 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9606 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9607 cat >>confdefs.h
<<_ACEOF
9608 #define HAVE_LIBPTHREADS 1
9611 LIBS
="-lpthreads $LIBS"
9616 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9617 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9618 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9619 ## added to LIBS in configure would never contain the pthreads part,
9620 ## but the value used in Makefiles might. FIXME?
9622 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9623 ## be harmless on older versions of X where it happens to exist.
9624 test "$opsys" = "aix4-2" && \
9625 test $ac_cv_lib_pthreads_cma_open = yes && \
9626 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9632 $as_echo_n "checking for -bbigtoc option... " >&6; }
9633 if ${gdb_cv_bigtoc+:} false
; then :
9634 $as_echo_n "(cached) " >&6
9638 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9639 *) gdb_cv_bigtoc
=-bbigtoc ;;
9642 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9654 if ac_fn_c_try_link
"$LINENO"; then :
9659 rm -f core conftest.err conftest.
$ac_objext \
9660 conftest
$ac_exeext conftest.
$ac_ext
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9664 $as_echo "$gdb_cv_bigtoc" >&6; }
9668 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9669 # used for the tests that follow. We set them back to REAL_CFLAGS and
9670 # REAL_CPPFLAGS later on.
9672 REAL_CFLAGS
="$CFLAGS"
9673 REAL_CPPFLAGS
="$CPPFLAGS"
9675 if test "${HAVE_X11}" = "yes"; then
9676 DEFS
="$C_SWITCH_X_SITE $DEFS"
9677 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9679 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9680 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9682 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9683 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9684 # but it's more convenient here to set LD_RUN_PATH
9685 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9686 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9687 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9691 if test "${opsys}" = "gnu-linux"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9693 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9700 XOpenDisplay ("foo");
9705 if ac_fn_c_try_link
"$LINENO"; then :
9706 xlinux_first_failure
=no
9708 xlinux_first_failure
=yes
9710 rm -f core conftest.err conftest.
$ac_objext \
9711 conftest
$ac_exeext conftest.
$ac_ext
9712 if test "${xlinux_first_failure}" = "yes"; then
9713 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9714 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9715 OLD_CPPFLAGS
="$CPPFLAGS"
9717 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9718 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9719 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9720 LIBS
="$LIBS -b i486-linuxaout"
9721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9727 XOpenDisplay ("foo");
9732 if ac_fn_c_try_link
"$LINENO"; then :
9733 xlinux_second_failure
=no
9735 xlinux_second_failure
=yes
9737 rm -f core conftest.err conftest.
$ac_objext \
9738 conftest
$ac_exeext conftest.
$ac_ext
9739 if test "${xlinux_second_failure}" = "yes"; then
9740 # If we get the same failure with -b, there is no use adding -b.
9741 # So take it out. This plays safe.
9742 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9743 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9744 CPPFLAGS
="$OLD_CPPFLAGS"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9750 $as_echo "yes" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9758 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9759 # header files included from there.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9761 $as_echo_n "checking for Xkb... " >&6; }
9762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <X11/Xlib.h>
9765 #include <X11/XKBlib.h>
9769 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9774 if ac_fn_c_try_link
"$LINENO"; then :
9779 rm -f core conftest.err conftest.
$ac_objext \
9780 conftest
$ac_exeext conftest.
$ac_ext
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9782 $as_echo "$emacs_xkb" >&6; }
9783 if test $emacs_xkb = yes; then
9785 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9789 for ac_func
in XrmSetDatabase XScreenResourceString \
9790 XScreenNumberOfScreen XSetWMProtocols
9792 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9794 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9795 cat >>confdefs.h
<<_ACEOF
9796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9804 if test "${window_system}" = "x11"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9806 $as_echo_n "checking X11 version 6... " >&6; }
9807 if ${emacs_cv_x11_version_6+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #include <X11/Xlib.h>
9816 #if XlibSpecificationRelease < 6
9824 if ac_fn_c_try_link
"$LINENO"; then :
9825 emacs_cv_x11_version_6
=yes
9827 emacs_cv_x11_version_6
=no
9829 rm -f core conftest.err conftest.
$ac_objext \
9830 conftest
$ac_exeext conftest.
$ac_ext
9833 if test $emacs_cv_x11_version_6 = yes; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9835 $as_echo "6 or newer" >&6; }
9837 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9840 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9842 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9847 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9853 $as_echo "before 6" >&6; }
9858 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9860 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9861 if test "${with_rsvg}" != "no"; then
9862 RSVG_REQUIRED
=2.11.0
9863 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9868 # Extract the first word of "pkg-config", so it can be a program name with args.
9869 set dummy pkg-config
; ac_word
=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9873 $as_echo_n "(cached) " >&6
9877 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9884 test -z "$as_dir" && as_dir
=.
9885 for ac_exec_ext
in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9899 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9900 if test -n "$PKG_CONFIG"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9902 $as_echo "$PKG_CONFIG" >&6; }
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9910 if test "$PKG_CONFIG" = "no" ; then
9913 PKG_CONFIG_MIN_VERSION
=0.9.0
9914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9916 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9918 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920 $as_echo "yes" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9924 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9925 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9927 $as_echo "$RSVG_CFLAGS" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9930 $as_echo_n "checking RSVG_LIBS... " >&6; }
9931 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9933 $as_echo "$RSVG_LIBS" >&6; }
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9939 ## If we have a custom action on failure, don't print errors, but
9940 ## do set a variable so people can do so.
9941 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9953 if test $succeeded = yes; then
9962 if test $HAVE_RSVG = yes; then
9964 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9966 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9967 LIBS
="$RSVG_LIBS $LIBS"
9973 if test "${HAVE_X11}" = "yes"; then
9974 if test "${with_imagemagick}" != "no"; then
9975 IMAGEMAGICK_MODULE
="Wand"
9979 # Extract the first word of "pkg-config", so it can be a program name with args.
9980 set dummy pkg-config
; ac_word
=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9984 $as_echo_n "(cached) " >&6
9988 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9995 test -z "$as_dir" && as_dir
=.
9996 for ac_exec_ext
in '' $ac_executable_extensions; do
9997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9998 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10010 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10011 if test -n "$PKG_CONFIG"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10013 $as_echo "$PKG_CONFIG" >&6; }
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10021 if test "$PKG_CONFIG" = "no" ; then
10024 PKG_CONFIG_MIN_VERSION
=0.9.0
10025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10027 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10029 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10031 $as_echo "yes" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10035 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10036 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10038 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10041 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10042 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10044 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10048 IMAGEMAGICK_CFLAGS
=""
10049 IMAGEMAGICK_LIBS
=""
10050 ## If we have a custom action on failure, don't print errors, but
10051 ## do set a variable so people can do so.
10052 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10064 if test $succeeded = yes; then
10065 HAVE_IMAGEMAGICK
=yes
10073 if test $HAVE_IMAGEMAGICK = yes; then
10075 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10077 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10078 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10079 for ac_func
in MagickExportImagePixels
10081 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10082 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10083 cat >>confdefs.h
<<_ACEOF
10084 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10096 if test "${with_gtk3}" = "yes"; then
10099 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10104 # Extract the first word of "pkg-config", so it can be a program name with args.
10105 set dummy pkg-config
; ac_word
=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10109 $as_echo_n "(cached) " >&6
10111 case $PKG_CONFIG in
10113 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10117 for as_dir
in $PATH
10120 test -z "$as_dir" && as_dir
=.
10121 for ac_exec_ext
in '' $ac_executable_extensions; do
10122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10123 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10135 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10136 if test -n "$PKG_CONFIG"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10138 $as_echo "$PKG_CONFIG" >&6; }
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10146 if test "$PKG_CONFIG" = "no" ; then
10149 PKG_CONFIG_MIN_VERSION
=0.9.0
10150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10152 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10154 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156 $as_echo "yes" >&6; }
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10160 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10161 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10163 $as_echo "$GTK_CFLAGS" >&6; }
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10166 $as_echo_n "checking GTK_LIBS... " >&6; }
10167 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10169 $as_echo "$GTK_LIBS" >&6; }
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172 $as_echo "no" >&6; }
10175 ## If we have a custom action on failure, don't print errors, but
10176 ## do set a variable so people can do so.
10177 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10189 if test $succeeded = yes; then
10195 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10196 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10200 if test "$pkg_check_gtk" != "yes"; then
10202 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10205 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10210 # Extract the first word of "pkg-config", so it can be a program name with args.
10211 set dummy pkg-config
; ac_word
=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10217 case $PKG_CONFIG in
10219 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10223 for as_dir
in $PATH
10226 test -z "$as_dir" && as_dir
=.
10227 for ac_exec_ext
in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10241 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10242 if test -n "$PKG_CONFIG"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10244 $as_echo "$PKG_CONFIG" >&6; }
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10252 if test "$PKG_CONFIG" = "no" ; then
10255 PKG_CONFIG_MIN_VERSION
=0.9.0
10256 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10258 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10260 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262 $as_echo "yes" >&6; }
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10266 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10267 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10269 $as_echo "$GTK_CFLAGS" >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10272 $as_echo_n "checking GTK_LIBS... " >&6; }
10273 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10275 $as_echo "$GTK_LIBS" >&6; }
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10281 ## If we have a custom action on failure, don't print errors, but
10282 ## do set a variable so people can do so.
10283 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10290 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10291 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10295 if test $succeeded = yes; then
10301 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10302 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10308 if test x
"$pkg_check_gtk" = xyes
; then
10312 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10313 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10314 LIBS
="$GTK_LIBS $LIBS"
10316 for ac_func
in gtk_main
10318 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10319 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10320 cat >>confdefs.h
<<_ACEOF
10321 #define HAVE_GTK_MAIN 1
10327 if test "${GTK_COMPILES}" != "yes"; then
10328 if test "$USE_X_TOOLKIT" != "maybe"; then
10329 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10334 $as_echo "#define USE_GTK 1" >>confdefs.h
10338 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: 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." >&5
10345 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10346 closing open displays. This is no problem if you just use
10347 one display, but if you use more than one and close one of them
10348 Emacs may crash." >&2;}
10357 if test "${HAVE_GTK}" = "yes"; then
10359 if test "$with_toolkit_scroll_bars" != no
; then
10360 with_toolkit_scroll_bars
=yes
10363 HAVE_GTK_FILE_SELECTION
=no
10364 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10365 #include <gtk/gtk.h>
10367 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10368 HAVE_GTK_FILE_SELECTION
=yes
10370 HAVE_GTK_FILE_SELECTION
=no
10373 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10374 for ac_func
in gtk_file_selection_new
10376 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10377 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10378 cat >>confdefs.h
<<_ACEOF
10379 #define HAVE_GTK_FILE_SELECTION_NEW 1
10387 HAVE_GTK_AND_PTHREAD
=no
10388 for ac_header
in pthread.h
10390 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10391 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10392 cat >>confdefs.h
<<_ACEOF
10393 #define HAVE_PTHREAD_H 1
10400 if test "$ac_cv_header_pthread_h"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10402 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10403 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10404 $as_echo_n "(cached) " >&6
10406 ac_check_lib_save_LIBS
=$LIBS
10407 LIBS
="-lpthread $LIBS"
10408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10417 char pthread_self ();
10421 return pthread_self ();
10426 if ac_fn_c_try_link
"$LINENO"; then :
10427 ac_cv_lib_pthread_pthread_self
=yes
10429 ac_cv_lib_pthread_pthread_self
=no
10431 rm -f core conftest.err conftest.
$ac_objext \
10432 conftest
$ac_exeext conftest.
$ac_ext
10433 LIBS
=$ac_check_lib_save_LIBS
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10436 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10437 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10438 HAVE_GTK_AND_PTHREAD
=yes
10442 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10443 case "${canonical}" in
10445 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10448 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10452 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10453 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10454 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10455 gtk_orientable_set_orientation
10457 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10458 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10459 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10460 cat >>confdefs.h
<<_ACEOF
10461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10472 if test "${with_dbus}" = "yes"; then
10476 # Extract the first word of "pkg-config", so it can be a program name with args.
10477 set dummy pkg-config
; ac_word
=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10481 $as_echo_n "(cached) " >&6
10483 case $PKG_CONFIG in
10485 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10489 for as_dir
in $PATH
10492 test -z "$as_dir" && as_dir
=.
10493 for ac_exec_ext
in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10507 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10508 if test -n "$PKG_CONFIG"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10510 $as_echo "$PKG_CONFIG" >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10518 if test "$PKG_CONFIG" = "no" ; then
10521 PKG_CONFIG_MIN_VERSION
=0.9.0
10522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10524 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10526 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528 $as_echo "yes" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10532 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10533 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10535 $as_echo "$DBUS_CFLAGS" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10538 $as_echo_n "checking DBUS_LIBS... " >&6; }
10539 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10541 $as_echo "$DBUS_LIBS" >&6; }
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10547 ## If we have a custom action on failure, don't print errors, but
10548 ## do set a variable so people can do so.
10549 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10561 if test $succeeded = yes; then
10567 if test "$HAVE_DBUS" = yes; then
10568 LIBS
="$LIBS $DBUS_LIBS"
10570 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10572 for ac_func
in dbus_watch_get_unix_fd
10574 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10575 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10576 cat >>confdefs.h
<<_ACEOF
10577 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10583 DBUS_OBJ
=dbusbind.o
10589 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10593 # Extract the first word of "pkg-config", so it can be a program name with args.
10594 set dummy pkg-config
; ac_word
=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10598 $as_echo_n "(cached) " >&6
10600 case $PKG_CONFIG in
10602 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10606 for as_dir
in $PATH
10609 test -z "$as_dir" && as_dir
=.
10610 for ac_exec_ext
in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10624 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10625 if test -n "$PKG_CONFIG"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10627 $as_echo "$PKG_CONFIG" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10635 if test "$PKG_CONFIG" = "no" ; then
10638 PKG_CONFIG_MIN_VERSION
=0.9.0
10639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10641 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10643 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645 $as_echo "yes" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10649 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10650 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10652 $as_echo "$GCONF_CFLAGS" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10655 $as_echo_n "checking GCONF_LIBS... " >&6; }
10656 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10658 $as_echo "$GCONF_LIBS" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10664 ## If we have a custom action on failure, don't print errors, but
10665 ## do set a variable so people can do so.
10666 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10678 if test $succeeded = yes; then
10684 if test "$HAVE_GCONF" = yes; then
10686 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10688 for ac_func
in g_type_init
10690 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10691 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10692 cat >>confdefs.h
<<_ACEOF
10693 #define HAVE_G_TYPE_INIT 1
10704 if test "${with_selinux}" = "yes"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10706 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10707 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10708 $as_echo_n "(cached) " >&6
10710 ac_check_lib_save_LIBS
=$LIBS
10711 LIBS
="-lselinux $LIBS"
10712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10721 char lgetfilecon ();
10725 return lgetfilecon ();
10730 if ac_fn_c_try_link
"$LINENO"; then :
10731 ac_cv_lib_selinux_lgetfilecon
=yes
10733 ac_cv_lib_selinux_lgetfilecon
=no
10735 rm -f core conftest.err conftest.
$ac_objext \
10736 conftest
$ac_exeext conftest.
$ac_ext
10737 LIBS
=$ac_check_lib_save_LIBS
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10740 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10741 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10742 HAVE_LIBSELINUX
=yes
10747 if test "$HAVE_LIBSELINUX" = yes; then
10749 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10751 LIBSELINUX_LIBS
=-lselinux
10757 if test "${with_gnutls}" = "yes" ; then
10761 # Extract the first word of "pkg-config", so it can be a program name with args.
10762 set dummy pkg-config
; ac_word
=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10766 $as_echo_n "(cached) " >&6
10768 case $PKG_CONFIG in
10770 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10774 for as_dir
in $PATH
10777 test -z "$as_dir" && as_dir
=.
10778 for ac_exec_ext
in '' $ac_executable_extensions; do
10779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10792 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10793 if test -n "$PKG_CONFIG"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10795 $as_echo "$PKG_CONFIG" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10803 if test "$PKG_CONFIG" = "no" ; then
10806 PKG_CONFIG_MIN_VERSION
=0.9.0
10807 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10809 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10811 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813 $as_echo "yes" >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10817 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10818 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10820 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10823 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10824 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10826 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 LIBGNUTLS_CFLAGS
=""
10832 ## If we have a custom action on failure, don't print errors, but
10833 ## do set a variable so people can do so.
10834 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 if test $succeeded = yes; then
10852 if test "${HAVE_GNUTLS}" = "yes"; then
10854 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10863 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10864 if test "$with_xaw3d" != no
; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10866 $as_echo_n "checking for xaw3d... " >&6; }
10867 if ${emacs_cv_xaw3d+:} false
; then :
10868 $as_echo_n "(cached) " >&6
10870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 #include <X11/Intrinsic.h>
10874 #include <X11/Xaw3d/Simple.h>
10883 if ac_fn_c_try_link
"$LINENO"; then :
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10885 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10886 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10887 $as_echo_n "(cached) " >&6
10889 ac_check_lib_save_LIBS
=$LIBS
10890 LIBS
="-lXaw3d $LIBS"
10891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10900 char XawScrollbarSetThumb ();
10904 return XawScrollbarSetThumb ();
10909 if ac_fn_c_try_link
"$LINENO"; then :
10910 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10912 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10914 rm -f core conftest.err conftest.
$ac_objext \
10915 conftest
$ac_exeext conftest.
$ac_ext
10916 LIBS
=$ac_check_lib_save_LIBS
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10919 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10920 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
10929 rm -f core conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10936 if test $emacs_cv_xaw3d = yes; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10938 $as_echo "yes; using Lucid toolkit" >&6; }
10939 USE_X_TOOLKIT
=LUCID
10943 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10949 $as_echo_n "checking for libXaw... " >&6; }
10950 if ${emacs_cv_xaw+:} false
; then :
10951 $as_echo_n "(cached) " >&6
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10956 #include <X11/Intrinsic.h>
10957 #include <X11/Xaw/Simple.h>
10966 if ac_fn_c_try_link
"$LINENO"; then :
10971 rm -f core conftest.err conftest.
$ac_objext \
10972 conftest
$ac_exeext conftest.
$ac_ext
10975 if test $emacs_cv_xaw = yes; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10977 $as_echo "yes; using Lucid toolkit" >&6; }
10978 USE_X_TOOLKIT
=LUCID
10980 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10981 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10984 $as_echo "no; do not use toolkit by default" >&6; }
10990 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10993 if test "${USE_X_TOOLKIT}" != "none"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10995 $as_echo_n "checking X11 toolkit version... " >&6; }
10996 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10997 $as_echo_n "(cached) " >&6
10999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001 #include <X11/Intrinsic.h>
11005 #if XtSpecificationRelease < 6
11013 if ac_fn_c_try_link
"$LINENO"; then :
11014 emacs_cv_x11_toolkit_version_6
=yes
11016 emacs_cv_x11_toolkit_version_6
=no
11018 rm -f core conftest.err conftest.
$ac_objext \
11019 conftest
$ac_exeext conftest.
$ac_ext
11022 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11023 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11025 $as_echo "6 or newer" >&6; }
11027 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11029 LIBXTR6
="-lSM -lICE"
11031 ## Use libw.a along with X11R6 Xt.
11032 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11036 $as_echo "before 6" >&6; }
11040 if test x
$HAVE_X11XTR6 = xyes
; then
11041 LIBS
="-lXt -lSM -lICE $LIBS"
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11046 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11047 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
11048 $as_echo_n "(cached) " >&6
11050 ac_check_lib_save_LIBS
=$LIBS
11052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11061 char XmuConvertStandardSelection ();
11065 return XmuConvertStandardSelection ();
11070 if ac_fn_c_try_link
"$LINENO"; then :
11071 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11073 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11075 rm -f core conftest.err conftest.
$ac_objext \
11076 conftest
$ac_exeext conftest.
$ac_ext
11077 LIBS
=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11080 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11081 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
11082 cat >>confdefs.h
<<_ACEOF
11083 #define HAVE_LIBXMU 1
11090 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11096 ## These systems don't supply Xmu.
11098 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11103 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11104 if test "${HAVE_X11}" = "yes"; then
11105 if test "${USE_X_TOOLKIT}" != "none"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11107 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11108 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
11109 $as_echo_n "(cached) " >&6
11111 ac_check_lib_save_LIBS
=$LIBS
11112 LIBS
="-lXext $LIBS"
11113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11116 /* Override any GCC internal prototype to avoid an error.
11117 Use char because int might match the return type of a GCC
11118 builtin and then its argument prototype would still apply. */
11122 char XShapeQueryExtension ();
11126 return XShapeQueryExtension ();
11131 if ac_fn_c_try_link
"$LINENO"; then :
11132 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11134 ac_cv_lib_Xext_XShapeQueryExtension
=no
11136 rm -f core conftest.err conftest.
$ac_objext \
11137 conftest
$ac_exeext conftest.
$ac_ext
11138 LIBS
=$ac_check_lib_save_LIBS
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11141 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11142 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
11143 cat >>confdefs.h
<<_ACEOF
11144 #define HAVE_LIBXEXT 1
11147 LIBS
="-lXext $LIBS"
11155 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11157 $as_echo_n "checking for Motif version 2.1... " >&6; }
11158 if ${emacs_cv_motif_version_2_1+:} false
; then :
11159 $as_echo_n "(cached) " >&6
11161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11167 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11170 Motif version prior to 2.1.
11176 if ac_fn_c_try_compile
"$LINENO"; then :
11177 emacs_cv_motif_version_2_1
=yes
11179 emacs_cv_motif_version_2_1
=no
11181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11184 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11185 if test $emacs_cv_motif_version_2_1 = yes; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11187 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11188 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
11189 $as_echo_n "(cached) " >&6
11191 ac_check_lib_save_LIBS
=$LIBS
11193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11202 char XpCreateContext ();
11206 return XpCreateContext ();
11211 if ac_fn_c_try_link
"$LINENO"; then :
11212 ac_cv_lib_Xp_XpCreateContext
=yes
11214 ac_cv_lib_Xp_XpCreateContext
=no
11216 rm -f core conftest.err conftest.
$ac_objext \
11217 conftest
$ac_exeext conftest.
$ac_ext
11218 LIBS
=$ac_check_lib_save_LIBS
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11221 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11222 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11228 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11229 if ${emacs_cv_lesstif+:} false
; then :
11230 $as_echo_n "(cached) " >&6
11232 # We put this in CFLAGS temporarily to precede other -I options
11233 # that might be in CFLAGS temporarily.
11234 # We put this in CPPFLAGS where it precedes the other -I options.
11235 OLD_CPPFLAGS
=$CPPFLAGS
11237 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11238 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11250 if ac_fn_c_try_compile
"$LINENO"; then :
11251 emacs_cv_lesstif
=yes
11253 emacs_cv_lesstif
=no
11255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11258 $as_echo "$emacs_cv_lesstif" >&6; }
11259 if test $emacs_cv_lesstif = yes; then
11260 # Make sure this -I option remains in CPPFLAGS after it is set
11261 # back to REAL_CPPFLAGS.
11262 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11263 # have those other -I options anyway. Ultimately, having this
11264 # directory ultimately in CPPFLAGS will be enough.
11265 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11266 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11269 CPPFLAGS
=$OLD_CPPFLAGS
11275 USE_TOOLKIT_SCROLL_BARS
=no
11276 if test "${with_toolkit_scroll_bars}" != "no"; then
11277 if test "${USE_X_TOOLKIT}" != "none"; then
11278 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11279 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11282 USE_TOOLKIT_SCROLL_BARS
=yes
11283 elif test "${HAVE_XAW3D}" = "yes"; then
11284 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11286 USE_TOOLKIT_SCROLL_BARS
=yes
11288 elif test "${HAVE_GTK}" = "yes"; then
11289 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11291 USE_TOOLKIT_SCROLL_BARS
=yes
11292 elif test "${HAVE_NS}" = "yes"; then
11293 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11295 USE_TOOLKIT_SCROLL_BARS
=yes
11299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 #include <X11/Xlib.h>
11303 #include <X11/Xresource.h>
11312 if ac_fn_c_try_compile
"$LINENO"; then :
11315 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11323 if test "${with_xim}" != "no"; then
11325 $as_echo "#define USE_XIM 1" >>confdefs.h
11330 if test "${HAVE_XIM}" != "no"; then
11331 late_CFLAGS
=$CFLAGS
11332 if test "$GCC" = yes; then
11333 CFLAGS
="$CFLAGS --pedantic-errors"
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 #include <X11/Xlib.h>
11339 #include <X11/Xresource.h>
11348 XPointer *client_data;
11350 /* If we're not using GCC, it's probably not XFree86, and this is
11351 probably right, but we can't use something like --pedantic-errors. */
11352 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11353 char*, XIMProc, XPointer*);
11355 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11361 if ac_fn_c_try_compile
"$LINENO"; then :
11362 emacs_cv_arg6_star
=yes
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 if test "$emacs_cv_arg6_star" = yes; then
11366 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11369 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11372 CFLAGS
=$late_CFLAGS
11375 ### Start of font-backend (under any platform) section.
11376 # (nothing here yet -- this is a placeholder)
11377 ### End of font-backend (under any platform) section.
11379 ### Start of font-backend (under X11) section.
11380 if test "${HAVE_X11}" = "yes"; then
11384 # Extract the first word of "pkg-config", so it can be a program name with args.
11385 set dummy pkg-config
; ac_word
=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11389 $as_echo_n "(cached) " >&6
11391 case $PKG_CONFIG in
11393 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11397 for as_dir
in $PATH
11400 test -z "$as_dir" && as_dir
=.
11401 for ac_exec_ext
in '' $ac_executable_extensions; do
11402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11403 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11415 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11416 if test -n "$PKG_CONFIG"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11418 $as_echo "$PKG_CONFIG" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11426 if test "$PKG_CONFIG" = "no" ; then
11429 PKG_CONFIG_MIN_VERSION
=0.9.0
11430 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11432 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11434 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436 $as_echo "yes" >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11440 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11441 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11443 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11446 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11447 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11449 $as_echo "$FONTCONFIG_LIBS" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11453 FONTCONFIG_CFLAGS
=""
11455 ## If we have a custom action on failure, don't print errors, but
11456 ## do set a variable so people can do so.
11457 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11464 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11465 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11469 if test $succeeded = yes; then
11476 ## Use -lXft if available, unless `--with-xft=no'.
11478 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11481 if test "x${with_xft}" != "xno"; then
11486 # Extract the first word of "pkg-config", so it can be a program name with args.
11487 set dummy pkg-config
; ac_word
=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11491 $as_echo_n "(cached) " >&6
11493 case $PKG_CONFIG in
11495 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11499 for as_dir
in $PATH
11502 test -z "$as_dir" && as_dir
=.
11503 for ac_exec_ext
in '' $ac_executable_extensions; do
11504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11505 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11517 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11518 if test -n "$PKG_CONFIG"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11520 $as_echo "$PKG_CONFIG" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 if test "$PKG_CONFIG" = "no" ; then
11531 PKG_CONFIG_MIN_VERSION
=0.9.0
11532 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11534 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11536 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11542 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11543 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11545 $as_echo "$XFT_CFLAGS" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11548 $as_echo_n "checking XFT_LIBS... " >&6; }
11549 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11551 $as_echo "$XFT_LIBS" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11557 ## If we have a custom action on failure, don't print errors, but
11558 ## do set a variable so people can do so.
11559 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11566 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11567 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11571 if test $succeeded = yes; then
11577 ## Because xftfont.c uses XRenderQueryExtension, we also
11578 ## need to link to -lXrender.
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11581 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11582 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11583 $as_echo_n "(cached) " >&6
11585 ac_check_lib_save_LIBS
=$LIBS
11586 LIBS
="-lXrender $LIBS"
11587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11596 char XRenderQueryExtension ();
11600 return XRenderQueryExtension ();
11605 if ac_fn_c_try_link
"$LINENO"; then :
11606 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11608 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11610 rm -f core conftest.err conftest.
$ac_objext \
11611 conftest
$ac_exeext conftest.
$ac_ext
11612 LIBS
=$ac_check_lib_save_LIBS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11615 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11616 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11620 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11621 OLD_CPPFLAGS
="$CPPFLAGS"
11622 OLD_CFLAGS
="$CFLAGS"
11624 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11625 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11626 XFT_LIBS
="-lXrender $XFT_LIBS"
11627 LIBS
="$XFT_LIBS $LIBS"
11628 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11629 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11631 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11632 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11633 $as_echo_n "(cached) " >&6
11635 ac_check_lib_save_LIBS
=$LIBS
11636 LIBS
="-lXft $XFT_LIBS $LIBS"
11637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11646 char XftFontOpen ();
11650 return XftFontOpen ();
11655 if ac_fn_c_try_link
"$LINENO"; then :
11656 ac_cv_lib_Xft_XftFontOpen
=yes
11658 ac_cv_lib_Xft_XftFontOpen
=no
11660 rm -f core conftest.err conftest.
$ac_objext \
11661 conftest
$ac_exeext conftest.
$ac_ext
11662 LIBS
=$ac_check_lib_save_LIBS
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11665 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11666 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11674 if test "${HAVE_XFT}" = "yes"; then
11676 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11679 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11681 CPPFLAGS
="$OLD_CPPFLAGS"
11682 CFLAGS
="$OLD_CFLAGS"
11684 fi # "${HAVE_XFT}" = "yes"
11685 fi # "$HAVE_XFT" != no
11686 fi # "x${with_xft}" != "xno"
11688 if test "$HAVE_XFT" != "yes"; then
11692 ## We used to allow building with FreeType and without Xft.
11693 ## However, the ftx font backend driver is not in good shape.
11694 HAVE_FREETYPE
=$HAVE_XFT
11697 if test "${HAVE_FREETYPE}" = "yes"; then
11699 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11701 if test "${with_libotf}" != "no"; then
11705 # Extract the first word of "pkg-config", so it can be a program name with args.
11706 set dummy pkg-config
; ac_word
=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11710 $as_echo_n "(cached) " >&6
11712 case $PKG_CONFIG in
11714 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11718 for as_dir
in $PATH
11721 test -z "$as_dir" && as_dir
=.
11722 for ac_exec_ext
in '' $ac_executable_extensions; do
11723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11736 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11737 if test -n "$PKG_CONFIG"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11739 $as_echo "$PKG_CONFIG" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11747 if test "$PKG_CONFIG" = "no" ; then
11750 PKG_CONFIG_MIN_VERSION
=0.9.0
11751 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11753 $as_echo_n "checking for libotf... " >&6; }
11755 if $PKG_CONFIG --exists "libotf" 2>&5; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757 $as_echo "yes" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11761 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11762 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11764 $as_echo "$LIBOTF_CFLAGS" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11767 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11768 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11770 $as_echo "$LIBOTF_LIBS" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11776 ## If we have a custom action on failure, don't print errors, but
11777 ## do set a variable so people can do so.
11778 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11790 if test $succeeded = yes; then
11796 if test "$HAVE_LIBOTF" = "yes"; then
11798 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11801 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11802 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11803 $as_echo_n "(cached) " >&6
11805 ac_check_lib_save_LIBS
=$LIBS
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11816 char OTF_get_variation_glyphs ();
11820 return OTF_get_variation_glyphs ();
11825 if ac_fn_c_try_link
"$LINENO"; then :
11826 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11828 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11830 rm -f core conftest.err conftest.
$ac_objext \
11831 conftest
$ac_exeext conftest.
$ac_ext
11832 LIBS
=$ac_check_lib_save_LIBS
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11835 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11836 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11837 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11839 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11842 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11844 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11852 if test "${HAVE_LIBOTF}" = yes; then
11853 if test "${with_m17n_flt}" != "no"; then
11857 # Extract the first word of "pkg-config", so it can be a program name with args.
11858 set dummy pkg-config
; ac_word
=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11862 $as_echo_n "(cached) " >&6
11864 case $PKG_CONFIG in
11866 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11870 for as_dir
in $PATH
11873 test -z "$as_dir" && as_dir
=.
11874 for ac_exec_ext
in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11888 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11889 if test -n "$PKG_CONFIG"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11891 $as_echo "$PKG_CONFIG" >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11899 if test "$PKG_CONFIG" = "no" ; then
11902 PKG_CONFIG_MIN_VERSION
=0.9.0
11903 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11905 $as_echo_n "checking for m17n-flt... " >&6; }
11907 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909 $as_echo "yes" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11913 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11914 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11916 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11919 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11920 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11922 $as_echo "$M17N_FLT_LIBS" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11928 ## If we have a custom action on failure, don't print errors, but
11929 ## do set a variable so people can do so.
11930 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11942 if test $succeeded = yes; then
11948 if test "$HAVE_M17N_FLT" = "yes"; then
11950 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11962 ### End of font-backend (under X11) section.
11973 ### Use -lXpm if available, unless `--with-xpm=no'.
11976 if test "${HAVE_X11}" = "yes"; then
11977 if test "${with_xpm}" != "no"; then
11978 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11979 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11981 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11982 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11983 $as_echo_n "(cached) " >&6
11985 ac_check_lib_save_LIBS
=$LIBS
11986 LIBS
="-lXpm -lX11 $LIBS"
11987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11996 char XpmReadFileToPixmap ();
12000 return XpmReadFileToPixmap ();
12005 if ac_fn_c_try_link
"$LINENO"; then :
12006 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12008 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12010 rm -f core conftest.err conftest.
$ac_objext \
12011 conftest
$ac_exeext conftest.
$ac_ext
12012 LIBS
=$ac_check_lib_save_LIBS
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12015 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12016 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
12023 if test "${HAVE_XPM}" = "yes"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12025 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 #include "X11/xpm.h"
12029 #ifndef XpmReturnAllocPixels
12030 no_return_alloc_pixels
12034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12035 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12043 if test "${HAVE_XPM}" = "yes"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12053 if test "${HAVE_XPM}" = "yes"; then
12055 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12062 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12065 if test "${HAVE_X11}" = "yes"; then
12066 if test "${with_jpeg}" != "no"; then
12067 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12068 if test "x$ac_cv_header_jerror_h" = xyes
; then :
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12070 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12071 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
12072 $as_echo_n "(cached) " >&6
12074 ac_check_lib_save_LIBS
=$LIBS
12075 LIBS
="-ljpeg $LIBS"
12076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12085 char jpeg_destroy_compress ();
12089 return jpeg_destroy_compress ();
12094 if ac_fn_c_try_link
"$LINENO"; then :
12095 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12097 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12099 rm -f core conftest.err conftest.
$ac_objext \
12100 conftest
$ac_exeext conftest.
$ac_ext
12101 LIBS
=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12104 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12105 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
12114 if test "${HAVE_JPEG}" = "yes"; then
12115 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 #include <jpeglib.h>
12120 version=JPEG_LIB_VERSION
12123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12124 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12125 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12129 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12135 if test "${HAVE_JPEG}" = "yes"; then
12141 ### Use -lpng if available, unless `--with-png=no'.
12144 if test "${HAVE_X11}" = "yes"; then
12145 if test "${with_png}" != "no"; then
12146 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12147 # in /usr/include/libpng.
12148 for ac_header
in png.h libpng
/png.h
12150 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12151 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12152 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12153 cat >>confdefs.h
<<_ACEOF
12154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12161 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12163 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12164 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
12165 $as_echo_n "(cached) " >&6
12167 ac_check_lib_save_LIBS
=$LIBS
12168 LIBS
="-lpng -lz -lm $LIBS"
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12178 char png_get_channels ();
12182 return png_get_channels ();
12187 if ac_fn_c_try_link
"$LINENO"; then :
12188 ac_cv_lib_png_png_get_channels
=yes
12190 ac_cv_lib_png_png_get_channels
=no
12192 rm -f core conftest.err conftest.
$ac_objext \
12193 conftest
$ac_exeext conftest.
$ac_ext
12194 LIBS
=$ac_check_lib_save_LIBS
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12197 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12198 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
12205 if test "${HAVE_PNG}" = "yes"; then
12207 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12209 LIBPNG
="-lpng -lz -lm"
12214 ### Use -ltiff if available, unless `--with-tiff=no'.
12217 if test "${HAVE_X11}" = "yes"; then
12218 if test "${with_tiff}" != "no"; then
12219 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12220 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12222 # At least one tiff package requires the jpeg library.
12223 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12225 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12226 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_check_lib_save_LIBS
=$LIBS
12230 LIBS
="-ltiff $tifflibs $LIBS"
12231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12240 char TIFFGetVersion ();
12244 return TIFFGetVersion ();
12249 if ac_fn_c_try_link
"$LINENO"; then :
12250 ac_cv_lib_tiff_TIFFGetVersion
=yes
12252 ac_cv_lib_tiff_TIFFGetVersion
=no
12254 rm -f core conftest.err conftest.
$ac_objext \
12255 conftest
$ac_exeext conftest.
$ac_ext
12256 LIBS
=$ac_check_lib_save_LIBS
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12259 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12260 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12269 if test "${HAVE_TIFF}" = "yes"; then
12271 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12278 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12281 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12282 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12283 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12284 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12285 # Earlier versions can crash Emacs.
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12287 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12288 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12289 $as_echo_n "(cached) " >&6
12291 ac_check_lib_save_LIBS
=$LIBS
12293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12302 char EGifPutExtensionLast ();
12306 return EGifPutExtensionLast ();
12311 if ac_fn_c_try_link
"$LINENO"; then :
12312 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12314 ac_cv_lib_gif_EGifPutExtensionLast
=no
12316 rm -f core conftest.err conftest.
$ac_objext \
12317 conftest
$ac_exeext conftest.
$ac_ext
12318 LIBS
=$ac_check_lib_save_LIBS
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12321 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12322 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12332 if test "$HAVE_GIF" = yes; then
12334 elif test "$HAVE_GIF" = maybe
; then
12335 # If gif_lib.h but no libgif, try libungif.
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12337 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12338 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12339 $as_echo_n "(cached) " >&6
12341 ac_check_lib_save_LIBS
=$LIBS
12342 LIBS
="-lungif $LIBS"
12343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12352 char EGifPutExtensionLast ();
12356 return EGifPutExtensionLast ();
12361 if ac_fn_c_try_link
"$LINENO"; then :
12362 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12364 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12366 rm -f core conftest.err conftest.
$ac_objext \
12367 conftest
$ac_exeext conftest.
$ac_ext
12368 LIBS
=$ac_check_lib_save_LIBS
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12371 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12372 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12378 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12381 if test "${HAVE_GIF}" = "yes"; then
12383 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12389 if test "${HAVE_X11}" = "yes"; then
12392 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12393 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12394 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12395 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12396 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12397 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12398 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12399 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12400 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12401 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12403 if test "X${MISSING}" != X
; then
12404 as_fn_error $?
"The following required libraries were not found:
12406 Maybe some development libraries/packages are missing?
12407 If you don't want to link with them give
12409 as options to configure" "$LINENO" 5
12413 ### Use -lgpm if available, unless `--with-gpm=no'.
12417 if test "${with_gpm}" != "no"; then
12418 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12419 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12421 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12422 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12423 $as_echo_n "(cached) " >&6
12425 ac_check_lib_save_LIBS
=$LIBS
12427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12430 /* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12440 return Gpm_Open ();
12445 if ac_fn_c_try_link
"$LINENO"; then :
12446 ac_cv_lib_gpm_Gpm_Open
=yes
12448 ac_cv_lib_gpm_Gpm_Open
=no
12450 rm -f core conftest.err conftest.
$ac_objext \
12451 conftest
$ac_exeext conftest.
$ac_ext
12452 LIBS
=$ac_check_lib_save_LIBS
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12455 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12456 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12464 if test "${HAVE_GPM}" = "yes"; then
12466 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12469 ## May be reset below.
12470 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12475 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12476 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12478 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12485 ### Use NeXTstep API to implement GUI.
12486 if test "${HAVE_NS}" = "yes"; then
12488 $as_echo "#define HAVE_NS 1" >>confdefs.h
12490 if test "${NS_IMPL_COCOA}" = "yes"; then
12492 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12496 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12498 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12500 # See also .m.o rule in Makefile.in */
12501 # FIXME: are all these flags really needed? Document here why. */
12502 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12503 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12505 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12507 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12510 # We also have mouse menus.
12516 ### Use session management (-lSM -lICE) if available
12519 if test "${HAVE_X11}" = "yes"; then
12520 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12521 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12523 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12524 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12525 $as_echo_n "(cached) " >&6
12527 ac_check_lib_save_LIBS
=$LIBS
12528 LIBS
="-lSM -lICE $LIBS"
12529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12538 char SmcOpenConnection ();
12542 return SmcOpenConnection ();
12547 if ac_fn_c_try_link
"$LINENO"; then :
12548 ac_cv_lib_SM_SmcOpenConnection
=yes
12550 ac_cv_lib_SM_SmcOpenConnection
=no
12552 rm -f core conftest.err conftest.
$ac_objext \
12553 conftest
$ac_exeext conftest.
$ac_ext
12554 LIBS
=$ac_check_lib_save_LIBS
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12557 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12558 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12566 if test "${HAVE_X_SM}" = "yes"; then
12568 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12570 LIBXSM
="-lSM -lICE"
12573 *) LIBS
="$LIBXSM $LIBS" ;;
12579 ### Use libxml (-lxml2) if available
12580 if test "${with_xml2}" != "no"; then
12581 ### I'm not sure what the version number should be, so I just guessed.
12585 # Extract the first word of "pkg-config", so it can be a program name with args.
12586 set dummy pkg-config
; ac_word
=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 case $PKG_CONFIG in
12594 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12598 for as_dir
in $PATH
12601 test -z "$as_dir" && as_dir
=.
12602 for ac_exec_ext
in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12616 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12617 if test -n "$PKG_CONFIG"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12619 $as_echo "$PKG_CONFIG" >&6; }
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12627 if test "$PKG_CONFIG" = "no" ; then
12630 PKG_CONFIG_MIN_VERSION
=0.9.0
12631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12633 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12635 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12641 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12642 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12644 $as_echo "$LIBXML2_CFLAGS" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12647 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12648 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12650 $as_echo "$LIBXML2_LIBS" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12656 ## If we have a custom action on failure, don't print errors, but
12657 ## do set a variable so people can do so.
12658 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12670 if test $succeeded = yes; then
12676 if test "${HAVE_LIBXML2}" = "yes"; then
12677 LIBS
="$LIBXML2_LIBS $LIBS"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12679 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12680 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12681 $as_echo_n "(cached) " >&6
12683 ac_check_lib_save_LIBS
=$LIBS
12684 LIBS
="-lxml2 $LIBS"
12685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12694 char htmlReadMemory ();
12698 return htmlReadMemory ();
12703 if ac_fn_c_try_link
"$LINENO"; then :
12704 ac_cv_lib_xml2_htmlReadMemory
=yes
12706 ac_cv_lib_xml2_htmlReadMemory
=no
12708 rm -f core conftest.err conftest.
$ac_objext \
12709 conftest
$ac_exeext conftest.
$ac_ext
12710 LIBS
=$ac_check_lib_save_LIBS
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12713 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12714 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12720 if test "${HAVE_LIBXML2}" = "yes"; then
12722 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12733 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12735 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12736 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12737 $as_echo_n "(cached) " >&6
12739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12750 if ac_fn_c_try_link
"$LINENO"; then :
12751 emacs_cv_netdb_declares_h_errno
=yes
12753 emacs_cv_netdb_declares_h_errno
=no
12755 rm -f core conftest.err conftest.
$ac_objext \
12756 conftest
$ac_exeext conftest.
$ac_ext
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12759 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12760 if test $emacs_cv_netdb_declares_h_errno = yes; then
12762 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12766 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12767 if test "x$ac_cv_type_size_t" = xyes
; then :
12771 cat >>confdefs.h
<<_ACEOF
12772 #define size_t unsigned int
12777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12778 # for constant arguments. Useless!
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12780 $as_echo_n "checking for working alloca.h... " >&6; }
12781 if ${ac_cv_working_alloca_h+:} false
; then :
12782 $as_echo_n "(cached) " >&6
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <alloca.h>
12790 char *p = (char *) alloca (2 * sizeof (int));
12796 if ac_fn_c_try_link
"$LINENO"; then :
12797 ac_cv_working_alloca_h
=yes
12799 ac_cv_working_alloca_h
=no
12801 rm -f core conftest.err conftest.
$ac_objext \
12802 conftest
$ac_exeext conftest.
$ac_ext
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12805 $as_echo "$ac_cv_working_alloca_h" >&6; }
12806 if test $ac_cv_working_alloca_h = yes; then
12808 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12813 $as_echo_n "checking for alloca... " >&6; }
12814 if ${ac_cv_func_alloca_works+:} false
; then :
12815 $as_echo_n "(cached) " >&6
12817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12820 # define alloca __builtin_alloca
12823 # include <malloc.h>
12824 # define alloca _alloca
12826 # ifdef HAVE_ALLOCA_H
12827 # include <alloca.h>
12832 # ifndef alloca /* predefined by HP cc +Olibcalls */
12833 void *alloca (size_t);
12843 char *p = (char *) alloca (1);
12849 if ac_fn_c_try_link
"$LINENO"; then :
12850 ac_cv_func_alloca_works
=yes
12852 ac_cv_func_alloca_works
=no
12854 rm -f core conftest.err conftest.
$ac_objext \
12855 conftest
$ac_exeext conftest.
$ac_ext
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12858 $as_echo "$ac_cv_func_alloca_works" >&6; }
12860 if test $ac_cv_func_alloca_works = yes; then
12862 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12865 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12866 # that cause trouble. Some versions do not even contain alloca or
12867 # contain a buggy version. If you still want to use their alloca,
12868 # use ar to extract alloca.o from them instead of compiling alloca.c.
12870 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12872 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12876 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12877 if ${ac_cv_os_cray+:} false
; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #if defined CRAY && ! defined CRAY2
12889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12890 $EGREP "webecray" >/dev
/null
2>&1; then :
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12899 $as_echo "$ac_cv_os_cray" >&6; }
12900 if test $ac_cv_os_cray = yes; then
12901 for ac_func
in _getb67 GETB67 getb67
; do
12902 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12904 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12906 cat >>confdefs.h
<<_ACEOF
12907 #define CRAY_STACKSEG_END $ac_func
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12917 $as_echo_n "checking stack direction for C alloca... " >&6; }
12918 if ${ac_cv_c_stack_direction+:} false
; then :
12919 $as_echo_n "(cached) " >&6
12921 if test "$cross_compiling" = yes; then :
12922 ac_cv_c_stack_direction
=0
12924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 $ac_includes_default
12928 find_stack_direction ()
12930 static char *addr = 0;
12935 return find_stack_direction ();
12938 return (&dummy > addr) ? 1 : -1;
12944 return find_stack_direction () < 0;
12947 if ac_fn_c_try_run
"$LINENO"; then :
12948 ac_cv_c_stack_direction
=1
12950 ac_cv_c_stack_direction
=-1
12952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12958 $as_echo "$ac_cv_c_stack_direction" >&6; }
12959 cat >>confdefs.h
<<_ACEOF
12960 #define STACK_DIRECTION $ac_cv_c_stack_direction
12967 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12968 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12971 # fmod, logb, and frexp are found in -lm on most systems.
12972 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12974 $as_echo_n "checking for sqrt in -lm... " >&6; }
12975 if ${ac_cv_lib_m_sqrt+:} false
; then :
12976 $as_echo_n "(cached) " >&6
12978 ac_check_lib_save_LIBS
=$LIBS
12980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12998 if ac_fn_c_try_link
"$LINENO"; then :
12999 ac_cv_lib_m_sqrt
=yes
13001 ac_cv_lib_m_sqrt
=no
13003 rm -f core conftest.err conftest.
$ac_objext \
13004 conftest
$ac_exeext conftest.
$ac_ext
13005 LIBS
=$ac_check_lib_save_LIBS
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13008 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13009 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
13010 cat >>confdefs.h
<<_ACEOF
13011 #define HAVE_LIBM 1
13019 # Check for mail-locking functions in a "mail" library. Probably this should
13020 # have the same check as for liblockfile below.
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13022 $as_echo_n "checking for maillock in -lmail... " >&6; }
13023 if ${ac_cv_lib_mail_maillock+:} false
; then :
13024 $as_echo_n "(cached) " >&6
13026 ac_check_lib_save_LIBS
=$LIBS
13027 LIBS
="-lmail $LIBS"
13028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13031 /* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13041 return maillock ();
13046 if ac_fn_c_try_link
"$LINENO"; then :
13047 ac_cv_lib_mail_maillock
=yes
13049 ac_cv_lib_mail_maillock
=no
13051 rm -f core conftest.err conftest.
$ac_objext \
13052 conftest
$ac_exeext conftest.
$ac_ext
13053 LIBS
=$ac_check_lib_save_LIBS
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13056 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13057 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13063 if test $have_mail = yes; then
13065 LIBS
="$LIBS_MAIL $LIBS"
13067 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13073 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13074 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13075 $as_echo_n "(cached) " >&6
13077 ac_check_lib_save_LIBS
=$LIBS
13078 LIBS
="-llockfile $LIBS"
13079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13092 return maillock ();
13097 if ac_fn_c_try_link
"$LINENO"; then :
13098 ac_cv_lib_lockfile_maillock
=yes
13100 ac_cv_lib_lockfile_maillock
=no
13102 rm -f core conftest.err conftest.
$ac_objext \
13103 conftest
$ac_exeext conftest.
$ac_ext
13104 LIBS
=$ac_check_lib_save_LIBS
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13107 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13108 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13114 if test $have_lockfile = yes; then
13115 LIBS_MAIL
=-llockfile
13116 LIBS
="$LIBS_MAIL $LIBS"
13118 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13121 # If we have the shared liblockfile, assume we must use it for mail
13122 # locking (e.g. Debian). If we couldn't link against liblockfile
13123 # (no liblockfile.a installed), ensure that we don't need to.
13124 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13125 set dummy liblockfile.so
; ac_word
=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_prog_liblockfile+:} false
; then :
13129 $as_echo_n "(cached) " >&6
13131 if test -n "$liblockfile"; then
13132 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13135 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13136 for as_dir
in $as_dummy
13139 test -z "$as_dir" && as_dir
=.
13140 for ac_exec_ext
in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_prog_liblockfile
="yes"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13153 liblockfile
=$ac_cv_prog_liblockfile
13154 if test -n "$liblockfile"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13156 $as_echo "$liblockfile" >&6; }
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13163 if test $ac_cv_prog_liblockfile = yes; then
13164 as_fn_error $?
"Shared liblockfile found but can't link against it.
13165 This probably means that movemail could lose mail.
13166 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13169 for ac_func
in touchlock
13171 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13172 if test "x$ac_cv_func_touchlock" = xyes
; then :
13173 cat >>confdefs.h
<<_ACEOF
13174 #define HAVE_TOUCHLOCK 1
13180 for ac_header
in maillock.h
13182 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_maillock_h" = xyes
; then :
13184 cat >>confdefs.h
<<_ACEOF
13185 #define HAVE_MAILLOCK_H 1
13194 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13195 ## interlock access to the mail spool. The alternative is a lock file named
13196 ## /usr/spool/mail/$USER.lock.
13199 aix4-2
) mail_lock
="lockf" ;;
13201 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13203 ## On GNU/Linux systems, both methods are used by various mail programs.
13204 ## I assume most people are using newer mailers that have heard of flock.
13205 ## Change this if you need to.
13206 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13207 ## configure gets the right answers, and that means *NOT* using flock.
13208 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13209 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13210 ## Debian maintainer hasn't provided a clean fix for Emacs.
13211 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13212 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13213 ## correct logic. -- fx
13214 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13215 ## liblockfile is a Free Software replacement for libmail, used on
13216 ## Debian systems and elsewhere. -rfr.
13219 if test $have_mail = yes ||
test $have_lockfile = yes; then
13220 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13226 case "$mail_lock" in
13228 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13232 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13235 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13240 for ac_func
in gethostname getdomainname dup2 \
13241 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13242 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13243 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13244 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13245 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13246 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13247 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13248 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13249 cfmakeraw cfsetspeed isnan copysign __executable_start
13251 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13252 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13253 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13254 cat >>confdefs.h
<<_ACEOF
13255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13263 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13264 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13265 $as_echo_n "(cached) " >&6
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13273 __builtin_unwind_init ();
13278 if ac_fn_c_try_link
"$LINENO"; then :
13279 emacs_cv_func___builtin_unwind_init
=yes
13281 emacs_cv_func___builtin_unwind_init
=no
13283 rm -f core conftest.err conftest.
$ac_objext \
13284 conftest
$ac_exeext conftest.
$ac_ext
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13287 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13288 if test $emacs_cv_func___builtin_unwind_init = yes; then
13290 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13294 for ac_header
in sys
/un.h
13296 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13297 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13298 cat >>confdefs.h
<<_ACEOF
13299 #define HAVE_SYS_UN_H 1
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13308 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13309 if ${ac_cv_sys_largefile_source+:} false
; then :
13310 $as_echo_n "(cached) " >&6
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #include <sys/types.h> /* for off_t */
13320 int (*fp) (FILE *, off_t, int) = fseeko;
13321 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13326 if ac_fn_c_try_link
"$LINENO"; then :
13327 ac_cv_sys_largefile_source
=no
; break
13329 rm -f core conftest.err conftest.
$ac_objext \
13330 conftest
$ac_exeext conftest.
$ac_ext
13331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #define _LARGEFILE_SOURCE 1
13334 #include <sys/types.h> /* for off_t */
13339 int (*fp) (FILE *, off_t, int) = fseeko;
13340 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13345 if ac_fn_c_try_link
"$LINENO"; then :
13346 ac_cv_sys_largefile_source
=1; break
13348 rm -f core conftest.err conftest.
$ac_objext \
13349 conftest
$ac_exeext conftest.
$ac_ext
13350 ac_cv_sys_largefile_source
=unknown
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13355 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13356 case $ac_cv_sys_largefile_source in #(
13359 cat >>confdefs.h
<<_ACEOF
13360 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13366 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13367 # in glibc 2.1.3, but that breaks too many other things.
13368 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13369 if test $ac_cv_sys_largefile_source != unknown
; then
13371 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13377 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13378 if ${ac_cv_func_getpgrp_void+:} false
; then :
13379 $as_echo_n "(cached) " >&6
13381 # Use it with a single arg.
13382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 $ac_includes_default
13393 if ac_fn_c_try_compile
"$LINENO"; then :
13394 ac_cv_func_getpgrp_void
=no
13396 ac_cv_func_getpgrp_void
=yes
13398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13402 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13403 if test $ac_cv_func_getpgrp_void = yes; then
13405 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13410 # Configure gnulib.
13421 LIBC_FATAL_STDERR_
=1
13422 export LIBC_FATAL_STDERR_
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13426 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13427 if ${ac_cv_c_bigendian+:} false
; then :
13428 $as_echo_n "(cached) " >&6
13430 ac_cv_c_bigendian
=unknown
13431 # See if we're dealing with a universal compiler.
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #ifndef __APPLE_CC__
13435 not a universal capable compiler
13440 if ac_fn_c_try_compile
"$LINENO"; then :
13442 # Check for potential -arch flags. It is not universal unless
13443 # there are at least two -arch flags with different values.
13446 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13447 if test -n "$ac_prev"; then
13449 i?
86 | x86_64 | ppc | ppc64
)
13450 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13453 ac_cv_c_bigendian
=universal
13459 elif test "x$ac_word" = "x-arch"; then
13464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13465 if test $ac_cv_c_bigendian = unknown
; then
13466 # See if sys/param.h defines the BYTE_ORDER macro.
13467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 #include <sys/types.h>
13470 #include <sys/param.h>
13475 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13476 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13478 bogus endian macros
13485 if ac_fn_c_try_compile
"$LINENO"; then :
13486 # It does; now see whether it defined to BIG_ENDIAN or not.
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #include <sys/types.h>
13490 #include <sys/param.h>
13495 #if BYTE_ORDER != BIG_ENDIAN
13503 if ac_fn_c_try_compile
"$LINENO"; then :
13504 ac_cv_c_bigendian
=yes
13506 ac_cv_c_bigendian
=no
13508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13512 if test $ac_cv_c_bigendian = unknown
; then
13513 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 #include <limits.h>
13521 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13522 bogus endian macros
13529 if ac_fn_c_try_compile
"$LINENO"; then :
13530 # It does; now see whether it defined to _BIG_ENDIAN or not.
13531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #include <limits.h>
13538 #ifndef _BIG_ENDIAN
13546 if ac_fn_c_try_compile
"$LINENO"; then :
13547 ac_cv_c_bigendian
=yes
13549 ac_cv_c_bigendian
=no
13551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13555 if test $ac_cv_c_bigendian = unknown
; then
13556 # Compile a test program.
13557 if test "$cross_compiling" = yes; then :
13558 # Try to guess by grepping values from an object file.
13559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 short int ascii_mm[] =
13562 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13563 short int ascii_ii[] =
13564 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13565 int use_ascii (int i) {
13566 return ascii_mm[i] + ascii_ii[i];
13568 short int ebcdic_ii[] =
13569 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13570 short int ebcdic_mm[] =
13571 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13572 int use_ebcdic (int i) {
13573 return ebcdic_mm[i] + ebcdic_ii[i];
13580 return use_ascii (foo) == use_ebcdic (foo);
13585 if ac_fn_c_try_compile
"$LINENO"; then :
13586 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13587 ac_cv_c_bigendian
=yes
13589 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13590 if test "$ac_cv_c_bigendian" = unknown
; then
13591 ac_cv_c_bigendian
=no
13593 # finding both strings is unlikely to happen, but who knows?
13594 ac_cv_c_bigendian
=unknown
13598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 $ac_includes_default
13607 /* Are we little or big endian? From Harbison&Steele. */
13611 char c[sizeof (long int)];
13614 return u.c[sizeof (long int) - 1] == 1;
13620 if ac_fn_c_try_run
"$LINENO"; then :
13621 ac_cv_c_bigendian
=no
13623 ac_cv_c_bigendian
=yes
13625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13632 $as_echo "$ac_cv_c_bigendian" >&6; }
13633 case $ac_cv_c_bigendian in #(
13635 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13641 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13645 as_fn_error $?
"unknown endianness
13646 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13651 $as_echo_n "checking for inline... " >&6; }
13652 if ${ac_cv_c_inline+:} false
; then :
13653 $as_echo_n "(cached) " >&6
13656 for ac_kw
in inline __inline__ __inline
; do
13657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 #ifndef __cplusplus
13661 static $ac_kw foo_t static_foo () {return 0; }
13662 $ac_kw foo_t foo () {return 0; }
13666 if ac_fn_c_try_compile
"$LINENO"; then :
13667 ac_cv_c_inline
=$ac_kw
13669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13670 test "$ac_cv_c_inline" != no
&& break
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13675 $as_echo "$ac_cv_c_inline" >&6; }
13677 case $ac_cv_c_inline in
13680 case $ac_cv_c_inline in
13682 *) ac_val
=$ac_cv_c_inline;;
13684 cat >>confdefs.h
<<_ACEOF
13685 #ifndef __cplusplus
13686 #define inline $ac_val
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13694 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13695 if ${gl_cv_func_c99_strtold+:} false
; then :
13696 $as_echo_n "(cached) " >&6
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 /* On HP-UX before 11.23, strtold returns a struct instead of
13701 long double. Reject implementations like that, by requiring
13702 compatibility with the C99 prototype. */
13703 #include <stdlib.h>
13704 static long double (*p) (char const *, char **) = strtold;
13706 test (char const *nptr, char **endptr)
13709 r = strtold (nptr, endptr);
13715 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13720 if ac_fn_c_try_link
"$LINENO"; then :
13721 gl_cv_func_c99_strtold
=yes
13723 gl_cv_func_c99_strtold
=no
13725 rm -f core conftest.err conftest.
$ac_objext \
13726 conftest
$ac_exeext conftest.
$ac_ext
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13729 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13730 if test $gl_cv_func_c99_strtold = yes; then
13732 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13737 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13738 if ${ac_cv_struct_st_dm_mode+:} false
; then :
13739 $as_echo_n "(cached) " >&6
13741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 #include <sys/types.h>
13745 #include <sys/stat.h>
13749 struct stat s; s.st_dm_mode;
13754 if ac_fn_c_try_compile
"$LINENO"; then :
13755 ac_cv_struct_st_dm_mode
=yes
13757 ac_cv_struct_st_dm_mode
=no
13759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13762 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13764 if test $ac_cv_struct_st_dm_mode = yes; then
13766 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13771 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13772 if test "x$ac_cv_have_decl_strmode" = xyes
; then :
13778 cat >>confdefs.h
<<_ACEOF
13779 #define HAVE_DECL_STRMODE $ac_have_decl
13785 GNULIB_CALLOC_POSIX
=0;
13786 GNULIB_CANONICALIZE_FILE_NAME
=0;
13787 GNULIB_GETLOADAVG
=0;
13788 GNULIB_GETSUBOPT
=0;
13790 GNULIB_MALLOC_POSIX
=0;
13794 GNULIB_MKOSTEMPS
=0;
13800 GNULIB_REALLOC_POSIX
=0;
13807 GNULIB_SYSTEM_POSIX
=0;
13813 HAVE_CANONICALIZE_FILE_NAME
=1;
13814 HAVE_DECL_GETLOADAVG
=1;
13828 HAVE_DECL_SETENV
=1;
13832 HAVE_STRUCT_RANDOM_DATA
=1;
13833 HAVE_SYS_LOADAVG_H
=0;
13835 HAVE_DECL_UNSETENV
=1;
13837 REPLACE_CANONICALIZE_FILE_NAME
=0;
13843 REPLACE_REALPATH
=0;
13846 REPLACE_UNSETENV
=0;
13855 GNULIB_EUIDACCESS
=0;
13856 GNULIB_FACCESSAT
=0;
13860 GNULIB_FTRUNCATE
=0;
13862 GNULIB_GETDOMAINNAME
=0;
13863 GNULIB_GETDTABLESIZE
=0;
13864 GNULIB_GETGROUPS
=0;
13865 GNULIB_GETHOSTNAME
=0;
13867 GNULIB_GETLOGIN_R
=0;
13868 GNULIB_GETPAGESIZE
=0;
13869 GNULIB_GETUSERSHELL
=0;
13879 GNULIB_READLINKAT
=0;
13883 GNULIB_SYMLINKAT
=0;
13884 GNULIB_TTYNAME_R
=0;
13885 GNULIB_UNISTD_H_GETOPT
=0;
13886 GNULIB_UNISTD_H_SIGPIPE
=0;
13900 HAVE_GETDTABLESIZE
=1;
13902 HAVE_GETHOSTNAME
=1;
13904 HAVE_GETPAGESIZE
=1;
13919 HAVE_DECL_ENVIRON
=1;
13920 HAVE_DECL_FCHDIR
=1;
13921 HAVE_DECL_GETDOMAINNAME
=1;
13922 HAVE_DECL_GETLOGIN_R
=1;
13923 HAVE_DECL_GETPAGESIZE
=1;
13924 HAVE_DECL_GETUSERSHELL
=1;
13925 HAVE_DECL_TTYNAME_R
=1;
13927 HAVE_SYS_PARAM_H
=0;
13932 REPLACE_FCHOWNAT
=0;
13934 REPLACE_GETDOMAINNAME
=0;
13935 REPLACE_GETLOGIN_R
=0;
13936 REPLACE_GETGROUPS
=0;
13937 REPLACE_GETPAGESIZE
=0;
13944 REPLACE_READLINK
=0;
13948 REPLACE_TTYNAME_R
=0;
13950 REPLACE_UNLINKAT
=0;
13953 UNISTD_H_HAVE_WINSOCK2_H
=0;
13954 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13960 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13961 if ${gl_cv_have_include_next+:} false
; then :
13962 $as_echo_n "(cached) " >&6
13964 rm -rf conftestd1a conftestd1b conftestd2
13965 mkdir conftestd1a conftestd1b conftestd2
13966 cat <<EOF > conftestd1a/conftest.h
13967 #define DEFINED_IN_CONFTESTD1
13968 #include_next <conftest.h>
13969 #ifdef DEFINED_IN_CONFTESTD2
13972 #error "include_next doesn't work"
13975 cat <<EOF > conftestd1b/conftest.h
13976 #define DEFINED_IN_CONFTESTD1
13978 #include_next <conftest.h>
13979 #ifdef DEFINED_IN_CONFTESTD2
13982 #error "include_next doesn't work"
13985 cat <<EOF > conftestd2/conftest.h
13986 #ifndef DEFINED_IN_CONFTESTD1
13987 #error "include_next test doesn't work"
13989 #define DEFINED_IN_CONFTESTD2
13991 gl_save_CPPFLAGS
="$CPPFLAGS"
13992 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 #include <conftest.h>
13997 if ac_fn_c_try_compile
"$LINENO"; then :
13998 gl_cv_have_include_next
=yes
14000 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 #include <conftest.h>
14005 if ac_fn_c_try_compile
"$LINENO"; then :
14006 gl_cv_have_include_next
=buggy
14008 gl_cv_have_include_next
=no
14010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14014 CPPFLAGS
="$gl_save_CPPFLAGS"
14015 rm -rf conftestd1a conftestd1b conftestd2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14019 $as_echo "$gl_cv_have_include_next" >&6; }
14020 PRAGMA_SYSTEM_HEADER
=
14021 if test $gl_cv_have_include_next = yes; then
14022 INCLUDE_NEXT
=include_next
14023 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14024 if test -n "$GCC"; then
14025 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14028 if test $gl_cv_have_include_next = buggy
; then
14029 INCLUDE_NEXT
=include
14030 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14032 INCLUDE_NEXT
=include
14033 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14040 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14041 if ${gl_cv_pragma_columns+:} false
; then :
14042 $as_echo_n "(cached) " >&6
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14053 $EGREP "choke me" >/dev
/null
2>&1; then :
14054 gl_cv_pragma_columns
=yes
14056 gl_cv_pragma_columns
=no
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14063 $as_echo "$gl_cv_pragma_columns" >&6; }
14064 if test $gl_cv_pragma_columns = yes; then
14065 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14086 if test $gl_cv_have_include_next = yes; then
14087 gl_cv_next_getopt_h
='<'getopt.h
'>'
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14090 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14091 if ${gl_cv_next_getopt_h+:} false
; then :
14092 $as_echo_n "(cached) " >&6
14095 if test $ac_cv_header_getopt_h = yes; then
14098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 #include <getopt.h>
14104 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14105 *) gl_absname_cpp
="$ac_cpp" ;;
14107 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14108 sed -n '\#/getopt.h#{
14109 s#.*"\(.*/getopt.h\)".*#\1#
14115 gl_cv_next_getopt_h
='<'getopt.h
'>'
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14121 $as_echo "$gl_cv_next_getopt_h" >&6; }
14123 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14125 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14126 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14127 gl_next_as_first_directive
='<'getopt.h
'>'
14129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14130 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14132 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14137 if test $ac_cv_header_getopt_h = yes; then
14146 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14147 for ac_header
in getopt.h
14149 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14150 if test "x$ac_cv_header_getopt_h" = xyes
; then :
14151 cat >>confdefs.h
<<_ACEOF
14152 #define HAVE_GETOPT_H 1
14156 gl_replace_getopt
=yes
14163 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14164 for ac_func
in getopt_long_only
14166 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14167 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
14168 cat >>confdefs.h
<<_ACEOF
14169 #define HAVE_GETOPT_LONG_ONLY 1
14173 gl_replace_getopt
=yes
14179 if test -z "$gl_replace_getopt"; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14181 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14182 if ${gl_cv_func_getopt_posix+:} false
; then :
14183 $as_echo_n "(cached) " >&6
14186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <unistd.h>
14192 int *p = &optreset; return optreset;
14197 if ac_fn_c_try_compile
"$LINENO"; then :
14200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202 #include <getopt.h>
14206 return !getopt_clip;
14211 if ac_fn_c_try_compile
"$LINENO"; then :
14216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14220 gl_save_CPPFLAGS
=$CPPFLAGS
14221 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14222 if test "$cross_compiling" = yes; then :
14224 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14225 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14226 *) gl_cv_func_getopt_posix
="guessing yes";;
14230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14233 #include <unistd.h>
14234 #include <stdlib.h>
14235 #include <string.h>
14245 argv[argc++] = "program";
14246 argv[argc++] = "-a";
14247 argv[argc++] = "foo";
14248 argv[argc++] = "bar";
14250 optind = OPTIND_MIN;
14253 c = getopt (argc, argv, "ab");
14256 c = getopt (argc, argv, "ab");
14259 if (!(optind == 2))
14262 /* Some internal state exists at this point. */
14268 argv[argc++] = "program";
14269 argv[argc++] = "donald";
14270 argv[argc++] = "-p";
14271 argv[argc++] = "billy";
14272 argv[argc++] = "duck";
14273 argv[argc++] = "-a";
14274 argv[argc++] = "bar";
14276 optind = OPTIND_MIN;
14279 c = getopt (argc, argv, "+abp:q:");
14282 if (!(strcmp (argv[0], "program") == 0))
14284 if (!(strcmp (argv[1], "donald") == 0))
14286 if (!(strcmp (argv[2], "-p") == 0))
14288 if (!(strcmp (argv[3], "billy") == 0))
14290 if (!(strcmp (argv[4], "duck") == 0))
14292 if (!(strcmp (argv[5], "-a") == 0))
14294 if (!(strcmp (argv[6], "bar") == 0))
14296 if (!(optind == 1))
14299 /* Detect MacOS 10.5, AIX 7.1 bug. */
14301 char *argv[3] = { "program", "-ab", NULL };
14302 optind = OPTIND_MIN;
14304 if (getopt (2, argv, "ab:") != 'a')
14306 if (getopt (2, argv, "ab:") != '?')
14318 if ac_fn_c_try_run
"$LINENO"; then :
14319 gl_cv_func_getopt_posix
=yes
14321 gl_cv_func_getopt_posix
=no
14323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14327 CPPFLAGS
=$gl_save_CPPFLAGS
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14331 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14332 case "$gl_cv_func_getopt_posix" in
14333 *no
) gl_replace_getopt
=yes ;;
14337 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14339 $as_echo_n "checking for working GNU getopt function... " >&6; }
14340 if ${gl_cv_func_getopt_gnu+:} false
; then :
14341 $as_echo_n "(cached) " >&6
14343 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14344 # optstring is necessary for programs like m4 that have POSIX-mandated
14345 # semantics for supporting options interspersed with files.
14346 # Also, since getopt_long is a GNU extension, we require optind=0.
14347 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14348 # so take care to revert to the correct (non-)export state.
14349 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14350 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14351 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14352 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14353 *) gl_had_POSIXLY_CORRECT
= ;;
14356 export POSIXLY_CORRECT
14357 if test "$cross_compiling" = yes; then :
14358 case $host_os:$ac_cv_have_decl_optreset in
14359 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14360 *:yes) gl_cv_func_getopt_gnu
=no
;;
14361 *) gl_cv_func_getopt_gnu
=yes;;
14365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 #include <getopt.h>
14368 #include <stddef.h>
14369 #include <string.h>
14376 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14377 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14378 OSF/1 5.1, Solaris 10. */
14381 myargv[0] = "conftest";
14385 if (getopt (2, myargv, "+a") != '?')
14388 /* This code succeeds on glibc 2.8, mingw,
14389 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14390 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14392 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14395 if (getopt (4, argv, "p::") != 'p')
14397 else if (optarg != NULL)
14399 else if (getopt (4, argv, "p::") != -1)
14401 else if (optind != 2)
14404 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14406 char *argv[] = { "program", "foo", "-p", NULL };
14408 if (getopt (3, argv, "-p") != 1)
14410 else if (getopt (3, argv, "-p") != 'p')
14413 /* This code fails on glibc 2.11. */
14415 char *argv[] = { "program", "-b", "-a", NULL };
14416 optind = opterr = 0;
14417 if (getopt (3, argv, "+:a:b") != 'b')
14419 else if (getopt (3, argv, "+:a:b") != ':')
14428 if ac_fn_c_try_run
"$LINENO"; then :
14429 gl_cv_func_getopt_gnu
=yes
14431 gl_cv_func_getopt_gnu
=no
14433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14437 case $gl_had_POSIXLY_CORRECT in
14439 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14440 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14445 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14446 if test "$gl_cv_func_getopt_gnu" = "no"; then
14447 gl_replace_getopt
=yes
14451 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14452 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14458 cat >>confdefs.h
<<_ACEOF
14459 #define HAVE_DECL_GETENV $ac_have_decl
14467 if test -n "$gl_replace_getopt"; then :
14473 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14477 GNULIB_UNISTD_H_GETOPT
=1
14486 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14496 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14518 GNULIB_UTIMENSAT
=0;
14532 REPLACE_FUTIMENS
=0;
14538 REPLACE_UTIMENSAT
=0;
14543 for ac_func
in $ac_func_list
14545 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14546 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14547 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14548 cat >>confdefs.h
<<_ACEOF
14549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14559 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14560 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
14561 $as_echo_n "(cached) " >&6
14563 rm -f conftest.sym conftest.
file
14564 echo >conftest.
file
14565 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14566 if test "$cross_compiling" = yes; then :
14567 # When cross-compiling, be pessimistic so we will end up using the
14568 # replacement version of lstat that checks for trailing slashes and
14569 # calls lstat a second time when necessary.
14570 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575 $ac_includes_default
14580 /* Linux will dereference the symlink and fail, as required by
14581 POSIX. That is better in the sense that it means we will not
14582 have to compile and use the lstat wrapper. */
14583 return lstat ("conftest.sym/", &sbuf) == 0;
14589 if ac_fn_c_try_run
"$LINENO"; then :
14590 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14592 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14599 # If the 'ln -s' command failed, then we probably don't even
14600 # have an lstat function.
14601 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14603 rm -f conftest.sym conftest.
file
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14607 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14608 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14610 cat >>confdefs.h
<<_ACEOF
14611 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14614 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14623 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14629 GNULIB_NANOSLEEP
=0;
14633 HAVE_DECL_LOCALTIME_R
=1;
14637 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14638 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14639 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14640 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14645 gl_cv_c_multiarch
=no
14646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648 #ifndef __APPLE_CC__
14649 not a universal capable compiler
14654 if ac_fn_c_try_compile
"$LINENO"; then :
14658 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14659 if test -n "$prev"; then
14661 i?
86 | x86_64 | ppc | ppc64
)
14662 if test -z "$arch" ||
test "$arch" = "$word"; then
14665 gl_cv_c_multiarch
=yes
14671 if test "x$word" = "x-arch"; then
14678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14679 if test $gl_cv_c_multiarch = yes; then
14680 APPLE_UNIVERSAL_BUILD
=1
14682 APPLE_UNIVERSAL_BUILD
=0
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14689 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14690 if ${ac_cv_header_stdbool_h+:} false
; then :
14691 $as_echo_n "(cached) " >&6
14693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14696 #include <stdbool.h>
14698 "error: bool is not defined"
14701 "error: false is not defined"
14704 "error: false is not 0"
14707 "error: true is not defined"
14710 "error: true is not 1"
14712 #ifndef __bool_true_false_are_defined
14713 "error: __bool_true_false_are_defined is not defined"
14716 struct s { _Bool s: 1; _Bool t; } s;
14718 char a[true == 1 ? 1 : -1];
14719 char b[false == 0 ? 1 : -1];
14720 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14721 char d[(bool) 0.5 == true ? 1 : -1];
14722 /* See body of main program for 'e'. */
14723 char f[(_Bool) 0.0 == false ? 1 : -1];
14725 char h[sizeof (_Bool)];
14726 char i[sizeof s.t];
14727 enum { j = false, k = true, l = false * true, m = true * 256 };
14728 /* The following fails for
14729 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14731 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14732 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14733 /* Catch a bug in an HP-UX C compiler. See
14734 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14735 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14747 /* Refer to every declared value, to avoid compiler optimizations. */
14748 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14749 + !m + !n + !o + !p + !q + !pq);
14755 if ac_fn_c_try_compile
"$LINENO"; then :
14756 ac_cv_header_stdbool_h
=yes
14758 ac_cv_header_stdbool_h
=no
14760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14763 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14764 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14765 if test "x$ac_cv_type__Bool" = xyes
; then :
14767 cat >>confdefs.h
<<_ACEOF
14768 #define HAVE__BOOL 1
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14782 $as_echo_n "checking for wchar_t... " >&6; }
14783 if ${gt_cv_c_wchar_t+:} false
; then :
14784 $as_echo_n "(cached) " >&6
14786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #include <stddef.h>
14789 wchar_t foo = (wchar_t)'\0';
14798 if ac_fn_c_try_compile
"$LINENO"; then :
14799 gt_cv_c_wchar_t
=yes
14803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14806 $as_echo "$gt_cv_c_wchar_t" >&6; }
14807 if test $gt_cv_c_wchar_t = yes; then
14809 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14815 $as_echo_n "checking for unsigned long long int... " >&6; }
14816 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14817 $as_echo_n "(cached) " >&6
14819 ac_cv_type_unsigned_long_long_int
=yes
14820 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14824 /* For now, do not test the preprocessor; as of 2007 there are too many
14825 implementations with broken preprocessors. Perhaps this can
14826 be revisited in 2012. In the meantime, code should not expect
14827 #if to work with literals wider than 32 bits. */
14828 /* Test literals. */
14829 long long int ll = 9223372036854775807ll;
14830 long long int nll = -9223372036854775807LL;
14831 unsigned long long int ull = 18446744073709551615ULL;
14832 /* Test constant expressions. */
14833 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14835 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14841 /* Test availability of runtime routines for shift and division. */
14842 long long int llmax = 9223372036854775807ll;
14843 unsigned long long int ullmax = 18446744073709551615ull;
14844 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14845 | (llmax / ll) | (llmax % ll)
14846 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14847 | (ullmax / ull) | (ullmax % ull));
14853 if ac_fn_c_try_link
"$LINENO"; then :
14856 ac_cv_type_unsigned_long_long_int
=no
14858 rm -f core conftest.err conftest.
$ac_objext \
14859 conftest
$ac_exeext conftest.
$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14863 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14864 if test $ac_cv_type_unsigned_long_long_int = yes; then
14866 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14873 $as_echo_n "checking for long long int... " >&6; }
14874 if ${ac_cv_type_long_long_int+:} false
; then :
14875 $as_echo_n "(cached) " >&6
14877 ac_cv_type_long_long_int
=yes
14878 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14879 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14880 if test $ac_cv_type_long_long_int = yes; then
14881 if test "$cross_compiling" = yes; then :
14884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <limits.h>
14889 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14890 # define LLONG_MAX (HALF - 1 + HALF)
14895 long long int n = 1;
14899 long long int m = n << i;
14902 if (LLONG_MAX / 2 < m)
14910 if ac_fn_c_try_run
"$LINENO"; then :
14913 ac_cv_type_long_long_int
=no
14915 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14916 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14923 $as_echo "$ac_cv_type_long_long_int" >&6; }
14924 if test $ac_cv_type_long_long_int = yes; then
14926 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14935 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14937 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14939 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14949 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14950 if ${ac_cv_header_stat_broken+:} false
; then :
14951 $as_echo_n "(cached) " >&6
14953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14955 #include <sys/types.h>
14956 #include <sys/stat.h>
14958 #if defined S_ISBLK && defined S_IFDIR
14959 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14962 #if defined S_ISBLK && defined S_IFCHR
14963 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14966 #if defined S_ISLNK && defined S_IFREG
14967 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14970 #if defined S_ISSOCK && defined S_IFREG
14971 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14975 if ac_fn_c_try_compile
"$LINENO"; then :
14976 ac_cv_header_stat_broken
=no
14978 ac_cv_header_stat_broken
=yes
14980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14983 $as_echo "$ac_cv_header_stat_broken" >&6; }
14984 if test $ac_cv_header_stat_broken = yes; then
14986 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14993 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14994 if ${ac_cv_c_restrict+:} false
; then :
14995 $as_echo_n "(cached) " >&6
14997 ac_cv_c_restrict
=no
14998 # The order here caters to the fact that C++ does not require restrict.
14999 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 typedef int * int_ptr;
15003 int foo (int_ptr $ac_kw ip) {
15010 int * $ac_kw t = s;
15017 if ac_fn_c_try_compile
"$LINENO"; then :
15018 ac_cv_c_restrict
=$ac_kw
15020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15021 test "$ac_cv_c_restrict" != no
&& break
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15026 $as_echo "$ac_cv_c_restrict" >&6; }
15028 case $ac_cv_c_restrict in
15030 no
) $as_echo "#define restrict /**/" >>confdefs.h
15032 *) cat >>confdefs.h
<<_ACEOF
15033 #define restrict $ac_cv_c_restrict
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15043 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15044 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15045 $as_echo_n "(cached) " >&6
15047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15054 static struct timespec x; x.tv_sec = x.tv_nsec;
15059 if ac_fn_c_try_compile
"$LINENO"; then :
15060 gl_cv_sys_struct_timespec_in_time_h
=yes
15062 gl_cv_sys_struct_timespec_in_time_h
=no
15064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15067 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15069 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15070 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15071 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15072 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15073 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15076 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15077 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15078 $as_echo_n "(cached) " >&6
15080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 #include <sys/time.h>
15087 static struct timespec x; x.tv_sec = x.tv_nsec;
15092 if ac_fn_c_try_compile
"$LINENO"; then :
15093 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15095 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15100 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15101 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15102 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15105 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15106 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15107 $as_echo_n "(cached) " >&6
15109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 #include <pthread.h>
15116 static struct timespec x; x.tv_sec = x.tv_nsec;
15121 if ac_fn_c_try_compile
"$LINENO"; then :
15122 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15124 gl_cv_sys_struct_timespec_in_pthread_h
=no
15126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15129 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15130 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15131 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15150 if test $gl_cv_have_include_next = yes; then
15151 gl_cv_next_time_h
='<'time.h
'>'
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15154 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15155 if ${gl_cv_next_time_h+:} false
; then :
15156 $as_echo_n "(cached) " >&6
15159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15165 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15166 *) gl_absname_cpp
="$ac_cpp" ;;
15168 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15169 sed -n '\#/time.h#{
15170 s#.*"\(.*/time.h\)".*#\1#
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15179 $as_echo "$gl_cv_next_time_h" >&6; }
15181 NEXT_TIME_H
=$gl_cv_next_time_h
15183 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15185 gl_next_as_first_directive
='<'time.h
'>'
15187 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15188 gl_next_as_first_directive
=$gl_cv_next_time_h
15190 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15197 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15198 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
15204 cat >>confdefs.h
<<_ACEOF
15205 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15212 GL_COND_LIBTOOL_TRUE
=
15213 GL_COND_LIBTOOL_FALSE
='#'
15215 GL_COND_LIBTOOL_TRUE
='#'
15216 GL_COND_LIBTOOL_FALSE
=
15219 gl_cond_libtool
=false
15232 gl_source_base
='lib'
15233 # Code from module arg-nonnull:
15234 # Code from module c++defs:
15235 # Code from module crypto/md5:
15245 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15252 # Code from module dosname:
15253 # Code from module dtoastr:
15255 # Code from module extensions:
15256 # Code from module filemode:
15267 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15271 # Code from module getloadavg:
15274 # Persuade glibc <stdlib.h> to declare getloadavg().
15277 # Make sure getloadavg.c is where it belongs, at configure-time.
15278 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15279 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15283 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15284 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15285 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15286 if test "x$ac_cv_func_getloadavg" = xyes
; then :
15291 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15292 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15293 # to get the right answer into the cache.
15294 # For kstat on solaris, we need to test for libelf and libkvm to force the
15295 # definition of SVR4 below.
15296 if test $gl_have_func = no
; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15298 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15299 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
15300 $as_echo_n "(cached) " >&6
15302 ac_check_lib_save_LIBS
=$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. */
15317 return elf_begin ();
15322 if ac_fn_c_try_link
"$LINENO"; then :
15323 ac_cv_lib_elf_elf_begin
=yes
15325 ac_cv_lib_elf_elf_begin
=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_elf_elf_begin" >&5
15332 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15333 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15338 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15339 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
15340 $as_echo_n "(cached) " >&6
15342 ac_check_lib_save_LIBS
=$LIBS
15344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15347 /* Override any GCC internal prototype to avoid an error.
15348 Use char because int might match the return type of a GCC
15349 builtin and then its argument prototype would still apply. */
15357 return kvm_open ();
15362 if ac_fn_c_try_link
"$LINENO"; then :
15363 ac_cv_lib_kvm_kvm_open
=yes
15365 ac_cv_lib_kvm_kvm_open
=no
15367 rm -f core conftest.err conftest.
$ac_objext \
15368 conftest
$ac_exeext conftest.
$ac_ext
15369 LIBS
=$ac_check_lib_save_LIBS
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15372 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15373 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
15377 # Check for the 4.4BSD definition of getloadavg.
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15379 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15380 if ${ac_cv_lib_util_getloadavg+:} false
; then :
15381 $as_echo_n "(cached) " >&6
15383 ac_check_lib_save_LIBS
=$LIBS
15384 LIBS
="-lutil $LIBS"
15385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15388 /* Override any GCC internal prototype to avoid an error.
15389 Use char because int might match the return type of a GCC
15390 builtin and then its argument prototype would still apply. */
15394 char getloadavg ();
15398 return getloadavg ();
15403 if ac_fn_c_try_link
"$LINENO"; then :
15404 ac_cv_lib_util_getloadavg
=yes
15406 ac_cv_lib_util_getloadavg
=no
15408 rm -f core conftest.err conftest.
$ac_objext \
15409 conftest
$ac_exeext conftest.
$ac_ext
15410 LIBS
=$ac_check_lib_save_LIBS
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15413 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15414 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
15415 LIBS
="-lutil $LIBS" gl_have_func
=yes
15420 if test $gl_have_func = no
; then
15421 # There is a commonly available library for RS/6000 AIX.
15422 # Since it is not a standard part of AIX, it might be installed locally.
15423 gl_getloadavg_LIBS
=$LIBS
15424 LIBS
="-L/usr/local/lib $LIBS"
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15426 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15427 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
15428 $as_echo_n "(cached) " >&6
15430 ac_check_lib_save_LIBS
=$LIBS
15431 LIBS
="-lgetloadavg $LIBS"
15432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15441 char getloadavg ();
15445 return getloadavg ();
15450 if ac_fn_c_try_link
"$LINENO"; then :
15451 ac_cv_lib_getloadavg_getloadavg
=yes
15453 ac_cv_lib_getloadavg_getloadavg
=no
15455 rm -f core conftest.err conftest.
$ac_objext \
15456 conftest
$ac_exeext conftest.
$ac_ext
15457 LIBS
=$ac_check_lib_save_LIBS
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15460 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15461 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
15462 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15464 LIBS
=$gl_getloadavg_LIBS
15469 # Set up the replacement function if necessary.
15470 if test $gl_have_func = no
; then
15479 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15482 # Figure out what our getloadavg.c needs.
15484 # Solaris has libkstat which does not require root.
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15486 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15487 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
15488 $as_echo_n "(cached) " >&6
15490 ac_check_lib_save_LIBS
=$LIBS
15491 LIBS
="-lkstat $LIBS"
15492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15501 char kstat_open ();
15505 return kstat_open ();
15510 if ac_fn_c_try_link
"$LINENO"; then :
15511 ac_cv_lib_kstat_kstat_open
=yes
15513 ac_cv_lib_kstat_kstat_open
=no
15515 rm -f core conftest.err conftest.
$ac_objext \
15516 conftest
$ac_exeext conftest.
$ac_ext
15517 LIBS
=$ac_check_lib_save_LIBS
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15520 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15521 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
15522 cat >>confdefs.h
<<_ACEOF
15523 #define HAVE_LIBKSTAT 1
15526 LIBS
="-lkstat $LIBS"
15530 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15532 # On HPUX9, an unprivileged user can get load averages this way.
15533 if test $gl_have_func = no
; then
15534 for ac_func
in pstat_getdynamic
15536 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15537 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
15538 cat >>confdefs.h
<<_ACEOF
15539 #define HAVE_PSTAT_GETDYNAMIC 1
15547 # AIX has libperfstat which does not require root
15548 if test $gl_have_func = no
; then
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15550 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15551 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
15552 $as_echo_n "(cached) " >&6
15554 ac_check_lib_save_LIBS
=$LIBS
15555 LIBS
="-lperfstat $LIBS"
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15559 /* Override any GCC internal prototype to avoid an error.
15560 Use char because int might match the return type of a GCC
15561 builtin and then its argument prototype would still apply. */
15565 char perfstat_cpu_total ();
15569 return perfstat_cpu_total ();
15574 if ac_fn_c_try_link
"$LINENO"; then :
15575 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15577 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15579 rm -f core conftest.err conftest.
$ac_objext \
15580 conftest
$ac_exeext conftest.
$ac_ext
15581 LIBS
=$ac_check_lib_save_LIBS
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15584 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15585 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
15586 cat >>confdefs.h
<<_ACEOF
15587 #define HAVE_LIBPERFSTAT 1
15590 LIBS
="-lperfstat $LIBS"
15594 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15597 if test $gl_have_func = no
; then
15598 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15599 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
15602 $as_echo "#define DGUX 1" >>confdefs.h
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15605 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15606 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
15607 $as_echo_n "(cached) " >&6
15609 ac_check_lib_save_LIBS
=$LIBS
15611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15620 char dg_sys_info ();
15624 return dg_sys_info ();
15629 if ac_fn_c_try_link
"$LINENO"; then :
15630 ac_cv_lib_dgc_dg_sys_info
=yes
15632 ac_cv_lib_dgc_dg_sys_info
=no
15634 rm -f core conftest.err conftest.
$ac_objext \
15635 conftest
$ac_exeext conftest.
$ac_ext
15636 LIBS
=$ac_check_lib_save_LIBS
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15639 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15640 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
15641 cat >>confdefs.h
<<_ACEOF
15642 #define HAVE_LIBDGC 1
15654 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15655 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15656 # Irix 4.0.5F has the header but not the library.
15657 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15658 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15661 $as_echo "#define SVR4 1" >>confdefs.h
15665 if test $gl_have_func = no
; then
15666 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15667 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
15670 $as_echo "#define UMAX 1" >>confdefs.h
15673 $as_echo "#define UMAX4_3 1" >>confdefs.h
15680 if test $gl_have_func = no
; then
15681 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15682 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
15683 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15690 if test $gl_have_func = no
; then
15691 for ac_header
in mach
/mach.h
15693 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15694 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
15695 cat >>confdefs.h
<<_ACEOF
15696 #define HAVE_MACH_MACH_H 1
15705 for ac_header
in nlist.h
15707 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15708 if test "x$ac_cv_header_nlist_h" = xyes
; then :
15709 cat >>confdefs.h
<<_ACEOF
15710 #define HAVE_NLIST_H 1
15712 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15714 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
15716 cat >>confdefs.h
<<_ACEOF
15717 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15730 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15731 x.n_un.n_name = "";
15739 if ac_fn_c_try_link
"$LINENO"; then :
15741 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15744 rm -f core conftest.err conftest.
$ac_objext \
15745 conftest
$ac_exeext conftest.
$ac_ext
15755 if test "x$gl_save_LIBS" = x
; then
15756 GETLOADAVG_LIBS
=$LIBS
15758 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15763 # Test whether the system declares getloadavg. Solaris has the function
15764 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15765 for ac_header
in sys
/loadavg.h
15767 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15768 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
15769 cat >>confdefs.h
<<_ACEOF
15770 #define HAVE_SYS_LOADAVG_H 1
15777 if test $ac_cv_header_sys_loadavg_h = yes; then
15778 HAVE_SYS_LOADAVG_H
=1
15780 HAVE_SYS_LOADAVG_H
=0
15782 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15783 # include <sys/loadavg.h>
15785 #include <stdlib.h>
15787 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
15790 HAVE_DECL_GETLOADAVG
=0
15797 GNULIB_GETLOADAVG
=1
15801 # Code from module getopt-gnu:
15808 # Code from module getopt-posix:
15814 if test -n "$gl_replace_getopt"; then :
15820 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15824 GNULIB_UNISTD_H_GETOPT
=1
15833 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15843 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15853 # Code from module gettext-h:
15856 # Code from module ignore-value:
15858 # Code from module include_next:
15859 # Code from module intprops:
15860 # Code from module lstat:
15864 if test $ac_cv_func_lstat = yes; then
15866 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15869 # Prerequisites of lib/lstat.c.
15882 # Code from module mktime:
15888 if test $APPLE_UNIVERSAL_BUILD = 1; then
15889 # A universal build on Apple MacOS X platforms.
15890 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15891 # But we need a configuration result that is valid in both modes.
15892 ac_cv_func_working_mktime
=no
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15895 $as_echo_n "checking for working mktime... " >&6; }
15896 if ${ac_cv_func_working_mktime+:} false
; then :
15897 $as_echo_n "(cached) " >&6
15899 if test "$cross_compiling" = yes; then :
15900 ac_cv_func_working_mktime
=no
15902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 /* Test program from Paul Eggert and Tony Leneis. */
15905 #include <limits.h>
15906 #include <stdlib.h>
15909 #ifdef HAVE_UNISTD_H
15910 # include <unistd.h>
15914 # define alarm(X) /* empty */
15917 /* Work around redefinition to rpl_putenv by other config tests. */
15920 static time_t time_t_max;
15921 static time_t time_t_min;
15923 /* Values we'll use to set the TZ environment variable. */
15924 static char *tz_strings[] = {
15925 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15926 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15928 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15930 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15931 Based on a problem report from Andreas Jaeger. */
15933 spring_forward_gap ()
15935 /* glibc (up to about 1998-10-07) failed this test. */
15938 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15939 instead of "TZ=America/Vancouver" in order to detect the bug even
15940 on systems that don't support the Olson extension, or don't have the
15941 full zoneinfo tables installed. */
15942 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15951 return mktime (&tm) != (time_t) -1;
15955 mktime_test1 (time_t now)
15958 return ! (lt = localtime (&now)) || mktime (lt) == now;
15962 mktime_test (time_t now)
15964 return (mktime_test1 (now)
15965 && mktime_test1 ((time_t) (time_t_max - now))
15966 && mktime_test1 ((time_t) (time_t_min + now)));
15972 /* Based on code from Ariel Faigon. */
15982 return tm.tm_mon == 2 && tm.tm_mday == 31;
15986 bigtime_test (int j)
15990 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15991 now = mktime (&tm);
15992 if (now != (time_t) -1)
15994 struct tm *lt = localtime (&now);
15996 && lt->tm_year == tm.tm_year
15997 && lt->tm_mon == tm.tm_mon
15998 && lt->tm_mday == tm.tm_mday
15999 && lt->tm_hour == tm.tm_hour
16000 && lt->tm_min == tm.tm_min
16001 && lt->tm_sec == tm.tm_sec
16002 && lt->tm_yday == tm.tm_yday
16003 && lt->tm_wday == tm.tm_wday
16004 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16005 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16014 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16015 ignoring leap seconds. */
16016 unsigned long int answer = 2527315200UL;
16020 tm.tm_year = 2050 - 1900;
16023 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16026 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16027 instead of "TZ=America/Vancouver" in order to detect the bug even
16028 on systems that don't support the Olson extension, or don't have the
16029 full zoneinfo tables installed. */
16030 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16034 /* Check that the result is either a failure, or close enough
16035 to the correct answer that we can assume the discrepancy is
16036 due to leap seconds. */
16037 return (t == (time_t) -1
16038 || (0 < t && answer - 120 <= t && t <= answer + 120));
16047 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16048 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16050 /* This test makes some buggy mktime implementations loop.
16051 Give up after 60 seconds; a mktime slower than that
16052 isn't worth using anyway. */
16055 time_t_max = (! time_t_signed
16057 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16059 time_t_min = (! time_t_signed
16061 : time_t_signed_magnitude
16065 delta = time_t_max / 997; /* a suitable prime number */
16066 for (i = 0; i < N_STRINGS; i++)
16069 putenv (tz_strings[i]);
16071 for (t = 0; t <= time_t_max - delta; t += delta)
16072 if (! mktime_test (t))
16074 if (! (mktime_test ((time_t) 1)
16075 && mktime_test ((time_t) (60 * 60))
16076 && mktime_test ((time_t) (60 * 60 * 24))))
16079 for (j = 1; ; j <<= 1)
16080 if (! bigtime_test (j))
16082 else if (INT_MAX / 2 < j)
16084 if (! bigtime_test (INT_MAX))
16087 if (! irix_6_4_bug ())
16089 if (! spring_forward_gap ())
16091 if (! year_2050_test ())
16096 if ac_fn_c_try_run
"$LINENO"; then :
16097 ac_cv_func_working_mktime
=yes
16099 ac_cv_func_working_mktime
=no
16101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16107 $as_echo "$ac_cv_func_working_mktime" >&6; }
16108 if test $ac_cv_func_working_mktime = no
; then
16117 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16121 if test $ac_cv_func_working_mktime = no
; then
16137 # Code from module multiarch:
16139 # Code from module readlink:
16143 if test $ac_cv_func_readlink = no
; then
16153 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16160 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16161 if ${gl_cv_decl_readlink_works+:} false
; then :
16162 $as_echo_n "(cached) " >&6
16164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <unistd.h>
16167 /* Cause compilation failure if original declaration has wrong type. */
16168 ssize_t readlink (const char *, char *, size_t);
16177 if ac_fn_c_try_compile
"$LINENO"; then :
16178 gl_cv_decl_readlink_works
=yes
16180 gl_cv_decl_readlink_works
=no
16182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16185 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16187 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16188 if ${gl_cv_func_readlink_works+:} false
; then :
16189 $as_echo_n "(cached) " >&6
16191 # We have readlink, so assume ln -s works.
16192 ln -s conftest.no-such conftest.link
16193 ln -s conftest.link conftest.lnk2
16194 if test "$cross_compiling" = yes; then :
16195 gl_cv_func_readlink_works
="guessing no"
16197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16199 #include <unistd.h>
16205 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16210 if ac_fn_c_try_run
"$LINENO"; then :
16211 gl_cv_func_readlink_works
=yes
16213 gl_cv_func_readlink_works
=no
16215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16219 rm -f conftest.link conftest.lnk2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16222 $as_echo "$gl_cv_func_readlink_works" >&6; }
16223 if test "$gl_cv_func_readlink_works" != yes; then
16225 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16236 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16238 elif test "$gl_cv_decl_readlink_works" != yes; then
16248 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16260 # Code from module stat:
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16265 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16266 if ${gl_cv_func_stat_dir_slash+:} false
; then :
16267 $as_echo_n "(cached) " >&6
16269 if test "$cross_compiling" = yes; then :
16271 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16272 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 #include <sys/stat.h>
16282 struct stat st; return stat (".", &st) != stat ("./", &st);
16287 if ac_fn_c_try_run
"$LINENO"; then :
16288 gl_cv_func_stat_dir_slash
=yes
16290 gl_cv_func_stat_dir_slash
=no
16292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16298 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16300 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16301 if ${gl_cv_func_stat_file_slash+:} false
; then :
16302 $as_echo_n "(cached) " >&6
16305 # Assume that if we have lstat, we can also check symlinks.
16306 if test $ac_cv_func_lstat = yes; then
16307 ln -s conftest.tmp conftest.lnk
16309 if test "$cross_compiling" = yes; then :
16310 gl_cv_func_stat_file_slash
="guessing no"
16312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16314 #include <sys/stat.h>
16321 if (!stat ("conftest.tmp/", &st))
16324 if (!stat ("conftest.lnk/", &st))
16333 if ac_fn_c_try_run
"$LINENO"; then :
16334 gl_cv_func_stat_file_slash
=yes
16336 gl_cv_func_stat_file_slash
=no
16338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16342 rm -f conftest.tmp conftest.lnk
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16345 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16346 case $gl_cv_func_stat_dir_slash in
16347 *no
) REPLACE_STAT
=1
16349 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16352 case $gl_cv_func_stat_file_slash in
16353 *no
) REPLACE_STAT
=1
16355 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16358 if test $REPLACE_STAT = 1; then
16367 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16379 # Code from module stdbool:
16383 # Define two additional variables used in the Makefile substitution.
16385 if test "$ac_cv_header_stdbool_h" = yes; then
16388 STDBOOL_H
='stdbool.h'
16392 if test "$ac_cv_type__Bool" = yes; then
16399 # Code from module stddef:
16403 if test $gt_cv_c_wchar_t = no
; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16408 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16409 if ${gl_cv_decl_null_works+:} false
; then :
16410 $as_echo_n "(cached) " >&6
16412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 #include <stddef.h>
16415 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16425 if ac_fn_c_try_compile
"$LINENO"; then :
16426 gl_cv_decl_null_works
=yes
16428 gl_cv_decl_null_works
=no
16430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16433 $as_echo "$gl_cv_decl_null_works" >&6; }
16434 if test $gl_cv_decl_null_works = no
; then
16438 if test -n "$STDDEF_H"; then
16447 if test $gl_cv_have_include_next = yes; then
16448 gl_cv_next_stddef_h
='<'stddef.h
'>'
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16451 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16452 if ${gl_cv_next_stddef_h+:} false
; then :
16453 $as_echo_n "(cached) " >&6
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include <stddef.h>
16462 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16463 *) gl_absname_cpp
="$ac_cpp" ;;
16465 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16466 sed -n '\#/stddef.h#{
16467 s#.*"\(.*/stddef.h\)".*#\1#
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16476 $as_echo "$gl_cv_next_stddef_h" >&6; }
16478 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16480 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16482 gl_next_as_first_directive
='<'stddef.h
'>'
16484 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16485 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16487 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16494 # Code from module stdint:
16498 if test $ac_cv_type_long_long_int = yes; then
16499 HAVE_LONG_LONG_INT
=1
16501 HAVE_LONG_LONG_INT
=0
16505 if test $ac_cv_type_unsigned_long_long_int = yes; then
16506 HAVE_UNSIGNED_LONG_LONG_INT
=1
16508 HAVE_UNSIGNED_LONG_LONG_INT
=0
16513 if test $ac_cv_header_wchar_h = yes; then
16520 if test $ac_cv_header_inttypes_h = yes; then
16527 if test $ac_cv_header_sys_types_h = yes; then
16543 if test $gl_cv_have_include_next = yes; then
16544 gl_cv_next_stdint_h
='<'stdint.h
'>'
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16547 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16548 if ${gl_cv_next_stdint_h+:} false
; then :
16549 $as_echo_n "(cached) " >&6
16552 if test $ac_cv_header_stdint_h = yes; then
16555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 #include <stdint.h>
16561 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16562 *) gl_absname_cpp
="$ac_cpp" ;;
16564 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16565 sed -n '\#/stdint.h#{
16566 s#.*"\(.*/stdint.h\)".*#\1#
16572 gl_cv_next_stdint_h
='<'stdint.h
'>'
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16578 $as_echo "$gl_cv_next_stdint_h" >&6; }
16580 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16582 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16584 gl_next_as_first_directive
='<'stdint.h
'>'
16586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16587 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16589 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16594 if test $ac_cv_header_stdint_h = yes; then
16601 if test $ac_cv_header_stdint_h = yes; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16603 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16604 if ${gl_cv_header_working_stdint_h+:} false
; then :
16605 $as_echo_n "(cached) " >&6
16607 gl_cv_header_working_stdint_h
=no
16608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h. */
16612 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16613 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16614 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16615 #include <stdint.h>
16616 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16617 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16618 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16622 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16623 included before <wchar.h>. */
16624 #include <stddef.h>
16625 #include <signal.h>
16627 # include <stdio.h>
16629 # include <wchar.h>
16634 int8_t a1 = INT8_MAX;
16635 int8_t a1min = INT8_MIN;
16638 int16_t a2 = INT16_MAX;
16639 int16_t a2min = INT16_MIN;
16642 int32_t a3 = INT32_MAX;
16643 int32_t a3min = INT32_MIN;
16646 int64_t a4 = INT64_MAX;
16647 int64_t a4min = INT64_MIN;
16650 uint8_t b1 = UINT8_MAX;
16652 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16655 uint16_t b2 = UINT16_MAX;
16658 uint32_t b3 = UINT32_MAX;
16661 uint64_t b4 = UINT64_MAX;
16663 int_least8_t c1 = INT8_C (0x7f);
16664 int_least8_t c1max = INT_LEAST8_MAX;
16665 int_least8_t c1min = INT_LEAST8_MIN;
16666 int_least16_t c2 = INT16_C (0x7fff);
16667 int_least16_t c2max = INT_LEAST16_MAX;
16668 int_least16_t c2min = INT_LEAST16_MIN;
16669 int_least32_t c3 = INT32_C (0x7fffffff);
16670 int_least32_t c3max = INT_LEAST32_MAX;
16671 int_least32_t c3min = INT_LEAST32_MIN;
16672 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16673 int_least64_t c4max = INT_LEAST64_MAX;
16674 int_least64_t c4min = INT_LEAST64_MIN;
16675 uint_least8_t d1 = UINT8_C (0xff);
16676 uint_least8_t d1max = UINT_LEAST8_MAX;
16677 uint_least16_t d2 = UINT16_C (0xffff);
16678 uint_least16_t d2max = UINT_LEAST16_MAX;
16679 uint_least32_t d3 = UINT32_C (0xffffffff);
16680 uint_least32_t d3max = UINT_LEAST32_MAX;
16681 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16682 uint_least64_t d4max = UINT_LEAST64_MAX;
16683 int_fast8_t e1 = INT_FAST8_MAX;
16684 int_fast8_t e1min = INT_FAST8_MIN;
16685 int_fast16_t e2 = INT_FAST16_MAX;
16686 int_fast16_t e2min = INT_FAST16_MIN;
16687 int_fast32_t e3 = INT_FAST32_MAX;
16688 int_fast32_t e3min = INT_FAST32_MIN;
16689 int_fast64_t e4 = INT_FAST64_MAX;
16690 int_fast64_t e4min = INT_FAST64_MIN;
16691 uint_fast8_t f1 = UINT_FAST8_MAX;
16692 uint_fast16_t f2 = UINT_FAST16_MAX;
16693 uint_fast32_t f3 = UINT_FAST32_MAX;
16694 uint_fast64_t f4 = UINT_FAST64_MAX;
16696 intptr_t g = INTPTR_MAX;
16697 intptr_t gmin = INTPTR_MIN;
16700 uintptr_t h = UINTPTR_MAX;
16702 intmax_t i = INTMAX_MAX;
16703 uintmax_t j = UINTMAX_MAX;
16705 #include <limits.h> /* for CHAR_BIT */
16706 #define TYPE_MINIMUM(t) \
16707 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16708 #define TYPE_MAXIMUM(t) \
16709 ((t) ((t) 0 < (t) -1 \
16711 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16714 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16715 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16717 /* Detect bug in FreeBSD 6.0 / ia64. */
16718 int check_SIG_ATOMIC:
16719 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16720 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16722 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16724 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16725 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16727 /* Detect bug in mingw. */
16729 WINT_MIN == TYPE_MINIMUM (wint_t)
16730 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16733 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16735 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16736 int check_UINT16_C:
16737 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16739 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16741 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16744 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16747 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16750 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16752 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16753 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16754 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16755 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16756 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16757 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16758 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16759 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16760 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16761 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16762 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16773 if ac_fn_c_try_compile
"$LINENO"; then :
16774 if test "$cross_compiling" = yes; then :
16775 gl_cv_header_working_stdint_h
=yes
16778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16782 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16783 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16784 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16785 #include <stdint.h>
16788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16789 included before <wchar.h>. */
16790 #include <stddef.h>
16791 #include <signal.h>
16793 # include <stdio.h>
16795 # include <wchar.h>
16800 #include <string.h>
16801 #define MVAL(macro) MVAL1(macro)
16802 #define MVAL1(expression) #expression
16803 static const char *macro_values[] =
16837 for (mv = macro_values; *mv != NULL; mv++)
16839 const char *value = *mv;
16840 /* Test whether it looks like a cast expression. */
16841 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16842 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16843 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16844 || strncmp (value, "((int)"/*)*/, 6) == 0
16845 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16846 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16847 return mv - macro_values + 1;
16855 if ac_fn_c_try_run
"$LINENO"; then :
16856 gl_cv_header_working_stdint_h
=yes
16858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16868 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16870 if test "$gl_cv_header_working_stdint_h" = yes; then
16873 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16876 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16877 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16878 cat >>confdefs.h
<<_ACEOF
16879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16886 if test $ac_cv_header_sys_inttypes_h = yes; then
16887 HAVE_SYS_INTTYPES_H
=1
16889 HAVE_SYS_INTTYPES_H
=0
16892 if test $ac_cv_header_sys_bitypes_h = yes; then
16893 HAVE_SYS_BITYPES_H
=1
16895 HAVE_SYS_BITYPES_H
=0
16901 if test $APPLE_UNIVERSAL_BUILD = 0; then
16904 for gltype
in ptrdiff_t size_t
; do
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16906 $as_echo_n "checking for bit size of $gltype... " >&6; }
16907 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16908 $as_echo_n "(cached) " >&6
16910 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16911 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16912 included before <wchar.h>. */
16913 #include <stddef.h>
16914 #include <signal.h>
16916 # include <stdio.h>
16918 # include <wchar.h>
16921 #include <limits.h>"; then :
16927 eval gl_cv_bitsizeof_
${gltype}=\
$result
16930 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16932 $as_echo "$ac_res" >&6; }
16933 eval result
=\
$gl_cv_bitsizeof_${gltype}
16934 if test $result = unknown
; then
16937 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16938 cat >>confdefs.h
<<_ACEOF
16939 #define BITSIZEOF_${GLTYPE} $result
16942 eval BITSIZEOF_
${GLTYPE}=\
$result
16949 for gltype
in sig_atomic_t wchar_t wint_t
; do
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16951 $as_echo_n "checking for bit size of $gltype... " >&6; }
16952 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16953 $as_echo_n "(cached) " >&6
16955 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16956 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16957 included before <wchar.h>. */
16958 #include <stddef.h>
16959 #include <signal.h>
16961 # include <stdio.h>
16963 # include <wchar.h>
16966 #include <limits.h>"; then :
16972 eval gl_cv_bitsizeof_
${gltype}=\
$result
16975 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16977 $as_echo "$ac_res" >&6; }
16978 eval result
=\
$gl_cv_bitsizeof_${gltype}
16979 if test $result = unknown
; then
16982 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16983 cat >>confdefs.h
<<_ACEOF
16984 #define BITSIZEOF_${GLTYPE} $result
16987 eval BITSIZEOF_
${GLTYPE}=\
$result
16993 for gltype
in sig_atomic_t wchar_t wint_t
; do
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16995 $as_echo_n "checking whether $gltype is signed... " >&6; }
16996 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
16997 $as_echo_n "(cached) " >&6
16999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17002 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17003 included before <wchar.h>. */
17004 #include <stddef.h>
17005 #include <signal.h>
17007 # include <stdio.h>
17009 # include <wchar.h>
17012 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17021 if ac_fn_c_try_compile
"$LINENO"; then :
17026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17027 eval gl_cv_type_
${gltype}_signed
=\
$result
17030 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17032 $as_echo "$ac_res" >&6; }
17033 eval result
=\
$gl_cv_type_${gltype}_signed
17034 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17035 if test "$result" = yes; then
17036 cat >>confdefs.h
<<_ACEOF
17037 #define HAVE_SIGNED_${GLTYPE} 1
17040 eval HAVE_SIGNED_
${GLTYPE}=1
17042 eval HAVE_SIGNED_
${GLTYPE}=0
17047 gl_cv_type_ptrdiff_t_signed
=yes
17048 gl_cv_type_size_t_signed
=no
17049 if test $APPLE_UNIVERSAL_BUILD = 0; then
17052 for gltype
in ptrdiff_t size_t
; do
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17054 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17055 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17056 $as_echo_n "(cached) " >&6
17058 eval gl_cv_type_
${gltype}_suffix
=no
17059 eval result
=\
$gl_cv_type_${gltype}_signed
17060 if test "$result" = yes; then
17065 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17067 '') gltype1
='int';;
17068 l
) gltype1
='long int';;
17069 ll
) gltype1
='long long int';;
17070 i64
) gltype1
='__int64';;
17071 u
) gltype1
='unsigned int';;
17072 ul
) gltype1
='unsigned long int';;
17073 ull
) gltype1
='unsigned long long int';;
17074 ui64
)gltype1
='unsigned __int64';;
17076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17079 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17080 included before <wchar.h>. */
17081 #include <stddef.h>
17082 #include <signal.h>
17084 # include <stdio.h>
17086 # include <wchar.h>
17089 extern $gltype foo;
17090 extern $gltype1 foo;
17099 if ac_fn_c_try_compile
"$LINENO"; then :
17100 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17103 eval result
=\
$gl_cv_type_${gltype}_suffix
17104 test "$result" != no
&& break
17107 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17109 $as_echo "$ac_res" >&6; }
17110 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17111 eval result
=\
$gl_cv_type_${gltype}_suffix
17112 test "$result" = no
&& result
=
17113 eval ${GLTYPE}_SUFFIX
=\
$result
17114 cat >>confdefs.h
<<_ACEOF
17115 #define ${GLTYPE}_SUFFIX $result
17124 for gltype
in sig_atomic_t wchar_t wint_t
; do
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17126 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17127 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17128 $as_echo_n "(cached) " >&6
17130 eval gl_cv_type_
${gltype}_suffix
=no
17131 eval result
=\
$gl_cv_type_${gltype}_signed
17132 if test "$result" = yes; then
17137 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17139 '') gltype1
='int';;
17140 l
) gltype1
='long int';;
17141 ll
) gltype1
='long long int';;
17142 i64
) gltype1
='__int64';;
17143 u
) gltype1
='unsigned int';;
17144 ul
) gltype1
='unsigned long int';;
17145 ull
) gltype1
='unsigned long long int';;
17146 ui64
)gltype1
='unsigned __int64';;
17148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17151 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17152 included before <wchar.h>. */
17153 #include <stddef.h>
17154 #include <signal.h>
17156 # include <stdio.h>
17158 # include <wchar.h>
17161 extern $gltype foo;
17162 extern $gltype1 foo;
17171 if ac_fn_c_try_compile
"$LINENO"; then :
17172 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17175 eval result
=\
$gl_cv_type_${gltype}_suffix
17176 test "$result" != no
&& break
17179 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17181 $as_echo "$ac_res" >&6; }
17182 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17183 eval result
=\
$gl_cv_type_${gltype}_suffix
17184 test "$result" = no
&& result
=
17185 eval ${GLTYPE}_SUFFIX
=\
$result
17186 cat >>confdefs.h
<<_ACEOF
17187 #define ${GLTYPE}_SUFFIX $result
17198 # Code from module stdlib:
17209 if test $gl_cv_have_include_next = yes; then
17210 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17213 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17214 if ${gl_cv_next_stdlib_h+:} false
; then :
17215 $as_echo_n "(cached) " >&6
17218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 #include <stdlib.h>
17224 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17225 *) gl_absname_cpp
="$ac_cpp" ;;
17227 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17228 sed -n '\#/stdlib.h#{
17229 s#.*"\(.*/stdlib.h\)".*#\1#
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17238 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17240 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17242 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17244 gl_next_as_first_directive
='<'stdlib.h
'>'
17246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17247 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17249 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17257 # Code from module strftime:
17268 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17271 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17279 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17283 # Code from module symlink:
17287 if test $ac_cv_func_symlink = no
; then
17297 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17301 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17302 if ${gl_cv_func_symlink_works+:} false
; then :
17303 $as_echo_n "(cached) " >&6
17305 if test "$cross_compiling" = yes; then :
17306 gl_cv_func_symlink_works
="guessing no"
17308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 #include <unistd.h>
17316 if (!symlink ("a", "conftest.link/"))
17318 if (symlink ("conftest.f", "conftest.lnk2"))
17320 else if (!symlink ("a", "conftest.lnk2/"))
17328 if ac_fn_c_try_run
"$LINENO"; then :
17329 gl_cv_func_symlink_works
=yes
17331 gl_cv_func_symlink_works
=no
17333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17337 rm -f conftest.f conftest.link conftest.lnk2
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17340 $as_echo "$gl_cv_func_symlink_works" >&6; }
17341 if test "$gl_cv_func_symlink_works" != yes; then
17351 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17363 # Code from module sys_stat:
17380 if test $gl_cv_have_include_next = yes; then
17381 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17384 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17385 if ${gl_cv_next_sys_stat_h+:} false
; then :
17386 $as_echo_n "(cached) " >&6
17389 if test $ac_cv_header_sys_stat_h = yes; then
17392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 #include <sys/stat.h>
17398 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17399 *) gl_absname_cpp
="$ac_cpp" ;;
17401 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17402 sed -n '\#/sys/stat.h#{
17403 s#.*"\(.*/sys/stat.h\)".*#\1#
17409 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17415 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17417 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17419 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17421 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17424 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17426 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17432 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17433 #include <sys/stat.h>
17435 if test "x$ac_cv_type_nlink_t" = xyes
; then :
17439 $as_echo "#define nlink_t int" >>confdefs.h
17447 # Code from module time:
17451 # Code from module time_r:
17459 if test $ac_cv_have_decl_localtime_r = no
; then
17460 HAVE_DECL_LOCALTIME_R
=0
17464 if test $ac_cv_func_localtime_r = yes; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17467 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17468 if ${gl_cv_time_r_posix+:} false
; then :
17469 $as_echo_n "(cached) " >&6
17471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17477 /* We don't need to append 'restrict's to the argument types,
17478 even though the POSIX signature has the 'restrict's,
17479 since C99 says they can't affect type compatibility. */
17480 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17482 /* Check the return type is a pointer.
17483 On HP-UX 10 it is 'int'. */
17484 *localtime_r (0, 0);
17490 if ac_fn_c_try_compile
"$LINENO"; then :
17491 gl_cv_time_r_posix
=yes
17493 gl_cv_time_r_posix
=no
17495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17499 $as_echo "$gl_cv_time_r_posix" >&6; }
17500 if test $gl_cv_time_r_posix = yes; then
17501 REPLACE_LOCALTIME_R
=0
17503 REPLACE_LOCALTIME_R
=1
17508 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17517 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17531 # Code from module unistd:
17545 if test $gl_cv_have_include_next = yes; then
17546 gl_cv_next_unistd_h
='<'unistd.h
'>'
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17549 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17550 if ${gl_cv_next_unistd_h+:} false
; then :
17551 $as_echo_n "(cached) " >&6
17554 if test $ac_cv_header_unistd_h = yes; then
17557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17559 #include <unistd.h>
17563 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17564 *) gl_absname_cpp
="$ac_cpp" ;;
17566 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17567 sed -n '\#/unistd.h#{
17568 s#.*"\(.*/unistd.h\)".*#\1#
17574 gl_cv_next_unistd_h
='<'unistd.h
'>'
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17580 $as_echo "$gl_cv_next_unistd_h" >&6; }
17582 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17584 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17586 gl_next_as_first_directive
='<'unistd.h
'>'
17588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17589 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17591 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17596 if test $ac_cv_header_unistd_h = yes; then
17605 # Code from module warn-on-use:
17606 # End of code from modules
17627 gl_source_base
='tests'
17628 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
17630 gl_module_indicator_condition
=$gltests_WITNESS
17640 LIBGNU_LIBDEPS
="$gl_libdeps"
17642 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
17647 for ac_func
in grantpt
17649 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
17650 if test "x$ac_cv_func_grantpt" = xyes
; then :
17651 cat >>confdefs.h
<<_ACEOF
17652 #define HAVE_GRANTPT 1
17659 # PTY-related GNU extensions.
17660 for ac_func
in getpt
17662 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
17663 if test "x$ac_cv_func_getpt" = xyes
; then :
17664 cat >>confdefs.h
<<_ACEOF
17665 #define HAVE_GETPT 1
17672 # Check this now, so that we will NOT find the above functions in ncurses.
17673 # That is because we have not set up to link ncurses in lib-src.
17674 # It's better to believe a function is not available
17675 # than to expect to find it in ncurses.
17676 # Also we need tputs and friends to be able to build at all.
17677 have_tputs_et_al
=true
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17679 $as_echo_n "checking for library containing tputs... " >&6; }
17680 if ${ac_cv_search_tputs+:} false
; then :
17681 $as_echo_n "(cached) " >&6
17683 ac_func_search_save_LIBS
=$LIBS
17684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17687 /* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17702 for ac_lib
in '' ncurses terminfo termcap
; do
17703 if test -z "$ac_lib"; then
17704 ac_res
="none required"
17707 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17709 if ac_fn_c_try_link
"$LINENO"; then :
17710 ac_cv_search_tputs
=$ac_res
17712 rm -f core conftest.err conftest.
$ac_objext \
17714 if ${ac_cv_search_tputs+:} false
; then :
17718 if ${ac_cv_search_tputs+:} false
; then :
17721 ac_cv_search_tputs
=no
17723 rm conftest.
$ac_ext
17724 LIBS
=$ac_func_search_save_LIBS
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17727 $as_echo "$ac_cv_search_tputs" >&6; }
17728 ac_res
=$ac_cv_search_tputs
17729 if test "$ac_res" != no
; then :
17730 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17733 have_tputs_et_al
=false
17736 if test "$have_tputs_et_al" != true
; then
17737 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17738 Maybe some development libraries/packages are missing? Try installing
17739 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17741 # Must define this when any termcap library is found.
17743 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17745 ## FIXME This was the cpp logic, but I am not sure it is right.
17746 ## The above test has not necessarily found libncurses.
17747 HAVE_LIBNCURSES
=yes
17749 ## Use terminfo instead of termcap?
17750 ## Note only system files NOT using terminfo are:
17751 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17752 ## darwin|gnu without ncurses.
17756 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17757 ## hpux10-20: Use the system provided termcap(3) library.
17758 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17759 ## is necessary. Otherwise Emacs dumps core when run -nw.
17760 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17762 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17763 ## The ncurses library has been moved out of the System framework in
17764 ## Mac OS X 10.2. So if configure detects it, set the command-line
17765 ## option to use it.
17767 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17768 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17770 LIBS_TERMCAP
="-lncurses"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17776 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17777 if ${emacs_cv_freebsd_terminfo+:} false
; then :
17778 $as_echo_n "(cached) " >&6
17780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h. */
17782 #include <osreldate.h>
17786 #if __FreeBSD_version < 400000
17794 if ac_fn_c_try_link
"$LINENO"; then :
17795 emacs_cv_freebsd_terminfo
=yes
17797 emacs_cv_freebsd_terminfo
=no
17799 rm -f core conftest.err conftest.
$ac_objext \
17800 conftest
$ac_exeext conftest.
$ac_ext
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17805 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17807 if test $emacs_cv_freebsd_terminfo = yes; then
17809 LIBS_TERMCAP
="-lncurses"
17811 LIBS_TERMCAP
="-ltermcap"
17816 if test $ac_cv_search_tputs = -lterminfo; then
17818 LIBS_TERMCAP
="-lterminfo"
17820 LIBS_TERMCAP
="-ltermcap"
17827 ## hpux: Make sure we get select from libc rather than from libcurses
17828 ## because libcurses on HPUX 10.10 has a broken version of select.
17829 ## We used to use -lc -lcurses, but this may be cleaner.
17830 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17832 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17834 ## Must use system termcap, if we use any termcap. It does special things.
17835 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17838 TERMCAP_OBJ
=tparam.o
17839 if test $TERMINFO = yes; then
17841 $as_echo "#define TERMINFO 1" >>confdefs.h
17844 ## Default used to be -ltermcap. Add a case above if need something else.
17845 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17847 TERMCAP_OBJ
=terminfo.o
17853 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17857 #include <netinet/in.h>
17858 #include <arpa/nameser.h>
17859 #include <resolv.h>
17868 if ac_fn_c_try_link
"$LINENO"; then :
17873 rm -f core conftest.err conftest.
$ac_objext \
17874 conftest
$ac_exeext conftest.
$ac_ext
17875 if test "$have_res_init" = no
; then
17877 LIBS
="$LIBS -lresolv"
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17879 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <netinet/in.h>
17883 #include <arpa/nameser.h>
17884 #include <resolv.h>
17893 if ac_fn_c_try_link
"$LINENO"; then :
17898 rm -f core conftest.err conftest.
$ac_objext \
17899 conftest
$ac_exeext conftest.
$ac_ext
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17901 $as_echo "$have_res_init" >&6; }
17902 if test "$have_res_init" = yes ; then
17908 if test "$have_res_init" = yes; then
17910 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17914 # Do we need the Hesiod library to provide the support routines?
17916 if test "$with_hesiod" != no
; then
17917 # Don't set $LIBS here -- see comments above. FIXME which comments?
17918 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17919 if test "x$ac_cv_func_res_send" = xyes
; then :
17922 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
17923 if test "x$ac_cv_func___res_send" = xyes
; then :
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17927 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17928 if ${ac_cv_lib_resolv_res_send+:} false
; then :
17929 $as_echo_n "(cached) " >&6
17931 ac_check_lib_save_LIBS
=$LIBS
17932 LIBS
="-lresolv $LIBS"
17933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17946 return res_send ();
17951 if ac_fn_c_try_link
"$LINENO"; then :
17952 ac_cv_lib_resolv_res_send
=yes
17954 ac_cv_lib_resolv_res_send
=no
17956 rm -f core conftest.err conftest.
$ac_objext \
17957 conftest
$ac_exeext conftest.
$ac_ext
17958 LIBS
=$ac_check_lib_save_LIBS
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17961 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17962 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17966 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17967 if ${ac_cv_lib_resolv___res_send+:} false
; then :
17968 $as_echo_n "(cached) " >&6
17970 ac_check_lib_save_LIBS
=$LIBS
17971 LIBS
="-lresolv $LIBS"
17972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17981 char __res_send ();
17985 return __res_send ();
17990 if ac_fn_c_try_link
"$LINENO"; then :
17991 ac_cv_lib_resolv___res_send
=yes
17993 ac_cv_lib_resolv___res_send
=no
17995 rm -f core conftest.err conftest.
$ac_objext \
17996 conftest
$ac_exeext conftest.
$ac_ext
17997 LIBS
=$ac_check_lib_save_LIBS
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18000 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18001 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
18011 if test "$resolv" = yes ; then
18016 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18017 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18021 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18022 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
18023 $as_echo_n "(cached) " >&6
18025 ac_check_lib_save_LIBS
=$LIBS
18026 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18030 /* Override any GCC internal prototype to avoid an error.
18031 Use char because int might match the return type of a GCC
18032 builtin and then its argument prototype would still apply. */
18036 char hes_getmailhost ();
18040 return hes_getmailhost ();
18045 if ac_fn_c_try_link
"$LINENO"; then :
18046 ac_cv_lib_hesiod_hes_getmailhost
=yes
18048 ac_cv_lib_hesiod_hes_getmailhost
=no
18050 rm -f core conftest.err conftest.
$ac_objext \
18051 conftest
$ac_exeext conftest.
$ac_ext
18052 LIBS
=$ac_check_lib_save_LIBS
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18055 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18056 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
18065 if test x
"$hesiod" = xyes
; then
18067 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18074 # Do we need libresolv (due to res_init or Hesiod)?
18075 if test "$resolv" = yes ; then
18077 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18085 # These tell us which Kerberos-related libraries to use.
18092 if test "${with_kerberos}" != no
; then
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18094 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18095 if ${ac_cv_lib_com_err_com_err+:} false
; then :
18096 $as_echo_n "(cached) " >&6
18098 ac_check_lib_save_LIBS
=$LIBS
18099 LIBS
="-lcom_err $LIBS"
18100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18103 /* Override any GCC internal prototype to avoid an error.
18104 Use char because int might match the return type of a GCC
18105 builtin and then its argument prototype would still apply. */
18118 if ac_fn_c_try_link
"$LINENO"; then :
18119 ac_cv_lib_com_err_com_err
=yes
18121 ac_cv_lib_com_err_com_err
=no
18123 rm -f core conftest.err conftest.
$ac_objext \
18124 conftest
$ac_exeext conftest.
$ac_ext
18125 LIBS
=$ac_check_lib_save_LIBS
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18128 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18129 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
18135 if test $have_com_err = yes; then
18136 COM_ERRLIB
=-lcom_err
18137 LIBS
="$COM_ERRLIB $LIBS"
18139 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18143 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18144 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
18145 $as_echo_n "(cached) " >&6
18147 ac_check_lib_save_LIBS
=$LIBS
18148 LIBS
="-lcrypto $LIBS"
18149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18152 /* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18158 char mit_des_cbc_encrypt ();
18162 return mit_des_cbc_encrypt ();
18167 if ac_fn_c_try_link
"$LINENO"; then :
18168 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18170 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18172 rm -f core conftest.err conftest.
$ac_objext \
18173 conftest
$ac_exeext conftest.
$ac_ext
18174 LIBS
=$ac_check_lib_save_LIBS
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18177 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18178 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
18184 if test $have_crypto = yes; then
18186 LIBS
="$CRYPTOLIB $LIBS"
18188 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18192 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18193 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
18194 $as_echo_n "(cached) " >&6
18196 ac_check_lib_save_LIBS
=$LIBS
18197 LIBS
="-lk5crypto $LIBS"
18198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18207 char mit_des_cbc_encrypt ();
18211 return mit_des_cbc_encrypt ();
18216 if ac_fn_c_try_link
"$LINENO"; then :
18217 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18219 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18221 rm -f core conftest.err conftest.
$ac_objext \
18222 conftest
$ac_exeext conftest.
$ac_ext
18223 LIBS
=$ac_check_lib_save_LIBS
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18226 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18227 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
18233 if test $have_k5crypto = yes; then
18234 CRYPTOLIB
=-lk5crypto
18235 LIBS
="$CRYPTOLIB $LIBS"
18237 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18241 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18242 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
18243 $as_echo_n "(cached) " >&6
18245 ac_check_lib_save_LIBS
=$LIBS
18246 LIBS
="-lkrb5 $LIBS"
18247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18256 char krb5_init_context ();
18260 return krb5_init_context ();
18265 if ac_fn_c_try_link
"$LINENO"; then :
18266 ac_cv_lib_krb5_krb5_init_context
=yes
18268 ac_cv_lib_krb5_krb5_init_context
=no
18270 rm -f core conftest.err conftest.
$ac_objext \
18271 conftest
$ac_exeext conftest.
$ac_ext
18272 LIBS
=$ac_check_lib_save_LIBS
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18275 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18276 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
18282 if test $have_krb5=yes; then
18284 LIBS
="$KRB5LIB $LIBS"
18286 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18289 if test "${with_kerberos5}" = no
; then
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18291 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18292 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
18293 $as_echo_n "(cached) " >&6
18295 ac_check_lib_save_LIBS
=$LIBS
18296 LIBS
="-ldes425 $LIBS"
18297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18306 char des_cbc_encrypt ();
18310 return des_cbc_encrypt ();
18315 if ac_fn_c_try_link
"$LINENO"; then :
18316 ac_cv_lib_des425_des_cbc_encrypt
=yes
18318 ac_cv_lib_des425_des_cbc_encrypt
=no
18320 rm -f core conftest.err conftest.
$ac_objext \
18321 conftest
$ac_exeext conftest.
$ac_ext
18322 LIBS
=$ac_check_lib_save_LIBS
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18325 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18326 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
18332 if test $have_des425 = yes; then
18334 LIBS
="$DESLIB $LIBS"
18336 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18340 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18341 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
18342 $as_echo_n "(cached) " >&6
18344 ac_check_lib_save_LIBS
=$LIBS
18346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18355 char des_cbc_encrypt ();
18359 return des_cbc_encrypt ();
18364 if ac_fn_c_try_link
"$LINENO"; then :
18365 ac_cv_lib_des_des_cbc_encrypt
=yes
18367 ac_cv_lib_des_des_cbc_encrypt
=no
18369 rm -f core conftest.err conftest.
$ac_objext \
18370 conftest
$ac_exeext conftest.
$ac_ext
18371 LIBS
=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18374 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18375 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
18381 if test $have_des = yes; then
18383 LIBS
="$DESLIB $LIBS"
18385 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18390 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18391 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
18392 $as_echo_n "(cached) " >&6
18394 ac_check_lib_save_LIBS
=$LIBS
18395 LIBS
="-lkrb4 $LIBS"
18396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 /* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18405 char krb_get_cred ();
18409 return krb_get_cred ();
18414 if ac_fn_c_try_link
"$LINENO"; then :
18415 ac_cv_lib_krb4_krb_get_cred
=yes
18417 ac_cv_lib_krb4_krb_get_cred
=no
18419 rm -f core conftest.err conftest.
$ac_objext \
18420 conftest
$ac_exeext conftest.
$ac_ext
18421 LIBS
=$ac_check_lib_save_LIBS
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18424 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18425 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
18431 if test $have_krb4 = yes; then
18433 LIBS
="$KRB4LIB $LIBS"
18435 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18439 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18440 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
18441 $as_echo_n "(cached) " >&6
18443 ac_check_lib_save_LIBS
=$LIBS
18445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18454 char krb_get_cred ();
18458 return krb_get_cred ();
18463 if ac_fn_c_try_link
"$LINENO"; then :
18464 ac_cv_lib_krb_krb_get_cred
=yes
18466 ac_cv_lib_krb_krb_get_cred
=no
18468 rm -f core conftest.err conftest.
$ac_objext \
18469 conftest
$ac_exeext conftest.
$ac_ext
18470 LIBS
=$ac_check_lib_save_LIBS
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18473 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18474 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
18480 if test $have_krb = yes; then
18482 LIBS
="$KRB4LIB $LIBS"
18484 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18490 if test "${with_kerberos5}" != no
; then
18491 for ac_header
in krb5.h
18493 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18494 if test "x$ac_cv_header_krb5_h" = xyes
; then :
18495 cat >>confdefs.h
<<_ACEOF
18496 #define HAVE_KRB5_H 1
18498 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18500 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
18502 cat >>confdefs.h
<<_ACEOF
18503 #define HAVE_KRB5_ERROR_TEXT 1
18508 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18510 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
18512 cat >>confdefs.h
<<_ACEOF
18513 #define HAVE_KRB5_ERROR_E_TEXT 1
18524 for ac_header
in des.h
18526 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18527 if test "x$ac_cv_header_des_h" = xyes
; then :
18528 cat >>confdefs.h
<<_ACEOF
18529 #define HAVE_DES_H 1
18533 for ac_header
in kerberosIV
/des.h
18535 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18536 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
18537 cat >>confdefs.h
<<_ACEOF
18538 #define HAVE_KERBEROSIV_DES_H 1
18542 for ac_header
in kerberos
/des.h
18544 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18545 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
18546 cat >>confdefs.h
<<_ACEOF
18547 #define HAVE_KERBEROS_DES_H 1
18562 for ac_header
in krb.h
18564 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18565 if test "x$ac_cv_header_krb_h" = xyes
; then :
18566 cat >>confdefs.h
<<_ACEOF
18567 #define HAVE_KRB_H 1
18571 for ac_header
in kerberosIV
/krb.h
18573 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18574 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
18575 cat >>confdefs.h
<<_ACEOF
18576 #define HAVE_KERBEROSIV_KRB_H 1
18580 for ac_header
in kerberos
/krb.h
18582 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18583 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
18584 cat >>confdefs.h
<<_ACEOF
18585 #define HAVE_KERBEROS_KRB_H 1
18601 for ac_header
in com_err.h
18603 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18604 if test "x$ac_cv_header_com_err_h" = xyes
; then :
18605 cat >>confdefs.h
<<_ACEOF
18606 #define HAVE_COM_ERR_H 1
18621 # Solaris requires -lintl if you want strerror (which calls dgettext)
18622 # to return localized messages.
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18624 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18625 if ${ac_cv_lib_intl_dgettext+:} false
; then :
18626 $as_echo_n "(cached) " >&6
18628 ac_check_lib_save_LIBS
=$LIBS
18629 LIBS
="-lintl $LIBS"
18630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18633 /* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18643 return dgettext ();
18648 if ac_fn_c_try_link
"$LINENO"; then :
18649 ac_cv_lib_intl_dgettext
=yes
18651 ac_cv_lib_intl_dgettext
=no
18653 rm -f core conftest.err conftest.
$ac_objext \
18654 conftest
$ac_exeext conftest.
$ac_ext
18655 LIBS
=$ac_check_lib_save_LIBS
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18658 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18659 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
18660 cat >>confdefs.h
<<_ACEOF
18661 #define HAVE_LIBINTL 1
18664 LIBS
="-lintl $LIBS"
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18670 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18671 if ${emacs_cv_localtime_cache+:} false
; then :
18672 $as_echo_n "(cached) " >&6
18674 if test x
$ac_cv_func_tzset = xyes
; then
18675 if test "$cross_compiling" = yes; then :
18676 # If we have tzset, assume the worst when cross-compiling.
18677 emacs_cv_localtime_cache
=yes
18679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18682 char TZ_GMT0[] = "TZ=GMT0";
18683 char TZ_PST8[] = "TZ=PST8";
18686 time_t now = time ((time_t *) 0);
18687 int hour_GMT0, hour_unset;
18688 if (putenv (TZ_GMT0) != 0)
18690 hour_GMT0 = localtime (&now)->tm_hour;
18692 hour_unset = localtime (&now)->tm_hour;
18693 if (putenv (TZ_PST8) != 0)
18695 if (localtime (&now)->tm_hour == hour_GMT0)
18698 if (localtime (&now)->tm_hour != hour_unset)
18703 if ac_fn_c_try_run
"$LINENO"; then :
18704 emacs_cv_localtime_cache
=no
18706 emacs_cv_localtime_cache
=yes
18708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18713 # If we lack tzset, report that localtime does not cache TZ,
18714 # since we can't invalidate the cache if we don't have tzset.
18715 emacs_cv_localtime_cache
=no
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18719 $as_echo "$emacs_cv_localtime_cache" >&6; }
18720 if test $emacs_cv_localtime_cache = yes; then
18722 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18726 if test "x$HAVE_TIMEVAL" = xyes
; then
18727 for ac_func
in gettimeofday
18729 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18730 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
18731 cat >>confdefs.h
<<_ACEOF
18732 #define HAVE_GETTIMEOFDAY 1
18738 if test $ac_cv_func_gettimeofday = yes; then
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18740 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18741 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
18742 $as_echo_n "(cached) " >&6
18744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18747 #ifdef TIME_WITH_SYS_TIME
18748 #include <sys/time.h>
18751 #ifdef HAVE_SYS_TIME_H
18752 #include <sys/time.h>
18760 struct timeval time;
18761 gettimeofday (&time, 0);
18766 if ac_fn_c_try_compile
"$LINENO"; then :
18767 emacs_cv_gettimeofday_two_arguments
=yes
18769 emacs_cv_gettimeofday_two_arguments
=no
18771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18774 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18775 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18777 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18784 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18785 if test "x$ac_cv_func_socket" = xyes
; then :
18791 if test $ok_so_far = yes; then
18792 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18793 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
18801 if test $ok_so_far = yes; then
18802 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18803 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
18811 if test $ok_so_far = yes; then
18813 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18817 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18819 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18824 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18825 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18827 $as_echo "yes" >&6; }
18829 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833 $as_echo "no" >&6; }
18836 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18837 if test "x$ac_cv_type_pid_t" = xyes
; then :
18841 cat >>confdefs.h
<<_ACEOF
18847 for ac_header
in vfork.h
18849 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18850 if test "x$ac_cv_header_vfork_h" = xyes
; then :
18851 cat >>confdefs.h
<<_ACEOF
18852 #define HAVE_VFORK_H 1
18859 for ac_func
in fork vfork
18861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18862 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18863 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18864 cat >>confdefs.h
<<_ACEOF
18865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18871 if test "x$ac_cv_func_fork" = xyes
; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18873 $as_echo_n "checking for working fork... " >&6; }
18874 if ${ac_cv_func_fork_works+:} false
; then :
18875 $as_echo_n "(cached) " >&6
18877 if test "$cross_compiling" = yes; then :
18878 ac_cv_func_fork_works
=cross
18880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 $ac_includes_default
18887 /* By Ruediger Kuhlmann. */
18888 return fork () < 0;
18894 if ac_fn_c_try_run
"$LINENO"; then :
18895 ac_cv_func_fork_works
=yes
18897 ac_cv_func_fork_works
=no
18899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18905 $as_echo "$ac_cv_func_fork_works" >&6; }
18908 ac_cv_func_fork_works
=$ac_cv_func_fork
18910 if test "x$ac_cv_func_fork_works" = xcross
; then
18912 *-*-amigaos* |
*-*-msdosdjgpp*)
18913 # Override, as these systems have only a dummy fork() stub
18914 ac_cv_func_fork_works
=no
18917 ac_cv_func_fork_works
=yes
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18921 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18923 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18924 if test "x$ac_cv_func_vfork" = xyes
; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18926 $as_echo_n "checking for working vfork... " >&6; }
18927 if ${ac_cv_func_vfork_works+:} false
; then :
18928 $as_echo_n "(cached) " >&6
18930 if test "$cross_compiling" = yes; then :
18931 ac_cv_func_vfork_works
=cross
18933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18935 /* Thanks to Paul Eggert for this test. */
18936 $ac_includes_default
18937 #include <sys/wait.h>
18938 #ifdef HAVE_VFORK_H
18939 # include <vfork.h>
18941 /* On some sparc systems, changes by the child to local and incoming
18942 argument registers are propagated back to the parent. The compiler
18943 is told about this with #include <vfork.h>, but some compilers
18944 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18945 static variable whose address is put into a register that is
18946 clobbered by the vfork. */
18949 sparc_address_test (int arg)
18951 sparc_address_test (arg) int arg;
18954 static pid_t child;
18972 pid_t parent = getpid ();
18975 sparc_address_test (0);
18980 /* Here is another test for sparc vfork register problems. This
18981 test uses lots of local variables, at least as many local
18982 variables as main has allocated so far including compiler
18983 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18984 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18985 reuse the register of parent for one of the local variables,
18986 since it will think that parent can't possibly be used any more
18987 in this routine. Assigning to the local variable will thus
18988 munge parent in the parent process. */
18990 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18991 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18992 /* Convince the compiler that p..p7 are live; otherwise, it might
18993 use the same hardware register for all 8 local variables. */
18994 if (p != p1 || p != p2 || p != p3 || p != p4
18995 || p != p5 || p != p6 || p != p7)
18998 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18999 from child file descriptors. If the child closes a descriptor
19000 before it execs or exits, this munges the parent's descriptor
19001 as well. Test for this by closing stdout in the child. */
19002 _exit(close(fileno(stdout)) != 0);
19007 while (wait(&status) != child)
19010 /* Was there some problem with vforking? */
19013 /* Did the child fail? (This shouldn't happen.) */
19016 /* Did the vfork/compiler bug occur? */
19017 || parent != getpid()
19019 /* Did the file descriptor bug occur? */
19020 || fstat(fileno(stdout), &st) != 0
19025 if ac_fn_c_try_run
"$LINENO"; then :
19026 ac_cv_func_vfork_works
=yes
19028 ac_cv_func_vfork_works
=no
19030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19036 $as_echo "$ac_cv_func_vfork_works" >&6; }
19039 if test "x$ac_cv_func_fork_works" = xcross
; then
19040 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19042 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19045 if test "x$ac_cv_func_vfork_works" = xyes
; then
19047 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19051 $as_echo "#define vfork fork" >>confdefs.h
19054 if test "x$ac_cv_func_fork_works" = xyes
; then
19056 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19062 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19063 if ${emacs_cv_langinfo_codeset+:} false
; then :
19064 $as_echo_n "(cached) " >&6
19066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 #include <langinfo.h>
19072 char* cs = nl_langinfo(CODESET);
19077 if ac_fn_c_try_link
"$LINENO"; then :
19078 emacs_cv_langinfo_codeset
=yes
19080 emacs_cv_langinfo_codeset
=no
19082 rm -f core conftest.err conftest.
$ac_objext \
19083 conftest
$ac_exeext conftest.
$ac_ext
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19087 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19088 if test $emacs_cv_langinfo_codeset = yes; then
19090 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19094 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19095 if test "x$ac_cv_type_size_t" = xyes
; then :
19097 cat >>confdefs.h
<<_ACEOF
19098 #define HAVE_SIZE_T 1
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19106 $as_echo_n "checking for mbstate_t... " >&6; }
19107 if ${ac_cv_type_mbstate_t+:} false
; then :
19108 $as_echo_n "(cached) " >&6
19110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112 $ac_includes_default
19113 # include <wchar.h>
19117 mbstate_t x; return sizeof x;
19122 if ac_fn_c_try_compile
"$LINENO"; then :
19123 ac_cv_type_mbstate_t
=yes
19125 ac_cv_type_mbstate_t
=no
19127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19130 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19131 if test $ac_cv_type_mbstate_t = yes; then
19133 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19137 $as_echo "#define mbstate_t int" >>confdefs.h
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19142 $as_echo_n "checking for C restricted array declarations... " >&6; }
19143 if ${emacs_cv_c_restrict_arr+:} false
; then :
19144 $as_echo_n "(cached) " >&6
19146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 void fred (int x[__restrict]);
19157 if ac_fn_c_try_compile
"$LINENO"; then :
19158 emacs_cv_c_restrict_arr
=yes
19160 emacs_cv_c_restrict_arr
=no
19162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19165 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19166 if test "$emacs_cv_c_restrict_arr" = yes; then
19168 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19174 # Set up the CFLAGS for real compilation, so we can substitute it.
19175 CFLAGS
="$REAL_CFLAGS"
19176 CPPFLAGS
="$REAL_CPPFLAGS"
19178 ## Hack to detect a buggy GCC version.
19179 if test "x$GCC" = xyes \
19180 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19181 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19182 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19183 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19186 version
=$PACKAGE_VERSION
19188 ### Specify what sort of things we'll be editing into Makefile and config.h.
19189 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19213 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19214 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19215 ## end of LIBX_BASE, but nothing ever set it.
19220 ## Used in lwlib/Makefile.in.
19222 if test -n "${machfile}"; then
19223 M_FILE
="\$(srcdir)/${machfile}"
19227 S_FILE
="\$(srcdir)/${opsysfile}"
19238 cat >>confdefs.h
<<_ACEOF
19239 #define EMACS_CONFIGURATION "${canonical}"
19243 cat >>confdefs.h
<<_ACEOF
19244 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19247 if test -n "$machfile"; then
19249 cat >>confdefs.h
<<_ACEOF
19250 #define config_machfile "${machfile}"
19255 cat >>confdefs.h
<<_ACEOF
19256 #define config_opsysfile "${opsysfile}"
19263 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19265 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19268 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19270 if test "$HAVE_XFT" = "yes"; then
19271 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19272 elif test "$HAVE_FREETYPE" = "yes"; then
19273 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19283 if test "${USE_X_TOOLKIT}" != "none" ; then
19284 WIDGET_OBJ
=widget.o
19286 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19288 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19290 $as_echo "#define USE_LUCID 1" >>confdefs.h
19292 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19294 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19299 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19300 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19304 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19305 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19306 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19310 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19311 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19314 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19320 case "$USE_X_TOOLKIT" in
19321 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19322 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19323 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19327 if test "$USE_X_TOOLKIT" = "none"; then
19328 LIBXT_OTHER
="\$(LIBXSM)"
19329 OLDXMENU_TARGET
="really-oldXMenu"
19331 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19332 OLDXMENU_TARGET
="really-lwlib"
19336 ## The X Menu stuff is present in the X10 distribution, but missing
19337 ## from X11. If we have X10, just use the installed library;
19338 ## otherwise, use our own copy.
19339 if test "${HAVE_X11}" = "yes" ; then
19341 $as_echo "#define HAVE_X11 1" >>confdefs.h
19344 if test "$USE_X_TOOLKIT" = "none"; then
19345 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19347 OLDXMENU
="\${lwlibdir}/liblw.a"
19349 LIBXMENU
="\$(OLDXMENU)"
19350 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19351 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19353 ## For a syntactically valid Makefile; not actually used for anything.
19354 ## See comments in src/Makefile.in.
19356 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19357 if test "${HAVE_X_WINDOWS}" = "yes"; then
19366 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19379 if test "${HAVE_MENUS}" = "yes" ; then
19381 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19385 if test "${GNU_MALLOC}" = "yes" ; then
19387 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19392 if test "${REL_ALLOC}" = "yes" ; then
19394 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19397 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19401 if test "$opsys" = "cygwin"; then
19402 CYGWIN_OBJ
="sheap.o"
19403 ## Cygwin differs because of its unexec().
19405 POST_ALLOC_OBJ
=lastfile.o
19408 PRE_ALLOC_OBJ
=lastfile.o
19417 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19420 ## The -headerpad option tells ld (see man page) to leave room at the
19421 ## end of the header for adding load commands. Needed for dumping.
19422 ## 0x690 is the total size of 30 segment load commands (at 56
19423 ## each); under Cocoa 31 commands are required.
19424 if test "$HAVE_NS" = "yes"; then
19425 libs_nsgui
="-framework AppKit"
19426 headerpad_extra
=6C8
19429 headerpad_extra
=690
19431 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19433 ## This is here because src/Makefile.in did some extra fiddling around
19434 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19435 ## #ifndef LD_SWITCH_SYSTEM
19436 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19437 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19438 ## not using gcc, darwin system not on an alpha (ie darwin, since
19439 ## darwin + alpha does not occur).
19440 ## Because this was done in src/Makefile.in, the resulting part of
19441 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19442 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19443 ## rather than LD_SWITCH_SYSTEM.
19444 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19445 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19448 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19449 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19450 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19451 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19452 ## had different values in configure (in ac_link) and src/Makefile.in.
19453 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19454 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19456 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19459 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19460 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19469 ## gnu: GNU needs its own crt0.
19470 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19472 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19473 ## library search parth, i.e. it won't search /usr/lib for libc and
19474 ## friends. Using -nostartfiles instead avoids this problem, and
19475 ## will also work on earlier NetBSD releases.
19476 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19478 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19479 ## MkLinux/LinuxPPC needs this.
19480 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19483 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19489 if test "x$ORDINARY_LINK" = "xyes"; then
19493 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19496 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19497 ## freebsd, gnu-* not on macppc|ibms390x.
19498 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19500 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19501 ## places that are difficult to figure out at make time. Fortunately,
19502 ## these same versions allow you to pass arbitrary flags on to the
19503 ## linker, so there is no reason not to use it as a linker.
19505 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19506 ## searching for libraries in its internal directories, so we have to
19507 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19508 LD_FIRSTFLAG
="-nostdlib"
19511 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19512 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19517 ## FIXME? The logic here is not precisely the same as that above.
19518 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19519 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19521 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19524 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19527 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19528 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19534 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19535 ## immediately undefine it again and redefine it to empty.
19536 ## Was the C_SWITCH_X_SITE part really necessary?
19537 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19543 ## Ask GCC where to find libgcc.a.
19544 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19551 ## If we're using X11/GNUstep, define some consequences.
19552 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19554 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19557 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19559 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19560 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19562 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19563 test "$HAVE_X_WINDOWS" = "yes" && \
19564 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19574 #### Report on what we decided to do.
19575 #### Report GTK as a toolkit, even if it doesn't use Xt.
19576 #### It makes printing result more understandable as using GTK sets
19577 #### toolkit_scroll_bars to yes by default.
19578 if test "${HAVE_GTK}" = "yes"; then
19583 if test -n "$machfile"; then
19584 and_machfile
=" and \`${machfile}'"
19588 Configured for \`${canonical}'.
19590 Where should the build process find the source code? ${srcdir}
19591 What operating system and machine description files should Emacs use?
19592 \`${opsysfile}'${and_machfile}
19593 What compiler should emacs be built with? ${CC} ${CFLAGS}
19594 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19595 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19596 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19597 What window system should Emacs use? ${window_system}
19598 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19600 if test -n "${x_includes}"; then
19601 echo " Where do we find X Windows header files? ${x_includes}"
19603 echo " Where do we find X Windows header files? Standard dirs"
19605 if test -n "${x_libraries}"; then
19606 echo " Where do we find X Windows libraries? ${x_libraries}"
19608 echo " Where do we find X Windows libraries? Standard dirs"
19611 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19612 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19613 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19614 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19615 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19616 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19617 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19618 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19620 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19621 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19622 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19623 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19624 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19625 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19627 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19628 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19629 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19630 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19632 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19635 if test $USE_XASSERTS = yes; then
19636 echo " Compiling with asserts turned on."
19637 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
19642 if test "$HAVE_NS" = "yes"; then
19644 echo "You must run \"make install\" in order to test the built application.
19645 The installed application will go to nextstep/Emacs.app and can be
19646 run or moved from there."
19647 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19648 echo "The application will be fully self-contained."
19650 echo "The lisp resources for the application will be installed under ${prefix}.
19651 You may need to run \"make install\" with sudo. The application will fail
19652 to run if these resources are not installed."
19658 # Remove any trailing slashes in these variables.
19659 test "${prefix}" != NONE
&&
19660 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19661 test "${exec_prefix}" != NONE
&&
19662 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19664 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"
19667 ac_config_commands
="$ac_config_commands mkdirs"
19670 ac_config_commands
="$ac_config_commands epaths"
19673 ac_config_commands
="$ac_config_commands gdbinit"
19676 cat >confcache
<<\_ACEOF
19677 # This file is a shell script that caches the results of configure
19678 # tests run on this system so they can be shared between configure
19679 # scripts and configure runs, see configure's option --config-cache.
19680 # It is not useful on other systems. If it contains results you don't
19681 # want to keep, you may remove or edit it.
19683 # config.status only pays attention to the cache file if you give it
19684 # the --recheck option to rerun configure.
19686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19688 # following values.
19692 # The following way of writing the cache mishandles newlines in values,
19693 # but we know of no workaround that is simple, portable, and efficient.
19694 # So, we kill variables containing newlines.
19695 # Ultrix sh set writes to stderr and can't be redirected directly,
19696 # and sets the high bit in the cache file unless we assign to the vars.
19698 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19699 eval ac_val
=\$
$ac_var
19703 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19707 _ | IFS | as_nl
) ;; #(
19708 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19709 *) { eval $ac_var=; unset $ac_var;} ;;
19715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19716 *${as_nl}ac_space
=\
*)
19717 # `set' does not quote correctly, so add quotes: double-quote
19718 # substitution turns \\\\ into \\, and sed turns \\ into \.
19721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19724 # `set' quotes correctly as required by POSIX, so do not add quotes.
19725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19738 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19739 if test -w "$cache_file"; then
19740 if test "x$cache_file" != "x/dev/null"; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19742 $as_echo "$as_me: updating cache $cache_file" >&6;}
19743 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19744 cat confcache
>"$cache_file"
19746 case $cache_file in #(
19748 mv -f confcache
"$cache_file"$$
&&
19749 mv -f "$cache_file"$$
"$cache_file" ;; #(
19751 mv -f confcache
"$cache_file" ;;
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19762 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19763 # Let make expand exec_prefix.
19764 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19766 DEFS
=-DHAVE_CONFIG_H
19771 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19772 # 1. Remove the extension, and $U if already installed.
19773 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19774 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19775 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19776 # will be set to the directory where LIBOBJS objects are built.
19777 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19778 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19780 LIBOBJS
=$ac_libobjs
19782 LTLIBOBJS
=$ac_ltlibobjs
19785 if test -n "$EXEEXT"; then
19787 am__EXEEXT_FALSE
='#'
19789 am__EXEEXT_TRUE
='#'
19793 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19794 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19798 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19802 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19803 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19810 if test -n "$gl_LIBOBJS"; then
19811 # Remove the extension.
19812 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19813 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19814 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19815 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19818 gl_LIBOBJS
=$gl_libobjs
19820 gl_LTLIBOBJS
=$gl_ltlibobjs
19826 if test -n "$gltests_LIBOBJS"; then
19827 # Remove the extension.
19828 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19829 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19830 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19831 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19834 gltests_LIBOBJS
=$gltests_libobjs
19836 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19840 : "${CONFIG_STATUS=./config.status}"
19842 ac_clean_files_save
=$ac_clean_files
19843 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19845 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19847 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19849 # Generated by $as_me.
19850 # Run this file to recreate the current configuration.
19851 # Compiler output produced by configure, useful for debugging
19852 # configure, is in config.log if it exists.
19855 ac_cs_recheck=false
19858 SHELL=\${CONFIG_SHELL-$SHELL}
19861 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19862 ## -------------------- ##
19863 ## M4sh Initialization. ##
19864 ## -------------------- ##
19866 # Be more Bourne compatible
19867 DUALCASE
=1; export DUALCASE
# for MKS sh
19868 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19871 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19872 # is contrary to our usage. Disable this feature.
19873 alias -g '${1+"$@"}'='"$@"'
19874 setopt NO_GLOB_SUBST
19876 case `(set -o) 2>/dev/null` in #(
19888 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19889 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19892 # Prefer a ksh shell builtin over an external printf program on Solaris,
19893 # but without wasting forks for bash or zsh.
19894 if test -z "$BASH_VERSION$ZSH_VERSION" \
19895 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19896 as_echo='print
-r --'
19897 as_echo_n='print
-rn --'
19898 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19899 as_echo='printf %s
\n'
19900 as_echo_n='printf %s
'
19902 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19903 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19904 as_echo_n='/usr
/ucb
/echo -n'
19906 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19907 as_echo_n_body='eval
19911 expr "X$arg" : "X\\(.*\\)$as_nl";
19912 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19914 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19916 export as_echo_n_body
19917 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19919 export as_echo_body
19920 as_echo='sh
-c $as_echo_body as_echo
'
19923 # The user is always right.
19924 if test "${PATH_SEPARATOR+set}" != set; then
19926 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19927 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19934 # We need space, tab and new line, in precisely that order. Quoting is
19935 # there to prevent editors from complaining about space-tab.
19936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19937 # splitting by setting IFS to empty value.)
19940 # Find who we are. Look in the path if we contain no directory separator.
19943 *[\\/]* ) as_myself=$0 ;;
19944 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945 for as_dir in $PATH
19948 test -z "$as_dir" && as_dir=.
19949 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19955 # We did not find ourselves, most probably we were run as `sh COMMAND'
19956 # in which case we are not to be found in the path.
19957 if test "x$as_myself" = x
; then
19960 if test ! -f "$as_myself"; then
19961 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19965 # Unset variables that we do not need and which cause bugs (e.g. in
19966 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19967 # suppresses any "Segmentation fault" message there. '((' could
19968 # trigger a bug in pdksh 5.2.14.
19969 for as_var
in BASH_ENV ENV MAIL MAILPATH
19970 do eval test x\
${$as_var+set} = xset \
19971 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19984 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19987 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19988 # ----------------------------------------
19989 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19990 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19991 # script with STATUS, using 1 if that was 0.
19994 as_status
=$1; test $as_status -eq 0 && as_status
=1
19996 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19997 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19999 $as_echo "$as_me: error: $2" >&2
20000 as_fn_exit
$as_status
20004 # as_fn_set_status STATUS
20005 # -----------------------
20006 # Set $? to STATUS, without forking.
20007 as_fn_set_status
()
20010 } # as_fn_set_status
20012 # as_fn_exit STATUS
20013 # -----------------
20014 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20018 as_fn_set_status
$1
20024 # Portably unset VAR.
20027 { eval $1=; unset $1;}
20029 as_unset
=as_fn_unset
20030 # as_fn_append VAR VALUE
20031 # ----------------------
20032 # Append the text in VALUE to the end of the definition contained in VAR. Take
20033 # advantage of any shell optimizations that allow amortized linear growth over
20034 # repeated appends, instead of the typical quadratic growth present in naive
20036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20037 eval 'as_fn_append ()
20048 # as_fn_arith ARG...
20049 # ------------------
20050 # Perform arithmetic evaluation on the ARGs, and store the result in the
20051 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20052 # must be portable across $(()) and expr.
20053 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20054 eval 'as_fn_arith ()
20061 as_val
=`expr "$@" || test $? -eq 1`
20066 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20067 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20073 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20074 as_basename
=basename
20079 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20085 as_me
=`$as_basename -- "$0" ||
20086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20087 X"$0" : 'X\(//\)$' \| \
20088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20090 sed '/^.*\/\([^/][^/]*\)\/*$/{
20104 # Avoid depending upon Character Ranges.
20105 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20106 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20107 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20108 as_cr_digits
='0123456789'
20109 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20111 ECHO_C
= ECHO_N
= ECHO_T
=
20112 case `echo -n x` in #(((((
20114 case `echo 'xy\c'` in
20115 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20117 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20124 rm -f conf$$ conf$$.exe conf$$.
file
20125 if test -d conf$$.dir
; then
20126 rm -f conf$$.dir
/conf$$.
file
20129 mkdir conf$$.dir
2>/dev
/null
20131 if (echo >conf$$.
file) 2>/dev
/null
; then
20132 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20134 # ... but there are two gotchas:
20135 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20136 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20137 # In both cases, we have to default to `cp -p'.
20138 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20140 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20148 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20149 rmdir conf$$.dir
2>/dev
/null
20154 # Create "$as_dir" as a directory, including parents if necessary.
20159 -*) as_dir
=.
/$as_dir;;
20161 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20165 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20166 *) as_qdir
=$as_dir;;
20168 as_dirs
="'$as_qdir' $as_dirs"
20169 as_dir
=`$as_dirname -- "$as_dir" ||
20170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20171 X"$as_dir" : 'X\(//\)[^/]' \| \
20172 X"$as_dir" : 'X\(//\)$' \| \
20173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20174 $as_echo X"$as_dir" |
20175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20179 /^X\(\/\/\)[^/].*/{
20192 test -d "$as_dir" && break
20194 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20195 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20199 if mkdir
-p .
2>/dev
/null
; then
20200 as_mkdir_p
='mkdir -p "$as_dir"'
20202 test -d .
/-p && rmdir .
/-p
20206 if test -x / >/dev
/null
2>&1; then
20207 as_test_x
='test -x'
20209 if ls -dL / >/dev
/null
2>&1; then
20216 if test -d "$1"; then
20222 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20223 ???[sx]*):;;*)false;;esac;fi
20227 as_executable_p
=$as_test_x
20229 # Sed expression to map a string onto a valid CPP name.
20230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20232 # Sed expression to map a string onto a valid variable name.
20233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20237 ## ----------------------------------- ##
20238 ## Main body of $CONFIG_STATUS script. ##
20239 ## ----------------------------------- ##
20241 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20244 # Save the log message, to keep $0 and so on meaningful, and to
20245 # report actual input values of CONFIG_FILES etc. instead of their
20246 # values after options handling.
20248 This file was extended by emacs $as_me 24.0.50, which was
20249 generated by GNU Autoconf 2.68. Invocation command line was
20251 CONFIG_FILES = $CONFIG_FILES
20252 CONFIG_HEADERS = $CONFIG_HEADERS
20253 CONFIG_LINKS = $CONFIG_LINKS
20254 CONFIG_COMMANDS = $CONFIG_COMMANDS
20257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20262 case $ac_config_files in *"
20263 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20266 case $ac_config_headers in *"
20267 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20272 # Files that config.status was made for.
20273 config_files="$ac_config_files"
20274 config_headers="$ac_config_headers"
20275 config_commands="$ac_config_commands"
20279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20281 \`$as_me' instantiates files and other configuration actions
20282 from templates according to the current configuration. Unless the files
20283 and actions are specified as TAGs, all are instantiated by default.
20285 Usage: $0 [OPTION]... [TAG]...
20287 -h, --help print this help, then exit
20288 -V, --version print version number and configuration settings, then exit
20289 --config print configuration, then exit
20290 -q, --quiet, --silent
20291 do not print progress messages
20292 -d, --debug don't remove temporary files
20293 --recheck update $as_me by reconfiguring in the same conditions
20294 --file=FILE[:TEMPLATE]
20295 instantiate the configuration file FILE
20296 --header=FILE[:TEMPLATE]
20297 instantiate the configuration header FILE
20299 Configuration files:
20302 Configuration headers:
20305 Configuration commands:
20308 Report bugs to the package provider."
20311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20312 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20314 emacs config.status 24.0.50
20315 configured by $0, generated by GNU Autoconf 2.68,
20316 with options \\"\$ac_cs_config\\"
20318 Copyright (C) 2010 Free Software Foundation, Inc.
20319 This config.status script is free software; the Free Software Foundation
20320 gives unlimited permission to copy, distribute and modify it."
20327 test -n "\$AWK" || AWK=awk
20330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20331 # The default lists apply if the user does not specify any file.
20337 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20338 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20342 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20354 # Handling of the options.
20355 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20357 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20358 $as_echo "$ac_cs_version"; exit ;;
20359 --config |
--confi |
--conf |
--con |
--co |
--c )
20360 $as_echo "$ac_cs_config"; exit ;;
20361 --debug |
--debu |
--deb |
--de |
--d |
-d )
20363 --file |
--fil |
--fi |
--f )
20366 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20367 '') as_fn_error $?
"missing file argument" ;;
20369 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20370 ac_need_defaults
=false
;;
20371 --header |
--heade |
--head |
--hea )
20374 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20376 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20377 ac_need_defaults
=false
;;
20379 # Conflict between --help and --header
20380 as_fn_error $?
"ambiguous option: \`$1'
20381 Try \`$0 --help' for more information.";;
20382 --help |
--hel |
-h )
20383 $as_echo "$ac_cs_usage"; exit ;;
20384 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20385 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20388 # This is an error.
20389 -*) as_fn_error $?
"unrecognized option: \`$1'
20390 Try \`$0 --help' for more information." ;;
20392 *) as_fn_append ac_config_targets
" $1"
20393 ac_need_defaults
=false
;;
20399 ac_configure_extra_args
=
20401 if $ac_cs_silent; then
20403 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20408 if \$ac_cs_recheck; then
20409 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20412 CONFIG_SHELL='$SHELL'
20413 export CONFIG_SHELL
20418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20423 ## Running $as_me. ##
20429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20434 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20440 # Handling of arguments.
20441 for ac_config_target
in $ac_config_targets
20443 case $ac_config_target in
20444 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20445 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20446 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20447 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20448 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20449 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20450 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20451 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20452 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20453 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20454 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20455 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20456 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20457 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20458 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20459 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20460 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20461 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20463 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20468 # If the user did not use the arguments to specify the items to instantiate,
20469 # then the envvar interface is used. Set only those that are not.
20470 # We use the long form for the default assignment because of an extremely
20471 # bizarre bug on SunOS 4.1.3.
20472 if $ac_need_defaults; then
20473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20478 # Have a temporary directory for convenience. Make it in the build tree
20479 # simply because there is no reason against having it here, and in addition,
20480 # creating and moving files from /tmp can sometimes cause problems.
20481 # Hook for its removal unless debugging.
20482 # Note that there is a small window in which the directory will not be cleaned:
20483 # after its creation but before its name has been assigned to `$tmp'.
20487 trap 'exit_status=$?
20488 : "${ac_tmp:=$tmp}"
20489 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20491 trap 'as_fn_exit 1' 1 2 13 15
20493 # Create a (secure) tmp directory for tmp files.
20496 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20500 tmp
=.
/conf$$
-$RANDOM
20501 (umask 077 && mkdir
"$tmp")
20502 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20505 # Set up the scripts for CONFIG_FILES section.
20506 # No need to generate them if there are no CONFIG_FILES.
20507 # This happens for instance with `./config.status config.h'.
20508 if test -n "$CONFIG_FILES"; then
20510 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20511 ac_cs_awk_getline
=:
20512 ac_cs_awk_pipe_init
=
20513 ac_cs_awk_read_file
='
20514 while ((getline aline < (F[key])) > 0)
20517 ac_cs_awk_pipe_fini
=
20519 ac_cs_awk_getline
=false
20520 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20521 ac_cs_awk_read_file
='
20523 print "cat " F[key] " &&"
20524 '$ac_cs_awk_pipe_init
20525 # The final `:' finishes the AND list.
20526 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20528 ac_cr
=`echo X | tr X '\015'`
20529 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20530 # But we know of no other shell where ac_cr would be empty at this
20531 # point, so we can use a bashism as a fallback.
20532 if test "x$ac_cr" = x
; then
20533 eval ac_cr
=\$
\'\\r
\'
20535 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20539 ac_cs_awk_cr
=$ac_cr
20542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20545 # Create commands to substitute file output variables.
20547 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20548 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20549 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20552 } >conf$
$files.sh
&&
20553 . .
/conf$
$files.sh ||
20554 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20555 rm -f conf$
$files.sh
20558 echo "cat >conf$$subs.awk <<_ACEOF" &&
20559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20561 } >conf$$subs.sh ||
20562 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20565 for ac_last_try in false false false false false :; do
20566 . ./conf$$subs.sh ||
20567 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20569 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20570 if test $ac_delim_n = $ac_delim_num; then
20572 elif $ac_last_try; then
20573 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20575 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20578 rm -f conf$$subs.sh
20580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20581 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20585 s/^/S["/; s
/!.
*/"]=/
20595 s/\(.\{148\}\)..*/\1/
20597 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20602 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20609 s/\(.\{148\}\)..*/\1/
20611 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20615 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20620 ' <conf$$subs.awk | sed '
20625 ' >>$CONFIG_STATUS || ac_write_fail=1
20626 rm -f conf$$subs.awk
20627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20629 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20630 for (key in S) S_is_set[key] = 1
20632 \$ac_cs_awk_pipe_init
20636 nfields = split(line, field, "@
")
20638 len = length(field[1])
20639 for (i = 2; i < nfields; i++) {
20641 keylen = length(key)
20642 if (S_is_set[key]) {
20644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20645 len += length(value) + length(field[++i])
20650 if (nfields == 3 && !substed) {
20652 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20653 \$ac_cs_awk_read_file
20659 \$ac_cs_awk_pipe_fini
20662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20663 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20664 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20667 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20668 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20671 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20672 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20673 # trailing colons and then remove the whole line if VPATH becomes empty
20674 # (actually we leave an empty line to preserve line numbers).
20675 if test "x
$srcdir" = x.; then
20676 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20695 fi # test -n "$CONFIG_FILES"
20697 # Set up the scripts for CONFIG_HEADERS section.
20698 # No need to generate them if there are no CONFIG_HEADERS.
20699 # This happens for instance with `./config.status Makefile'.
20700 if test -n "$CONFIG_HEADERS"; then
20701 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20705 # Transform confdefs.h into an awk script `defines.awk', embedded as
20706 # here-document in config.status, that substitutes the proper values into
20707 # config.h.in to produce config.h.
20709 # Create a delimiter string that does not exist in confdefs.h, to ease
20710 # handling of long lines.
20712 for ac_last_try in false false :; do
20713 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20714 if test -z "$ac_tt"; then
20716 elif $ac_last_try; then
20717 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20719 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20723 # For the awk script, D is an array of macro values keyed by name,
20724 # likewise P contains macro parameters if any. Preserve backslash
20725 # newline sequences.
20727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20729 s/.\{148\}/&'"$ac_delim"'/g
20732 s/^[ ]*#[ ]*define[ ][ ]*/ /
20739 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20741 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20746 D["\
1"]=" \
3\\\\\\n
"\\/p
20748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20753 s/.\{148\}/&'"$ac_delim"'/g
20758 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20761 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20763 ' <confdefs.h | sed '
20764 s/'"$ac_delim"'/"\\\
20765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20768 for (key in D) D_is_set[key] = 1
20771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20773 split(line, arg, " ")
20774 if (arg[1] == "#") {
20778 defundef
= substr
(arg
[1], 2)
20781 split(mac1
, mac2
, "(") #)
20783 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20784 if (D_is_set
[macro
]) {
20785 # Preserve the white space surrounding the "#".
20786 print prefix
"define", macro P
[macro
] D
[macro
]
20789 # Replace #undef with comments. This is necessary, for example,
20790 # in the case of _POSIX_SOURCE, which is predefined and required
20791 # on some systems where configure will not decide to define it.
20792 if (defundef
== "undef") {
20793 print
"/*", prefix defundef
, macro
, "*/"
20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20802 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20803 fi # test -n "$CONFIG_HEADERS"
20806 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20811 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20813 case $ac_mode$ac_tag in
20815 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20816 :[FH
]-) ac_tag
=-:-;;
20817 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20834 -) ac_f
="$ac_tmp/stdin";;
20835 *) # Look for the file first in the build tree, then in the source tree
20836 # (if the path is not absolute). The absolute path cannot be DOS-style,
20837 # because $ac_f cannot contain `:'.
20841 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20843 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20845 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20846 as_fn_append ac_file_inputs
" '$ac_f'"
20849 # Let's still pretend it is `configure' which instantiates (i.e., don't
20850 # use $as_me), people would be surprised to read:
20851 # /* config.h. Generated by config.status. */
20852 configure_input
='Generated from '`
20853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20855 if test x
"$ac_file" != x-
; then
20856 configure_input
="$ac_file. $configure_input"
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20858 $as_echo "$as_me: creating $ac_file" >&6;}
20860 # Neutralize special characters interpreted by sed in replacement strings.
20861 case $configure_input in #(
20862 *\
&* |
*\|
* |
*\\* )
20863 ac_sed_conf_input
=`$as_echo "$configure_input" |
20864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20865 *) ac_sed_conf_input
=$configure_input;;
20869 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20870 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20875 ac_dir
=`$as_dirname -- "$ac_file" ||
20876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20877 X"$ac_file" : 'X\(//\)[^/]' \| \
20878 X"$ac_file" : 'X\(//\)$' \| \
20879 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20880 $as_echo X"$ac_file" |
20881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20885 /^X\(\/\/\)[^/].*/{
20898 as_dir
="$ac_dir"; as_fn_mkdir_p
20902 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20904 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20905 # A ".." for each directory in $ac_dir_suffix.
20906 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20907 case $ac_top_builddir_sub in
20908 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20909 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20912 ac_abs_top_builddir
=$ac_pwd
20913 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20914 # for backward compatibility:
20915 ac_top_builddir
=$ac_top_build_prefix
20918 .
) # We are building in place.
20920 ac_top_srcdir
=$ac_top_builddir_sub
20921 ac_abs_top_srcdir
=$ac_pwd ;;
20922 [\\/]* | ?
:[\\/]* ) # Absolute name.
20923 ac_srcdir
=$srcdir$ac_dir_suffix;
20924 ac_top_srcdir
=$srcdir
20925 ac_abs_top_srcdir
=$srcdir ;;
20926 *) # Relative name.
20927 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20928 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20929 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20931 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20941 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20942 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20944 ac_MKDIR_P
=$MKDIR_P
20946 [\\/$
]* | ?
:[\\/]* ) ;;
20947 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20952 # If the template does not know about datarootdir, expand it.
20953 # FIXME: This hack should be removed a few years after 2.60.
20954 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20965 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20966 *datarootdir
*) ac_datarootdir_seen
=yes;;
20967 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20969 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20972 ac_datarootdir_hack='
20973 s&@datadir@&$datadir&g
20974 s&@docdir@&$docdir&g
20975 s&@infodir@&$infodir&g
20976 s&@localedir@&$localedir&g
20977 s&@mandir@&$mandir&g
20978 s&\\\${datarootdir}&$datarootdir&g' ;;
20982 # Neutralize VPATH when `$srcdir' = `.'.
20983 # Shell code in configure.ac might set extrasub.
20984 # FIXME: do we really want to maintain this feature?
20985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986 ac_sed_extra="$ac_vpsub
20989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20991 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20992 s|@configure_input@|
$ac_sed_conf_input|
;t t
20993 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20994 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20995 s
&@srcdir@
&$ac_srcdir&;t t
20996 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20997 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20998 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20999 s
&@builddir@
&$ac_builddir&;t t
21000 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21001 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21002 s
&@INSTALL@
&$ac_INSTALL&;t t
21003 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21004 $ac_datarootdir_hack
21006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21007 if $ac_cs_awk_getline; then
21008 $AWK -f "$ac_tmp/subs.
awk"
21010 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21012 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21015 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21017 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21019 which seems to be undefined. Please make sure it is defined" >&5
21020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21021 which seems to be undefined. Please make sure it is defined" >&2;}
21023 rm -f "$ac_tmp/stdin"
21025 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21026 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21034 if test x"$ac_file" != x-; then
21036 $as_echo "/* $configure_input */" \
21037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21038 } >"$ac_tmp/config.h" \
21039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21040 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21042 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21045 mv "$ac_tmp/config.h" "$ac_file" \
21046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21049 $as_echo "/* $configure_input */" \
21050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21051 || as_fn_error $? "could not create -" "$LINENO" 5
21053 # Compute "$ac_file"'s index
in $config_headers.
21056 for _am_header
in $config_headers :; do
21057 case $_am_header in
21058 $_am_arg |
$_am_arg:* )
21061 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21064 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21065 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21066 X"$_am_arg" : 'X\(//\)[^/]' \| \
21067 X"$_am_arg" : 'X\(//\)$' \| \
21068 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21069 $as_echo X"$_am_arg" |
21070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21074 /^X\(\/\/\)[^/].*/{
21086 s/.*/./; q'`/stamp-h
$_am_stamp_count
21089 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21090 $as_echo "$as_me: executing $ac_file commands" >&6;}
21095 case $ac_file$ac_mode in
21096 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21097 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21098 # are listed without --file. Let's play safe and only enable the eval
21099 # if we detect the quoting.
21100 case $CONFIG_FILES in
21101 *\'*) eval set x
"$CONFIG_FILES" ;;
21102 *) set x
$CONFIG_FILES ;;
21107 # Strip MF so we end up with the name of the file.
21108 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21109 # Check whether this is an Automake generated Makefile or not.
21110 # We used to match only the files named `Makefile.in', but
21111 # some people rename them; so instead we look at the file content.
21112 # Grep'ing the first line is not enough: some people post-process
21113 # each Makefile.in and add a new line on top of each file to say so.
21114 # Grep'ing the whole file is not good either: AIX grep has a line
21115 # limit of 2048, but all sed's we know have understand at least 4000.
21116 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21117 dirpart
=`$as_dirname -- "$mf" ||
21118 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21119 X"$mf" : 'X\(//\)[^/]' \| \
21120 X"$mf" : 'X\(//\)$' \| \
21121 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21127 /^X\(\/\/\)[^/].*/{
21143 # Extract the definition of DEPDIR, am__include, and am__quote
21144 # from the Makefile without running `make'.
21145 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21146 test -z "$DEPDIR" && continue
21147 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21148 test -z "am__include" && continue
21149 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21150 # When using ansi2knr, U may be empty or an underscore; expand it
21151 U
=`sed -n 's/^U = //p' < "$mf"`
21152 # Find all dependency output files, they are included files with
21153 # $(DEPDIR) in their names. We invoke sed twice because it is the
21154 # simplest approach to changing $(DEPDIR) to its actual value in the
21156 for file in `sed -n "
21157 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21158 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21159 # Make sure the directory exists.
21160 test -f "$dirpart/$file" && continue
21161 fdir
=`$as_dirname -- "$file" ||
21162 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21163 X"$file" : 'X\(//\)[^/]' \| \
21164 X"$file" : 'X\(//\)$' \| \
21165 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21166 $as_echo X"$file" |
21167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21171 /^X\(\/\/\)[^/].*/{
21184 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21185 # echo "creating $dirpart/$file"
21186 echo '# dummy' > "$dirpart/$file"
21192 for dir
in etc lisp
; do
21193 test -d ${dir} || mkdir
${dir}
21197 echo creating src
/epaths.h
21198 ${MAKE-make} epaths-force
21201 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21202 echo creating src
/.gdbinit
21203 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21213 ac_clean_files
=$ac_clean_files_save
21215 test $ac_write_fail = 0 ||
21216 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21219 # configure is writing to config.log, and then calls config.status.
21220 # config.status does its own redirection, appending to config.log.
21221 # Unfortunately, on DOS this fails, as config.log is still kept open
21222 # by configure, so config.status won't be able to write to it; its
21223 # output is simply discarded. So we exec the FD to /dev/null,
21224 # effectively closing config.log, so it can be properly (re)opened and
21225 # appended to by config.status. When coming back to configure, we
21226 # need to make the FD available again.
21227 if test "$no_create" != yes; then
21229 ac_config_status_args
=
21230 test "$silent" = yes &&
21231 ac_config_status_args
="$ac_config_status_args --quiet"
21233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21236 # would make configure fail if this is the last instruction.
21237 $ac_cs_success || as_fn_exit
1
21239 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21241 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}