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_STDLIB_H
682 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
689 APPLE_UNIVERSAL_BUILD
697 HAVE_DECL_LOCALTIME_R
707 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
711 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
713 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
714 UNISTD_H_HAVE_WINSOCK2_H
733 REPLACE_GETDOMAINNAME
743 HAVE_DECL_GETUSERSHELL
744 HAVE_DECL_GETPAGESIZE
746 HAVE_DECL_GETDOMAINNAME
781 GNULIB_UNISTD_H_SIGPIPE
782 GNULIB_UNISTD_H_GETOPT
829 REPLACE_CANONICALIZE_FILE_NAME
834 HAVE_STRUCT_RANDOM_DATA
853 HAVE_CANONICALIZE_FILE_NAME
878 GNULIB_CANONICALIZE_FILE_NAME
882 GL_COND_LIBTOOL_FALSE
932 LD_SWITCH_X_SITE_AUX_RPATH
994 INSTALL_STRIP_PROGRAM
1036 program_transform_name
1047 ac_subst_files
='deps_frag
1050 enable_option_checking
1072 with_toolkit_scroll_bars
1083 with_pkg_config_prog
1087 enable_ns_self_contained
1089 enable_maintainer_mode
1090 enable_locallisppath
1092 enable_use_lisp_union_type
1095 enable_dependency_tracking
1099 ac_precious_vars
='build_alias
1111 # Initialize some variables set by options.
1113 ac_init_version
=false
1114 ac_unrecognized_opts
=
1115 ac_unrecognized_sep
=
1116 # The variables have the same names as the options, with
1117 # dashes changed to underlines.
1118 cache_file
=/dev
/null
1125 program_transform_name
=s
,x
,x
,
1133 # Installation directory options.
1134 # These are left unexpanded so users can "make install exec_prefix=/foo"
1135 # and all the variables that are supposed to be based on exec_prefix
1136 # by default will actually change.
1137 # Use braces instead of parens because sh, perl, etc. also accept them.
1138 # (The list follows the same order as the GNU Coding Standards.)
1139 bindir
='${exec_prefix}/bin'
1140 sbindir
='${exec_prefix}/sbin'
1141 libexecdir
='${exec_prefix}/libexec'
1142 datarootdir
='${prefix}/share'
1143 datadir
='${datarootdir}'
1144 sysconfdir
='${prefix}/etc'
1145 sharedstatedir
='${prefix}/com'
1146 localstatedir
='${prefix}/var'
1147 includedir
='${prefix}/include'
1148 oldincludedir
='/usr/include'
1149 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1150 infodir
='${datarootdir}/info'
1155 libdir
='${exec_prefix}/lib'
1156 localedir
='${datarootdir}/locale'
1157 mandir
='${datarootdir}/man'
1163 # If the previous option needs an argument, assign it.
1164 if test -n "$ac_prev"; then
1165 eval $ac_prev=\
$ac_option
1171 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1176 # Accept the important Cygnus configure options, so we can diagnose typos.
1178 case $ac_dashdash$ac_option in
1182 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1184 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1185 bindir
=$ac_optarg ;;
1187 -build |
--build |
--buil |
--bui |
--bu)
1188 ac_prev
=build_alias
;;
1189 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1190 build_alias
=$ac_optarg ;;
1192 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1193 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1194 ac_prev
=cache_file
;;
1195 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1196 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1197 cache_file
=$ac_optarg ;;
1199 --config-cache |
-C)
1200 cache_file
=config.cache
;;
1202 -datadir |
--datadir |
--datadi |
--datad)
1204 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1205 datadir
=$ac_optarg ;;
1207 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1208 |
--dataroo |
--dataro |
--datar)
1209 ac_prev
=datarootdir
;;
1210 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1211 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1212 datarootdir
=$ac_optarg ;;
1214 -disable-* |
--disable-*)
1215 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 as_fn_error $?
"invalid feature name: $ac_useropt"
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "enable_
$ac_useropt"
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval enable_
$ac_useropt=no
;;
1230 -docdir |
--docdir |
--docdi |
--doc |
--do)
1232 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1233 docdir
=$ac_optarg ;;
1235 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1237 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1238 dvidir
=$ac_optarg ;;
1240 -enable-* |
--enable-*)
1241 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid feature name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "enable_
$ac_useropt"
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval enable_
$ac_useropt=\
$ac_optarg ;;
1256 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1257 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1258 |
--exec |
--exe |
--ex)
1259 ac_prev
=exec_prefix
;;
1260 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1261 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1262 |
--exec=* |
--exe=* |
--ex=*)
1263 exec_prefix
=$ac_optarg ;;
1265 -gas |
--gas |
--ga |
--g)
1266 # Obsolete; use --with-gas.
1269 -help |
--help |
--hel |
--he |
-h)
1270 ac_init_help
=long
;;
1271 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1272 ac_init_help
=recursive
;;
1273 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1274 ac_init_help
=short
;;
1276 -host |
--host |
--hos |
--ho)
1277 ac_prev
=host_alias
;;
1278 -host=* |
--host=* |
--hos=* |
--ho=*)
1279 host_alias
=$ac_optarg ;;
1281 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1283 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1285 htmldir
=$ac_optarg ;;
1287 -includedir |
--includedir |
--includedi |
--included |
--include \
1288 |
--includ |
--inclu |
--incl |
--inc)
1289 ac_prev
=includedir
;;
1290 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1291 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1292 includedir
=$ac_optarg ;;
1294 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1296 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1297 infodir
=$ac_optarg ;;
1299 -libdir |
--libdir |
--libdi |
--libd)
1301 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1302 libdir
=$ac_optarg ;;
1304 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1305 |
--libexe |
--libex |
--libe)
1306 ac_prev
=libexecdir
;;
1307 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1308 |
--libexe=* |
--libex=* |
--libe=*)
1309 libexecdir
=$ac_optarg ;;
1311 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1312 ac_prev
=localedir
;;
1313 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1314 localedir
=$ac_optarg ;;
1316 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1317 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1318 ac_prev
=localstatedir
;;
1319 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1320 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1321 localstatedir
=$ac_optarg ;;
1323 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1325 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1326 mandir
=$ac_optarg ;;
1328 -nfp |
--nfp |
--nf)
1329 # Obsolete; use --without-fp.
1332 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1333 |
--no-cr |
--no-c |
-n)
1336 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1337 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1340 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1341 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1342 |
--oldin |
--oldi |
--old |
--ol |
--o)
1343 ac_prev
=oldincludedir
;;
1344 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1345 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1346 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1347 oldincludedir
=$ac_optarg ;;
1349 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1351 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1352 prefix
=$ac_optarg ;;
1354 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1355 |
--program-pre |
--program-pr |
--program-p)
1356 ac_prev
=program_prefix
;;
1357 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1358 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1359 program_prefix
=$ac_optarg ;;
1361 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1362 |
--program-suf |
--program-su |
--program-s)
1363 ac_prev
=program_suffix
;;
1364 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1365 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1366 program_suffix
=$ac_optarg ;;
1368 -program-transform-name |
--program-transform-name \
1369 |
--program-transform-nam |
--program-transform-na \
1370 |
--program-transform-n |
--program-transform- \
1371 |
--program-transform |
--program-transfor \
1372 |
--program-transfo |
--program-transf \
1373 |
--program-trans |
--program-tran \
1374 |
--progr-tra |
--program-tr |
--program-t)
1375 ac_prev
=program_transform_name
;;
1376 -program-transform-name=* |
--program-transform-name=* \
1377 |
--program-transform-nam=* |
--program-transform-na=* \
1378 |
--program-transform-n=* |
--program-transform-=* \
1379 |
--program-transform=* |
--program-transfor=* \
1380 |
--program-transfo=* |
--program-transf=* \
1381 |
--program-trans=* |
--program-tran=* \
1382 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1383 program_transform_name
=$ac_optarg ;;
1385 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1387 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1388 pdfdir
=$ac_optarg ;;
1390 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1392 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1395 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1396 |
-silent |
--silent |
--silen |
--sile |
--sil)
1399 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1401 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1403 sbindir
=$ac_optarg ;;
1405 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1406 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1407 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1409 ac_prev
=sharedstatedir
;;
1410 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1411 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1412 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1414 sharedstatedir
=$ac_optarg ;;
1416 -site |
--site |
--sit)
1418 -site=* |
--site=* |
--sit=*)
1421 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1423 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1424 srcdir
=$ac_optarg ;;
1426 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1427 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1428 ac_prev
=sysconfdir
;;
1429 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1430 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1431 sysconfdir
=$ac_optarg ;;
1433 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1434 ac_prev
=target_alias
;;
1435 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1436 target_alias
=$ac_optarg ;;
1438 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1441 -version |
--version |
--versio |
--versi |
--vers |
-V)
1442 ac_init_version
=: ;;
1445 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1446 # Reject names that are not valid shell variable names.
1447 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1448 as_fn_error $?
"invalid package name: $ac_useropt"
1449 ac_useropt_orig
=$ac_useropt
1450 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451 case $ac_user_opts in
1455 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1456 ac_unrecognized_sep
=', ';;
1458 eval with_
$ac_useropt=\
$ac_optarg ;;
1460 -without-* |
--without-*)
1461 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1464 as_fn_error $?
"invalid package name: $ac_useropt"
1465 ac_useropt_orig
=$ac_useropt
1466 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1471 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1472 ac_unrecognized_sep
=', ';;
1474 eval with_
$ac_useropt=no
;;
1477 # Obsolete; use --with-x.
1480 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1481 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1482 ac_prev
=x_includes
;;
1483 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1484 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1485 x_includes
=$ac_optarg ;;
1487 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1488 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1489 ac_prev
=x_libraries
;;
1490 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1491 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1492 x_libraries
=$ac_optarg ;;
1494 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1495 Try \`$0 --help' for more information"
1499 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1500 # Reject names that are not valid shell variable names.
1501 case $ac_envvar in #(
1502 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1503 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1505 eval $ac_envvar=\
$ac_optarg
1506 export $ac_envvar ;;
1509 # FIXME: should be removed in autoconf 3.0.
1510 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1511 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1512 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1513 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1519 if test -n "$ac_prev"; then
1520 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1521 as_fn_error $?
"missing argument to $ac_option"
1524 if test -n "$ac_unrecognized_opts"; then
1525 case $enable_option_checking in
1527 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1528 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1532 # Check all directory arguments for consistency.
1533 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1534 datadir sysconfdir sharedstatedir localstatedir includedir \
1535 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1536 libdir localedir mandir
1538 eval ac_val
=\$
$ac_var
1539 # Remove trailing slashes.
1542 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1543 eval $ac_var=\
$ac_val;;
1545 # Be sure to have absolute directory names.
1547 [\\/$
]* | ?
:[\\/]* ) continue;;
1548 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1550 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1553 # There might be people who depend on the old broken behavior: `$host'
1554 # used to hold the argument of --host etc.
1555 # FIXME: To remove some day.
1558 target
=$target_alias
1560 # FIXME: To remove some day.
1561 if test "x$host_alias" != x
; then
1562 if test "x$build_alias" = x
; then
1563 cross_compiling
=maybe
1564 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1565 If a cross compiler is detected then cross compile mode will be used" >&2
1566 elif test "x$build_alias" != "x$host_alias"; then
1572 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1574 test "$silent" = yes && exec 6>/dev
/null
1577 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1578 ac_ls_di
=`ls -di .` &&
1579 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1580 as_fn_error $?
"working directory cannot be determined"
1581 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1582 as_fn_error $?
"pwd does not report name of working directory"
1585 # Find the source files, if location was not specified.
1586 if test -z "$srcdir"; then
1587 ac_srcdir_defaulted
=yes
1588 # Try the directory containing this script, then the parent directory.
1589 ac_confdir
=`$as_dirname -- "$as_myself" ||
1590 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1591 X"$as_myself" : 'X\(//\)[^/]' \| \
1592 X"$as_myself" : 'X\(//\)$' \| \
1593 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1594 $as_echo X"$as_myself" |
1595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1613 if test ! -r "$srcdir/$ac_unique_file"; then
1617 ac_srcdir_defaulted
=no
1619 if test ! -r "$srcdir/$ac_unique_file"; then
1620 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1621 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1623 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1625 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1627 # When building in place, set srcdir=.
1628 if test "$ac_abs_confdir" = "$ac_pwd"; then
1631 # Remove unnecessary trailing slashes from srcdir.
1632 # Double slashes in file names in object file debugging info
1633 # mess up M-x gdb in Emacs.
1635 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1637 for ac_var
in $ac_precious_vars; do
1638 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1639 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1640 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1641 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1645 # Report the --help message.
1647 if test "$ac_init_help" = "long"; then
1648 # Omit some internal or obsolete options to make the list less imposing.
1649 # This message is too long to be a string in the A/UX 3.1 sh.
1651 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1653 Usage: $0 [OPTION]... [VAR=VALUE]...
1655 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1656 VAR=VALUE. See below for descriptions of some of the useful variables.
1658 Defaults for the options are specified in brackets.
1661 -h, --help display this help and exit
1662 --help=short display options specific to this package
1663 --help=recursive display the short help of all the included packages
1664 -V, --version display version information and exit
1665 -q, --quiet, --silent do not print \`checking ...' messages
1666 --cache-file=FILE cache test results in FILE [disabled]
1667 -C, --config-cache alias for \`--cache-file=config.cache'
1668 -n, --no-create do not create output files
1669 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1671 Installation directories:
1672 --prefix=PREFIX install architecture-independent files in PREFIX
1673 [$ac_default_prefix]
1674 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1677 By default, \`make install' will install all the files in
1678 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1679 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1680 for instance \`--prefix=\$HOME'.
1682 For better control, use the options below.
1684 Fine tuning of the installation directories:
1685 --bindir=DIR user executables [EPREFIX/bin]
1686 --sbindir=DIR system admin executables [EPREFIX/sbin]
1687 --libexecdir=DIR program executables [EPREFIX/libexec]
1688 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1689 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1690 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1691 --libdir=DIR object code libraries [EPREFIX/lib]
1692 --includedir=DIR C header files [PREFIX/include]
1693 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1694 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1695 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1696 --infodir=DIR info documentation [DATAROOTDIR/info]
1697 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1698 --mandir=DIR man documentation [DATAROOTDIR/man]
1699 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1700 --htmldir=DIR html documentation [DOCDIR]
1701 --dvidir=DIR dvi documentation [DOCDIR]
1702 --pdfdir=DIR pdf documentation [DOCDIR]
1703 --psdir=DIR ps documentation [DOCDIR]
1709 --program-prefix=PREFIX prepend PREFIX to installed program names
1710 --program-suffix=SUFFIX append SUFFIX to installed program names
1711 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1714 --x-includes=DIR X include files are
in DIR
1715 --x-libraries=DIR X library files are
in DIR
1718 --build=BUILD configure
for building on BUILD
[guessed
]
1719 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1723 if test -n "$ac_init_help"; then
1724 case $ac_init_help in
1725 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1730 --disable-option-checking ignore unrecognized
--enable/--with options
1731 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1732 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1733 --disable-ns-self-contained
1734 disable self contained build under NeXTstep
1735 --enable-asserts compile code with asserts enabled
1736 --enable-maintainer-mode
1737 enable make rules and dependencies not useful
(and
1738 sometimes confusing
) to the casual installer
1739 --enable-locallisppath=PATH
1740 directories Emacs should search
for lisp files
1741 specific to this site
1742 --enable-checking[=LIST
]
1743 enable expensive run-time checks. With LIST
, enable
1744 only specific categories of checks. Categories are
:
1745 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1746 stringfreelist
, xmallocoverrun
, conslist
1747 --enable-use-lisp-union-type
1748 use a union
for the Lisp_Object data
type. This is
1749 only useful
for development
for catching certain
1751 --enable-profiling build emacs with profiling support. This might not
1752 work on all platforms
1753 --enable-autodepend automatically generate dependencies to .h-files.
1754 Requires GNU Make and Gcc. Enabled
if GNU Make and
1756 --disable-dependency-tracking speeds up one-time build
1757 --enable-dependency-tracking do not reject slow dependency extractors
1758 --disable-largefile omit support
for large files
1761 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1762 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1763 --without-pop don
't support POP mail retrieval with movemail
1764 --with-kerberos support Kerberos-authenticated POP
1765 --with-kerberos5 support Kerberos version 5 authenticated POP
1766 --with-hesiod support Hesiod to get the POP server host
1767 --with-mmdf support MMDF mailboxes
1768 --with-mail-unlink unlink, rather than empty, mail spool after reading
1769 --with-mailhost=HOSTNAME
1770 string giving default POP mail host
1771 --without-sound don't compile with sound support
1772 --without-sync-input process async input synchronously
1773 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1774 lucid or athena
, motif
, no
)
1775 --without-xpm don
't compile with XPM image support
1776 --without-jpeg don't compile with JPEG image support
1777 --without-tiff don
't compile with TIFF image support
1778 --without-gif don't compile with GIF image support
1779 --without-png don
't compile with PNG image support
1780 --without-rsvg don't compile with SVG image support
1781 --without-xml2 don
't compile with XML parsing support
1782 --without-imagemagick don't compile with ImageMagick image support
1783 --without-xft don
't use XFT for anti aliased fonts
1784 --without-libotf don't use libotf
for OpenType font support
1785 --without-m17n-flt don
't use m17n-flt for text shaping
1786 --without-toolkit-scroll-bars
1787 don't use Motif or Xaw3d scroll bars
1788 --without-xaw3d don
't use Xaw3d
1789 --without-xim don't use X11 XIM
1790 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1791 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1793 --without-dbus don't compile with D-Bus support
1794 --without-gconf don
't compile with GConf support
1795 --without-selinux don't compile with SELinux support
1796 --without-gnutls don
't use -lgnutls for SSL/TLS support
1797 --without-makeinfo don't require makeinfo
for building manuals
1798 --without-compress-info don
't compress the installed Info pages
1799 --with-pkg-config-prog=PATH
1800 path to pkg-config for finding GTK and librsvg
1801 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1802 /usr/lib, or /usr/lib64 on some platforms.
1803 --with-gameuser=USER user for shared game score files
1804 --with-gnustep-conf=PATH
1805 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1806 or /etc/GNUstep/GNUstep.conf
1807 --with-x use the X Window System
1809 Some influential environment variables:
1810 CC C compiler command
1811 CFLAGS C compiler flags
1812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1813 nonstandard directory <lib dir>
1814 LIBS libraries to pass to the linker, e.g. -l<library>
1815 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1816 you have headers in a nonstandard directory <include dir>
1818 XMKMF Path to xmkmf, Makefile generator for X Window System
1820 Use these variables to override the choices made by `configure' or to
help
1821 it to
find libraries and programs with nonstandard names
/locations.
1823 Report bugs to the package provider.
1828 if test "$ac_init_help" = "recursive"; then
1829 # If there are subdirs, report their specific --help.
1830 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1831 test -d "$ac_dir" ||
1832 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1837 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1839 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1840 # A ".." for each directory in $ac_dir_suffix.
1841 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1842 case $ac_top_builddir_sub in
1843 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1844 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1847 ac_abs_top_builddir
=$ac_pwd
1848 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1849 # for backward compatibility:
1850 ac_top_builddir
=$ac_top_build_prefix
1853 .
) # We are building in place.
1855 ac_top_srcdir
=$ac_top_builddir_sub
1856 ac_abs_top_srcdir
=$ac_pwd ;;
1857 [\\/]* | ?
:[\\/]* ) # Absolute name.
1858 ac_srcdir
=$srcdir$ac_dir_suffix;
1859 ac_top_srcdir
=$srcdir
1860 ac_abs_top_srcdir
=$srcdir ;;
1862 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1863 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1864 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1866 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1868 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1869 # Check for guested configure.
1870 if test -f "$ac_srcdir/configure.gnu"; then
1872 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1873 elif test -f "$ac_srcdir/configure"; then
1875 $SHELL "$ac_srcdir/configure" --help=recursive
1877 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1879 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1883 test -n "$ac_init_help" && exit $ac_status
1884 if $ac_init_version; then
1886 emacs configure
24.0.50
1887 generated by GNU Autoconf
2.68
1889 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1890 This configure
script is free software
; the Free Software Foundation
1891 gives unlimited permission to copy
, distribute and modify it.
1896 ## ------------------------ ##
1897 ## Autoconf initialization. ##
1898 ## ------------------------ ##
1900 # ac_fn_c_try_compile LINENO
1901 # --------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_compile
()
1905 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1906 rm -f conftest.
$ac_objext
1907 if { { ac_try
="$ac_compile"
1909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_compile
1938 # ac_fn_c_try_cpp LINENO
1939 # ----------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1947 *) ac_try_echo
=$ac_try;;
1949 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 if test -s conftest.err
; then
1954 grep -v '^ *+' conftest.err
>conftest.er1
1955 cat conftest.er1
>&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } > conftest.i
&& {
1960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.
$ac_ext >&5
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status
$ac_retval
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1980 ac_fn_c_check_header_mongrel
()
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if eval \
${$3+:} false
; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \
${$3+:} false
; then :
1987 $as_echo_n "(cached) " >&6
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2001 if ac_fn_c_try_compile
"$LINENO"; then :
2002 ac_header_compiler
=yes
2004 ac_header_compiler
=no
2006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 if ac_fn_c_try_cpp
"$LINENO"; then :
2018 ac_header_preproc
=yes
2020 ac_header_preproc
=no
2022 rm -f conftest.err conftest.i conftest.
$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \
${$3+:} false
; then :
2050 $as_echo_n "(cached) " >&6
2052 eval "$3=\$ac_header_compiler"
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2068 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2069 if { { ac_try
="$ac_link"
2071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2082 *) ac_try_echo
=$ac_try;;
2084 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2096 ac_retval
=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status
$ac_retval
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile
()
2110 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \
${$3+:} false
; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2121 if ac_fn_c_try_compile
"$LINENO"; then :
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_try_link LINENO
2136 # -----------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2141 rm -f conftest.
$ac_objext conftest
$ac_exeext
2142 if { { ac_try
="$ac_link"
2144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>conftest.err
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && {
2158 test -z "$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2160 } && test -s conftest$ac_exeext && {
2161 test "$cross_compiling" = yes ||
2162 $as_test_x conftest$ac_exeext
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2173 # interfere with the next link command; also delete a directory that is
2174 # left behind by Apple's compiler. We do this before executing the actions.
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_c_try_link
2181 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2182 # ---------------------------------------------
2183 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2185 ac_fn_c_check_decl ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2189 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2191 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 #ifndef $as_decl_name
2203 (void) $as_decl_use;
2205 (void) $as_decl_name;
2213 if ac_fn_c_try_compile "$LINENO"; then :
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_c_check_decl
2227 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2228 # ----------------------------------------------
2229 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2230 ac_fn_c_check_header_preproc ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 if ac_fn_c_try_cpp "$LINENO"; then :
2247 rm -f conftest.err conftest.i conftest.$ac_ext
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_header_preproc
2256 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2257 # ----------------------------------------------------
2258 # Tries to find if the field MEMBER exists in type AGGR, after including
2259 # INCLUDES, setting cache variable VAR accordingly.
2260 ac_fn_c_check_member ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2264 $as_echo_n "checking for $2.$3... " >&6; }
2265 if eval \${$4+:} false; then :
2266 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2281 if ac_fn_c_try_compile "$LINENO"; then :
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2291 if (sizeof ac_aggr.$3)
2297 if ac_fn_c_try_compile "$LINENO"; then :
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308 $as_echo "$ac_res" >&6; }
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311 } # ac_fn_c_check_member
2313 # ac_fn_c_check_func LINENO FUNC VAR
2314 # ----------------------------------
2315 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2316 ac_fn_c_check_func ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if eval \${$3+:} false; then :
2322 $as_echo_n "(cached) " >&6
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2328 #define $2 innocuous_$2
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char $2 (); below.
2332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 <limits.h> exists even on freestanding compilers. */
2336 # include <limits.h>
2338 # include <assert.h>
2343 /* Override any GCC internal prototype to avoid an error.
2344 Use char because int might match the return type of a GCC
2345 builtin and then its argument prototype would still apply. */
2350 /* The GNU C library defines this for functions which it implements
2351 to always fail with ENOSYS. Some functions are actually named
2352 something starting with __ and the normal name is an alias. */
2353 #if defined __stub_$2 || defined __stub___$2
2365 if ac_fn_c_try_link "$LINENO"; then :
2370 rm -f core conftest.err conftest.$ac_objext \
2371 conftest$ac_exeext conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 } # ac_fn_c_check_func
2380 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2381 # -------------------------------------------
2382 # Tests whether TYPE exists after having included INCLUDES, setting cache
2383 # variable VAR accordingly.
2384 ac_fn_c_check_type ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2418 if ac_fn_c_try_compile "$LINENO"; then :
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 } # ac_fn_c_check_type
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2437 It was created by emacs $as_me 24.0.50, which was
2438 generated by GNU Autoconf 2.68. Invocation command line was
2450 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2451 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2452 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2453 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2454 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2456 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2457 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2459 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2460 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2461 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2462 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2463 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2464 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2465 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2498 ac_must_keep_next=false
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2509 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 -* ) ac_must_keep_next=true ;;
2530 as_fn_append ac_configure_args " '$ac_arg'"
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2552 # The following way of writing the cache mishandles newlines in values,
2554 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2555 eval ac_val=\$$ac_var
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2570 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2588 for ac_var in $ac_subst_vars
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2603 for ac_var in $ac_subst_files
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2638 $as_echo "/* confdefs.h */" > confdefs.h
2640 # Predefined preprocessor variables.
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site
script $ac_site_file
2696 See \
`config.log' for more details" "$LINENO" 5; }
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2717 as_fn_append ac_header_list " stdlib.h"
2718 as_fn_append ac_header_list " unistd.h"
2719 as_fn_append ac_header_list " sys/param.h"
2720 gl_getopt_required=GNU
2721 as_fn_append ac_header_list " getopt.h"
2722 as_fn_append ac_func_list " alarm"
2723 as_fn_append ac_func_list " tzset"
2724 as_fn_append ac_header_list " sys/time.h"
2725 as_fn_append ac_func_list " localtime_r"
2726 # Check that the precious variables saved in the cache have kept the same
2728 ac_cache_corrupted=false
2729 for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2737 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2741 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x
$ac_old_val`
2748 ac_new_val_w=`echo x
$ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2752 ac_cache_corrupted=:
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2755 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2759 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2761 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2767 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2776 if $ac_cache_corrupted; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2783 ## -------------------- ##
2784 ## Main body of script. ##
2785 ## -------------------- ##
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2797 am__api_version='1.11'
2800 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2801 if test -f "$ac_dir/install-sh"; then
2803 ac_install_sh="$ac_aux_dir/install-sh -c"
2805 elif test -f "$ac_dir/install.sh"; then
2807 ac_install_sh="$ac_aux_dir/install.sh -c"
2809 elif test -f "$ac_dir/shtool"; then
2811 ac_install_sh="$ac_aux_dir/shtool install -c"
2815 if test -z "$ac_aux_dir"; then
2816 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2819 # These three variables are undocumented and unsupported,
2820 # and are intended to be withdrawn in a future Autoconf release.
2821 # They can cause serious problems if a builder's source tree is in a directory
2822 # whose full name contains unusual characters.
2823 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2824 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2825 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2828 # Find a good install program. We prefer a C program (faster),
2829 # so one script is as good as another. But avoid the broken or
2830 # incompatible versions:
2831 # SysV /etc/install, /usr/sbin/install
2832 # SunOS /usr/etc/install
2833 # IRIX /sbin/install
2835 # AmigaOS /C/install, which installs bootblocks on floppy discs
2836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2839 # OS/2's system install, which has a completely different semantic
2840 # ./install, which can be erroneously created by make from ./install.sh.
2841 # Reject install programs that cannot install multiple files.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2843 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2844 if test -z "$INSTALL"; then
2845 if ${ac_cv_path_install+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 # Account for people who put trailing slashes in PATH elements.
2854 case $as_dir/ in #((
2855 ./ | .// | /[cC]/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2875 rm -rf conftest.one conftest.two conftest.dir
2876 echo one > conftest.one
2877 echo two > conftest.two
2879 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2880 test -s conftest.one && test -s conftest.two &&
2881 test -s conftest.dir/conftest.one &&
2882 test -s conftest.dir/conftest.two
2884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2897 rm -rf conftest.one conftest.two conftest.dir
2900 if test "${ac_cv_path_install+set}" = set; then
2901 INSTALL=$ac_cv_path_install
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for INSTALL within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 INSTALL=$ac_install_sh
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2911 $as_echo "$INSTALL" >&6; }
2913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2914 # It thinks the first close brace ends the variable substitution.
2915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2922 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 echo timestamp > conftest.file
2926 # Reject unsafe characters in $srcdir or the absolute working directory
2927 # name. Accept space and tab only in the latter.
2931 *[\\\"\#\$\&\'\`$am_lf]*)
2932 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2935 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2936 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2939 # Do `set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2945 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2946 if test "$*" = "X"; then
2948 set X
`ls -t "$srcdir/configure" conftest.file`
2951 if test "$*" != "X $srcdir/configure conftest.file" \
2952 && test "$*" != "X conftest.file $srcdir/configure"; then
2954 # If neither matched, then we have a broken ls. This can happen
2955 # if, for instance, CONFIG_SHELL is bash and it inherits a
2956 # broken ls alias from the environment. This has actually
2957 # happened. Such a system could not be considered "sane".
2958 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2959 alias in your environment" "$LINENO" 5
2962 test "$2" = conftest.
file
2968 as_fn_error $?
"newly created file is older than distributed files!
2969 Check your system clock" "$LINENO" 5
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 test "$program_prefix" != NONE
&&
2974 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2975 # Use a double $ so make ignores it.
2976 test "$program_suffix" != NONE
&&
2977 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2978 # Double any \ or $.
2979 # By default was `s,x,x', remove it if useless.
2980 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2981 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983 # expand $ac_aux_dir to an absolute path
2984 am_aux_dir
=`cd $ac_aux_dir && pwd`
2986 if test x
"${MISSING+set}" != xset
; then
2989 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2994 # Use eval to expand $SHELL
2995 if eval "$MISSING --run true"; then
2996 am_missing_run
="$MISSING --run "
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3000 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3003 if test x
"${install_sh}" != xset
; then
3006 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3012 # Installed binaries are usually stripped using `strip' when the user
3013 # run `make install-strip'. However `strip' might not be the right
3014 # tool to use in cross-compilation environments, therefore Automake
3015 # will honor the `STRIP' environment variable to overrule this program.
3016 if test "$cross_compiling" != no
; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3019 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_STRIP+:} false
; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$STRIP"; then
3026 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 STRIP
=$ac_cv_prog_STRIP
3046 if test -n "$STRIP"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3048 $as_echo "$STRIP" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$ac_cv_prog_STRIP"; then
3058 # Extract the first word of "strip", so it can be a program name with args.
3059 set dummy strip
; ac_word
=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_STRIP"; then
3066 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_STRIP
="strip"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3086 if test -n "$ac_ct_STRIP"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3088 $as_echo "$ac_ct_STRIP" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3094 if test "x$ac_ct_STRIP" = x
; then
3097 case $cross_compiling:$ac_tool_warned in
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned
=yes ;;
3106 STRIP
="$ac_cv_prog_STRIP"
3110 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3113 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3114 if test -z "$MKDIR_P"; then
3115 if ${ac_cv_path_mkdir+:} false
; then :
3116 $as_echo_n "(cached) " >&6
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_prog
in mkdir gmkdir
; do
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3126 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3127 'mkdir (GNU coreutils) '* | \
3128 'mkdir (coreutils) '* | \
3129 'mkdir (fileutils) '4.1*)
3130 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3140 test -d .
/--version && rmdir .
/--version
3141 if test "${ac_cv_path_mkdir+set}" = set; then
3142 MKDIR_P
="$ac_cv_path_mkdir -p"
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for MKDIR_P within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 MKDIR_P
="$ac_install_sh -d"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3152 $as_echo "$MKDIR_P" >&6; }
3157 [\\/$
]* | ?
:[\\/]*) ;;
3158 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3161 for ac_prog
in gawk mawk nawk
awk
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy
$ac_prog; ac_word
=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_AWK+:} false
; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$AWK"; then
3171 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_exec_ext
in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_AWK
="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$AWK"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 $as_echo "$AWK" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$AWK" && break
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3208 $as_echo_n "(cached) " >&6
3210 cat >conftest.
make <<\_ACEOF
3213 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3215 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3220 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3224 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 SET_MAKE
="MAKE=${MAKE-make}"
3234 rm -rf .tst
2>/dev
/null
3235 mkdir .tst
2>/dev
/null
3236 if test -d .tst
; then
3241 rmdir .tst
2>/dev
/null
3243 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245 # is not polluted with repeated "-I."
3246 am__isrc
=' -I$(srcdir)'
3247 # test to see if srcdir already configured
3248 if test -f $srcdir/config.status
; then
3249 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3256 CYGPATH_W
='cygpath -w'
3263 # Define the identity of the package.
3268 cat >>confdefs.h
<<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3273 cat >>confdefs.h
<<_ACEOF
3274 #define VERSION "$VERSION"
3277 # Some tools Automake needs.
3279 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3282 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3285 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3288 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3291 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3293 # We need awk for the "check" target. The system "awk" is bad on
3295 # Always define AMTAR for backward compatibility.
3297 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3299 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3308 lispdir
='${datadir}/emacs/${version}/lisp'
3309 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3310 '${datadir}/emacs/site-lisp'
3311 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3312 etcdir
='${datadir}/emacs/${version}/etc'
3313 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3314 docdir
='${datadir}/emacs/${version}/etc'
3315 gamedir
='${localstatedir}/games/emacs'
3320 # Check whether --with-pop was given.
3321 if test "${with_pop+set}" = set; then :
3327 if test "$with_pop" = yes; then
3328 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3333 # Check whether --with-kerberos was given.
3334 if test "${with_kerberos+set}" = set; then :
3335 withval
=$with_kerberos;
3340 if test "$with_kerberos" != no
; then
3341 $as_echo "#define KERBEROS 1" >>confdefs.h
3346 # Check whether --with-kerberos5 was given.
3347 if test "${with_kerberos5+set}" = set; then :
3348 withval
=$with_kerberos5;
3353 if test "${with_kerberos5}" != no
; then
3354 if test "${with_kerberos}" = no
; then
3356 $as_echo "#define KERBEROS 1" >>confdefs.h
3360 $as_echo "#define KERBEROS5 1" >>confdefs.h
3365 # Check whether --with-hesiod was given.
3366 if test "${with_hesiod+set}" = set; then :
3367 withval
=$with_hesiod;
3372 if test "$with_hesiod" != no
; then
3374 $as_echo "#define HESIOD 1" >>confdefs.h
3379 # Check whether --with-mmdf was given.
3380 if test "${with_mmdf+set}" = set; then :
3386 if test "$with_mmdf" != no
; then
3388 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3393 # Check whether --with-mail-unlink was given.
3394 if test "${with_mail_unlink+set}" = set; then :
3395 withval
=$with_mail_unlink;
3400 if test "$with_mail_unlink" != no
; then
3402 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3407 # Check whether --with-mailhost was given.
3408 if test "${with_mailhost+set}" = set; then :
3409 withval
=$with_mailhost;
3410 cat >>confdefs.h
<<_ACEOF
3411 #define MAILHOST "$withval"
3418 # Check whether --with-sound was given.
3419 if test "${with_sound+set}" = set; then :
3420 withval
=$with_sound;
3427 # Check whether --with-sync-input was given.
3428 if test "${with_sync_input+set}" = set; then :
3429 withval
=$with_sync_input;
3434 if test "$with_sync_input" = yes; then
3436 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3441 # Check whether --with-x-toolkit was given.
3442 if test "${with_x_toolkit+set}" = set; then :
3443 withval
=$with_x_toolkit; case "${withval}" in
3444 y | ye |
yes ) val
=gtk
;;
3446 l | lu | luc | luci | lucid
) val
=lucid
;;
3447 a |
at | ath | athe | athen | athena
) val
=athena
;;
3448 m | mo | mot | moti | motif
) val
=motif
;;
3449 g | gt | gtk
) val
=gtk
;;
3452 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3454 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3463 # Check whether --with-xpm was given.
3464 if test "${with_xpm+set}" = set; then :
3471 # Check whether --with-jpeg was given.
3472 if test "${with_jpeg+set}" = set; then :
3479 # Check whether --with-tiff was given.
3480 if test "${with_tiff+set}" = set; then :
3487 # Check whether --with-gif was given.
3488 if test "${with_gif+set}" = set; then :
3495 # Check whether --with-png was given.
3496 if test "${with_png+set}" = set; then :
3503 # Check whether --with-rsvg was given.
3504 if test "${with_rsvg+set}" = set; then :
3511 # Check whether --with-xml2 was given.
3512 if test "${with_xml2+set}" = set; then :
3519 # Check whether --with-imagemagick was given.
3520 if test "${with_imagemagick+set}" = set; then :
3521 withval
=$with_imagemagick;
3523 with_imagemagick
=yes
3528 # Check whether --with-xft was given.
3529 if test "${with_xft+set}" = set; then :
3536 # Check whether --with-libotf was given.
3537 if test "${with_libotf+set}" = set; then :
3538 withval
=$with_libotf;
3544 # Check whether --with-m17n-flt was given.
3545 if test "${with_m17n_flt+set}" = set; then :
3546 withval
=$with_m17n_flt;
3553 # Check whether --with-toolkit-scroll-bars was given.
3554 if test "${with_toolkit_scroll_bars+set}" = set; then :
3555 withval
=$with_toolkit_scroll_bars;
3557 with_toolkit_scroll_bars
=yes
3561 # Check whether --with-xaw3d was given.
3562 if test "${with_xaw3d+set}" = set; then :
3563 withval
=$with_xaw3d;
3569 # Check whether --with-xim was given.
3570 if test "${with_xim+set}" = set; then :
3577 # Check whether --with-ns was given.
3578 if test "${with_ns+set}" = set; then :
3586 # Check whether --with-gpm was given.
3587 if test "${with_gpm+set}" = set; then :
3594 # Check whether --with-dbus was given.
3595 if test "${with_dbus+set}" = set; then :
3602 # Check whether --with-gconf was given.
3603 if test "${with_gconf+set}" = set; then :
3604 withval
=$with_gconf;
3610 # Check whether --with-selinux was given.
3611 if test "${with_selinux+set}" = set; then :
3612 withval
=$with_selinux;
3618 # Check whether --with-gnutls was given.
3619 if test "${with_gnutls+set}" = set; then :
3620 withval
=$with_gnutls;
3626 ## For the times when you want to build Emacs but don't have
3627 ## a suitable makeinfo, and can live without the manuals.
3629 # Check whether --with-makeinfo was given.
3630 if test "${with_makeinfo+set}" = set; then :
3631 withval
=$with_makeinfo;
3637 ## This is an option because I do not know if all info/man support
3638 ## compressed files, nor how to test if they do so.
3640 # Check whether --with-compress-info was given.
3641 if test "${with_compress_info+set}" = set; then :
3642 withval
=$with_compress_info;
3644 with_compress_info
=yes
3647 if test $with_compress_info = yes; then
3655 # Check whether --with-pkg-config-prog was given.
3656 if test "${with_pkg_config_prog+set}" = set; then :
3657 withval
=$with_pkg_config_prog;
3660 if test "X${with_pkg_config_prog}" != X
; then
3661 if test "${with_pkg_config_prog}" != yes; then
3662 PKG_CONFIG
="${with_pkg_config_prog}"
3668 # Check whether --with-crt-dir was given.
3669 if test "${with_crt_dir+set}" = set; then :
3670 withval
=$with_crt_dir;
3673 CRT_DIR
="${with_crt_dir}"
3676 # Check whether --with-gameuser was given.
3677 if test "${with_gameuser+set}" = set; then :
3678 withval
=$with_gameuser;
3681 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3682 && gameuser
="${with_gameuser}"
3683 test "X$gameuser" = X
&& gameuser
=games
3686 # Check whether --with-gnustep-conf was given.
3687 if test "${with_gnustep_conf+set}" = set; then :
3688 withval
=$with_gnustep_conf;
3691 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3692 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3693 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3694 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3696 # Check whether --enable-ns-self-contained was given.
3697 if test "${enable_ns_self_contained+set}" = set; then :
3698 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3700 EN_NS_SELF_CONTAINED
=yes
3704 # Check whether --enable-asserts was given.
3705 if test "${enable_asserts+set}" = set; then :
3706 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3712 # Check whether --enable-maintainer-mode was given.
3713 if test "${enable_maintainer_mode+set}" = set; then :
3714 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3716 USE_MAINTAINER_MODE
=no
3719 if test $USE_MAINTAINER_MODE = yes; then
3726 # Check whether --enable-locallisppath was given.
3727 if test "${enable_locallisppath+set}" = set; then :
3728 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3730 elif test "${enableval}" != "yes"; then
3731 locallisppath
=${enableval}
3736 # Check whether --enable-checking was given.
3737 if test "${enable_checking+set}" = set; then :
3738 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3741 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3742 for check
in $ac_checking_flags
3745 # these set all the flags to specific states
3746 yes) ac_enable_checking
=1 ;;
3747 no
) ac_enable_checking
= ;
3748 ac_gc_check_stringbytes
= ;
3749 ac_gc_check_string_overrun
= ;
3750 ac_gc_check_string_free_list
= ;
3751 ac_xmalloc_overrun
= ;
3752 ac_gc_check_cons_list
= ;;
3753 all
) ac_enable_checking
=1 ;
3754 ac_gc_check_stringbytes
=1 ;
3755 ac_gc_check_string_overrun
=1 ;
3756 ac_gc_check_string_free_list
=1 ;
3757 ac_xmalloc_overrun
=1 ;
3758 ac_gc_check_cons_list
=1 ;;
3759 # these enable particular checks
3760 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3761 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3762 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3763 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3764 conslist
) ac_gc_check_cons_list
=1 ;;
3765 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3770 if test x
$ac_enable_checking != x
; then
3772 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3775 if test x
$ac_gc_check_stringbytes != x
; then
3777 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3780 if test x
$ac_gc_check_stringoverrun != x
; then
3782 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3785 if test x
$ac_gc_check_string_free_list != x
; then
3787 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3790 if test x
$ac_xmalloc_overrun != x
; then
3792 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3795 if test x
$ac_gc_check_cons_list != x
; then
3797 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3801 # Check whether --enable-use-lisp-union-type was given.
3802 if test "${enable_use_lisp_union_type+set}" = set; then :
3803 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3805 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3812 # Check whether --enable-profiling was given.
3813 if test "${enable_profiling+set}" = set; then :
3814 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3817 if test x
$ac_enable_profiling != x
; then
3818 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3824 # Check whether --enable-autodepend was given.
3825 if test "${enable_autodepend+set}" = set; then :
3826 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3828 ac_enable_autodepend
=yes
3832 #### Make srcdir absolute, if it isn't already. It's important to
3833 #### avoid running the path through pwd unnecessarily, since pwd can
3834 #### give you automounter prefixes, which can go away. We do all this
3835 #### so Emacs can find its files when run uninstalled.
3836 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3841 ## We may be able to use the $PWD environment variable to make this
3842 ## absolute. But sometimes PWD is inaccurate.
3843 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3844 ## but that tested only for a well-formed and valid PWD,
3845 ## it did not object when PWD was well-formed and valid but just wrong.
3846 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3850 srcdir
="`(cd ${srcdir}; pwd)`"
3853 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3856 #### Check if the source directory already has a configured system in it.
3857 if test `pwd` != `(cd ${srcdir} && pwd)` \
3858 && test -f "${srcdir}/src/config.h" ; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3860 as a build directory right now; it has been configured in its own
3861 right. To configure in another directory as well, you MUST
3862 use GNU make. If you do not have GNU make, then you must
3863 now do \`make distclean' in ${srcdir},
3864 and then run $0 again." >&5
3865 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3866 as a build directory right now; it has been configured in its own
3867 right. To configure in another directory as well, you MUST
3868 use GNU make. If you do not have GNU make, then you must
3869 now do \`make distclean' in ${srcdir},
3870 and then run $0 again." >&2;}
3873 #### Given the configuration name, set machfile and opsysfile to the
3874 #### names of the m/*.h and s/*.h files we should use.
3876 ### Canonicalize the configuration name.
3878 # Make sure we can run config.sub.
3879 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3880 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3883 $as_echo_n "checking build system type... " >&6; }
3884 if ${ac_cv_build+:} false
; then :
3885 $as_echo_n "(cached) " >&6
3887 ac_build_alias
=$build_alias
3888 test "x$ac_build_alias" = x
&&
3889 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3890 test "x$ac_build_alias" = x
&&
3891 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3892 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3893 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3897 $as_echo "$ac_cv_build" >&6; }
3898 case $ac_cv_build in
3900 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3903 ac_save_IFS
=$IFS; IFS
='-'
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3913 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3917 $as_echo_n "checking host system type... " >&6; }
3918 if ${ac_cv_host+:} false
; then :
3919 $as_echo_n "(cached) " >&6
3921 if test "x$host_alias" = x
; then
3922 ac_cv_host
=$ac_cv_build
3924 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3925 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3930 $as_echo "$ac_cv_host" >&6; }
3933 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3936 ac_save_IFS
=$IFS; IFS
='-'
3942 # Remember, the first character of IFS is used to create $*,
3943 # except with old shells:
3946 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3950 configuration
=${host_alias-${build_alias-$host}}
3954 ### If you add support for a new configuration, add code to this
3955 ### switch statement to recognize your configuration name and select
3956 ### the appropriate operating system and machine description files.
3958 ### You would hope that you could choose an m/*.h file pretty much
3959 ### based on the machine portion of the configuration name, and an s/*.h
3960 ### file based on the operating system portion. However, it turns out
3961 ### that each m/*.h file is pretty manufacturer-specific - for
3962 ### example mips.h is MIPS
3963 ### So we basically have to have a special case for each
3964 ### configuration name.
3966 ### As far as handling version numbers on operating systems is
3967 ### concerned, make sure things will fail in a fixable way. If
3968 ### /etc/MACHINES doesn't say anything about version numbers, be
3969 ### prepared to handle anything reasonably. If version numbers
3970 ### matter, be sure /etc/MACHINES says something about it.
3972 machine
='' opsys
='' unported
=no
3973 case "${canonical}" in
3978 case ${canonical} in
3979 alpha
*) machine
=alpha
;;
3980 s390-
*) machine
=ibms390
;;
3981 s390x-
*) machine
=ibms390x
;;
3982 powerpc
*) machine
=macppc
;;
3983 sparc
*) machine
=sparc
;;
3984 ia64
*) machine
=ia64
;;
3985 m68k
*) machine
=m68k
;;
3986 x86_64
*) machine
=amdx86-64
;;
3993 case "${canonical}" in
3994 alpha
*) machine
=alpha
;;
3995 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3996 ia64-
*) machine
=ia64
;;
3997 i
[3456]86-*) machine
=intel386
;;
3998 powerpc-
*) machine
=macppc
;;
3999 sparc-
*) machine
=sparc
;;
4000 sparc64-
*) machine
=sparc
;;
4004 ## FreeBSD kernel + glibc based userland
4007 case "${canonical}" in
4008 alpha
*) machine
=alpha
;;
4009 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4010 ia64-
*) machine
=ia64
;;
4011 i
[3456]86-*) machine
=intel386
;;
4012 powerpc-
*) machine
=macppc
;;
4013 sparc-
*) machine
=sparc
;;
4014 sparc64-
*) machine
=sparc
;;
4021 case "${canonical}" in
4022 alpha
*) machine
=alpha
;;
4023 x86_64-
*) machine
=amdx86-64
;;
4024 i
[3456]86-*) machine
=intel386
;;
4025 m68k-
*) machine
=m68k
;;
4026 powerpc-
*) machine
=macppc
;;
4027 sparc
*-) machine
=sparc
;;
4028 vax-
*) machine
=vax
;;
4035 case "${canonical}" in
4036 alpha
*) machine
=alpha
;;
4037 x86_64-
*) machine
=amdx86-64
;;
4038 i386-
*) machine
=intel386
;;
4039 powerpc-
*) machine
=macppc
;;
4040 sparc
*) machine
=sparc
;;
4041 vax-
*) machine
=vax
;;
4045 ## Apple Darwin / Mac OS X
4047 case "${canonical}" in
4048 i
[3456]86-* ) machine
=intel386
;;
4049 powerpc-
* ) machine
=macppc
;;
4050 x86_64-
* ) machine
=amdx86-64
;;
4054 # Define CPP as follows to make autoconf work correctly.
4055 CPP
="${CC-cc} -E -no-cpp-precomp"
4056 # Use fink packages if available.
4057 if test -d /sw
/include
&& test -d /sw
/lib
; then
4058 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4059 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4060 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4064 ## HP 9000 series 700 and 800, running HP/UX
4065 hppa
*-hp-hpux10.2
* )
4068 hppa
*-hp-hpux1[1-9]* )
4070 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4073 ia64
*-hp-hpux1[1-9]* )
4074 machine
=hp800 opsys
=hpux11
4075 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4076 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4080 hppa
*-*-linux-gnu* )
4081 machine
=hp800 opsys
=gnu-linux
4085 rs6000-ibm-aix4.
[23]* )
4086 machine
=ibmrs6000 opsys
=aix4-2
4088 powerpc-ibm-aix4.
[23]* )
4089 machine
=ibmrs6000 opsys
=aix4-2
4091 rs6000-ibm-aix
[56]* )
4092 machine
=ibmrs6000 opsys
=aix4-2
4094 powerpc-ibm-aix
[56]* )
4095 machine
=ibmrs6000 opsys
=aix4-2
4098 ## Silicon Graphics machines
4101 machine
=iris4d opsys
=irix6-5
4102 # Without defining _LANGUAGE_C, things get masked out in the headers
4103 # so that, for instance, grepping for `free' in stdlib.h fails and
4104 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4105 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4106 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4111 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4112 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4113 case "${canonical}" in
4114 i
[3456]86-*-* ) machine
=intel386
;;
4115 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4116 sparc
* ) machine
=sparc
;;
4119 case "${canonical}" in
4120 *-sunos5.6
* |
*-solaris2.6
* )
4122 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4125 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4127 emacs_check_sunpro_c
=yes
4128 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4130 *-sunos5* |
*-solaris* )
4132 emacs_check_sunpro_c
=yes
4133 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4136 ## Watch out for a compiler that we know will not work.
4137 case "${canonical}" in
4138 *-solaris* |
*-sunos5* )
4139 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4140 ## /usr/ucb/cc doesn't work;
4141 ## we should find some other compiler that does work.
4149 ## Intel 386 machines where we don't care about the manufacturer.
4152 case "${canonical}" in
4153 *-cygwin ) opsys
=cygwin
;;
4154 *-darwin* ) opsys
=darwin
4155 CPP
="${CC-cc} -E -no-cpp-precomp"
4157 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4158 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4159 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4160 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4169 ### If the code above didn't choose an operating system, just choose
4170 ### an operating system based on the configuration name. You really
4171 ### only want to use this when you have no idea what the right
4172 ### operating system is; if you know what operating systems a machine
4173 ### runs, it's cleaner to make it explicit in the case statement
4175 if test x
"${opsys}" = x
; then
4176 case "${canonical}" in
4177 *-gnu* ) opsys
=gnu
;;
4186 if test $unported = yes; then
4187 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4188 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4191 if test -n "$machine"; then
4192 machfile
="m/${machine}.h"
4196 opsysfile
="s/${opsys}.h"
4199 #### Choose a compiler.
4200 test -n "$CC" && cc_specified
=yes
4202 # Save the value of CFLAGS that the user specified.
4203 SPECIFIED_CFLAGS
="$CFLAGS"
4206 ac_cpp
='$CPP $CPPFLAGS'
4207 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4210 if test -n "$ac_tool_prefix"; then
4211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4212 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_CC+:} false
; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$CC"; then
4219 ac_cv_prog_CC
="$CC" # Let the user override the test.
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 if test -n "$CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4241 $as_echo "$CC" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4249 if test -z "$ac_cv_prog_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc
; ac_word
=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4256 $as_echo_n "(cached) " >&6
4258 if test -n "$ac_ct_CC"; then
4259 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir
=.
4266 for ac_exec_ext
in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_ac_ct_CC
="gcc"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4279 if test -n "$ac_ct_CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4281 $as_echo "$ac_ct_CC" >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4287 if test "x$ac_ct_CC" = x
; then
4290 case $cross_compiling:$ac_tool_warned in
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned
=yes ;;
4302 if test -z "$CC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4305 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_CC+:} false
; then :
4309 $as_echo_n "(cached) " >&6
4311 if test -n "$CC"; then
4312 ac_cv_prog_CC
="$CC" # Let the user override the test.
4314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir
=.
4319 for ac_exec_ext
in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 if test -n "$CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4334 $as_echo "$CC" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4343 if test -z "$CC"; then
4344 # Extract the first word of "cc", so it can be a program name with args.
4345 set dummy cc
; ac_word
=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_CC+:} false
; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC
="$CC" # Let the user override the test.
4355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir
=.
4360 for ac_exec_ext
in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4363 ac_prog_rejected
=yes
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 if test $ac_prog_rejected = yes; then
4375 # We found a bogon in the path, so make sure we never use it.
4376 set dummy
$ac_cv_prog_CC
4378 if test $# != 0; then
4379 # We chose a different compiler from the bogus one.
4380 # However, it has the same basename, so the bogon will be chosen
4381 # first if we set CC to just the basename; use the full file name.
4383 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4389 if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391 $as_echo "$CC" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4399 if test -z "$CC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog
in cl.exe
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_CC+:} false
; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CC"; then
4411 ac_cv_prog_CC
="$CC" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433 $as_echo "$CC" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CC" && break
4443 if test -z "$CC"; then
4445 for ac_prog
in cl.exe
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy
$ac_prog; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$ac_ct_CC"; then
4455 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CC
="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4475 if test -n "$ac_ct_CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4477 $as_echo "$ac_ct_CC" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CC" && break
4487 if test "x$ac_ct_CC" = x
; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned
=yes ;;
4503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $?
"no acceptable C compiler found in \$PATH
4506 See \`config.log' for more details" "$LINENO" 5; }
4508 # Provide some information about the compiler.
4509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4512 for ac_option
in --version -v -V -qversion; do
4513 { { ac_try
="$ac_compiler $ac_option >&5"
4515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4522 if test -s conftest.err; then
4524 ... rest of stderr output deleted ...
4525 10q' conftest.err >conftest.er1
4526 cat conftest.er1 >&5
4528 rm -f conftest.er1 conftest.err
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4544 ac_clean_files_save=$ac_clean_files
4545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4546 # Try to create an executable without -o first, disregard a.out.
4547 # It will help us diagnose broken compilers, and finding out an intuition
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4550 $as_echo_n "checking whether the C compiler works... " >&6; }
4551 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4553 # The possible output files:
4554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4557 for ac_file in $ac_files
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4566 if { { ac_try="$ac_link_default"
4568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4569 *) ac_try_echo
=$ac_try;;
4571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link_default") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4580 # so that the user can short-circuit this test for compilers unknown to
4582 for ac_file
in $ac_files ''
4584 test -f "$ac_file" ||
continue
4586 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4589 # We found the default executable, but exeext='' is most
4593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4595 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 # We set ac_cv_exeext here because the later test for it is not
4598 # safe: cross compilers may not add the suffix if given an `-o'
4599 # argument, so we may need to know it at that point already.
4600 # Even if this section looks crufty: it has the advantage of
4607 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4612 if test -z "$ac_file"; then :
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.
$ac_ext >&5
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error
77 "C compiler cannot create executables
4621 See \`config.log' for more details" "$LINENO" 5; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624 $as_echo "yes" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4627 $as_echo_n "checking for C compiler default output file name... " >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4629 $as_echo "$ac_file" >&6; }
4630 ac_exeext
=$ac_cv_exeext
4632 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4633 ac_clean_files
=$ac_clean_files_save
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4635 $as_echo_n "checking for suffix of executables... " >&6; }
4636 if { { ac_try
="$ac_link"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642 $as_echo "$ac_try_echo"; } >&5
4643 (eval "$ac_link") 2>&5
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
4647 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4648 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4649 # work properly (i.e., refer to `conftest.exe'), while it won't with
4651 for ac_file
in conftest.exe conftest conftest.
*; do
4652 test -f "$ac_file" ||
continue
4654 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4655 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4664 See \`config.log' for more details" "$LINENO" 5; }
4666 rm -f conftest conftest
$ac_cv_exeext
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4668 $as_echo "$ac_cv_exeext" >&6; }
4670 rm -f conftest.
$ac_ext
4671 EXEEXT
=$ac_cv_exeext
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4679 FILE *f = fopen ("conftest.out", "w");
4680 return ferror (f) || fclose (f) != 0;
4686 ac_clean_files
="$ac_clean_files conftest.out"
4687 # Check that the compiler produces executables we can run. If not, either
4688 # the compiler is broken, or we cross compile.
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4690 $as_echo_n "checking whether we are cross compiling... " >&6; }
4691 if test "$cross_compiling" != yes; then
4692 { { ac_try
="$ac_link"
4694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4698 $as_echo "$ac_try_echo"; } >&5
4699 (eval "$ac_link") 2>&5
4701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702 test $ac_status = 0; }
4703 if { ac_try='./conftest$ac_cv_exeext'
4704 { { case "(($ac_try" in
4705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4706 *) ac_try_echo
=$ac_try;;
4708 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_try") 2>&5
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }; }; then
4716 if test "$cross_compiling" = maybe
; then
4719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 as_fn_error $?
"cannot run C compiled programs.
4722 If you meant to cross compile, use \`--host'.
4723 See \`config.log' for more details" "$LINENO" 5; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4728 $as_echo "$cross_compiling" >&6; }
4730 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4731 ac_clean_files
=$ac_clean_files_save
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4733 $as_echo_n "checking for suffix of object files... " >&6; }
4734 if ${ac_cv_objext+:} false
; then :
4735 $as_echo_n "(cached) " >&6
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4748 rm -f conftest.o conftest.obj
4749 if { { ac_try
="$ac_compile"
4751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756 (eval "$ac_compile") 2>&5
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }; then :
4760 for ac_file in conftest.o conftest.obj conftest.*; do
4761 test -f "$ac_file" || continue;
4763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4775 See \
`config.log' for more details" "$LINENO" 5; }
4777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4780 $as_echo "$ac_cv_objext" >&6; }
4781 OBJEXT=$ac_cv_objext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4785 if ${ac_cv_c_compiler_gnu+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4802 if ac_fn_c_try_compile "$LINENO"; then :
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4812 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4813 if test $ac_compiler_gnu = yes; then
4818 ac_test_CFLAGS=${CFLAGS+set}
4819 ac_save_CFLAGS=$CFLAGS
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4821 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4822 if ${ac_cv_prog_cc_g+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 ac_save_c_werror_flag=$ac_c_werror_flag
4826 ac_c_werror_flag=yes
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4855 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_c_werror_flag=$ac_save_c_werror_flag
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4871 if ac_fn_c_try_compile "$LINENO"; then :
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_c_werror_flag=$ac_save_c_werror_flag
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4882 $as_echo "$ac_cv_prog_cc_g" >&6; }
4883 if test "$ac_test_CFLAGS" = set; then
4884 CFLAGS=$ac_save_CFLAGS
4885 elif test $ac_cv_prog_cc_g = yes; then
4886 if test "$GCC" = yes; then
4892 if test "$GCC" = yes; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4899 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4900 if ${ac_cv_prog_cc_c89+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 ac_cv_prog_cc_c89=no
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4925 s = g (p, va_arg (v,int));
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931 function prototypes and stuff, but not '\xHH' hex character constants.
4932 These don't provoke an error unfortunately, instead are silently treated
4933 as 'x'. The following induces an error, until -std is added to get
4934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935 array size at least. It's necessary to write '\x00'==0 to get something
4936 that's true only with -std. */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940 inside strings and character constants. */
4942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944 int test (int i, double x);
4945 struct s1 {int (*f) (int a);};
4946 struct s2 {int (*f) (double a);};
4947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961 CC="$ac_save_CC $ac_arg"
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_prog_cc_c89=$ac_arg
4965 rm -f core conftest.err conftest.$ac_objext
4966 test "x$ac_cv_prog_cc_c89" != "xno" && break
4968 rm -f conftest.$ac_ext
4973 case "x$ac_cv_prog_cc_c89" in
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4976 $as_echo "none needed" >&6; } ;;
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4979 $as_echo "unsupported" >&6; } ;;
4981 CC="$CC $ac_cv_prog_cc_c89"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4985 if test "x$ac_cv_prog_cc_c89" != xno; then :
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 DEPDIR="${am__leading_dot}deps"
4996 ac_config_commands="$ac_config_commands depfiles"
4999 am_make=${MAKE-make}
5000 cat > confinc << 'END'
5002 @echo this is the am__doit target
5005 # If we don't find an include directive, just comment out the code.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5007 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5011 # First try GNU make style include.
5012 echo "include confinc" > confmf
5013 # Ignore all kinds of additional output from `make'.
5014 case `$am_make -s -f confmf 2> /dev/null` in #(
5015 *the\ am__doit\ target*)
5021 # Now try BSD make style include.
5022 if test "$am__include" = "#"; then
5023 echo '.include
"confinc"' > confmf
5024 case `$am_make -s -f confmf 2> /dev/null` in #(
5025 *the\ am__doit\ target*)
5026 am__include=.include
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5035 $as_echo "$_am_result" >&6; }
5036 rm -f confinc confmf
5038 # Check whether --enable-dependency-tracking was given.
5039 if test "${enable_dependency_tracking+set}" = set; then :
5040 enableval=$enable_dependency_tracking;
5043 if test "x$enable_dependency_tracking" != xno; then
5044 am_depcomp="$ac_aux_dir/depcomp"
5047 if test "x$enable_dependency_tracking" != xno
; then
5057 depcc
="$CC" am_compiler_list
=
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5060 $as_echo_n "checking dependency style of $depcc... " >&6; }
5061 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065 # We make a subdir and do the tests there. Otherwise we can end up
5066 # making bogus files that we don't know about and never remove. For
5067 # instance it was reported that on HP-UX the gcc test will end up
5068 # making a dummy file named `D' -- because `-MD' means `put the output
5071 # Copy depcomp to subdir because otherwise we won't find it if we're
5072 # using a relative directory.
5073 cp "$am_depcomp" conftest.dir
5075 # We will build objects and dependencies in a subdirectory because
5076 # it helps to detect inapplicable dependency modes. For instance
5077 # both Tru64's cc and ICC support -MD to output dependencies as a
5078 # side effect of compilation, but ICC will put the dependencies in
5079 # the current directory while Tru64 will put them in the object
5083 am_cv_CC_dependencies_compiler_type
=none
5084 if test "$am_compiler_list" = ""; then
5085 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5088 case " $depcc " in #(
5089 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5092 for depmode
in $am_compiler_list; do
5093 # Setup a source with many dependencies, because some compilers
5094 # like to wrap large dependency lists on column 80 (with \), and
5095 # we should not choose a depcomp mode which is confused by this.
5097 # We need to recreate these files for each test, as the compiler may
5098 # overwrite some of them when testing with obscure command lines.
5099 # This happens at least with the AIX C compiler.
5101 for i
in 1 2 3 4 5 6; do
5102 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5104 # Solaris 8's {/usr,}/bin/sh.
5105 touch sub
/conftst
$i.h
5107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5110 # mode. It turns out that the SunPro C++ compiler does not properly
5111 # handle `-M -o', and we need to detect this. Also, some Intel
5112 # versions had trouble with output in subdirs
5113 am__obj
=sub
/conftest.
${OBJEXT-o}
5114 am__minus_obj
="-o $am__obj"
5117 # This depmode causes a compiler race in universal mode.
5118 test "$am__universal" = false ||
continue
5121 # after this tag, mechanisms are not by side-effect, so they'll
5122 # only be used when explicitly requested
5123 if test "x$enable_dependency_tracking" = xyes
; then
5129 msvisualcpp | msvcmsys
)
5130 # This compiler won't grok `-c -o', but also, the minuso test has
5131 # not run yet. These depmodes are late enough in the game, and
5132 # so weak that their functioning should not be impacted.
5133 am__obj
=conftest.
${OBJEXT-o}
5138 if depmode
=$depmode \
5139 source=sub
/conftest.c object
=$am__obj \
5140 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5141 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5142 >/dev
/null
2>conftest.err
&&
5143 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5144 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5145 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5146 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5147 # icc doesn't choke on unknown options, it will just issue warnings
5148 # or remarks (even with -Werror). So we grep stderr for any message
5149 # that says an option was ignored or not supported.
5150 # When given -MP, icc 7.0 and 7.1 complain thusly:
5151 # icc: Command line warning: ignoring option '-M'; no argument required
5152 # The diagnosis changed in icc 8.0:
5153 # icc: Command line remark: option '-MP' not supported
5154 if (grep 'ignoring option' conftest.err ||
5155 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5156 am_cv_CC_dependencies_compiler_type
=$depmode
5165 am_cv_CC_dependencies_compiler_type
=none
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5170 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5171 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5174 test "x$enable_dependency_tracking" != xno \
5175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5177 am__fastdepCC_FALSE
='#'
5179 am__fastdepCC_TRUE
='#'
5180 am__fastdepCC_FALSE
=
5184 if test "x$CC" != xcc
; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5186 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5189 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5191 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5192 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5193 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5207 # Make sure it works both with $CC and with simple cc.
5208 # We do the test twice because some compilers refuse to overwrite an
5209 # existing .o file with -o, though they will create one.
5210 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5212 if { { case "(($ac_try" in
5213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5217 $as_echo "$ac_try_echo"; } >&5
5218 (eval "$ac_try") 2>&5
5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5221 test $ac_status = 0; } &&
5222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5224 *) ac_try_echo
=$ac_try;;
5226 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227 $as_echo "$ac_try_echo"; } >&5
5228 (eval "$ac_try") 2>&5
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; };
5233 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5234 if test "x$CC" != xcc
; then
5235 # Test first that cc exists at all.
5236 if { ac_try
='cc -c conftest.$ac_ext >&5'
5237 { { case "(($ac_try" in
5238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$ac_try") 2>&5
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; }; then
5247 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5249 if { { case "(($ac_try" in
5250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5251 *) ac_try_echo
=$ac_try;;
5253 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5254 $as_echo "$ac_try_echo"; } >&5
5255 (eval "$ac_try") 2>&5
5257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5258 test $ac_status = 0; } &&
5259 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5264 $as_echo "$ac_try_echo"; } >&5
5265 (eval "$ac_try") 2>&5
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; };
5273 # cc exists but doesn't like -o.
5274 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5279 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5281 rm -f core conftest*
5284 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5291 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5295 # FIXME: we rely on the cache variable name because
5296 # there is no other way.
5298 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5299 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5300 if test "$am_t" != yes; then
5301 # Losing compiler, so override with the script.
5302 # FIXME: It is wrong to rewrite CC.
5303 # But if we don't then we get into trouble of one sort or another.
5304 # A longer-term fix would be to have automake use am__CC in this case,
5305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5306 CC="$am_aux_dir/compile $CC"
5311 # Initialize gnulib right after verifying that the C compiler works.
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_RANLIB+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$RANLIB"; then
5321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 RANLIB=$ac_cv_prog_RANLIB
5341 if test -n "$RANLIB"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5343 $as_echo "$RANLIB" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5351 if test -z "$ac_cv_prog_RANLIB"; then
5352 ac_ct_RANLIB=$RANLIB
5353 # Extract the first word of "ranlib", so it can be a program name with args.
5354 set dummy ranlib; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$ac_ct_RANLIB"; then
5361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_RANLIB="ranlib"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381 if test -n "$ac_ct_RANLIB"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5383 $as_echo "$ac_ct_RANLIB" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5389 if test "x$ac_ct_RANLIB" = x; then
5392 case $cross_compiling:$ac_tool_warned in
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5398 RANLIB=$ac_ct_RANLIB
5401 RANLIB="$ac_cv_prog_RANLIB"
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5412 # On Suns, sometimes $CPP names a directory.
5413 if test -n "$CPP" && test -d "$CPP"; then
5416 if test -z "$CPP"; then
5417 if ${ac_cv_prog_CPP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 # Double quotes because CPP needs to be expanded
5421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5424 for ac_c_preproc_warn_flag in '' yes
5426 # Use a header file that comes with gcc, so configuring glibc
5427 # with a fresh cross-compiler works.
5428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5429 # <limits.h> exists even on freestanding compilers.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5435 # include <limits.h>
5437 # include <assert.h>
5441 if ac_fn_c_try_cpp "$LINENO"; then :
5444 # Broken: fails on valid input.
5447 rm -f conftest.err conftest.i conftest.$ac_ext
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5456 # Broken: success on invalid input.
5459 # Passes both tests.
5463 rm -f conftest.err conftest.i conftest.$ac_ext
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.i conftest.err conftest.
$ac_ext
5468 if $ac_preproc_ok; then :
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5481 $as_echo "$CPP" >&6; }
5483 for ac_c_preproc_warn_flag
in '' yes
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5494 # include <limits.h>
5496 # include <assert.h>
5500 if ac_fn_c_try_cpp
"$LINENO"; then :
5503 # Broken: fails on valid input.
5506 rm -f conftest.err conftest.i conftest.
$ac_ext
5508 # OK, works on sane cases. Now check whether nonexistent headers
5509 # can be detected and how.
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include <ac_nonexistent.h>
5514 if ac_fn_c_try_cpp
"$LINENO"; then :
5515 # Broken: success on invalid input.
5518 # Passes both tests.
5522 rm -f conftest.err conftest.i conftest.
$ac_ext
5525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5526 rm -f conftest.i conftest.err conftest.
$ac_ext
5527 if $ac_preproc_ok; then :
5530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5532 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5533 See \`config.log' for more details" "$LINENO" 5; }
5537 ac_cpp
='$CPP $CPPFLAGS'
5538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5545 if ${ac_cv_path_GREP+:} false
; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -z "$GREP"; then
5549 ac_path_GREP_found
=false
5550 # Loop through the user's path and test for each of PROGNAME-LIST
5551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5552 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5555 test -z "$as_dir" && as_dir
=.
5556 for ac_prog
in grep ggrep
; do
5557 for ac_exec_ext
in '' $ac_executable_extensions; do
5558 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5559 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5560 # Check for GNU ac_path_GREP and select it if it is found.
5561 # Check for GNU $ac_path_GREP
5562 case `"$ac_path_GREP" --version 2>&1` in
5564 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5567 $as_echo_n 0123456789 >"conftest.in"
5570 cat "conftest.in" "conftest.in" >"conftest.tmp"
5571 mv "conftest.tmp" "conftest.in"
5572 cp "conftest.in" "conftest.nl"
5573 $as_echo 'GREP' >> "conftest.nl"
5574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5575 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5576 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5577 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5578 # Best one so far, save it but keep looking for a better one
5579 ac_cv_path_GREP
="$ac_path_GREP"
5580 ac_path_GREP_max
=$ac_count
5582 # 10*(2^10) chars as input seems more than enough
5583 test $ac_count -gt 10 && break
5585 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5588 $ac_path_GREP_found && break 3
5593 if test -z "$ac_cv_path_GREP"; then
5594 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5597 ac_cv_path_GREP
=$GREP
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603 GREP
="$ac_cv_path_GREP"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if ${ac_cv_path_EGREP+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5612 then ac_cv_path_EGREP
="$GREP -E"
5614 if test -z "$EGREP"; then
5615 ac_path_EGREP_found
=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5618 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5621 test -z "$as_dir" && as_dir
=.
5622 for ac_prog
in egrep; do
5623 for ac_exec_ext
in '' $ac_executable_extensions; do
5624 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627 # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5630 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5633 $as_echo_n 0123456789 >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 $as_echo 'EGREP' >> "conftest.nl"
5640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5641 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5642 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_EGREP
="$ac_path_EGREP"
5646 ac_path_EGREP_max
=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5654 $ac_path_EGREP_found && break 3
5659 if test -z "$ac_cv_path_EGREP"; then
5660 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5663 ac_cv_path_EGREP
=$EGREP
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5669 $as_echo "$ac_cv_path_EGREP" >&6; }
5670 EGREP
="$ac_cv_path_EGREP"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5674 $as_echo_n "checking for ANSI C header files... " >&6; }
5675 if ${ac_cv_header_stdc+:} false
; then :
5676 $as_echo_n "(cached) " >&6
5678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5693 if ac_fn_c_try_compile
"$LINENO"; then :
5694 ac_cv_header_stdc
=yes
5696 ac_cv_header_stdc
=no
5698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 if test $ac_cv_header_stdc = yes; then
5701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev
/null
2>&1; then :
5711 ac_cv_header_stdc
=no
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 $EGREP "free" >/dev
/null
2>&1; then :
5728 ac_cv_header_stdc
=no
5734 if test $ac_cv_header_stdc = yes; then
5735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5736 if test "$cross_compiling" = yes; then :
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5743 #if ((' ' & 0x0FF) == 0x020)
5744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5747 # define ISLOWER(c) \
5748 (('a' <= (c) && (c) <= 'i') \
5749 || ('j' <= (c) && (c) <= 'r') \
5750 || ('s' <= (c) && (c) <= 'z'))
5751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5759 for (i = 0; i < 256; i++)
5760 if (XOR (islower (i), ISLOWER (i))
5761 || toupper (i) != TOUPPER (i))
5766 if ac_fn_c_try_run
"$LINENO"; then :
5769 ac_cv_header_stdc
=no
5771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5778 $as_echo "$ac_cv_header_stdc" >&6; }
5779 if test $ac_cv_header_stdc = yes; then
5781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5786 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5787 inttypes.h stdint.h unistd.h
5789 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5792 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5793 cat >>confdefs.h
<<_ACEOF
5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5806 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5813 if test "$MINIX" = yes; then
5815 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5818 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5821 $as_echo "#define _MINIX 1" >>confdefs.h
5828 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5835 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5836 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5837 $as_echo_n "(cached) " >&6
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 # define __EXTENSIONS__ 1
5843 $ac_includes_default
5852 if ac_fn_c_try_compile
"$LINENO"; then :
5853 ac_cv_safe_to_define___extensions__
=yes
5855 ac_cv_safe_to_define___extensions__
=no
5857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5860 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5861 test $ac_cv_safe_to_define___extensions__ = yes &&
5862 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5864 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5866 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5868 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5870 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5881 # Code from module arg-nonnull:
5882 # Code from module c++defs:
5883 # Code from module dtoastr:
5884 # Code from module extensions:
5886 # Code from module getloadavg:
5887 # Code from module getopt-gnu:
5888 # Code from module getopt-posix:
5889 # Code from module gettext-h:
5890 # Code from module ignore-value:
5891 # Code from module include_next:
5892 # Code from module intprops:
5893 # Code from module mktime:
5894 # Code from module multiarch:
5895 # Code from module stdbool:
5896 # Code from module stddef:
5897 # Code from module stdlib:
5898 # Code from module strftime:
5899 # Code from module time:
5900 # Code from module time_r:
5901 # Code from module unistd:
5902 # Code from module warn-on-use:
5905 # On Suns, sometimes $CPP names a directory.
5906 if test -n "$CPP" && test -d "$CPP"; then
5910 ## If not using gcc, and on Solaris, and no CPP specified, see if
5911 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5912 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
5913 test x
"$CPP" = x
; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5915 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5916 if ${emacs_cv_sunpro_c+:} false
; then :
5917 $as_echo_n "(cached) " >&6
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5933 if ac_fn_c_try_link
"$LINENO"; then :
5934 emacs_cv_sunpro_c
=yes
5936 emacs_cv_sunpro_c
=no
5938 rm -f core conftest.err conftest.
$ac_objext \
5939 conftest
$ac_exeext conftest.
$ac_ext
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5943 $as_echo "$emacs_cv_sunpro_c" >&6; }
5945 if test x
"$emacs_cv_sunpro_c" = xyes
; then
5946 NON_GNU_CPP
="$CC -E -Xs"
5950 #### Some systems specify a CPP to use unless we are using GCC.
5951 #### Now that we know whether we are using GCC, we can decide whether
5952 #### to use that one.
5953 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
5958 #### Some systems specify a CC to use unless we are using GCC.
5959 #### Now that we know whether we are using GCC, we can decide whether
5960 #### to use that one.
5961 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
5962 test x
$cc_specified != xyes
5967 if test x
$GCC = xyes
; then
5968 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
5970 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
5973 ### Use -Wno-pointer-sign if the compiler supports it
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5975 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5976 SAVE_CFLAGS
="$CFLAGS"
5977 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5989 if ac_fn_c_try_compile
"$LINENO"; then :
5994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5995 if test $has_option = yes; then
5996 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5999 $as_echo "$has_option" >&6; }
6000 CFLAGS
="$SAVE_CFLAGS"
6004 ### Use -Wdeclaration-after-statement if the compiler supports it
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6006 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6007 SAVE_CFLAGS
="$CFLAGS"
6008 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6020 if ac_fn_c_try_compile
"$LINENO"; then :
6025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 if test $has_option = yes; then
6027 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6030 $as_echo "$has_option" >&6; }
6031 CFLAGS
="$SAVE_CFLAGS"
6035 ### Use -Wold-style-definition if the compiler supports it
6036 # This can be removed when conversion to standard C is finished.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6038 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6039 SAVE_CFLAGS
="$CFLAGS"
6040 CFLAGS
="$CFLAGS -Wold-style-definition"
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 if ac_fn_c_try_compile
"$LINENO"; then :
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 if test $has_option = yes; then
6059 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6062 $as_echo "$has_option" >&6; }
6063 CFLAGS
="$SAVE_CFLAGS"
6067 ### Use -Wimplicit-function-declaration if the compiler supports it
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6069 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6070 SAVE_CFLAGS
="$CFLAGS"
6071 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6083 if ac_fn_c_try_compile
"$LINENO"; then :
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 if test $has_option = yes; then
6090 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6093 $as_echo "$has_option" >&6; }
6094 CFLAGS
="$SAVE_CFLAGS"
6101 #### Some other nice autoconf tests.
6104 ac_cpp
='$CPP $CPPFLAGS'
6105 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6110 # On Suns, sometimes $CPP names a directory.
6111 if test -n "$CPP" && test -d "$CPP"; then
6114 if test -z "$CPP"; then
6115 if ${ac_cv_prog_CPP+:} false
; then :
6116 $as_echo_n "(cached) " >&6
6118 # Double quotes because CPP needs to be expanded
6119 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6122 for ac_c_preproc_warn_flag
in '' yes
6124 # Use a header file that comes with gcc, so configuring glibc
6125 # with a fresh cross-compiler works.
6126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6127 # <limits.h> exists even on freestanding compilers.
6128 # On the NeXT, cc -E runs the code through the compiler's parser,
6129 # not just through cpp. "Syntax error" is here to catch this case.
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 # include <limits.h>
6135 # include <assert.h>
6139 if ac_fn_c_try_cpp
"$LINENO"; then :
6142 # Broken: fails on valid input.
6145 rm -f conftest.err conftest.i conftest.
$ac_ext
6147 # OK, works on sane cases. Now check whether nonexistent headers
6148 # can be detected and how.
6149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <ac_nonexistent.h>
6153 if ac_fn_c_try_cpp
"$LINENO"; then :
6154 # Broken: success on invalid input.
6157 # Passes both tests.
6161 rm -f conftest.err conftest.i conftest.
$ac_ext
6164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6165 rm -f conftest.i conftest.err conftest.
$ac_ext
6166 if $ac_preproc_ok; then :
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6179 $as_echo "$CPP" >&6; }
6181 for ac_c_preproc_warn_flag
in '' yes
6183 # Use a header file that comes with gcc, so configuring glibc
6184 # with a fresh cross-compiler works.
6185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6186 # <limits.h> exists even on freestanding compilers.
6187 # On the NeXT, cc -E runs the code through the compiler's parser,
6188 # not just through cpp. "Syntax error" is here to catch this case.
6189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6192 # include <limits.h>
6194 # include <assert.h>
6198 if ac_fn_c_try_cpp
"$LINENO"; then :
6201 # Broken: fails on valid input.
6204 rm -f conftest.err conftest.i conftest.
$ac_ext
6206 # OK, works on sane cases. Now check whether nonexistent headers
6207 # can be detected and how.
6208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <ac_nonexistent.h>
6212 if ac_fn_c_try_cpp
"$LINENO"; then :
6213 # Broken: success on invalid input.
6216 # Passes both tests.
6220 rm -f conftest.err conftest.i conftest.
$ac_ext
6223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6224 rm -f conftest.i conftest.err conftest.
$ac_ext
6225 if $ac_preproc_ok; then :
6228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6230 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6231 See \`config.log' for more details" "$LINENO" 5; }
6235 ac_cpp
='$CPP $CPPFLAGS'
6236 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6241 if test "x$RANLIB" = x
; then
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_RANLIB+:} false
; then :
6248 $as_echo_n "(cached) " >&6
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir
=.
6258 for ac_exec_ext
in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 RANLIB
=$ac_cv_prog_RANLIB
6271 if test -n "$RANLIB"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273 $as_echo "$RANLIB" >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6281 if test -z "$ac_cv_prog_RANLIB"; then
6282 ac_ct_RANLIB
=$RANLIB
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284 set dummy ranlib
; ac_word
=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 if test -n "$ac_ct_RANLIB"; then
6291 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir
=.
6298 for ac_exec_ext
in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6311 if test -n "$ac_ct_RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313 $as_echo "$ac_ct_RANLIB" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6319 if test "x$ac_ct_RANLIB" = x
; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned
=yes ;;
6328 RANLIB
=$ac_ct_RANLIB
6331 RANLIB
="$ac_cv_prog_RANLIB"
6336 ## Although we're running on an amd64 kernel, we're actually compiling for
6337 ## the x86 architecture. The user should probably have provided an
6338 ## explicit --build to `configure', but if everything else than the kernel
6339 ## is running in i386 mode, we can help them out.
6340 if test "$machine" = "amdx86-64"; then
6341 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6342 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6346 if test "$ac_cv_have_decl_i386" = "yes"; then
6347 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6349 machfile
="m/${machine}.h"
6353 # Extract the first word of "install-info", so it can be a program name with args.
6354 set dummy install-info
; ac_word
=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6358 $as_echo_n "(cached) " >&6
6360 case $INSTALL_INFO in
6362 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir
=.
6370 for ac_exec_ext
in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6384 if test -n "$INSTALL_INFO"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6386 $as_echo "$INSTALL_INFO" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6393 # Extract the first word of "install-info", so it can be a program name with args.
6394 set dummy install-info
; ac_word
=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6398 $as_echo_n "(cached) " >&6
6400 case $INSTALL_INFO in
6402 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6406 for as_dir
in /usr
/sbin
6409 test -z "$as_dir" && as_dir
=.
6410 for ac_exec_ext
in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6424 if test -n "$INSTALL_INFO"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6426 $as_echo "$INSTALL_INFO" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6433 # Extract the first word of "install-info", so it can be a program name with args.
6434 set dummy install-info
; ac_word
=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6438 $as_echo_n "(cached) " >&6
6440 case $INSTALL_INFO in
6442 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir
=.
6450 for ac_exec_ext
in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6464 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6465 if test -n "$INSTALL_INFO"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6467 $as_echo "$INSTALL_INFO" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6474 # Extract the first word of "gzip", so it can be a program name with args.
6475 set dummy
gzip; ac_word
=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6479 $as_echo_n "(cached) " >&6
6483 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir
=.
6491 for ac_exec_ext
in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6505 if test -n "$GZIP_PROG"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6507 $as_echo "$GZIP_PROG" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6516 ## Need makeinfo >= 4.6 (?) to build the manuals.
6517 # Extract the first word of "makeinfo", so it can be a program name with args.
6518 set dummy makeinfo
; ac_word
=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_path_MAKEINFO+:} false
; then :
6522 $as_echo_n "(cached) " >&6
6526 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir
=.
6534 for ac_exec_ext
in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6548 MAKEINFO
=$ac_cv_path_MAKEINFO
6549 if test -n "$MAKEINFO"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6551 $as_echo "$MAKEINFO" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6558 if test "$MAKEINFO" != "no" && \
6559 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
6563 ## Makeinfo is unusual. For a released Emacs, the manuals are
6564 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6565 ## therefore in the category of "special tools" not normally required, which
6566 ## configure does not have to check for (eg autoconf itself).
6567 ## In a Bazaar checkout on the other hand, the manuals are not included.
6568 ## So makeinfo is a requirement to build from Bazaar, and configure
6569 ## should test for it as it does for any other build requirement.
6570 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6571 ## with pre-built manuals, from a Bazaar checkout.
6574 if test "$MAKEINFO" = "no"; then
6576 if test "x${with_makeinfo}" = "xno"; then
6578 elif test ! -e $srcdir/info
/emacs
; then
6579 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6580 source tree does not seem to have pre-built manuals in the \`info' directory.
6581 Either install a suitable version of makeinfo, or re-run configure
6582 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6588 if test x
$GCC = xyes
; then
6589 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6590 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6592 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6593 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6597 late_LDFLAGS
=$LDFLAGS
6598 if test x
$GCC = xyes
; then
6599 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6601 LDFLAGS
="$LDFLAGS -znocombreloc"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6605 $as_echo_n "checking for -znocombreloc... " >&6; }
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6617 if ac_fn_c_try_link
"$LINENO"; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6619 $as_echo "yes" >&6; }
6621 LDFLAGS
=$late_LDFLAGS
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6625 rm -f core conftest.err conftest.
$ac_objext \
6626 conftest
$ac_exeext conftest.
$ac_ext
6629 # The value of CPP is a quoted variable reference, so we need to do this
6630 # to get its actual value...
6631 CPP
=`eval "echo $CPP"`
6634 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6636 your-opsys-here
) CANNOT_DUMP
=yes ;;
6639 test "$CANNOT_DUMP" = "yes" && \
6641 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6647 UNEXEC_OBJ
=unexelf.o
6649 # MSDOS uses unexcoff.o
6650 # MSWindows uses unexw32.o
6652 UNEXEC_OBJ
=unexaix.o
6658 UNEXEC_OBJ
=unexmacosx.o
6661 UNEXEC_OBJ
=unexhp9k800.o
6664 # Use the Solaris dldump() function, called from unexsol.c, to dump
6665 # emacs, instead of the generic ELF dump code found in unexelf.c.
6666 # The resulting binary has a complete symbol table, and is better
6667 # for debugging and other observability tools (debuggers, pstack, etc).
6669 # If you encounter a problem using dldump(), please consider sending
6670 # a message to the OpenSolaris tools-linking mailing list:
6671 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6673 # It is likely that dldump() works with older Solaris too, but this has
6674 # not been tested, so for now this change is for Solaris 10 or newer.
6675 UNEXEC_OBJ
=unexsol.o
6682 ## Let `ld' find image libs and similar things in /usr/local/lib.
6683 ## The system compiler, GCC, has apparently been modified to not
6684 ## look there, contrary to what a stock GCC would do.
6685 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6689 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6690 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6694 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6698 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6699 ## otherwise Emacs dumps core on elf systems.
6700 LD_SWITCH_SYSTEM
="-Z"
6705 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6707 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6708 ## which has not been defined yet. When this was handled with cpp,
6709 ## it was expanded to null when configure sourced the s/*.h file.
6710 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6711 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6712 ## (or somesuch), but because it is supposed to go at the _front_
6713 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6714 ## Compare with the gnu-linux case below, which added to the end
6715 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6716 ## LD_SWITCH_SYSTEM_TEMACS.
6719 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6720 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6725 if test "$machine" = "alpha"; then
6726 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6727 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6731 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6732 ## With ELF, make sure that all common symbols get allocated to in the
6733 ## data section. Otherwise, the dump of temacs may miss variables in
6734 ## the shared library that have been initialized. For example, with
6735 ## GNU libc, __malloc_initialized would normally be resolved to the
6736 ## shared library's .bss section, which is fatal.
6737 if test "x$GCC" = "xyes"; then
6738 C_SWITCH_MACHINE
="-fno-common"
6740 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6743 UNEXEC_OBJ
=unexalpha.o
6751 ## Some programs in src produce warnings saying certain subprograms
6752 ## are too complex and need a MAXMEM value greater than 2000 for
6753 ## additional optimization. --nils@exp-math.uni-essen.de
6754 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6755 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6756 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6757 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6763 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6764 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6766 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6768 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6770 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6772 ## Motif needs -lgen.
6773 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6778 ### Make sure subsequent tests use flags consistent with the build flags.
6780 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6781 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6783 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6786 # Check whether --enable-largefile was given.
6787 if test "${enable_largefile+set}" = set; then :
6788 enableval
=$enable_largefile;
6791 if test "$enable_largefile" != no
; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6795 if ${ac_cv_sys_largefile_CC+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6798 ac_cv_sys_largefile_CC
=no
6799 if test "$GCC" != yes; then
6802 # IRIX 6.2 and later do not support large files by default,
6803 # so use the C compiler's -n32 option if that helps.
6804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <sys/types.h>
6807 /* Check that off_t can represent 2**63 - 1 correctly.
6808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6809 since some C++ compilers masquerading as C compilers
6810 incorrectly reject 9223372036854775807. */
6811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6813 && LARGE_OFF_T % 2147483647 == 1)
6823 if ac_fn_c_try_compile
"$LINENO"; then :
6826 rm -f core conftest.err conftest.
$ac_objext
6828 if ac_fn_c_try_compile
"$LINENO"; then :
6829 ac_cv_sys_largefile_CC
=' -n32'; break
6831 rm -f core conftest.err conftest.
$ac_objext
6835 rm -f conftest.
$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6840 if test "$ac_cv_sys_largefile_CC" != no
; then
6841 CC
=$CC$ac_cv_sys_largefile_CC
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6846 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6847 $as_echo_n "(cached) " >&6
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <sys/types.h>
6853 /* Check that off_t can represent 2**63 - 1 correctly.
6854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6855 since some C++ compilers masquerading as C compilers
6856 incorrectly reject 9223372036854775807. */
6857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6859 && LARGE_OFF_T % 2147483647 == 1)
6869 if ac_fn_c_try_compile
"$LINENO"; then :
6870 ac_cv_sys_file_offset_bits
=no
; break
6872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 #define _FILE_OFFSET_BITS 64
6876 #include <sys/types.h>
6877 /* Check that off_t can represent 2**63 - 1 correctly.
6878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6879 since some C++ compilers masquerading as C compilers
6880 incorrectly reject 9223372036854775807. */
6881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6883 && LARGE_OFF_T % 2147483647 == 1)
6893 if ac_fn_c_try_compile
"$LINENO"; then :
6894 ac_cv_sys_file_offset_bits
=64; break
6896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6897 ac_cv_sys_file_offset_bits
=unknown
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6903 case $ac_cv_sys_file_offset_bits in #(
6906 cat >>confdefs.h
<<_ACEOF
6907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6912 if test $ac_cv_sys_file_offset_bits = unknown
; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6915 if ${ac_cv_sys_large_files+:} false
; then :
6916 $as_echo_n "(cached) " >&6
6919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <sys/types.h>
6922 /* Check that off_t can represent 2**63 - 1 correctly.
6923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6924 since some C++ compilers masquerading as C compilers
6925 incorrectly reject 9223372036854775807. */
6926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6928 && LARGE_OFF_T % 2147483647 == 1)
6938 if ac_fn_c_try_compile
"$LINENO"; then :
6939 ac_cv_sys_large_files
=no
; break
6941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #define _LARGE_FILES 1
6945 #include <sys/types.h>
6946 /* Check that off_t can represent 2**63 - 1 correctly.
6947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6948 since some C++ compilers masquerading as C compilers
6949 incorrectly reject 9223372036854775807. */
6950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6952 && LARGE_OFF_T % 2147483647 == 1)
6962 if ac_fn_c_try_compile
"$LINENO"; then :
6963 ac_cv_sys_large_files
=1; break
6965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 ac_cv_sys_large_files
=unknown
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6971 $as_echo "$ac_cv_sys_large_files" >&6; }
6972 case $ac_cv_sys_large_files in #(
6975 cat >>confdefs.h
<<_ACEOF
6976 #define _LARGE_FILES $ac_cv_sys_large_files
6986 ## If user specified a crt-dir, use that unconditionally.
6987 if test "X$CRT_DIR" = "X"; then
6989 case "$canonical" in
6990 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6991 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6992 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6993 ## For anything else (eg /usr/lib32), it is up the user to specify
6994 ## the location (bug#5655).
6995 ## Test for crtn.o, not just the directory, because sometimes the
6996 ## directory exists but does not have the relevant files (bug#1287).
6997 ## FIXME better to test for binary compatibility somehow.
6998 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7001 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7005 hpux10-20
) CRT_DIR
=/lib
;;
7008 ## Default is /usr/lib.
7009 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7013 ## Some platforms don't use any of these files, so it is not
7014 ## appropriate to put this test outside the if block.
7015 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7016 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7029 START_FILES
='pre-crt0.o'
7032 ## Adding -lm confuses the dynamic linker, so omit it.
7034 START_FILES
='pre-crt0.o'
7037 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7038 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7040 gnu-linux | gnu-kfreebsd
)
7041 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7042 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7044 hpux10-20 | hpux11
)
7046 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7049 if test -f $CRT_DIR/crti.o
; then
7050 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7051 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7053 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7054 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7065 if test "${with_sound}" != "no"; then
7066 # Sound support for GNU/Linux and the free BSDs.
7067 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7069 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7071 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7072 cat >>confdefs.h
<<_ACEOF
7073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075 have_sound_header
=yes
7080 # Emulation library used on NetBSD.
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7082 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7083 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 ac_check_lib_save_LIBS
=$LIBS
7087 LIBS
="-lossaudio $LIBS"
7088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7101 return _oss_ioctl ();
7106 if ac_fn_c_try_link
"$LINENO"; then :
7107 ac_cv_lib_ossaudio__oss_ioctl
=yes
7109 ac_cv_lib_ossaudio__oss_ioctl
=no
7111 rm -f core conftest.err conftest.
$ac_objext \
7112 conftest
$ac_exeext conftest.
$ac_ext
7113 LIBS
=$ac_check_lib_save_LIBS
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7116 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7117 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7126 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7130 # Extract the first word of "pkg-config", so it can be a program name with args.
7131 set dummy pkg-config
; ac_word
=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7135 $as_echo_n "(cached) " >&6
7139 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir
=.
7147 for ac_exec_ext
in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7161 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7162 if test -n "$PKG_CONFIG"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7164 $as_echo "$PKG_CONFIG" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7172 if test "$PKG_CONFIG" = "no" ; then
7175 PKG_CONFIG_MIN_VERSION
=0.9.0
7176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7178 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7180 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7182 $as_echo "yes" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7186 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7187 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7189 $as_echo "$ALSA_CFLAGS" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7192 $as_echo_n "checking ALSA_LIBS... " >&6; }
7193 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7195 $as_echo "$ALSA_LIBS" >&6; }
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7201 ## If we have a custom action on failure, don't print errors, but
7202 ## do set a variable so people can do so.
7203 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7215 if test $succeeded = yes; then
7221 if test $HAVE_ALSA = yes; then
7222 SAVE_CFLAGS
="$CFLAGS"
7223 SAVE_LDFLAGS
="$LDFLAGS"
7224 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7225 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <asoundlib.h>
7232 snd_lib_error_set_handler (0);
7237 if ac_fn_c_try_compile
"$LINENO"; then :
7238 emacs_alsa_normal
=yes
7240 emacs_alsa_normal
=no
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 if test "$emacs_alsa_normal" != yes; then
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <alsa/asoundlib.h>
7250 snd_lib_error_set_handler (0);
7255 if ac_fn_c_try_compile
"$LINENO"; then :
7256 emacs_alsa_subdir
=yes
7258 emacs_alsa_subdir
=no
7260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7261 if test "$emacs_alsa_subdir" != yes; then
7262 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7264 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7267 CFLAGS
="$SAVE_CFLAGS"
7268 LDFLAGS
="$SAVE_LDFLAGS"
7269 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7270 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7272 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7276 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7278 gnu-linux|freebsd|netbsd
)
7280 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7289 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7290 linux
/version.h sys
/systeminfo.h limits.h \
7291 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7292 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7293 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7295 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7297 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7298 cat >>confdefs.h
<<_ACEOF
7299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7308 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 #include <sys/personality.h>
7315 personality (PER_LINUX32)
7320 if ac_fn_c_try_compile
"$LINENO"; then :
7321 emacs_cv_personality_linux32
=yes
7323 emacs_cv_personality_linux32
=no
7325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7327 $as_echo "$emacs_cv_personality_linux32" >&6; }
7329 if test $emacs_cv_personality_linux32 = yes; then
7331 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7335 for ac_header
in term.h
7337 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7338 if test "x$ac_cv_header_term_h" = xyes
; then :
7339 cat >>confdefs.h
<<_ACEOF
7340 #define HAVE_TERM_H 1
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7348 $as_echo_n "checking for ANSI C header files... " >&6; }
7349 if ${ac_cv_header_stdc+:} false
; then :
7350 $as_echo_n "(cached) " >&6
7352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7367 if ac_fn_c_try_compile
"$LINENO"; then :
7368 ac_cv_header_stdc
=yes
7370 ac_cv_header_stdc
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7374 if test $ac_cv_header_stdc = yes; then
7375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 $EGREP "memchr" >/dev
/null
2>&1; then :
7385 ac_cv_header_stdc
=no
7391 if test $ac_cv_header_stdc = yes; then
7392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399 $EGREP "free" >/dev
/null
2>&1; then :
7402 ac_cv_header_stdc
=no
7408 if test $ac_cv_header_stdc = yes; then
7409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7410 if test "$cross_compiling" = yes; then :
7413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7417 #if ((' ' & 0x0FF) == 0x020)
7418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7421 # define ISLOWER(c) \
7422 (('a' <= (c) && (c) <= 'i') \
7423 || ('j' <= (c) && (c) <= 'r') \
7424 || ('s' <= (c) && (c) <= 'z'))
7425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7433 for (i = 0; i < 256; i++)
7434 if (XOR (islower (i), ISLOWER (i))
7435 || toupper (i) != TOUPPER (i))
7440 if ac_fn_c_try_run
"$LINENO"; then :
7443 ac_cv_header_stdc
=no
7445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7452 $as_echo "$ac_cv_header_stdc" >&6; }
7453 if test $ac_cv_header_stdc = yes; then
7455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7460 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7461 if ${ac_cv_header_time+:} false
; then :
7462 $as_echo_n "(cached) " >&6
7464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 #include <sys/time.h>
7473 if ((struct tm *) 0)
7479 if ac_fn_c_try_compile
"$LINENO"; then :
7480 ac_cv_header_time
=yes
7482 ac_cv_header_time
=no
7484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7487 $as_echo "$ac_cv_header_time" >&6; }
7488 if test $ac_cv_header_time = yes; then
7490 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7494 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7495 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7501 cat >>confdefs.h
<<_ACEOF
7502 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7505 if test $ac_cv_have_decl_sys_siglist != yes; then
7506 # For Tru64, at least:
7507 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7508 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7514 cat >>confdefs.h
<<_ACEOF
7515 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7518 if test $ac_cv_have_decl___sys_siglist = yes; then
7520 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7525 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7526 if ${ac_cv_header_sys_wait_h+:} false
; then :
7527 $as_echo_n "(cached) " >&6
7529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <sys/types.h>
7532 #include <sys/wait.h>
7534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7550 if ac_fn_c_try_compile
"$LINENO"; then :
7551 ac_cv_header_sys_wait_h
=yes
7553 ac_cv_header_sys_wait_h
=no
7555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7558 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7559 if test $ac_cv_header_sys_wait_h = yes; then
7561 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7567 $as_echo_n "checking for struct utimbuf... " >&6; }
7568 if ${emacs_cv_struct_utimbuf+:} false
; then :
7569 $as_echo_n "(cached) " >&6
7571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #ifdef TIME_WITH_SYS_TIME
7574 #include <sys/time.h>
7577 #ifdef HAVE_SYS_TIME_H
7578 #include <sys/time.h>
7589 static struct utimbuf x; x.actime = x.modtime;
7594 if ac_fn_c_try_compile
"$LINENO"; then :
7595 emacs_cv_struct_utimbuf
=yes
7597 emacs_cv_struct_utimbuf
=no
7599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7602 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7603 if test $emacs_cv_struct_utimbuf = yes; then
7605 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7610 $as_echo_n "checking return type of signal handlers... " >&6; }
7611 if ${ac_cv_type_signal+:} false
; then :
7612 $as_echo_n "(cached) " >&6
7614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7622 return *(signal (0, 0)) (0) == 1;
7627 if ac_fn_c_try_compile
"$LINENO"; then :
7628 ac_cv_type_signal
=int
7630 ac_cv_type_signal
=void
7632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7635 $as_echo "$ac_cv_type_signal" >&6; }
7637 cat >>confdefs.h
<<_ACEOF
7638 #define RETSIGTYPE $ac_cv_type_signal
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7644 $as_echo_n "checking for speed_t... " >&6; }
7645 if ${emacs_cv_speed_t+:} false
; then :
7646 $as_echo_n "(cached) " >&6
7648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <termios.h>
7659 if ac_fn_c_try_compile
"$LINENO"; then :
7660 emacs_cv_speed_t
=yes
7664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7667 $as_echo "$emacs_cv_speed_t" >&6; }
7668 if test $emacs_cv_speed_t = yes; then
7670 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7675 $as_echo_n "checking for struct timeval... " >&6; }
7676 if ${emacs_cv_struct_timeval+:} false
; then :
7677 $as_echo_n "(cached) " >&6
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #ifdef TIME_WITH_SYS_TIME
7682 #include <sys/time.h>
7685 #ifdef HAVE_SYS_TIME_H
7686 #include <sys/time.h>
7694 static struct timeval x; x.tv_sec = x.tv_usec;
7699 if ac_fn_c_try_compile
"$LINENO"; then :
7700 emacs_cv_struct_timeval
=yes
7702 emacs_cv_struct_timeval
=no
7704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7707 $as_echo "$emacs_cv_struct_timeval" >&6; }
7708 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7709 if test $emacs_cv_struct_timeval = yes; then
7711 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7716 $as_echo_n "checking for struct exception... " >&6; }
7717 if ${emacs_cv_struct_exception+:} false
; then :
7718 $as_echo_n "(cached) " >&6
7720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7726 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7731 if ac_fn_c_try_compile
"$LINENO"; then :
7732 emacs_cv_struct_exception
=yes
7734 emacs_cv_struct_exception
=no
7736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7739 $as_echo "$emacs_cv_struct_exception" >&6; }
7740 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7741 if test $emacs_cv_struct_exception != yes; then
7743 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7747 for ac_header
in sys
/socket.h
7749 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7750 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7751 cat >>confdefs.h
<<_ACEOF
7752 #define HAVE_SYS_SOCKET_H 1
7759 for ac_header
in net
/if.h
7761 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7762 #if HAVE_SYS_SOCKET_H
7763 #include <sys/socket.h>
7766 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7767 cat >>confdefs.h
<<_ACEOF
7768 #define HAVE_NET_IF_H 1
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7777 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7778 if ${ac_cv_struct_tm+:} false
; then :
7779 $as_echo_n "(cached) " >&6
7781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <sys/types.h>
7790 int *p = &tm.tm_sec;
7796 if ac_fn_c_try_compile
"$LINENO"; then :
7797 ac_cv_struct_tm
=time.h
7799 ac_cv_struct_tm
=sys
/time.h
7801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7804 $as_echo "$ac_cv_struct_tm" >&6; }
7805 if test $ac_cv_struct_tm = sys
/time.h
; then
7807 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7811 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7812 #include <$ac_cv_struct_tm>
7815 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7817 cat >>confdefs.h
<<_ACEOF
7818 #define HAVE_STRUCT_TM_TM_ZONE 1
7824 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7826 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7829 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7831 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7837 cat >>confdefs.h
<<_ACEOF
7838 #define HAVE_DECL_TZNAME $ac_have_decl
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7842 $as_echo_n "checking for tzname... " >&6; }
7843 if ${ac_cv_var_tzname+:} false
; then :
7844 $as_echo_n "(cached) " >&6
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 #if !HAVE_DECL_TZNAME
7850 extern char *tzname[];
7856 return tzname[0][0];
7861 if ac_fn_c_try_link
"$LINENO"; then :
7862 ac_cv_var_tzname
=yes
7866 rm -f core conftest.err conftest.
$ac_objext \
7867 conftest
$ac_exeext conftest.
$ac_ext
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7870 $as_echo "$ac_cv_var_tzname" >&6; }
7871 if test $ac_cv_var_tzname = yes; then
7873 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7878 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7880 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7882 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7886 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7887 #if HAVE_SYS_SOCKET_H
7888 #include <sys/socket.h>
7894 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
7896 cat >>confdefs.h
<<_ACEOF
7897 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7902 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7903 #if HAVE_SYS_SOCKET_H
7904 #include <sys/socket.h>
7910 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
7912 cat >>confdefs.h
<<_ACEOF
7913 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7918 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7919 #if HAVE_SYS_SOCKET_H
7920 #include <sys/socket.h>
7926 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
7928 cat >>confdefs.h
<<_ACEOF
7929 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7934 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7935 #if HAVE_SYS_SOCKET_H
7936 #include <sys/socket.h>
7942 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
7944 cat >>confdefs.h
<<_ACEOF
7945 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7950 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7951 #if HAVE_SYS_SOCKET_H
7952 #include <sys/socket.h>
7958 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
7960 cat >>confdefs.h
<<_ACEOF
7961 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7970 $as_echo_n "checking for function prototypes... " >&6; }
7971 if test "$ac_cv_prog_cc_c89" != no
; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7973 $as_echo "yes" >&6; }
7975 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7978 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7986 $as_echo_n "checking for working volatile... " >&6; }
7987 if ${ac_cv_c_volatile+:} false
; then :
7988 $as_echo_n "(cached) " >&6
7990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7998 int * volatile y = (int *) 0;
8004 if ac_fn_c_try_compile
"$LINENO"; then :
8005 ac_cv_c_volatile
=yes
8009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8012 $as_echo "$ac_cv_c_volatile" >&6; }
8013 if test $ac_cv_c_volatile = no
; then
8015 $as_echo "#define volatile /**/" >>confdefs.h
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8020 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8021 if ${ac_cv_c_const+:} false
; then :
8022 $as_echo_n "(cached) " >&6
8024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8030 /* FIXME: Include the comments suggested by Paul. */
8032 /* Ultrix mips cc rejects this. */
8033 typedef int charset[2];
8035 /* SunOS 4.1.1 cc rejects this. */
8036 char const *const *pcpcc;
8038 /* NEC SVR4.0.2 mips cc rejects this. */
8039 struct point {int x, y;};
8040 static struct point const zero = {0,0};
8041 /* AIX XL C 1.02.0.0 rejects this.
8042 It does not let you subtract one const X* pointer from another in
8043 an arm of an if-expression whose if-part is not a constant
8045 const char *g = "string";
8046 pcpcc = &g + (g ? g-g : 0);
8047 /* HPUX 7.0 cc rejects these. */
8049 ppc = (char**) pcpcc;
8050 pcpcc = (char const *const *) ppc;
8051 { /* SCO 3.2v4 cc rejects this. */
8053 char const *s = 0 ? (char *) 0 : (char const *) 0;
8058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8060 const int *foo = &x[0];
8063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8064 typedef const int *iptr;
8068 { /* AIX XL C 1.02.0.0 rejects this saying
8069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8070 struct s { int j; const int *ap[3]; };
8071 struct s *b; b->j = 5;
8073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8077 return !cs[0] && !zero.x;
8084 if ac_fn_c_try_compile
"$LINENO"; then :
8089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8092 $as_echo "$ac_cv_c_const" >&6; }
8093 if test $ac_cv_c_const = no
; then
8095 $as_echo "#define const /**/" >>confdefs.h
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8100 $as_echo_n "checking for void * support... " >&6; }
8101 if ${emacs_cv_void_star+:} false
; then :
8102 $as_echo_n "(cached) " >&6
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8115 if ac_fn_c_try_compile
"$LINENO"; then :
8116 emacs_cv_void_star
=yes
8118 emacs_cv_void_star
=no
8120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8123 $as_echo "$emacs_cv_void_star" >&6; }
8124 if test $emacs_cv_void_star = yes; then
8125 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8128 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8133 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8134 if ${ac_cv_c_bigendian+:} false
; then :
8135 $as_echo_n "(cached) " >&6
8137 ac_cv_c_bigendian
=unknown
8138 # See if we're dealing with a universal compiler.
8139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 #ifndef __APPLE_CC__
8142 not a universal capable compiler
8147 if ac_fn_c_try_compile
"$LINENO"; then :
8149 # Check for potential -arch flags. It is not universal unless
8150 # there are at least two -arch flags with different values.
8153 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8154 if test -n "$ac_prev"; then
8156 i?
86 | x86_64 | ppc | ppc64
)
8157 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8160 ac_cv_c_bigendian
=universal
8166 elif test "x$ac_word" = "x-arch"; then
8171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8172 if test $ac_cv_c_bigendian = unknown
; then
8173 # See if sys/param.h defines the BYTE_ORDER macro.
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8177 #include <sys/param.h>
8182 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8183 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8192 if ac_fn_c_try_compile
"$LINENO"; then :
8193 # It does; now see whether it defined to BIG_ENDIAN or not.
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #include <sys/types.h>
8197 #include <sys/param.h>
8202 #if BYTE_ORDER != BIG_ENDIAN
8210 if ac_fn_c_try_compile
"$LINENO"; then :
8211 ac_cv_c_bigendian
=yes
8213 ac_cv_c_bigendian
=no
8215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8219 if test $ac_cv_c_bigendian = unknown
; then
8220 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8228 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8236 if ac_fn_c_try_compile
"$LINENO"; then :
8237 # It does; now see whether it defined to _BIG_ENDIAN or not.
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8253 if ac_fn_c_try_compile
"$LINENO"; then :
8254 ac_cv_c_bigendian
=yes
8256 ac_cv_c_bigendian
=no
8258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8262 if test $ac_cv_c_bigendian = unknown
; then
8263 # Compile a test program.
8264 if test "$cross_compiling" = yes; then :
8265 # Try to guess by grepping values from an object file.
8266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 short int ascii_mm[] =
8269 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8270 short int ascii_ii[] =
8271 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8272 int use_ascii (int i) {
8273 return ascii_mm[i] + ascii_ii[i];
8275 short int ebcdic_ii[] =
8276 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8277 short int ebcdic_mm[] =
8278 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8279 int use_ebcdic (int i) {
8280 return ebcdic_mm[i] + ebcdic_ii[i];
8287 return use_ascii (foo) == use_ebcdic (foo);
8292 if ac_fn_c_try_compile
"$LINENO"; then :
8293 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8294 ac_cv_c_bigendian
=yes
8296 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8297 if test "$ac_cv_c_bigendian" = unknown
; then
8298 ac_cv_c_bigendian
=no
8300 # finding both strings is unlikely to happen, but who knows?
8301 ac_cv_c_bigendian
=unknown
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 $ac_includes_default
8314 /* Are we little or big endian? From Harbison&Steele. */
8318 char c[sizeof (long int)];
8321 return u.c[sizeof (long int) - 1] == 1;
8327 if ac_fn_c_try_run
"$LINENO"; then :
8328 ac_cv_c_bigendian
=no
8330 ac_cv_c_bigendian
=yes
8332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8339 $as_echo "$ac_cv_c_bigendian" >&6; }
8340 case $ac_cv_c_bigendian in #(
8342 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8348 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8352 as_fn_error $?
"unknown endianness
8353 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8358 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8359 if ${emacs_cv_attribute_aligned+:} false
; then :
8360 $as_echo_n "(cached) " >&6
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 char __attribute__ ((__aligned__ (1 << 3))) c;
8373 if ac_fn_c_try_compile
"$LINENO"; then :
8374 emacs_cv_attribute_aligned
=yes
8376 emacs_cv_attribute_aligned
=no
8378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8381 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8382 if test $emacs_cv_attribute_aligned = yes; then
8384 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8389 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8391 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8392 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8393 $as_echo_n "(cached) " >&6
8395 cat >conftest.
make <<\_ACEOF
8398 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8403 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8405 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8409 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8411 $as_echo "yes" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 SET_MAKE
="MAKE=${MAKE-make}"
8423 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8425 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8427 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8428 if test "x$testval" != x
; then
8431 ac_enable_autodepend
=no
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8434 $as_echo "$HAVE_GNU_MAKE" >&6; }
8435 if test $HAVE_GNU_MAKE = yes; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8437 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8438 SAVE_CFLAGS
="$CFLAGS"
8439 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8451 if ac_fn_c_try_compile
"$LINENO"; then :
8454 ac_enable_autodepend
=no
8456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 CFLAGS
="$SAVE_CFLAGS"
8458 test -f deps.d || ac_enable_autodepend
=no
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8461 $as_echo "$ac_enable_autodepend" >&6; }
8463 if test $ac_enable_autodepend = yes; then
8464 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8465 ## In parallel builds, another make might create depdir between
8466 ## the first test and mkdir, so stick another test on the end.
8467 ## Or use mkinstalldirs? mkdir -p is not portable.
8468 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8469 deps_frag
=autodeps.mk
8472 deps_frag
=$srcdir/src
/$deps_frag
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8479 $as_echo_n "checking for long file names... " >&6; }
8480 if ${ac_cv_sys_long_file_names+:} false
; then :
8481 $as_echo_n "(cached) " >&6
8483 ac_cv_sys_long_file_names
=yes
8484 # Test for long file names in all the places we know might matter:
8485 # . the current directory, where building will happen
8486 # $prefix/lib where we will be installing things
8487 # $exec_prefix/lib likewise
8488 # $TMPDIR if set, where it might want to write temporary files
8489 # /tmp where it might want to write temporary files
8492 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8493 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8494 # in the usual case where exec_prefix is '${prefix}'.
8496 . |
/* | ?
:[\\/]*) ;; #(
8499 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8500 ac_xdir
=$ac_dir/cf$$
8501 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8502 ac_tf1
=$ac_xdir/conftest9012345
8503 ac_tf2
=$ac_xdir/conftest9012346
8504 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8505 ac_cv_sys_long_file_names
=no
8506 rm -f -r "$ac_xdir" 2>/dev
/null
8507 test $ac_cv_sys_long_file_names = no
&& break
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8511 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8512 if test $ac_cv_sys_long_file_names = yes; then
8514 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8519 #### Choose a window system.
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8522 $as_echo_n "checking for X... " >&6; }
8525 # Check whether --with-x was given.
8526 if test "${with_x+set}" = set; then :
8530 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8531 if test "x$with_x" = xno
; then
8532 # The user explicitly disabled X.
8535 case $x_includes,$x_libraries in #(
8536 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8537 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8538 $as_echo_n "(cached) " >&6
8540 # One or both of the vars are not set, and there is no cached value.
8541 ac_x_includes
=no ac_x_libraries
=no
8542 rm -f -r conftest.dir
8543 if mkdir conftest.dir
; then
8545 cat >Imakefile
<<'_ACEOF'
8547 @echo incroot='${INCROOT}'
8549 @echo usrlibdir='${USRLIBDIR}'
8551 @echo libdir='${LIBDIR}'
8553 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8554 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8555 for ac_var
in incroot usrlibdir libdir
; do
8556 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8558 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8559 for ac_extension
in a so sl dylib la dll
; do
8560 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8561 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8562 ac_im_usrlibdir
=$ac_im_libdir; break
8565 # Screen out bogus values from the imake configuration. They are
8566 # bogus both because they are the default anyway, and because
8567 # using them would break gcc on systems where it needs fixed includes.
8568 case $ac_im_incroot in
8569 /usr
/include
) ac_x_includes
= ;;
8570 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8572 case $ac_im_usrlibdir in
8573 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8574 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8578 rm -f -r conftest.dir
8581 # Standard set of common directories for X headers.
8582 # Check X11 before X11Rn because it is often a symlink to the current release.
8596 /usr/local/X11/include
8597 /usr/local/X11R7/include
8598 /usr/local/X11R6/include
8599 /usr/local/X11R5/include
8600 /usr/local/X11R4/include
8602 /usr/local/include/X11
8603 /usr/local/include/X11R7
8604 /usr/local/include/X11R6
8605 /usr/local/include/X11R5
8606 /usr/local/include/X11R4
8610 /usr/XFree86/include/X11
8614 /usr/unsupported/include
8616 /usr/local/x11r5/include
8617 /usr/lpp/Xamples/include
8619 /usr/openwin/include
8620 /usr/openwin/share/include'
8622 if test "$ac_x_includes" = no
; then
8623 # Guess where to find include files, by looking for Xlib.h.
8624 # First, try using that file with no special directory specified.
8625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <X11/Xlib.h>
8629 if ac_fn_c_try_cpp
"$LINENO"; then :
8630 # We can compile using X headers with no special include directory.
8633 for ac_dir
in $ac_x_header_dirs; do
8634 if test -r "$ac_dir/X11/Xlib.h"; then
8635 ac_x_includes
=$ac_dir
8640 rm -f conftest.err conftest.i conftest.
$ac_ext
8641 fi # $ac_x_includes = no
8643 if test "$ac_x_libraries" = no
; then
8644 # Check for the libraries.
8645 # See if we find them without any special options.
8646 # Don't add to $LIBS permanently.
8649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <X11/Xlib.h>
8660 if ac_fn_c_try_link
"$LINENO"; then :
8662 # We can link X programs with no special library path.
8666 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8668 # Don't even attempt the hair of trying to link an X program!
8669 for ac_extension
in a so sl dylib la dll
; do
8670 if test -r "$ac_dir/libX11.$ac_extension"; then
8671 ac_x_libraries
=$ac_dir
8677 rm -f core conftest.err conftest.
$ac_objext \
8678 conftest
$ac_exeext conftest.
$ac_ext
8679 fi # $ac_x_libraries = no
8681 case $ac_x_includes,$ac_x_libraries in #(
8683 # Didn't find X, or a directory has "'" in its name.
8684 ac_cv_have_x
="have_x=no";; #(
8686 # Record where we found X for the cache.
8687 ac_cv_have_x
="have_x=yes\
8688 ac_x_includes='$ac_x_includes'\
8689 ac_x_libraries='$ac_x_libraries'"
8695 eval "$ac_cv_have_x"
8698 if test "$have_x" != yes; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8700 $as_echo "$have_x" >&6; }
8703 # If each of the values was on the command line, it overrides each guess.
8704 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8705 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8706 # Update the cache value to reflect the command line values.
8707 ac_cv_have_x
="have_x=yes\
8708 ac_x_includes='$x_includes'\
8709 ac_x_libraries='$x_libraries'"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8711 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8714 if test "$no_x" = yes; then
8720 ## Workaround for bug in autoconf <= 2.62.
8721 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8722 ## No need to do anything special for these standard directories.
8723 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8725 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8729 LD_SWITCH_X_SITE_AUX
=
8730 LD_SWITCH_X_SITE_AUX_RPATH
=
8731 if test "${x_libraries}" != NONE
; then
8732 if test -n "${x_libraries}"; then
8733 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8734 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8735 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8737 x_default_search_path
=""
8738 x_search_path
=${x_libraries}
8739 if test -z "${x_search_path}"; then
8740 x_search_path
=/usr
/lib
8742 for x_library
in `echo ${x_search_path}: | \
8743 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8745 ${x_library}/X11/%L/%T/%N%C%S:\
8746 ${x_library}/X11/%l/%T/%N%C%S:\
8747 ${x_library}/X11/%T/%N%C%S:\
8748 ${x_library}/X11/%L/%T/%N%S:\
8749 ${x_library}/X11/%l/%T/%N%S:\
8750 ${x_library}/X11/%T/%N%S"
8751 if test x
"${x_default_search_path}" = x
; then
8752 x_default_search_path
=${x_search_path}
8754 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8761 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8762 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8765 if test x
"${x_includes}" = x
; then
8766 bitmapdir
=/usr
/include
/X11
/bitmaps
8768 # accumulate include directories that have X11 bitmap subdirectories
8770 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8771 if test -d "${bmd}/X11/bitmaps"; then
8772 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8774 if test -d "${bmd}/bitmaps"; then
8775 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8778 if test ${bmd_acc} != "dummyval"; then
8779 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8786 tmp_CPPFLAGS
="$CPPFLAGS"
8787 tmp_CFLAGS
="$CFLAGS"
8788 CPPFLAGS
="$CPPFLAGS -x objective-c"
8789 CFLAGS
="$CFLAGS -x objective-c"
8790 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8791 if test "${with_ns}" != no
; then
8792 if test "${opsys}" = darwin
; then
8794 ns_appdir
=`pwd`/nextstep
/Emacs.app
8795 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8796 ns_appresdir
=${ns_appdir}/Contents
/Resources
8797 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8798 elif test -f $GNUSTEP_CONFIG_FILE; then
8800 ns_appdir
=`pwd`/nextstep
/Emacs.app
8801 ns_appbindir
=${ns_appdir}/
8802 ns_appresdir
=${ns_appdir}/Resources
8803 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8804 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8805 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8806 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8807 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8808 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8809 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8810 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8811 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8812 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8813 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8814 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8819 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8820 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
8823 as_fn_error $?
"\`--with-ns' was specified, but the include
8824 files are missing or cannot be compiled." "$LINENO" 5
8828 NS_HAVE_NSINTEGER
=yes
8829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #include <Foundation/NSObjCRuntime.h>
8840 if ac_fn_c_try_compile
"$LINENO"; then :
8841 ns_have_nsinteger
=yes
8843 ns_have_nsinteger
=no
8845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8846 if test $ns_have_nsinteger = no
; then
8847 NS_HAVE_NSINTEGER
=no
8856 if test "${HAVE_NS}" = yes; then
8857 window_system
=nextstep
8859 # set up packaging dirs
8860 exec_prefix
=${ns_appbindir}
8861 libexecdir
=${ns_appbindir}/libexec
8862 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8863 prefix
=${ns_appresdir}
8865 ns_frag
=$srcdir/src
/ns.mk
8866 NS_OBJ
="fontset.o fringe.o image.o"
8867 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
8868 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8870 CFLAGS
="$tmp_CFLAGS"
8871 CPPFLAGS
="$tmp_CPPFLAGS"
8878 case "${window_system}" in
8882 case "${with_x_toolkit}" in
8883 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8884 motif
) USE_X_TOOLKIT
=MOTIF
;;
8886 USE_X_TOOLKIT
=none
;;
8887 gtk3
) with_gtk3
=yes
8888 USE_X_TOOLKIT
=none
;;
8889 no
) USE_X_TOOLKIT
=none
;;
8890 * ) USE_X_TOOLKIT
=maybe
;;
8900 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8901 # Extract the first word of "X", so it can be a program name with args.
8902 set dummy X
; ac_word
=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
8906 $as_echo_n "(cached) " >&6
8908 if test -n "$HAVE_XSERVER"; then
8909 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8915 test -z "$as_dir" && as_dir
=.
8916 for ac_exec_ext
in '' $ac_executable_extensions; do
8917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918 ac_cv_prog_HAVE_XSERVER
="true"
8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8929 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8930 if test -n "$HAVE_XSERVER"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8932 $as_echo "$HAVE_XSERVER" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8939 if test "$HAVE_XSERVER" = true ||
8940 test -n "$DISPLAY" ||
8941 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8942 as_fn_error $?
"You seem to be running X, but no X development libraries
8943 were found. You should install the relevant development files for X
8944 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8945 sure you have development files for image handling, i.e.
8946 tiff, gif, jpeg, png and xpm.
8947 If you are sure you want Emacs compiled without X window support, pass
8949 to configure." "$LINENO" 5
8953 ### If we're using X11, we should use the X menu package.
8956 yes ) HAVE_MENUS
=yes ;;
8959 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8960 # Assume not, until told otherwise.
8963 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8964 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
8970 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8971 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8978 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8979 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
8980 $as_echo_n "(cached) " >&6
8982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 extern void (* __after_morecore_hook)();
8988 __after_morecore_hook = 0
8993 if ac_fn_c_try_link
"$LINENO"; then :
8994 emacs_cv_var___after_morecore_hook
=yes
8996 emacs_cv_var___after_morecore_hook
=no
8998 rm -f core conftest.err conftest.
$ac_objext \
8999 conftest
$ac_exeext conftest.
$ac_ext
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9002 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9003 if test $emacs_cv_var___after_morecore_hook = no
; then
9010 ## darwin ld insists on the use of malloc routines in the System framework.
9011 darwin|sol2-10
) system_malloc
=yes ;;
9014 if test "${system_malloc}" = "yes"; then
9016 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9020 (The GNU allocators don't work with this system configuration.)"
9024 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9025 VMLIMIT_OBJ
=vm-limit.o
9030 if test "$doug_lea_malloc" = "yes" ; then
9031 if test "$GNU_MALLOC" = yes ; then
9033 (Using Doug Lea's new malloc from the GNU C Library.)"
9036 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9039 ## Use mmap directly for allocating larger buffers.
9040 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9041 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9042 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9044 gnu
*) REL_ALLOC
=no
;;
9048 if test x
"${REL_ALLOC}" = x
; then
9049 REL_ALLOC
=${GNU_MALLOC}
9052 use_mmap_for_buffers
=no
9054 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9060 for ac_header
in $ac_header_list
9062 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9063 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9065 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9066 cat >>confdefs.h
<<_ACEOF
9067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9081 for ac_func
in getpagesize
9083 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9084 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9085 cat >>confdefs.h
<<_ACEOF
9086 #define HAVE_GETPAGESIZE 1
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9093 $as_echo_n "checking for working mmap... " >&6; }
9094 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9095 $as_echo_n "(cached) " >&6
9097 if test "$cross_compiling" = yes; then :
9098 ac_cv_func_mmap_fixed_mapped
=no
9100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 /* malloc might have been renamed as rpl_malloc. */
9106 /* Thanks to Mike Haertel and Jim Avera for this test.
9107 Here is a matrix of mmap possibilities:
9108 mmap private not fixed
9109 mmap private fixed at somewhere currently unmapped
9110 mmap private fixed at somewhere already mapped
9111 mmap shared not fixed
9112 mmap shared fixed at somewhere currently unmapped
9113 mmap shared fixed at somewhere already mapped
9114 For private mappings, we should verify that changes cannot be read()
9115 back from the file, nor mmap's back from the file at a different
9116 address. (There have been systems where private was not correctly
9117 implemented like the infamous i386 svr4.0, and systems where the
9118 VM page cache was not coherent with the file system buffer cache
9119 like early versions of FreeBSD and possibly contemporary NetBSD.)
9120 For shared mappings, we should conversely verify that changes get
9121 propagated back to all the places they're supposed to be.
9123 Grep wants private fixed already mapped.
9124 The main things grep needs to know about mmap are:
9125 * does it exist and is it safe to write into the mmap'd area
9126 * how to use it (BSD variants) */
9129 #include <sys/mman.h>
9131 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9135 /* This mess was copied from the GNU getpagesize.h. */
9136 #ifndef HAVE_GETPAGESIZE
9137 # ifdef _SC_PAGESIZE
9138 # define getpagesize() sysconf(_SC_PAGESIZE)
9139 # else /* no _SC_PAGESIZE */
9140 # ifdef HAVE_SYS_PARAM_H
9141 # include <sys/param.h>
9142 # ifdef EXEC_PAGESIZE
9143 # define getpagesize() EXEC_PAGESIZE
9144 # else /* no EXEC_PAGESIZE */
9146 # define getpagesize() NBPG * CLSIZE
9149 # endif /* no CLSIZE */
9150 # else /* no NBPG */
9152 # define getpagesize() NBPC
9153 # else /* no NBPC */
9155 # define getpagesize() PAGESIZE
9156 # endif /* PAGESIZE */
9157 # endif /* no NBPC */
9158 # endif /* no NBPG */
9159 # endif /* no EXEC_PAGESIZE */
9160 # else /* no HAVE_SYS_PARAM_H */
9161 # define getpagesize() 8192 /* punt totally */
9162 # endif /* no HAVE_SYS_PARAM_H */
9163 # endif /* no _SC_PAGESIZE */
9165 #endif /* no HAVE_GETPAGESIZE */
9170 char *data, *data2, *data3;
9175 pagesize = getpagesize ();
9177 /* First, make a file with some known garbage in it. */
9178 data = (char *) malloc (pagesize);
9181 for (i = 0; i < pagesize; ++i)
9182 *(data + i) = rand ();
9184 fd = creat ("conftest.mmap", 0600);
9187 if (write (fd, data, pagesize) != pagesize)
9191 /* Next, check that the tail of a page is zero-filled. File must have
9192 non-zero length, otherwise we risk SIGBUS for entire page. */
9193 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9197 if (write (fd2, cdata2, 1) != 1)
9199 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9200 if (data2 == MAP_FAILED)
9202 for (i = 0; i < pagesize; ++i)
9206 if (munmap (data2, pagesize))
9209 /* Next, try to mmap the file at a fixed address which already has
9210 something else allocated at it. If we can, also make sure that
9211 we see the same garbage. */
9212 fd = open ("conftest.mmap", O_RDWR);
9215 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9216 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9218 for (i = 0; i < pagesize; ++i)
9219 if (*(data + i) != *(data2 + i))
9222 /* Finally, make sure that changes to the mapped area do not
9223 percolate back to the file as seen by read(). (This is a bug on
9224 some variants of i386 svr4.0.) */
9225 for (i = 0; i < pagesize; ++i)
9226 *(data2 + i) = *(data2 + i) + 1;
9227 data3 = (char *) malloc (pagesize);
9230 if (read (fd, data3, pagesize) != pagesize)
9232 for (i = 0; i < pagesize; ++i)
9233 if (*(data + i) != *(data3 + i))
9239 if ac_fn_c_try_run
"$LINENO"; then :
9240 ac_cv_func_mmap_fixed_mapped
=yes
9242 ac_cv_func_mmap_fixed_mapped
=no
9244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9250 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9251 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9253 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9256 rm -f conftest.mmap conftest.txt
9258 if test $use_mmap_for_buffers = yes; then
9260 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9265 LIBS
="$LIBS_SYSTEM $LIBS"
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9268 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9269 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9270 $as_echo_n "(cached) " >&6
9272 ac_check_lib_save_LIBS
=$LIBS
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9287 return dnet_ntoa ();
9292 if ac_fn_c_try_link
"$LINENO"; then :
9293 ac_cv_lib_dnet_dnet_ntoa
=yes
9295 ac_cv_lib_dnet_dnet_ntoa
=no
9297 rm -f core conftest.err conftest.
$ac_objext \
9298 conftest
$ac_exeext conftest.
$ac_ext
9299 LIBS
=$ac_check_lib_save_LIBS
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9302 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9303 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9304 cat >>confdefs.h
<<_ACEOF
9305 #define HAVE_LIBDNET 1
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9314 $as_echo_n "checking for main in -lXbsd... " >&6; }
9315 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9316 $as_echo_n "(cached) " >&6
9318 ac_check_lib_save_LIBS
=$LIBS
9320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9332 if ac_fn_c_try_link
"$LINENO"; then :
9333 ac_cv_lib_Xbsd_main
=yes
9335 ac_cv_lib_Xbsd_main
=no
9337 rm -f core conftest.err conftest.
$ac_objext \
9338 conftest
$ac_exeext conftest.
$ac_ext
9339 LIBS
=$ac_check_lib_save_LIBS
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9342 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9343 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9344 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9349 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9350 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9351 $as_echo_n "(cached) " >&6
9353 ac_check_lib_save_LIBS
=$LIBS
9354 LIBS
="-lpthreads $LIBS"
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9373 if ac_fn_c_try_link
"$LINENO"; then :
9374 ac_cv_lib_pthreads_cma_open
=yes
9376 ac_cv_lib_pthreads_cma_open
=no
9378 rm -f core conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9380 LIBS
=$ac_check_lib_save_LIBS
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9383 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9384 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9385 cat >>confdefs.h
<<_ACEOF
9386 #define HAVE_LIBPTHREADS 1
9389 LIBS
="-lpthreads $LIBS"
9394 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9395 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9396 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9397 ## added to LIBS in configure would never contain the pthreads part,
9398 ## but the value used in Makefiles might. FIXME?
9400 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9401 ## be harmless on older versions of X where it happens to exist.
9402 test "$opsys" = "aix4-2" && \
9403 test $ac_cv_lib_pthreads_cma_open = yes && \
9404 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9410 $as_echo_n "checking for -bbigtoc option... " >&6; }
9411 if ${gdb_cv_bigtoc+:} false
; then :
9412 $as_echo_n "(cached) " >&6
9416 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9417 *) gdb_cv_bigtoc
=-bbigtoc ;;
9420 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9432 if ac_fn_c_try_link
"$LINENO"; then :
9437 rm -f core conftest.err conftest.
$ac_objext \
9438 conftest
$ac_exeext conftest.
$ac_ext
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9442 $as_echo "$gdb_cv_bigtoc" >&6; }
9446 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9447 # used for the tests that follow. We set them back to REAL_CFLAGS and
9448 # REAL_CPPFLAGS later on.
9450 REAL_CFLAGS
="$CFLAGS"
9451 REAL_CPPFLAGS
="$CPPFLAGS"
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS
="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9457 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9465 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9469 if test "${opsys}" = "gnu-linux"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9471 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9478 XOpenDisplay ("foo");
9483 if ac_fn_c_try_link
"$LINENO"; then :
9484 xlinux_first_failure
=no
9486 xlinux_first_failure
=yes
9488 rm -f core conftest.err conftest.
$ac_objext \
9489 conftest
$ac_exeext conftest.
$ac_ext
9490 if test "${xlinux_first_failure}" = "yes"; then
9491 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9492 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9493 OLD_CPPFLAGS
="$CPPFLAGS"
9495 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9496 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9497 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9498 LIBS
="$LIBS -b i486-linuxaout"
9499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9505 XOpenDisplay ("foo");
9510 if ac_fn_c_try_link
"$LINENO"; then :
9511 xlinux_second_failure
=no
9513 xlinux_second_failure
=yes
9515 rm -f core conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9517 if test "${xlinux_second_failure}" = "yes"; then
9518 # If we get the same failure with -b, there is no use adding -b.
9519 # So take it out. This plays safe.
9520 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9521 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9522 CPPFLAGS
="$OLD_CPPFLAGS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9528 $as_echo "yes" >&6; }
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9536 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9537 # header files included from there.
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9539 $as_echo_n "checking for Xkb... " >&6; }
9540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 #include <X11/Xlib.h>
9543 #include <X11/XKBlib.h>
9547 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9552 if ac_fn_c_try_link
"$LINENO"; then :
9557 rm -f core conftest.err conftest.
$ac_objext \
9558 conftest
$ac_exeext conftest.
$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9560 $as_echo "$emacs_xkb" >&6; }
9561 if test $emacs_xkb = yes; then
9563 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9567 for ac_func
in XrmSetDatabase XScreenResourceString \
9568 XScreenNumberOfScreen XSetWMProtocols
9570 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9571 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9572 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9573 cat >>confdefs.h
<<_ACEOF
9574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9582 if test "${window_system}" = "x11"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9584 $as_echo_n "checking X11 version 6... " >&6; }
9585 if ${emacs_cv_x11_version_6+:} false
; then :
9586 $as_echo_n "(cached) " >&6
9588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <X11/Xlib.h>
9594 #if XlibSpecificationRelease < 6
9602 if ac_fn_c_try_link
"$LINENO"; then :
9603 emacs_cv_x11_version_6
=yes
9605 emacs_cv_x11_version_6
=no
9607 rm -f core conftest.err conftest.
$ac_objext \
9608 conftest
$ac_exeext conftest.
$ac_ext
9611 if test $emacs_cv_x11_version_6 = yes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9613 $as_echo "6 or newer" >&6; }
9615 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9618 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9620 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9625 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9631 $as_echo "before 6" >&6; }
9636 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9638 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9639 if test "${with_rsvg}" != "no"; then
9640 RSVG_REQUIRED
=2.11.0
9641 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9646 # Extract the first word of "pkg-config", so it can be a program name with args.
9647 set dummy pkg-config
; ac_word
=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9651 $as_echo_n "(cached) " >&6
9655 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9662 test -z "$as_dir" && as_dir
=.
9663 for ac_exec_ext
in '' $ac_executable_extensions; do
9664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9665 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9677 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9678 if test -n "$PKG_CONFIG"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9680 $as_echo "$PKG_CONFIG" >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test "$PKG_CONFIG" = "no" ; then
9691 PKG_CONFIG_MIN_VERSION
=0.9.0
9692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9694 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9696 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9702 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9703 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9705 $as_echo "$RSVG_CFLAGS" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9708 $as_echo_n "checking RSVG_LIBS... " >&6; }
9709 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9711 $as_echo "$RSVG_LIBS" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9717 ## If we have a custom action on failure, don't print errors, but
9718 ## do set a variable so people can do so.
9719 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9731 if test $succeeded = yes; then
9740 if test $HAVE_RSVG = yes; then
9742 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9744 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9745 LIBS
="$RSVG_LIBS $LIBS"
9751 if test "${HAVE_X11}" = "yes"; then
9752 if test "${with_imagemagick}" != "no"; then
9753 IMAGEMAGICK_MODULE
="Wand"
9757 # Extract the first word of "pkg-config", so it can be a program name with args.
9758 set dummy pkg-config
; ac_word
=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9762 $as_echo_n "(cached) " >&6
9766 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir
=.
9774 for ac_exec_ext
in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9788 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9789 if test -n "$PKG_CONFIG"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9791 $as_echo "$PKG_CONFIG" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9799 if test "$PKG_CONFIG" = "no" ; then
9802 PKG_CONFIG_MIN_VERSION
=0.9.0
9803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9805 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9807 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809 $as_echo "yes" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9813 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9814 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9816 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9819 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9820 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9822 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 IMAGEMAGICK_CFLAGS
=""
9828 ## If we have a custom action on failure, don't print errors, but
9829 ## do set a variable so people can do so.
9830 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9842 if test $succeeded = yes; then
9843 HAVE_IMAGEMAGICK
=yes
9851 if test $HAVE_IMAGEMAGICK = yes; then
9853 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9855 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9856 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9857 for ac_func
in MagickExportImagePixels
9859 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9860 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
9861 cat >>confdefs.h
<<_ACEOF
9862 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9874 if test "${with_gtk3}" = "yes"; then
9877 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9882 # Extract the first word of "pkg-config", so it can be a program name with args.
9883 set dummy pkg-config
; ac_word
=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9887 $as_echo_n "(cached) " >&6
9891 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9898 test -z "$as_dir" && as_dir
=.
9899 for ac_exec_ext
in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9913 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9914 if test -n "$PKG_CONFIG"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9916 $as_echo "$PKG_CONFIG" >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9924 if test "$PKG_CONFIG" = "no" ; then
9927 PKG_CONFIG_MIN_VERSION
=0.9.0
9928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9930 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9932 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9934 $as_echo "yes" >&6; }
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9938 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9939 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9941 $as_echo "$GTK_CFLAGS" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9944 $as_echo_n "checking GTK_LIBS... " >&6; }
9945 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9947 $as_echo "$GTK_LIBS" >&6; }
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9953 ## If we have a custom action on failure, don't print errors, but
9954 ## do set a variable so people can do so.
9955 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9967 if test $succeeded = yes; then
9973 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9974 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9978 if test "$pkg_check_gtk" != "yes"; then
9980 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9983 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9988 # Extract the first word of "pkg-config", so it can be a program name with args.
9989 set dummy pkg-config
; ac_word
=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9993 $as_echo_n "(cached) " >&6
9997 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10001 for as_dir
in $PATH
10004 test -z "$as_dir" && as_dir
=.
10005 for ac_exec_ext
in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10019 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10020 if test -n "$PKG_CONFIG"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10022 $as_echo "$PKG_CONFIG" >&6; }
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10030 if test "$PKG_CONFIG" = "no" ; then
10033 PKG_CONFIG_MIN_VERSION
=0.9.0
10034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10036 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10038 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10040 $as_echo "yes" >&6; }
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10044 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10045 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10047 $as_echo "$GTK_CFLAGS" >&6; }
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10050 $as_echo_n "checking GTK_LIBS... " >&6; }
10051 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10053 $as_echo "$GTK_LIBS" >&6; }
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10059 ## If we have a custom action on failure, don't print errors, but
10060 ## do set a variable so people can do so.
10061 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10073 if test $succeeded = yes; then
10079 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10080 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10086 if test x
"$pkg_check_gtk" = xyes
; then
10090 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10091 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10092 LIBS
="$GTK_LIBS $LIBS"
10094 for ac_func
in gtk_main
10096 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10097 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10098 cat >>confdefs.h
<<_ACEOF
10099 #define HAVE_GTK_MAIN 1
10105 if test "${GTK_COMPILES}" != "yes"; then
10106 if test "$USE_X_TOOLKIT" != "maybe"; then
10107 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10112 $as_echo "#define USE_GTK 1" >>confdefs.h
10116 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10120 closing open displays. This is no problem if you just use
10121 one display, but if you use more than one and close one of them
10122 Emacs may crash." >&5
10123 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10124 closing open displays. This is no problem if you just use
10125 one display, but if you use more than one and close one of them
10126 Emacs may crash." >&2;}
10135 if test "${HAVE_GTK}" = "yes"; then
10137 if test "$with_toolkit_scroll_bars" != no
; then
10138 with_toolkit_scroll_bars
=yes
10141 HAVE_GTK_FILE_SELECTION
=no
10142 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10143 #include <gtk/gtk.h>
10145 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10146 HAVE_GTK_FILE_SELECTION
=yes
10148 HAVE_GTK_FILE_SELECTION
=no
10151 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10152 for ac_func
in gtk_file_selection_new
10154 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10155 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10156 cat >>confdefs.h
<<_ACEOF
10157 #define HAVE_GTK_FILE_SELECTION_NEW 1
10165 HAVE_GTK_AND_PTHREAD
=no
10166 for ac_header
in pthread.h
10168 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10169 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10170 cat >>confdefs.h
<<_ACEOF
10171 #define HAVE_PTHREAD_H 1
10178 if test "$ac_cv_header_pthread_h"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10180 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10181 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10182 $as_echo_n "(cached) " >&6
10184 ac_check_lib_save_LIBS
=$LIBS
10185 LIBS
="-lpthread $LIBS"
10186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10195 char pthread_self ();
10199 return pthread_self ();
10204 if ac_fn_c_try_link
"$LINENO"; then :
10205 ac_cv_lib_pthread_pthread_self
=yes
10207 ac_cv_lib_pthread_pthread_self
=no
10209 rm -f core conftest.err conftest.
$ac_objext \
10210 conftest
$ac_exeext conftest.
$ac_ext
10211 LIBS
=$ac_check_lib_save_LIBS
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10214 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10215 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10216 HAVE_GTK_AND_PTHREAD
=yes
10220 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10221 case "${canonical}" in
10223 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10226 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10230 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10231 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10232 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10233 gtk_orientable_set_orientation
10235 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10236 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10237 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10238 cat >>confdefs.h
<<_ACEOF
10239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10250 if test "${with_dbus}" = "yes"; then
10254 # Extract the first word of "pkg-config", so it can be a program name with args.
10255 set dummy pkg-config
; ac_word
=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10259 $as_echo_n "(cached) " >&6
10261 case $PKG_CONFIG in
10263 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10267 for as_dir
in $PATH
10270 test -z "$as_dir" && as_dir
=.
10271 for ac_exec_ext
in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10285 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10286 if test -n "$PKG_CONFIG"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10288 $as_echo "$PKG_CONFIG" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10296 if test "$PKG_CONFIG" = "no" ; then
10299 PKG_CONFIG_MIN_VERSION
=0.9.0
10300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10302 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10304 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10306 $as_echo "yes" >&6; }
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10310 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10311 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10313 $as_echo "$DBUS_CFLAGS" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10316 $as_echo_n "checking DBUS_LIBS... " >&6; }
10317 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10319 $as_echo "$DBUS_LIBS" >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10325 ## If we have a custom action on failure, don't print errors, but
10326 ## do set a variable so people can do so.
10327 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10339 if test $succeeded = yes; then
10345 if test "$HAVE_DBUS" = yes; then
10346 LIBS
="$LIBS $DBUS_LIBS"
10348 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10350 for ac_func
in dbus_watch_get_unix_fd
10352 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10353 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10354 cat >>confdefs.h
<<_ACEOF
10355 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10361 DBUS_OBJ
=dbusbind.o
10367 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10371 # Extract the first word of "pkg-config", so it can be a program name with args.
10372 set dummy pkg-config
; ac_word
=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10376 $as_echo_n "(cached) " >&6
10378 case $PKG_CONFIG in
10380 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10384 for as_dir
in $PATH
10387 test -z "$as_dir" && as_dir
=.
10388 for ac_exec_ext
in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10402 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10403 if test -n "$PKG_CONFIG"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10405 $as_echo "$PKG_CONFIG" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10413 if test "$PKG_CONFIG" = "no" ; then
10416 PKG_CONFIG_MIN_VERSION
=0.9.0
10417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10419 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10421 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; }
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10427 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10428 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10430 $as_echo "$GCONF_CFLAGS" >&6; }
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10433 $as_echo_n "checking GCONF_LIBS... " >&6; }
10434 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10436 $as_echo "$GCONF_LIBS" >&6; }
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10442 ## If we have a custom action on failure, don't print errors, but
10443 ## do set a variable so people can do so.
10444 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10456 if test $succeeded = yes; then
10462 if test "$HAVE_GCONF" = yes; then
10464 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10466 for ac_func
in g_type_init
10468 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10469 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10470 cat >>confdefs.h
<<_ACEOF
10471 #define HAVE_G_TYPE_INIT 1
10482 if test "${with_selinux}" = "yes"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10484 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10485 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10488 ac_check_lib_save_LIBS
=$LIBS
10489 LIBS
="-lselinux $LIBS"
10490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10499 char lgetfilecon ();
10503 return lgetfilecon ();
10508 if ac_fn_c_try_link
"$LINENO"; then :
10509 ac_cv_lib_selinux_lgetfilecon
=yes
10511 ac_cv_lib_selinux_lgetfilecon
=no
10513 rm -f core conftest.err conftest.
$ac_objext \
10514 conftest
$ac_exeext conftest.
$ac_ext
10515 LIBS
=$ac_check_lib_save_LIBS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10518 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10519 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10520 HAVE_LIBSELINUX
=yes
10525 if test "$HAVE_LIBSELINUX" = yes; then
10527 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10529 LIBSELINUX_LIBS
=-lselinux
10535 if test "${with_gnutls}" = "yes" ; then
10539 # Extract the first word of "pkg-config", so it can be a program name with args.
10540 set dummy pkg-config
; ac_word
=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10544 $as_echo_n "(cached) " >&6
10546 case $PKG_CONFIG in
10548 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10552 for as_dir
in $PATH
10555 test -z "$as_dir" && as_dir
=.
10556 for ac_exec_ext
in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10570 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10571 if test -n "$PKG_CONFIG"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10573 $as_echo "$PKG_CONFIG" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10581 if test "$PKG_CONFIG" = "no" ; then
10584 PKG_CONFIG_MIN_VERSION
=0.9.0
10585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10587 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10589 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10591 $as_echo "yes" >&6; }
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10595 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10596 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10598 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10601 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10602 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10604 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 LIBGNUTLS_CFLAGS
=""
10610 ## If we have a custom action on failure, don't print errors, but
10611 ## do set a variable so people can do so.
10612 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10624 if test $succeeded = yes; then
10630 if test "${HAVE_GNUTLS}" = "yes"; then
10632 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10641 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10642 if test "$with_xaw3d" != no
; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10644 $as_echo_n "checking for xaw3d... " >&6; }
10645 if ${emacs_cv_xaw3d+:} false
; then :
10646 $as_echo_n "(cached) " >&6
10648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 #include <X11/Intrinsic.h>
10652 #include <X11/Xaw3d/Simple.h>
10661 if ac_fn_c_try_link
"$LINENO"; then :
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10663 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10664 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10665 $as_echo_n "(cached) " >&6
10667 ac_check_lib_save_LIBS
=$LIBS
10668 LIBS
="-lXaw3d $LIBS"
10669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10678 char XawScrollbarSetThumb ();
10682 return XawScrollbarSetThumb ();
10687 if ac_fn_c_try_link
"$LINENO"; then :
10688 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10690 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10692 rm -f core conftest.err conftest.
$ac_objext \
10693 conftest
$ac_exeext conftest.
$ac_ext
10694 LIBS
=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10697 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10698 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
10707 rm -f core conftest.err conftest.
$ac_objext \
10708 conftest
$ac_exeext conftest.
$ac_ext
10714 if test $emacs_cv_xaw3d = yes; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10716 $as_echo "yes; using Lucid toolkit" >&6; }
10717 USE_X_TOOLKIT
=LUCID
10721 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10727 $as_echo_n "checking for libXaw... " >&6; }
10728 if ${emacs_cv_xaw+:} false
; then :
10729 $as_echo_n "(cached) " >&6
10731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10734 #include <X11/Intrinsic.h>
10735 #include <X11/Xaw/Simple.h>
10744 if ac_fn_c_try_link
"$LINENO"; then :
10749 rm -f core conftest.err conftest.
$ac_objext \
10750 conftest
$ac_exeext conftest.
$ac_ext
10753 if test $emacs_cv_xaw = yes; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10755 $as_echo "yes; using Lucid toolkit" >&6; }
10756 USE_X_TOOLKIT
=LUCID
10758 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10759 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10762 $as_echo "no; do not use toolkit by default" >&6; }
10768 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10771 if test "${USE_X_TOOLKIT}" != "none"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10773 $as_echo_n "checking X11 toolkit version... " >&6; }
10774 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10775 $as_echo_n "(cached) " >&6
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include <X11/Intrinsic.h>
10783 #if XtSpecificationRelease < 6
10791 if ac_fn_c_try_link
"$LINENO"; then :
10792 emacs_cv_x11_toolkit_version_6
=yes
10794 emacs_cv_x11_toolkit_version_6
=no
10796 rm -f core conftest.err conftest.
$ac_objext \
10797 conftest
$ac_exeext conftest.
$ac_ext
10800 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10801 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10803 $as_echo "6 or newer" >&6; }
10805 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10807 LIBXTR6
="-lSM -lICE"
10809 ## Use libw.a along with X11R6 Xt.
10810 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10814 $as_echo "before 6" >&6; }
10818 if test x
$HAVE_X11XTR6 = xyes
; then
10819 LIBS
="-lXt -lSM -lICE $LIBS"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10824 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10825 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
10826 $as_echo_n "(cached) " >&6
10828 ac_check_lib_save_LIBS
=$LIBS
10830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10839 char XmuConvertStandardSelection ();
10843 return XmuConvertStandardSelection ();
10848 if ac_fn_c_try_link
"$LINENO"; then :
10849 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10851 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10853 rm -f core conftest.err conftest.
$ac_objext \
10854 conftest
$ac_exeext conftest.
$ac_ext
10855 LIBS
=$ac_check_lib_save_LIBS
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10858 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10859 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
10860 cat >>confdefs.h
<<_ACEOF
10861 #define HAVE_LIBXMU 1
10868 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10874 ## These systems don't supply Xmu.
10876 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10881 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10882 if test "${HAVE_X11}" = "yes"; then
10883 if test "${USE_X_TOOLKIT}" != "none"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10885 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10886 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
10887 $as_echo_n "(cached) " >&6
10889 ac_check_lib_save_LIBS
=$LIBS
10890 LIBS
="-lXext $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 XShapeQueryExtension ();
10904 return XShapeQueryExtension ();
10909 if ac_fn_c_try_link
"$LINENO"; then :
10910 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10912 ac_cv_lib_Xext_XShapeQueryExtension
=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_Xext_XShapeQueryExtension" >&5
10919 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10920 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
10921 cat >>confdefs.h
<<_ACEOF
10922 #define HAVE_LIBXEXT 1
10925 LIBS
="-lXext $LIBS"
10933 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10935 $as_echo_n "checking for Motif version 2.1... " >&6; }
10936 if ${emacs_cv_motif_version_2_1+:} false
; then :
10937 $as_echo_n "(cached) " >&6
10939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10945 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10948 Motif version prior to 2.1.
10954 if ac_fn_c_try_compile
"$LINENO"; then :
10955 emacs_cv_motif_version_2_1
=yes
10957 emacs_cv_motif_version_2_1
=no
10959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10962 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10963 if test $emacs_cv_motif_version_2_1 = yes; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10965 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10966 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
10967 $as_echo_n "(cached) " >&6
10969 ac_check_lib_save_LIBS
=$LIBS
10971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10980 char XpCreateContext ();
10984 return XpCreateContext ();
10989 if ac_fn_c_try_link
"$LINENO"; then :
10990 ac_cv_lib_Xp_XpCreateContext
=yes
10992 ac_cv_lib_Xp_XpCreateContext
=no
10994 rm -f core conftest.err conftest.
$ac_objext \
10995 conftest
$ac_exeext conftest.
$ac_ext
10996 LIBS
=$ac_check_lib_save_LIBS
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10999 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11000 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11006 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11007 if ${emacs_cv_lesstif+:} false
; then :
11008 $as_echo_n "(cached) " >&6
11010 # We put this in CFLAGS temporarily to precede other -I options
11011 # that might be in CFLAGS temporarily.
11012 # We put this in CPPFLAGS where it precedes the other -I options.
11013 OLD_CPPFLAGS
=$CPPFLAGS
11015 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11016 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11028 if ac_fn_c_try_compile
"$LINENO"; then :
11029 emacs_cv_lesstif
=yes
11031 emacs_cv_lesstif
=no
11033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11036 $as_echo "$emacs_cv_lesstif" >&6; }
11037 if test $emacs_cv_lesstif = yes; then
11038 # Make sure this -I option remains in CPPFLAGS after it is set
11039 # back to REAL_CPPFLAGS.
11040 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11041 # have those other -I options anyway. Ultimately, having this
11042 # directory ultimately in CPPFLAGS will be enough.
11043 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11044 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11047 CPPFLAGS
=$OLD_CPPFLAGS
11053 USE_TOOLKIT_SCROLL_BARS
=no
11054 if test "${with_toolkit_scroll_bars}" != "no"; then
11055 if test "${USE_X_TOOLKIT}" != "none"; then
11056 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11057 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11060 USE_TOOLKIT_SCROLL_BARS
=yes
11061 elif test "${HAVE_XAW3D}" = "yes"; then
11062 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11064 USE_TOOLKIT_SCROLL_BARS
=yes
11066 elif test "${HAVE_GTK}" = "yes"; then
11067 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11069 USE_TOOLKIT_SCROLL_BARS
=yes
11070 elif test "${HAVE_NS}" = "yes"; then
11071 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11073 USE_TOOLKIT_SCROLL_BARS
=yes
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 #include <X11/Xlib.h>
11081 #include <X11/Xresource.h>
11090 if ac_fn_c_try_compile
"$LINENO"; then :
11093 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11101 if test "${with_xim}" != "no"; then
11103 $as_echo "#define USE_XIM 1" >>confdefs.h
11108 if test "${HAVE_XIM}" != "no"; then
11109 late_CFLAGS
=$CFLAGS
11110 if test "$GCC" = yes; then
11111 CFLAGS
="$CFLAGS --pedantic-errors"
11113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11116 #include <X11/Xlib.h>
11117 #include <X11/Xresource.h>
11126 XPointer *client_data;
11128 /* If we're not using GCC, it's probably not XFree86, and this is
11129 probably right, but we can't use something like --pedantic-errors. */
11130 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11131 char*, XIMProc, XPointer*);
11133 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11139 if ac_fn_c_try_compile
"$LINENO"; then :
11140 emacs_cv_arg6_star
=yes
11142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11143 if test "$emacs_cv_arg6_star" = yes; then
11144 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11147 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11150 CFLAGS
=$late_CFLAGS
11153 ### Start of font-backend (under any platform) section.
11154 # (nothing here yet -- this is a placeholder)
11155 ### End of font-backend (under any platform) section.
11157 ### Start of font-backend (under X11) section.
11158 if test "${HAVE_X11}" = "yes"; then
11162 # Extract the first word of "pkg-config", so it can be a program name with args.
11163 set dummy pkg-config
; ac_word
=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11167 $as_echo_n "(cached) " >&6
11169 case $PKG_CONFIG in
11171 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11175 for as_dir
in $PATH
11178 test -z "$as_dir" && as_dir
=.
11179 for ac_exec_ext
in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11193 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11194 if test -n "$PKG_CONFIG"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11196 $as_echo "$PKG_CONFIG" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11204 if test "$PKG_CONFIG" = "no" ; then
11207 PKG_CONFIG_MIN_VERSION
=0.9.0
11208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11210 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11212 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; }
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11218 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11219 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11221 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11224 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11225 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11227 $as_echo "$FONTCONFIG_LIBS" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 FONTCONFIG_CFLAGS
=""
11233 ## If we have a custom action on failure, don't print errors, but
11234 ## do set a variable so people can do so.
11235 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11242 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11243 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11247 if test $succeeded = yes; then
11254 ## Use -lXft if available, unless `--with-xft=no'.
11256 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11259 if test "x${with_xft}" != "xno"; then
11264 # Extract the first word of "pkg-config", so it can be a program name with args.
11265 set dummy pkg-config
; ac_word
=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11269 $as_echo_n "(cached) " >&6
11271 case $PKG_CONFIG in
11273 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11277 for as_dir
in $PATH
11280 test -z "$as_dir" && as_dir
=.
11281 for ac_exec_ext
in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11295 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11296 if test -n "$PKG_CONFIG"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11298 $as_echo "$PKG_CONFIG" >&6; }
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11306 if test "$PKG_CONFIG" = "no" ; then
11309 PKG_CONFIG_MIN_VERSION
=0.9.0
11310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11312 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11314 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316 $as_echo "yes" >&6; }
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11320 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11321 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11323 $as_echo "$XFT_CFLAGS" >&6; }
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11326 $as_echo_n "checking XFT_LIBS... " >&6; }
11327 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11329 $as_echo "$XFT_LIBS" >&6; }
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11335 ## If we have a custom action on failure, don't print errors, but
11336 ## do set a variable so people can do so.
11337 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11349 if test $succeeded = yes; then
11355 ## Because xftfont.c uses XRenderQueryExtension, we also
11356 ## need to link to -lXrender.
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11359 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11360 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 ac_check_lib_save_LIBS
=$LIBS
11364 LIBS
="-lXrender $LIBS"
11365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11374 char XRenderQueryExtension ();
11378 return XRenderQueryExtension ();
11383 if ac_fn_c_try_link
"$LINENO"; then :
11384 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11386 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11388 rm -f core conftest.err conftest.
$ac_objext \
11389 conftest
$ac_exeext conftest.
$ac_ext
11390 LIBS
=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11393 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11394 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11398 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11399 OLD_CPPFLAGS
="$CPPFLAGS"
11400 OLD_CFLAGS
="$CFLAGS"
11402 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11403 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11404 XFT_LIBS
="-lXrender $XFT_LIBS"
11405 LIBS
="$XFT_LIBS $LIBS"
11406 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11407 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11409 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11410 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11411 $as_echo_n "(cached) " >&6
11413 ac_check_lib_save_LIBS
=$LIBS
11414 LIBS
="-lXft $XFT_LIBS $LIBS"
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11424 char XftFontOpen ();
11428 return XftFontOpen ();
11433 if ac_fn_c_try_link
"$LINENO"; then :
11434 ac_cv_lib_Xft_XftFontOpen
=yes
11436 ac_cv_lib_Xft_XftFontOpen
=no
11438 rm -f core conftest.err conftest.
$ac_objext \
11439 conftest
$ac_exeext conftest.
$ac_ext
11440 LIBS
=$ac_check_lib_save_LIBS
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11443 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11444 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11452 if test "${HAVE_XFT}" = "yes"; then
11454 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11457 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11459 CPPFLAGS
="$OLD_CPPFLAGS"
11460 CFLAGS
="$OLD_CFLAGS"
11462 fi # "${HAVE_XFT}" = "yes"
11463 fi # "$HAVE_XFT" != no
11464 fi # "x${with_xft}" != "xno"
11466 if test "$HAVE_XFT" != "yes"; then
11470 ## We used to allow building with FreeType and without Xft.
11471 ## However, the ftx font backend driver is not in good shape.
11472 HAVE_FREETYPE
=$HAVE_XFT
11475 if test "${HAVE_FREETYPE}" = "yes"; then
11477 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11479 if test "${with_libotf}" != "no"; then
11483 # Extract the first word of "pkg-config", so it can be a program name with args.
11484 set dummy pkg-config
; ac_word
=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11488 $as_echo_n "(cached) " >&6
11490 case $PKG_CONFIG in
11492 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11496 for as_dir
in $PATH
11499 test -z "$as_dir" && as_dir
=.
11500 for ac_exec_ext
in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11514 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11515 if test -n "$PKG_CONFIG"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11517 $as_echo "$PKG_CONFIG" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11525 if test "$PKG_CONFIG" = "no" ; then
11528 PKG_CONFIG_MIN_VERSION
=0.9.0
11529 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11531 $as_echo_n "checking for libotf... " >&6; }
11533 if $PKG_CONFIG --exists "libotf" 2>&5; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11535 $as_echo "yes" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11539 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11540 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11542 $as_echo "$LIBOTF_CFLAGS" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11545 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11546 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11548 $as_echo "$LIBOTF_LIBS" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11554 ## If we have a custom action on failure, don't print errors, but
11555 ## do set a variable so people can do so.
11556 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11568 if test $succeeded = yes; then
11574 if test "$HAVE_LIBOTF" = "yes"; then
11576 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11579 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11580 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11581 $as_echo_n "(cached) " >&6
11583 ac_check_lib_save_LIBS
=$LIBS
11585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11594 char OTF_get_variation_glyphs ();
11598 return OTF_get_variation_glyphs ();
11603 if ac_fn_c_try_link
"$LINENO"; then :
11604 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11606 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11608 rm -f core conftest.err conftest.
$ac_objext \
11609 conftest
$ac_exeext conftest.
$ac_ext
11610 LIBS
=$ac_check_lib_save_LIBS
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11613 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11614 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11615 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11617 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11620 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11622 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11630 if test "${HAVE_LIBOTF}" = yes; then
11631 if test "${with_m17n_flt}" != "no"; then
11635 # Extract the first word of "pkg-config", so it can be a program name with args.
11636 set dummy pkg-config
; ac_word
=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11640 $as_echo_n "(cached) " >&6
11642 case $PKG_CONFIG in
11644 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11648 for as_dir
in $PATH
11651 test -z "$as_dir" && as_dir
=.
11652 for ac_exec_ext
in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11666 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11669 $as_echo "$PKG_CONFIG" >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11677 if test "$PKG_CONFIG" = "no" ; then
11680 PKG_CONFIG_MIN_VERSION
=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11683 $as_echo_n "checking for m17n-flt... " >&6; }
11685 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11691 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11692 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11694 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11697 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11698 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11700 $as_echo "$M17N_FLT_LIBS" >&6; }
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11706 ## If we have a custom action on failure, don't print errors, but
11707 ## do set a variable so people can do so.
11708 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11720 if test $succeeded = yes; then
11726 if test "$HAVE_M17N_FLT" = "yes"; then
11728 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11740 ### End of font-backend (under X11) section.
11751 ### Use -lXpm if available, unless `--with-xpm=no'.
11754 if test "${HAVE_X11}" = "yes"; then
11755 if test "${with_xpm}" != "no"; then
11756 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11757 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11759 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11760 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11761 $as_echo_n "(cached) " >&6
11763 ac_check_lib_save_LIBS
=$LIBS
11764 LIBS
="-lXpm -lX11 $LIBS"
11765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11774 char XpmReadFileToPixmap ();
11778 return XpmReadFileToPixmap ();
11783 if ac_fn_c_try_link
"$LINENO"; then :
11784 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11786 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11788 rm -f core conftest.err conftest.
$ac_objext \
11789 conftest
$ac_exeext conftest.
$ac_ext
11790 LIBS
=$ac_check_lib_save_LIBS
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11793 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11794 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
11801 if test "${HAVE_XPM}" = "yes"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11803 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #include "X11/xpm.h"
11807 #ifndef XpmReturnAllocPixels
11808 no_return_alloc_pixels
11812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11813 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11821 if test "${HAVE_XPM}" = "yes"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11831 if test "${HAVE_XPM}" = "yes"; then
11833 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11840 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11843 if test "${HAVE_X11}" = "yes"; then
11844 if test "${with_jpeg}" != "no"; then
11845 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11846 if test "x$ac_cv_header_jerror_h" = xyes
; then :
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11848 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11849 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
11850 $as_echo_n "(cached) " >&6
11852 ac_check_lib_save_LIBS
=$LIBS
11853 LIBS
="-ljpeg $LIBS"
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11863 char jpeg_destroy_compress ();
11867 return jpeg_destroy_compress ();
11872 if ac_fn_c_try_link
"$LINENO"; then :
11873 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11875 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11877 rm -f core conftest.err conftest.
$ac_objext \
11878 conftest
$ac_exeext conftest.
$ac_ext
11879 LIBS
=$ac_check_lib_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11882 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11883 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
11892 if test "${HAVE_JPEG}" = "yes"; then
11893 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897 #include <jpeglib.h>
11898 version=JPEG_LIB_VERSION
11901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11902 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11903 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11907 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11913 if test "${HAVE_JPEG}" = "yes"; then
11919 ### Use -lpng if available, unless `--with-png=no'.
11922 if test "${HAVE_X11}" = "yes"; then
11923 if test "${with_png}" != "no"; then
11924 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11925 # in /usr/include/libpng.
11926 for ac_header
in png.h libpng
/png.h
11928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11929 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11930 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11931 cat >>confdefs.h
<<_ACEOF
11932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11939 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11941 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11942 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
11943 $as_echo_n "(cached) " >&6
11945 ac_check_lib_save_LIBS
=$LIBS
11946 LIBS
="-lpng -lz -lm $LIBS"
11947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11956 char png_get_channels ();
11960 return png_get_channels ();
11965 if ac_fn_c_try_link
"$LINENO"; then :
11966 ac_cv_lib_png_png_get_channels
=yes
11968 ac_cv_lib_png_png_get_channels
=no
11970 rm -f core conftest.err conftest.
$ac_objext \
11971 conftest
$ac_exeext conftest.
$ac_ext
11972 LIBS
=$ac_check_lib_save_LIBS
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11975 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11976 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
11983 if test "${HAVE_PNG}" = "yes"; then
11985 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11987 LIBPNG
="-lpng -lz -lm"
11992 ### Use -ltiff if available, unless `--with-tiff=no'.
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${with_tiff}" != "no"; then
11997 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12000 # At least one tiff package requires the jpeg library.
12001 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12003 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12004 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12005 $as_echo_n "(cached) " >&6
12007 ac_check_lib_save_LIBS
=$LIBS
12008 LIBS
="-ltiff $tifflibs $LIBS"
12009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12018 char TIFFGetVersion ();
12022 return TIFFGetVersion ();
12027 if ac_fn_c_try_link
"$LINENO"; then :
12028 ac_cv_lib_tiff_TIFFGetVersion
=yes
12030 ac_cv_lib_tiff_TIFFGetVersion
=no
12032 rm -f core conftest.err conftest.
$ac_objext \
12033 conftest
$ac_exeext conftest.
$ac_ext
12034 LIBS
=$ac_check_lib_save_LIBS
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12037 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12038 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12047 if test "${HAVE_TIFF}" = "yes"; then
12049 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12056 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12059 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12060 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12062 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12063 # Earlier versions can crash Emacs.
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12065 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12066 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12067 $as_echo_n "(cached) " >&6
12069 ac_check_lib_save_LIBS
=$LIBS
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12080 char EGifPutExtensionLast ();
12084 return EGifPutExtensionLast ();
12089 if ac_fn_c_try_link
"$LINENO"; then :
12090 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12092 ac_cv_lib_gif_EGifPutExtensionLast
=no
12094 rm -f core conftest.err conftest.
$ac_objext \
12095 conftest
$ac_exeext conftest.
$ac_ext
12096 LIBS
=$ac_check_lib_save_LIBS
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12099 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12100 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12110 if test "$HAVE_GIF" = yes; then
12112 elif test "$HAVE_GIF" = maybe
; then
12113 # If gif_lib.h but no libgif, try libungif.
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12115 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12116 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12117 $as_echo_n "(cached) " >&6
12119 ac_check_lib_save_LIBS
=$LIBS
12120 LIBS
="-lungif $LIBS"
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12130 char EGifPutExtensionLast ();
12134 return EGifPutExtensionLast ();
12139 if ac_fn_c_try_link
"$LINENO"; then :
12140 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12142 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12144 rm -f core conftest.err conftest.
$ac_objext \
12145 conftest
$ac_exeext conftest.
$ac_ext
12146 LIBS
=$ac_check_lib_save_LIBS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12149 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12150 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12156 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12159 if test "${HAVE_GIF}" = "yes"; then
12161 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12167 if test "${HAVE_X11}" = "yes"; then
12170 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12171 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12172 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12173 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12174 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12175 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12176 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12177 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12178 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12179 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12181 if test "X${MISSING}" != X
; then
12182 as_fn_error $?
"The following required libraries were not found:
12184 Maybe some development libraries/packages are missing?
12185 If you don't want to link with them give
12187 as options to configure" "$LINENO" 5
12191 ### Use -lgpm if available, unless `--with-gpm=no'.
12195 if test "${with_gpm}" != "no"; then
12196 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12199 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12200 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_check_lib_save_LIBS
=$LIBS
12205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12218 return Gpm_Open ();
12223 if ac_fn_c_try_link
"$LINENO"; then :
12224 ac_cv_lib_gpm_Gpm_Open
=yes
12226 ac_cv_lib_gpm_Gpm_Open
=no
12228 rm -f core conftest.err conftest.
$ac_objext \
12229 conftest
$ac_exeext conftest.
$ac_ext
12230 LIBS
=$ac_check_lib_save_LIBS
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12233 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12234 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12242 if test "${HAVE_GPM}" = "yes"; then
12244 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12247 ## May be reset below.
12248 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12253 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12254 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12256 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12263 ### Use NeXTstep API to implement GUI.
12264 if test "${HAVE_NS}" = "yes"; then
12266 $as_echo "#define HAVE_NS 1" >>confdefs.h
12268 if test "${NS_IMPL_COCOA}" = "yes"; then
12270 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12274 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12276 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12278 # See also .m.o rule in Makefile.in */
12279 # FIXME: are all these flags really needed? Document here why. */
12280 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12281 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12283 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12285 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12288 # We also have mouse menus.
12294 ### Use session management (-lSM -lICE) if available
12297 if test "${HAVE_X11}" = "yes"; then
12298 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12299 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12301 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12302 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS
=$LIBS
12306 LIBS
="-lSM -lICE $LIBS"
12307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12316 char SmcOpenConnection ();
12320 return SmcOpenConnection ();
12325 if ac_fn_c_try_link
"$LINENO"; then :
12326 ac_cv_lib_SM_SmcOpenConnection
=yes
12328 ac_cv_lib_SM_SmcOpenConnection
=no
12330 rm -f core conftest.err conftest.
$ac_objext \
12331 conftest
$ac_exeext conftest.
$ac_ext
12332 LIBS
=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12335 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12336 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12344 if test "${HAVE_X_SM}" = "yes"; then
12346 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12348 LIBXSM
="-lSM -lICE"
12351 *) LIBS
="$LIBXSM $LIBS" ;;
12357 ### Use libxml (-lxml2) if available
12358 if test "${with_xml2}" != "no"; then
12359 ### I'm not sure what the version number should be, so I just guessed.
12363 # Extract the first word of "pkg-config", so it can be a program name with args.
12364 set dummy pkg-config
; ac_word
=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12368 $as_echo_n "(cached) " >&6
12370 case $PKG_CONFIG in
12372 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12376 for as_dir
in $PATH
12379 test -z "$as_dir" && as_dir
=.
12380 for ac_exec_ext
in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12394 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12395 if test -n "$PKG_CONFIG"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12397 $as_echo "$PKG_CONFIG" >&6; }
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12405 if test "$PKG_CONFIG" = "no" ; then
12408 PKG_CONFIG_MIN_VERSION
=0.9.0
12409 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12411 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12413 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12415 $as_echo "yes" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12419 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12420 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12422 $as_echo "$LIBXML2_CFLAGS" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12425 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12426 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12428 $as_echo "$LIBXML2_LIBS" >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12434 ## If we have a custom action on failure, don't print errors, but
12435 ## do set a variable so people can do so.
12436 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12443 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12444 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12448 if test $succeeded = yes; then
12454 if test "${HAVE_LIBXML2}" = "yes"; then
12455 LIBS
="$LIBXML2_LIBS $LIBS"
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12457 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12458 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12459 $as_echo_n "(cached) " >&6
12461 ac_check_lib_save_LIBS
=$LIBS
12462 LIBS
="-lxml2 $LIBS"
12463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12472 char htmlReadMemory ();
12476 return htmlReadMemory ();
12481 if ac_fn_c_try_link
"$LINENO"; then :
12482 ac_cv_lib_xml2_htmlReadMemory
=yes
12484 ac_cv_lib_xml2_htmlReadMemory
=no
12486 rm -f core conftest.err conftest.
$ac_objext \
12487 conftest
$ac_exeext conftest.
$ac_ext
12488 LIBS
=$ac_check_lib_save_LIBS
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12491 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12492 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12498 if test "${HAVE_LIBXML2}" = "yes"; then
12500 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12511 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12513 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12514 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12515 $as_echo_n "(cached) " >&6
12517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12528 if ac_fn_c_try_link
"$LINENO"; then :
12529 emacs_cv_netdb_declares_h_errno
=yes
12531 emacs_cv_netdb_declares_h_errno
=no
12533 rm -f core conftest.err conftest.
$ac_objext \
12534 conftest
$ac_exeext conftest.
$ac_ext
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12537 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12538 if test $emacs_cv_netdb_declares_h_errno = yes; then
12540 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12544 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12545 if test "x$ac_cv_type_size_t" = xyes
; then :
12549 cat >>confdefs.h
<<_ACEOF
12550 #define size_t unsigned int
12555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12556 # for constant arguments. Useless!
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12558 $as_echo_n "checking for working alloca.h... " >&6; }
12559 if ${ac_cv_working_alloca_h+:} false
; then :
12560 $as_echo_n "(cached) " >&6
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #include <alloca.h>
12568 char *p = (char *) alloca (2 * sizeof (int));
12574 if ac_fn_c_try_link
"$LINENO"; then :
12575 ac_cv_working_alloca_h
=yes
12577 ac_cv_working_alloca_h
=no
12579 rm -f core conftest.err conftest.
$ac_objext \
12580 conftest
$ac_exeext conftest.
$ac_ext
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12583 $as_echo "$ac_cv_working_alloca_h" >&6; }
12584 if test $ac_cv_working_alloca_h = yes; then
12586 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12591 $as_echo_n "checking for alloca... " >&6; }
12592 if ${ac_cv_func_alloca_works+:} false
; then :
12593 $as_echo_n "(cached) " >&6
12595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12598 # define alloca __builtin_alloca
12601 # include <malloc.h>
12602 # define alloca _alloca
12604 # ifdef HAVE_ALLOCA_H
12605 # include <alloca.h>
12610 # ifndef alloca /* predefined by HP cc +Olibcalls */
12611 void *alloca (size_t);
12621 char *p = (char *) alloca (1);
12627 if ac_fn_c_try_link
"$LINENO"; then :
12628 ac_cv_func_alloca_works
=yes
12630 ac_cv_func_alloca_works
=no
12632 rm -f core conftest.err conftest.
$ac_objext \
12633 conftest
$ac_exeext conftest.
$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12636 $as_echo "$ac_cv_func_alloca_works" >&6; }
12638 if test $ac_cv_func_alloca_works = yes; then
12640 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12643 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12644 # that cause trouble. Some versions do not even contain alloca or
12645 # contain a buggy version. If you still want to use their alloca,
12646 # use ar to extract alloca.o from them instead of compiling alloca.c.
12648 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12650 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12654 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12655 if ${ac_cv_os_cray+:} false
; then :
12656 $as_echo_n "(cached) " >&6
12658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 #if defined CRAY && ! defined CRAY2
12667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12668 $EGREP "webecray" >/dev
/null
2>&1; then :
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12677 $as_echo "$ac_cv_os_cray" >&6; }
12678 if test $ac_cv_os_cray = yes; then
12679 for ac_func
in _getb67 GETB67 getb67
; do
12680 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12681 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12682 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12684 cat >>confdefs.h
<<_ACEOF
12685 #define CRAY_STACKSEG_END $ac_func
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12695 $as_echo_n "checking stack direction for C alloca... " >&6; }
12696 if ${ac_cv_c_stack_direction+:} false
; then :
12697 $as_echo_n "(cached) " >&6
12699 if test "$cross_compiling" = yes; then :
12700 ac_cv_c_stack_direction
=0
12702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 $ac_includes_default
12706 find_stack_direction ()
12708 static char *addr = 0;
12713 return find_stack_direction ();
12716 return (&dummy > addr) ? 1 : -1;
12722 return find_stack_direction () < 0;
12725 if ac_fn_c_try_run
"$LINENO"; then :
12726 ac_cv_c_stack_direction
=1
12728 ac_cv_c_stack_direction
=-1
12730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12736 $as_echo "$ac_cv_c_stack_direction" >&6; }
12737 cat >>confdefs.h
<<_ACEOF
12738 #define STACK_DIRECTION $ac_cv_c_stack_direction
12745 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12746 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12749 # fmod, logb, and frexp are found in -lm on most systems.
12750 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12752 $as_echo_n "checking for sqrt in -lm... " >&6; }
12753 if ${ac_cv_lib_m_sqrt+:} false
; then :
12754 $as_echo_n "(cached) " >&6
12756 ac_check_lib_save_LIBS
=$LIBS
12758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12776 if ac_fn_c_try_link
"$LINENO"; then :
12777 ac_cv_lib_m_sqrt
=yes
12779 ac_cv_lib_m_sqrt
=no
12781 rm -f core conftest.err conftest.
$ac_objext \
12782 conftest
$ac_exeext conftest.
$ac_ext
12783 LIBS
=$ac_check_lib_save_LIBS
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12786 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12787 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12788 cat >>confdefs.h
<<_ACEOF
12789 #define HAVE_LIBM 1
12797 # Check for mail-locking functions in a "mail" library. Probably this should
12798 # have the same check as for liblockfile below.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12800 $as_echo_n "checking for maillock in -lmail... " >&6; }
12801 if ${ac_cv_lib_mail_maillock+:} false
; then :
12802 $as_echo_n "(cached) " >&6
12804 ac_check_lib_save_LIBS
=$LIBS
12805 LIBS
="-lmail $LIBS"
12806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12819 return maillock ();
12824 if ac_fn_c_try_link
"$LINENO"; then :
12825 ac_cv_lib_mail_maillock
=yes
12827 ac_cv_lib_mail_maillock
=no
12829 rm -f core conftest.err conftest.
$ac_objext \
12830 conftest
$ac_exeext conftest.
$ac_ext
12831 LIBS
=$ac_check_lib_save_LIBS
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12834 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12835 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
12841 if test $have_mail = yes; then
12843 LIBS
="$LIBS_MAIL $LIBS"
12845 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12851 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12852 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
12853 $as_echo_n "(cached) " >&6
12855 ac_check_lib_save_LIBS
=$LIBS
12856 LIBS
="-llockfile $LIBS"
12857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12870 return maillock ();
12875 if ac_fn_c_try_link
"$LINENO"; then :
12876 ac_cv_lib_lockfile_maillock
=yes
12878 ac_cv_lib_lockfile_maillock
=no
12880 rm -f core conftest.err conftest.
$ac_objext \
12881 conftest
$ac_exeext conftest.
$ac_ext
12882 LIBS
=$ac_check_lib_save_LIBS
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12885 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12886 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
12892 if test $have_lockfile = yes; then
12893 LIBS_MAIL
=-llockfile
12894 LIBS
="$LIBS_MAIL $LIBS"
12896 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12899 # If we have the shared liblockfile, assume we must use it for mail
12900 # locking (e.g. Debian). If we couldn't link against liblockfile
12901 # (no liblockfile.a installed), ensure that we don't need to.
12902 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12903 set dummy liblockfile.so
; ac_word
=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if ${ac_cv_prog_liblockfile+:} false
; then :
12907 $as_echo_n "(cached) " >&6
12909 if test -n "$liblockfile"; then
12910 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12913 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12914 for as_dir
in $as_dummy
12917 test -z "$as_dir" && as_dir
=.
12918 for ac_exec_ext
in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_prog_liblockfile
="yes"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12931 liblockfile
=$ac_cv_prog_liblockfile
12932 if test -n "$liblockfile"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12934 $as_echo "$liblockfile" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12941 if test $ac_cv_prog_liblockfile = yes; then
12942 as_fn_error $?
"Shared liblockfile found but can't link against it.
12943 This probably means that movemail could lose mail.
12944 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12947 for ac_func
in touchlock
12949 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12950 if test "x$ac_cv_func_touchlock" = xyes
; then :
12951 cat >>confdefs.h
<<_ACEOF
12952 #define HAVE_TOUCHLOCK 1
12958 for ac_header
in maillock.h
12960 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12961 if test "x$ac_cv_header_maillock_h" = xyes
; then :
12962 cat >>confdefs.h
<<_ACEOF
12963 #define HAVE_MAILLOCK_H 1
12972 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12973 ## interlock access to the mail spool. The alternative is a lock file named
12974 ## /usr/spool/mail/$USER.lock.
12977 aix4-2
) mail_lock
="lockf" ;;
12979 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12981 ## On GNU/Linux systems, both methods are used by various mail programs.
12982 ## I assume most people are using newer mailers that have heard of flock.
12983 ## Change this if you need to.
12984 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12985 ## configure gets the right answers, and that means *NOT* using flock.
12986 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12987 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12988 ## Debian maintainer hasn't provided a clean fix for Emacs.
12989 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12990 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12991 ## correct logic. -- fx
12992 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12993 ## liblockfile is a Free Software replacement for libmail, used on
12994 ## Debian systems and elsewhere. -rfr.
12997 if test $have_mail = yes ||
test $have_lockfile = yes; then
12998 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13004 case "$mail_lock" in
13006 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13010 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13013 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13018 for ac_func
in gethostname getdomainname dup2 \
13019 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13020 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13021 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13022 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13023 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13024 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13025 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13026 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13027 cfmakeraw cfsetspeed isnan copysign __executable_start
13029 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13031 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13032 cat >>confdefs.h
<<_ACEOF
13033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13041 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13042 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13043 $as_echo_n "(cached) " >&6
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13051 __builtin_unwind_init ();
13056 if ac_fn_c_try_link
"$LINENO"; then :
13057 emacs_cv_func___builtin_unwind_init
=yes
13059 emacs_cv_func___builtin_unwind_init
=no
13061 rm -f core conftest.err conftest.
$ac_objext \
13062 conftest
$ac_exeext conftest.
$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13065 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13066 if test $emacs_cv_func___builtin_unwind_init = yes; then
13068 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13072 for ac_header
in sys
/un.h
13074 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define HAVE_SYS_UN_H 1
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13086 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13087 if ${ac_cv_sys_largefile_source+:} false
; then :
13088 $as_echo_n "(cached) " >&6
13091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #include <sys/types.h> /* for off_t */
13098 int (*fp) (FILE *, off_t, int) = fseeko;
13099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13104 if ac_fn_c_try_link
"$LINENO"; then :
13105 ac_cv_sys_largefile_source
=no
; break
13107 rm -f core conftest.err conftest.
$ac_objext \
13108 conftest
$ac_exeext conftest.
$ac_ext
13109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #define _LARGEFILE_SOURCE 1
13112 #include <sys/types.h> /* for off_t */
13117 int (*fp) (FILE *, off_t, int) = fseeko;
13118 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13123 if ac_fn_c_try_link
"$LINENO"; then :
13124 ac_cv_sys_largefile_source
=1; break
13126 rm -f core conftest.err conftest.
$ac_objext \
13127 conftest
$ac_exeext conftest.
$ac_ext
13128 ac_cv_sys_largefile_source
=unknown
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13133 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13134 case $ac_cv_sys_largefile_source in #(
13137 cat >>confdefs.h
<<_ACEOF
13138 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13144 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13145 # in glibc 2.1.3, but that breaks too many other things.
13146 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13147 if test $ac_cv_sys_largefile_source != unknown
; then
13149 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13155 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13156 if ${ac_cv_func_getpgrp_void+:} false
; then :
13157 $as_echo_n "(cached) " >&6
13159 # Use it with a single arg.
13160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 $ac_includes_default
13171 if ac_fn_c_try_compile
"$LINENO"; then :
13172 ac_cv_func_getpgrp_void
=no
13174 ac_cv_func_getpgrp_void
=yes
13176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13180 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13181 if test $ac_cv_func_getpgrp_void = yes; then
13183 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13188 # Configure gnulib.
13199 LIBC_FATAL_STDERR_
=1
13200 export LIBC_FATAL_STDERR_
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13204 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13205 if ${gl_cv_func_c99_strtold+:} false
; then :
13206 $as_echo_n "(cached) " >&6
13208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 /* On HP-UX before 11.23, strtold returns a struct instead of
13211 long double. Reject implementations like that, by requiring
13212 compatibility with the C99 prototype. */
13213 #include <stdlib.h>
13214 static long double (*p) (char const *, char **) = strtold;
13216 test (char const *nptr, char **endptr)
13219 r = strtold (nptr, endptr);
13225 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13230 if ac_fn_c_try_link
"$LINENO"; then :
13231 gl_cv_func_c99_strtold
=yes
13233 gl_cv_func_c99_strtold
=no
13235 rm -f core conftest.err conftest.
$ac_objext \
13236 conftest
$ac_exeext conftest.
$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13239 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13240 if test $gl_cv_func_c99_strtold = yes; then
13242 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13249 GNULIB_CALLOC_POSIX
=0;
13250 GNULIB_CANONICALIZE_FILE_NAME
=0;
13251 GNULIB_GETLOADAVG
=0;
13252 GNULIB_GETSUBOPT
=0;
13254 GNULIB_MALLOC_POSIX
=0;
13257 GNULIB_MKOSTEMPS
=0;
13263 GNULIB_REALLOC_POSIX
=0;
13270 GNULIB_SYSTEM_POSIX
=0;
13275 HAVE_CANONICALIZE_FILE_NAME
=1;
13276 HAVE_DECL_GETLOADAVG
=1;
13290 HAVE_DECL_SETENV
=1;
13294 HAVE_STRUCT_RANDOM_DATA
=1;
13295 HAVE_SYS_LOADAVG_H
=0;
13297 HAVE_DECL_UNSETENV
=1;
13299 REPLACE_CANONICALIZE_FILE_NAME
=0;
13304 REPLACE_REALPATH
=0;
13307 REPLACE_UNSETENV
=0;
13315 GNULIB_EUIDACCESS
=0;
13316 GNULIB_FACCESSAT
=0;
13320 GNULIB_FTRUNCATE
=0;
13322 GNULIB_GETDOMAINNAME
=0;
13323 GNULIB_GETDTABLESIZE
=0;
13324 GNULIB_GETGROUPS
=0;
13325 GNULIB_GETHOSTNAME
=0;
13327 GNULIB_GETLOGIN_R
=0;
13328 GNULIB_GETPAGESIZE
=0;
13329 GNULIB_GETUSERSHELL
=0;
13339 GNULIB_READLINKAT
=0;
13343 GNULIB_SYMLINKAT
=0;
13344 GNULIB_TTYNAME_R
=0;
13345 GNULIB_UNISTD_H_GETOPT
=0;
13346 GNULIB_UNISTD_H_SIGPIPE
=0;
13360 HAVE_GETDTABLESIZE
=1;
13362 HAVE_GETHOSTNAME
=1;
13364 HAVE_GETPAGESIZE
=1;
13379 HAVE_DECL_ENVIRON
=1;
13380 HAVE_DECL_FCHDIR
=1;
13381 HAVE_DECL_GETDOMAINNAME
=1;
13382 HAVE_DECL_GETLOGIN_R
=1;
13383 HAVE_DECL_GETPAGESIZE
=1;
13384 HAVE_DECL_GETUSERSHELL
=1;
13385 HAVE_DECL_TTYNAME_R
=1;
13387 HAVE_SYS_PARAM_H
=0;
13392 REPLACE_FCHOWNAT
=0;
13394 REPLACE_GETDOMAINNAME
=0;
13395 REPLACE_GETLOGIN_R
=0;
13396 REPLACE_GETGROUPS
=0;
13397 REPLACE_GETPAGESIZE
=0;
13404 REPLACE_READLINK
=0;
13408 REPLACE_TTYNAME_R
=0;
13410 REPLACE_UNLINKAT
=0;
13413 UNISTD_H_HAVE_WINSOCK2_H
=0;
13414 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13420 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13421 if ${gl_cv_have_include_next+:} false
; then :
13422 $as_echo_n "(cached) " >&6
13424 rm -rf conftestd1a conftestd1b conftestd2
13425 mkdir conftestd1a conftestd1b conftestd2
13426 cat <<EOF > conftestd1a/conftest.h
13427 #define DEFINED_IN_CONFTESTD1
13428 #include_next <conftest.h>
13429 #ifdef DEFINED_IN_CONFTESTD2
13432 #error "include_next doesn't work"
13435 cat <<EOF > conftestd1b/conftest.h
13436 #define DEFINED_IN_CONFTESTD1
13438 #include_next <conftest.h>
13439 #ifdef DEFINED_IN_CONFTESTD2
13442 #error "include_next doesn't work"
13445 cat <<EOF > conftestd2/conftest.h
13446 #ifndef DEFINED_IN_CONFTESTD1
13447 #error "include_next test doesn't work"
13449 #define DEFINED_IN_CONFTESTD2
13451 gl_save_CPPFLAGS
="$CPPFLAGS"
13452 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <conftest.h>
13457 if ac_fn_c_try_compile
"$LINENO"; then :
13458 gl_cv_have_include_next
=yes
13460 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 #include <conftest.h>
13465 if ac_fn_c_try_compile
"$LINENO"; then :
13466 gl_cv_have_include_next
=buggy
13468 gl_cv_have_include_next
=no
13470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13474 CPPFLAGS
="$gl_save_CPPFLAGS"
13475 rm -rf conftestd1a conftestd1b conftestd2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13479 $as_echo "$gl_cv_have_include_next" >&6; }
13480 PRAGMA_SYSTEM_HEADER
=
13481 if test $gl_cv_have_include_next = yes; then
13482 INCLUDE_NEXT
=include_next
13483 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13484 if test -n "$GCC"; then
13485 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13488 if test $gl_cv_have_include_next = buggy
; then
13489 INCLUDE_NEXT
=include
13490 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13492 INCLUDE_NEXT
=include
13493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13500 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13501 if ${gl_cv_pragma_columns+:} false
; then :
13502 $as_echo_n "(cached) " >&6
13504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13513 $EGREP "choke me" >/dev
/null
2>&1; then :
13514 gl_cv_pragma_columns
=yes
13516 gl_cv_pragma_columns
=no
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13523 $as_echo "$gl_cv_pragma_columns" >&6; }
13524 if test $gl_cv_pragma_columns = yes; then
13525 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13546 if test $gl_cv_have_include_next = yes; then
13547 gl_cv_next_getopt_h
='<'getopt.h
'>'
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13550 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13551 if ${gl_cv_next_getopt_h+:} false
; then :
13552 $as_echo_n "(cached) " >&6
13555 if test $ac_cv_header_getopt_h = yes; then
13558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 #include <getopt.h>
13564 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13565 *) gl_absname_cpp
="$ac_cpp" ;;
13567 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13568 sed -n '\#/getopt.h#{
13569 s#.*"\(.*/getopt.h\)".*#\1#
13575 gl_cv_next_getopt_h
='<'getopt.h
'>'
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13581 $as_echo "$gl_cv_next_getopt_h" >&6; }
13583 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
13585 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13587 gl_next_as_first_directive
='<'getopt.h
'>'
13589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13590 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13592 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13597 if test $ac_cv_header_getopt_h = yes; then
13606 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13607 for ac_header
in getopt.h
13609 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13611 cat >>confdefs.h
<<_ACEOF
13612 #define HAVE_GETOPT_H 1
13616 gl_replace_getopt
=yes
13623 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13624 for ac_func
in getopt_long_only
13626 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13627 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13628 cat >>confdefs.h
<<_ACEOF
13629 #define HAVE_GETOPT_LONG_ONLY 1
13633 gl_replace_getopt
=yes
13639 if test -z "$gl_replace_getopt"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13641 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13642 if ${gl_cv_func_getopt_posix+:} false
; then :
13643 $as_echo_n "(cached) " >&6
13646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <unistd.h>
13652 int *p = &optreset; return optreset;
13657 if ac_fn_c_try_compile
"$LINENO"; then :
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <getopt.h>
13666 return !getopt_clip;
13671 if ac_fn_c_try_compile
"$LINENO"; then :
13676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13680 gl_save_CPPFLAGS
=$CPPFLAGS
13681 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13682 if test "$cross_compiling" = yes; then :
13684 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
13685 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
13686 *) gl_cv_func_getopt_posix
="guessing yes";;
13690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 #include <unistd.h>
13694 #include <stdlib.h>
13695 #include <string.h>
13705 argv[argc++] = "program";
13706 argv[argc++] = "-a";
13707 argv[argc++] = "foo";
13708 argv[argc++] = "bar";
13710 optind = OPTIND_MIN;
13713 c = getopt (argc, argv, "ab");
13716 c = getopt (argc, argv, "ab");
13719 if (!(optind == 2))
13722 /* Some internal state exists at this point. */
13728 argv[argc++] = "program";
13729 argv[argc++] = "donald";
13730 argv[argc++] = "-p";
13731 argv[argc++] = "billy";
13732 argv[argc++] = "duck";
13733 argv[argc++] = "-a";
13734 argv[argc++] = "bar";
13736 optind = OPTIND_MIN;
13739 c = getopt (argc, argv, "+abp:q:");
13742 if (!(strcmp (argv[0], "program") == 0))
13744 if (!(strcmp (argv[1], "donald") == 0))
13746 if (!(strcmp (argv[2], "-p") == 0))
13748 if (!(strcmp (argv[3], "billy") == 0))
13750 if (!(strcmp (argv[4], "duck") == 0))
13752 if (!(strcmp (argv[5], "-a") == 0))
13754 if (!(strcmp (argv[6], "bar") == 0))
13756 if (!(optind == 1))
13759 /* Detect MacOS 10.5, AIX 7.1 bug. */
13761 char *argv[3] = { "program", "-ab", NULL };
13762 optind = OPTIND_MIN;
13764 if (getopt (2, argv, "ab:") != 'a')
13766 if (getopt (2, argv, "ab:") != '?')
13778 if ac_fn_c_try_run
"$LINENO"; then :
13779 gl_cv_func_getopt_posix
=yes
13781 gl_cv_func_getopt_posix
=no
13783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13787 CPPFLAGS
=$gl_save_CPPFLAGS
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13791 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13792 case "$gl_cv_func_getopt_posix" in
13793 *no
) gl_replace_getopt
=yes ;;
13797 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13799 $as_echo_n "checking for working GNU getopt function... " >&6; }
13800 if ${gl_cv_func_getopt_gnu+:} false
; then :
13801 $as_echo_n "(cached) " >&6
13803 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13804 # optstring is necessary for programs like m4 that have POSIX-mandated
13805 # semantics for supporting options interspersed with files.
13806 # Also, since getopt_long is a GNU extension, we require optind=0.
13807 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13808 # so take care to revert to the correct (non-)export state.
13809 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13810 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13811 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
13812 x
) gl_had_POSIXLY_CORRECT
=yes ;;
13813 *) gl_had_POSIXLY_CORRECT
= ;;
13816 export POSIXLY_CORRECT
13817 if test "$cross_compiling" = yes; then :
13818 case $host_os:$ac_cv_have_decl_optreset in
13819 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
13820 *:yes) gl_cv_func_getopt_gnu
=no
;;
13821 *) gl_cv_func_getopt_gnu
=yes;;
13825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <getopt.h>
13828 #include <stddef.h>
13829 #include <string.h>
13836 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13837 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13838 OSF/1 5.1, Solaris 10. */
13841 myargv[0] = "conftest";
13845 if (getopt (2, myargv, "+a") != '?')
13848 /* This code succeeds on glibc 2.8, mingw,
13849 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13850 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13852 char *argv[] = { "program", "-p", "foo", "bar", NULL };
13855 if (getopt (4, argv, "p::") != 'p')
13857 else if (optarg != NULL)
13859 else if (getopt (4, argv, "p::") != -1)
13861 else if (optind != 2)
13864 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13866 char *argv[] = { "program", "foo", "-p", NULL };
13868 if (getopt (3, argv, "-p") != 1)
13870 else if (getopt (3, argv, "-p") != 'p')
13873 /* This code fails on glibc 2.11. */
13875 char *argv[] = { "program", "-b", "-a", NULL };
13876 optind = opterr = 0;
13877 if (getopt (3, argv, "+:a:b") != 'b')
13879 else if (getopt (3, argv, "+:a:b") != ':')
13888 if ac_fn_c_try_run
"$LINENO"; then :
13889 gl_cv_func_getopt_gnu
=yes
13891 gl_cv_func_getopt_gnu
=no
13893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13897 case $gl_had_POSIXLY_CORRECT in
13899 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
13900 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13905 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13906 if test "$gl_cv_func_getopt_gnu" = "no"; then
13907 gl_replace_getopt
=yes
13911 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13912 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
13918 cat >>confdefs.h
<<_ACEOF
13919 #define HAVE_DECL_GETENV $ac_have_decl
13927 if test -n "$gl_replace_getopt"; then :
13933 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13937 GNULIB_UNISTD_H_GETOPT
=1
13946 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13956 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13967 $as_echo_n "checking for inline... " >&6; }
13968 if ${ac_cv_c_inline+:} false
; then :
13969 $as_echo_n "(cached) " >&6
13972 for ac_kw
in inline __inline__ __inline
; do
13973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #ifndef __cplusplus
13977 static $ac_kw foo_t static_foo () {return 0; }
13978 $ac_kw foo_t foo () {return 0; }
13982 if ac_fn_c_try_compile
"$LINENO"; then :
13983 ac_cv_c_inline
=$ac_kw
13985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13986 test "$ac_cv_c_inline" != no
&& break
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13991 $as_echo "$ac_cv_c_inline" >&6; }
13993 case $ac_cv_c_inline in
13996 case $ac_cv_c_inline in
13998 *) ac_val
=$ac_cv_c_inline;;
14000 cat >>confdefs.h
<<_ACEOF
14001 #ifndef __cplusplus
14002 #define inline $ac_val
14010 GNULIB_NANOSLEEP
=0;
14014 HAVE_DECL_LOCALTIME_R
=1;
14018 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14019 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14020 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14021 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14026 for ac_func
in $ac_func_list
14028 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14029 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14030 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14031 cat >>confdefs.h
<<_ACEOF
14032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14041 gl_cv_c_multiarch
=no
14042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #ifndef __APPLE_CC__
14045 not a universal capable compiler
14050 if ac_fn_c_try_compile
"$LINENO"; then :
14054 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14055 if test -n "$prev"; then
14057 i?
86 | x86_64 | ppc | ppc64
)
14058 if test -z "$arch" ||
test "$arch" = "$word"; then
14061 gl_cv_c_multiarch
=yes
14067 if test "x$word" = "x-arch"; then
14074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14075 if test $gl_cv_c_multiarch = yes; then
14076 APPLE_UNIVERSAL_BUILD
=1
14078 APPLE_UNIVERSAL_BUILD
=0
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14083 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14084 if ${ac_cv_header_stdbool_h+:} false
; then :
14085 $as_echo_n "(cached) " >&6
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14090 #include <stdbool.h>
14092 "error: bool is not defined"
14095 "error: false is not defined"
14098 "error: false is not 0"
14101 "error: true is not defined"
14104 "error: true is not 1"
14106 #ifndef __bool_true_false_are_defined
14107 "error: __bool_true_false_are_defined is not defined"
14110 struct s { _Bool s: 1; _Bool t; } s;
14112 char a[true == 1 ? 1 : -1];
14113 char b[false == 0 ? 1 : -1];
14114 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14115 char d[(bool) 0.5 == true ? 1 : -1];
14116 /* See body of main program for 'e'. */
14117 char f[(_Bool) 0.0 == false ? 1 : -1];
14119 char h[sizeof (_Bool)];
14120 char i[sizeof s.t];
14121 enum { j = false, k = true, l = false * true, m = true * 256 };
14122 /* The following fails for
14123 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14125 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14126 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14127 /* Catch a bug in an HP-UX C compiler. See
14128 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14129 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14141 /* Refer to every declared value, to avoid compiler optimizations. */
14142 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14143 + !m + !n + !o + !p + !q + !pq);
14149 if ac_fn_c_try_compile
"$LINENO"; then :
14150 ac_cv_header_stdbool_h
=yes
14152 ac_cv_header_stdbool_h
=no
14154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14157 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14158 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14159 if test "x$ac_cv_type__Bool" = xyes
; then :
14161 cat >>confdefs.h
<<_ACEOF
14162 #define HAVE__BOOL 1
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14176 $as_echo_n "checking for wchar_t... " >&6; }
14177 if ${gt_cv_c_wchar_t+:} false
; then :
14178 $as_echo_n "(cached) " >&6
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 #include <stddef.h>
14183 wchar_t foo = (wchar_t)'\0';
14192 if ac_fn_c_try_compile
"$LINENO"; then :
14193 gt_cv_c_wchar_t
=yes
14197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14200 $as_echo "$gt_cv_c_wchar_t" >&6; }
14201 if test $gt_cv_c_wchar_t = yes; then
14203 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14208 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14210 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14212 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14220 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14221 if ${ac_cv_c_restrict+:} false
; then :
14222 $as_echo_n "(cached) " >&6
14224 ac_cv_c_restrict
=no
14225 # The order here caters to the fact that C++ does not require restrict.
14226 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 typedef int * int_ptr;
14230 int foo (int_ptr $ac_kw ip) {
14237 int * $ac_kw t = s;
14244 if ac_fn_c_try_compile
"$LINENO"; then :
14245 ac_cv_c_restrict
=$ac_kw
14247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14248 test "$ac_cv_c_restrict" != no
&& break
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14253 $as_echo "$ac_cv_c_restrict" >&6; }
14255 case $ac_cv_c_restrict in
14257 no
) $as_echo "#define restrict /**/" >>confdefs.h
14259 *) cat >>confdefs.h
<<_ACEOF
14260 #define restrict $ac_cv_c_restrict
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14270 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14271 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14272 $as_echo_n "(cached) " >&6
14274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14281 static struct timespec x; x.tv_sec = x.tv_nsec;
14286 if ac_fn_c_try_compile
"$LINENO"; then :
14287 gl_cv_sys_struct_timespec_in_time_h
=yes
14289 gl_cv_sys_struct_timespec_in_time_h
=no
14291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14294 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14296 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14297 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14299 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14300 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14303 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14304 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14305 $as_echo_n "(cached) " >&6
14307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 #include <sys/time.h>
14314 static struct timespec x; x.tv_sec = x.tv_nsec;
14319 if ac_fn_c_try_compile
"$LINENO"; then :
14320 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14322 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14327 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14328 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14329 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14332 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14333 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14334 $as_echo_n "(cached) " >&6
14336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #include <pthread.h>
14343 static struct timespec x; x.tv_sec = x.tv_nsec;
14348 if ac_fn_c_try_compile
"$LINENO"; then :
14349 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14351 gl_cv_sys_struct_timespec_in_pthread_h
=no
14353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14356 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14357 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14358 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14377 if test $gl_cv_have_include_next = yes; then
14378 gl_cv_next_time_h
='<'time.h
'>'
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14381 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14382 if ${gl_cv_next_time_h+:} false
; then :
14383 $as_echo_n "(cached) " >&6
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14392 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14393 *) gl_absname_cpp
="$ac_cpp" ;;
14395 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14396 sed -n '\#/time.h#{
14397 s#.*"\(.*/time.h\)".*#\1#
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14406 $as_echo "$gl_cv_next_time_h" >&6; }
14408 NEXT_TIME_H
=$gl_cv_next_time_h
14410 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14412 gl_next_as_first_directive
='<'time.h
'>'
14414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14415 gl_next_as_first_directive
=$gl_cv_next_time_h
14417 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14424 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14425 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
14431 cat >>confdefs.h
<<_ACEOF
14432 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14439 GL_COND_LIBTOOL_TRUE
=
14440 GL_COND_LIBTOOL_FALSE
='#'
14442 GL_COND_LIBTOOL_TRUE
='#'
14443 GL_COND_LIBTOOL_FALSE
=
14446 gl_cond_libtool
=false
14459 gl_source_base
='lib'
14460 # Code from module arg-nonnull:
14461 # Code from module c++defs:
14462 # Code from module dtoastr:
14464 # Code from module extensions:
14465 # Code from module getloadavg:
14468 # Persuade glibc <stdlib.h> to declare getloadavg().
14471 gl_have_func
=no
# yes means we've found a way to get the load average.
14473 # Make sure getloadavg.c is where it belongs, at configure-time.
14474 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
14475 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
14479 # Check for getloadavg, but be sure not to touch the cache variable.
14480 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14481 if test "x$ac_cv_func_getloadavg" = xyes
; then :
14486 ) && gl_have_func
=yes
14488 # On HPUX9, an unprivileged user can get load averages through this function.
14489 for ac_func
in pstat_getdynamic
14491 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
14492 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
14493 cat >>confdefs.h
<<_ACEOF
14494 #define HAVE_PSTAT_GETDYNAMIC 1
14501 # Solaris has libkstat which does not require root.
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
14503 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
14504 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
14505 $as_echo_n "(cached) " >&6
14507 ac_check_lib_save_LIBS
=$LIBS
14508 LIBS
="-lkstat $LIBS"
14509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14518 char kstat_open ();
14522 return kstat_open ();
14527 if ac_fn_c_try_link
"$LINENO"; then :
14528 ac_cv_lib_kstat_kstat_open
=yes
14530 ac_cv_lib_kstat_kstat_open
=no
14532 rm -f core conftest.err conftest.
$ac_objext \
14533 conftest
$ac_exeext conftest.
$ac_ext
14534 LIBS
=$ac_check_lib_save_LIBS
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
14537 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
14538 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
14539 cat >>confdefs.h
<<_ACEOF
14540 #define HAVE_LIBKSTAT 1
14543 LIBS
="-lkstat $LIBS"
14547 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
14549 # AIX has libperfstat which does not require root
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
14551 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
14552 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
14553 $as_echo_n "(cached) " >&6
14555 ac_check_lib_save_LIBS
=$LIBS
14556 LIBS
="-lperfstat $LIBS"
14557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14566 char perfstat_cpu_total ();
14570 return perfstat_cpu_total ();
14575 if ac_fn_c_try_link
"$LINENO"; then :
14576 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
14578 ac_cv_lib_perfstat_perfstat_cpu_total
=no
14580 rm -f core conftest.err conftest.
$ac_objext \
14581 conftest
$ac_exeext conftest.
$ac_ext
14582 LIBS
=$ac_check_lib_save_LIBS
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
14585 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
14586 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
14587 cat >>confdefs.h
<<_ACEOF
14588 #define HAVE_LIBPERFSTAT 1
14591 LIBS
="-lperfstat $LIBS"
14595 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
14597 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14598 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14599 # to get the right answer into the cache.
14600 # For kstat on solaris, we need to test for libelf and libkvm to force the
14601 # definition of SVR4 below.
14602 if test $gl_have_func = no
; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
14604 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
14605 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
14606 $as_echo_n "(cached) " >&6
14608 ac_check_lib_save_LIBS
=$LIBS
14610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14623 return elf_begin ();
14628 if ac_fn_c_try_link
"$LINENO"; then :
14629 ac_cv_lib_elf_elf_begin
=yes
14631 ac_cv_lib_elf_elf_begin
=no
14633 rm -f core conftest.err conftest.
$ac_objext \
14634 conftest
$ac_exeext conftest.
$ac_ext
14635 LIBS
=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
14638 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
14639 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14644 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14645 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 ac_check_lib_save_LIBS
=$LIBS
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14663 return kvm_open ();
14668 if ac_fn_c_try_link
"$LINENO"; then :
14669 ac_cv_lib_kvm_kvm_open
=yes
14671 ac_cv_lib_kvm_kvm_open
=no
14673 rm -f core conftest.err conftest.
$ac_objext \
14674 conftest
$ac_exeext conftest.
$ac_ext
14675 LIBS
=$ac_check_lib_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14678 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14679 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
14683 # Check for the 4.4BSD definition of getloadavg.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
14685 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
14686 if ${ac_cv_lib_util_getloadavg+:} false
; then :
14687 $as_echo_n "(cached) " >&6
14689 ac_check_lib_save_LIBS
=$LIBS
14690 LIBS
="-lutil $LIBS"
14691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14694 /* Override any GCC internal prototype to avoid an error.
14695 Use char because int might match the return type of a GCC
14696 builtin and then its argument prototype would still apply. */
14700 char getloadavg ();
14704 return getloadavg ();
14709 if ac_fn_c_try_link
"$LINENO"; then :
14710 ac_cv_lib_util_getloadavg
=yes
14712 ac_cv_lib_util_getloadavg
=no
14714 rm -f core conftest.err conftest.
$ac_objext \
14715 conftest
$ac_exeext conftest.
$ac_ext
14716 LIBS
=$ac_check_lib_save_LIBS
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
14719 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
14720 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
14721 LIBS
="-lutil $LIBS" gl_have_func
=yes gl_cv_func_getloadavg_setgid
=yes
14726 if test $gl_have_func = no
; then
14727 # There is a commonly available library for RS/6000 AIX.
14728 # Since it is not a standard part of AIX, it might be installed locally.
14729 gl_getloadavg_LIBS
=$LIBS
14730 LIBS
="-L/usr/local/lib $LIBS"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
14732 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
14733 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
14734 $as_echo_n "(cached) " >&6
14736 ac_check_lib_save_LIBS
=$LIBS
14737 LIBS
="-lgetloadavg $LIBS"
14738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14741 /* Override any GCC internal prototype to avoid an error.
14742 Use char because int might match the return type of a GCC
14743 builtin and then its argument prototype would still apply. */
14747 char getloadavg ();
14751 return getloadavg ();
14756 if ac_fn_c_try_link
"$LINENO"; then :
14757 ac_cv_lib_getloadavg_getloadavg
=yes
14759 ac_cv_lib_getloadavg_getloadavg
=no
14761 rm -f core conftest.err conftest.
$ac_objext \
14762 conftest
$ac_exeext conftest.
$ac_ext
14763 LIBS
=$ac_check_lib_save_LIBS
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14766 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
14767 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
14768 LIBS
="-lgetloadavg $LIBS"
14770 LIBS
=$gl_getloadavg_LIBS
14775 # Make sure it is really in the library, if we think we found it,
14776 # otherwise set up the replacement function.
14777 for ac_func
in getloadavg
14779 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14780 if test "x$ac_cv_func_getloadavg" = xyes
; then :
14781 cat >>confdefs.h
<<_ACEOF
14782 #define HAVE_GETLOADAVG 1
14794 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
14797 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
14799 # Figure out what our getloadavg.c needs.
14801 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
14802 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
14805 $as_echo "#define DGUX 1" >>confdefs.h
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
14808 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
14809 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
14810 $as_echo_n "(cached) " >&6
14812 ac_check_lib_save_LIBS
=$LIBS
14814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14823 char dg_sys_info ();
14827 return dg_sys_info ();
14832 if ac_fn_c_try_link
"$LINENO"; then :
14833 ac_cv_lib_dgc_dg_sys_info
=yes
14835 ac_cv_lib_dgc_dg_sys_info
=no
14837 rm -f core conftest.err conftest.
$ac_objext \
14838 conftest
$ac_exeext conftest.
$ac_ext
14839 LIBS
=$ac_check_lib_save_LIBS
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14842 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
14843 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
14844 cat >>confdefs.h
<<_ACEOF
14845 #define HAVE_LIBDGC 1
14856 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14857 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14858 # Irix 4.0.5F has the header but not the library.
14859 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
14860 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
14863 $as_echo "#define SVR4 1" >>confdefs.h
14867 if test $gl_have_func = no
; then
14868 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
14869 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
14872 $as_echo "#define UMAX 1" >>confdefs.h
14875 $as_echo "#define UMAX4_3 1" >>confdefs.h
14882 if test $gl_have_func = no
; then
14883 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
14885 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
14892 if test $gl_have_func = no
; then
14893 for ac_header
in mach
/mach.h
14895 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
14896 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
14897 cat >>confdefs.h
<<_ACEOF
14898 #define HAVE_MACH_MACH_H 1
14907 for ac_header
in nlist.h
14909 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
14910 if test "x$ac_cv_header_nlist_h" = xyes
; then :
14911 cat >>confdefs.h
<<_ACEOF
14912 #define HAVE_NLIST_H 1
14914 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
14916 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
14918 cat >>confdefs.h
<<_ACEOF
14919 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14923 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
14927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14934 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
14935 x.n_un.n_name = "";
14943 if ac_fn_c_try_link
"$LINENO"; then :
14945 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
14948 rm -f core conftest.err conftest.
$ac_objext \
14949 conftest
$ac_exeext conftest.
$ac_ext
14959 # Some definitions of getloadavg require that the program be installed setgid.
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
14961 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
14962 if ${gl_cv_func_getloadavg_setgid+:} false
; then :
14963 $as_echo_n "(cached) " >&6
14965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #define CONFIGURING_GETLOADAVG
14968 #include "$srcdir/$gl_source_base/getloadavg.c"
14969 #ifdef LDAV_PRIVILEGED
14970 Yowza Am I SETGID yet
14974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14975 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
14976 gl_cv_func_getloadavg_setgid
=yes
14978 gl_cv_func_getloadavg_setgid
=no
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getloadavg_setgid" >&5
14984 $as_echo "$gl_cv_func_getloadavg_setgid" >&6; }
14985 if test $gl_cv_func_getloadavg_setgid = yes; then
14988 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
14994 if test $gl_cv_func_getloadavg_setgid = yes; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
14996 $as_echo_n "checking group of /dev/kmem... " >&6; }
14997 if ${gl_cv_group_kmem+:} false
; then :
14998 $as_echo_n "(cached) " >&6
15000 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15001 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15002 # If we got an error (system does not support symlinks), try without -L.
15003 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15004 gl_cv_group_kmem
=`echo $ac_ls_output \
15005 | sed -ne 's/[ ][ ]*/ /g
15006 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_group_kmem" >&5
15011 $as_echo "$gl_cv_group_kmem" >&6; }
15012 KMEM_GROUP
=$gl_cv_group_kmem
15014 if test "x$gl_save_LIBS" = x
; then
15015 GETLOADAVG_LIBS
=$LIBS
15017 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15022 # Test whether the system declares getloadavg. Solaris has the function
15023 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15024 for ac_header
in sys
/loadavg.h
15026 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15027 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
15028 cat >>confdefs.h
<<_ACEOF
15029 #define HAVE_SYS_LOADAVG_H 1
15036 if test $ac_cv_header_sys_loadavg_h = yes; then
15037 HAVE_SYS_LOADAVG_H
=1
15039 HAVE_SYS_LOADAVG_H
=0
15041 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15042 # include <sys/loadavg.h>
15044 #include <stdlib.h>
15046 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
15049 HAVE_DECL_GETLOADAVG
=0
15056 GNULIB_GETLOADAVG
=1
15060 # Code from module getopt-gnu:
15067 # Code from module getopt-posix:
15073 if test -n "$gl_replace_getopt"; then :
15079 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15083 GNULIB_UNISTD_H_GETOPT
=1
15092 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15102 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15112 # Code from module gettext-h:
15115 # Code from module ignore-value:
15117 # Code from module include_next:
15118 # Code from module intprops:
15119 # Code from module mktime:
15125 if test $APPLE_UNIVERSAL_BUILD = 1; then
15126 # A universal build on Apple MacOS X platforms.
15127 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15128 # But we need a configuration result that is valid in both modes.
15129 ac_cv_func_working_mktime
=no
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15132 $as_echo_n "checking for working mktime... " >&6; }
15133 if ${ac_cv_func_working_mktime+:} false
; then :
15134 $as_echo_n "(cached) " >&6
15136 if test "$cross_compiling" = yes; then :
15137 ac_cv_func_working_mktime
=no
15139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 /* Test program from Paul Eggert and Tony Leneis. */
15142 #include <limits.h>
15143 #include <stdlib.h>
15146 #ifdef HAVE_UNISTD_H
15147 # include <unistd.h>
15151 # define alarm(X) /* empty */
15154 /* Work around redefinition to rpl_putenv by other config tests. */
15157 static time_t time_t_max;
15158 static time_t time_t_min;
15160 /* Values we'll use to set the TZ environment variable. */
15161 static char *tz_strings[] = {
15162 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15163 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15165 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15167 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15168 Based on a problem report from Andreas Jaeger. */
15170 spring_forward_gap ()
15172 /* glibc (up to about 1998-10-07) failed this test. */
15175 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15176 instead of "TZ=America/Vancouver" in order to detect the bug even
15177 on systems that don't support the Olson extension, or don't have the
15178 full zoneinfo tables installed. */
15179 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15188 return mktime (&tm) != (time_t) -1;
15192 mktime_test1 (time_t now)
15195 return ! (lt = localtime (&now)) || mktime (lt) == now;
15199 mktime_test (time_t now)
15201 return (mktime_test1 (now)
15202 && mktime_test1 ((time_t) (time_t_max - now))
15203 && mktime_test1 ((time_t) (time_t_min + now)));
15209 /* Based on code from Ariel Faigon. */
15219 return tm.tm_mon == 2 && tm.tm_mday == 31;
15223 bigtime_test (int j)
15227 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15228 now = mktime (&tm);
15229 if (now != (time_t) -1)
15231 struct tm *lt = localtime (&now);
15233 && lt->tm_year == tm.tm_year
15234 && lt->tm_mon == tm.tm_mon
15235 && lt->tm_mday == tm.tm_mday
15236 && lt->tm_hour == tm.tm_hour
15237 && lt->tm_min == tm.tm_min
15238 && lt->tm_sec == tm.tm_sec
15239 && lt->tm_yday == tm.tm_yday
15240 && lt->tm_wday == tm.tm_wday
15241 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15242 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15251 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15252 ignoring leap seconds. */
15253 unsigned long int answer = 2527315200UL;
15257 tm.tm_year = 2050 - 1900;
15260 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15263 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15264 instead of "TZ=America/Vancouver" in order to detect the bug even
15265 on systems that don't support the Olson extension, or don't have the
15266 full zoneinfo tables installed. */
15267 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15271 /* Check that the result is either a failure, or close enough
15272 to the correct answer that we can assume the discrepancy is
15273 due to leap seconds. */
15274 return (t == (time_t) -1
15275 || (0 < t && answer - 120 <= t && t <= answer + 120));
15284 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15285 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15287 /* This test makes some buggy mktime implementations loop.
15288 Give up after 60 seconds; a mktime slower than that
15289 isn't worth using anyway. */
15292 time_t_max = (! time_t_signed
15294 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15296 time_t_min = (! time_t_signed
15298 : time_t_signed_magnitude
15302 delta = time_t_max / 997; /* a suitable prime number */
15303 for (i = 0; i < N_STRINGS; i++)
15306 putenv (tz_strings[i]);
15308 for (t = 0; t <= time_t_max - delta; t += delta)
15309 if (! mktime_test (t))
15311 if (! (mktime_test ((time_t) 1)
15312 && mktime_test ((time_t) (60 * 60))
15313 && mktime_test ((time_t) (60 * 60 * 24))))
15316 for (j = 1; ; j <<= 1)
15317 if (! bigtime_test (j))
15319 else if (INT_MAX / 2 < j)
15321 if (! bigtime_test (INT_MAX))
15324 if (! irix_6_4_bug ())
15326 if (! spring_forward_gap ())
15328 if (! year_2050_test ())
15333 if ac_fn_c_try_run
"$LINENO"; then :
15334 ac_cv_func_working_mktime
=yes
15336 ac_cv_func_working_mktime
=no
15338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15344 $as_echo "$ac_cv_func_working_mktime" >&6; }
15345 if test $ac_cv_func_working_mktime = no
; then
15354 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15358 if test $ac_cv_func_working_mktime = no
; then
15374 # Code from module multiarch:
15376 # Code from module stdbool:
15380 # Define two additional variables used in the Makefile substitution.
15382 if test "$ac_cv_header_stdbool_h" = yes; then
15385 STDBOOL_H
='stdbool.h'
15389 if test "$ac_cv_type__Bool" = yes; then
15396 # Code from module stddef:
15400 if test $gt_cv_c_wchar_t = no
; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15405 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15406 if ${gl_cv_decl_null_works+:} false
; then :
15407 $as_echo_n "(cached) " >&6
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <stddef.h>
15412 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15422 if ac_fn_c_try_compile
"$LINENO"; then :
15423 gl_cv_decl_null_works
=yes
15425 gl_cv_decl_null_works
=no
15427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15430 $as_echo "$gl_cv_decl_null_works" >&6; }
15431 if test $gl_cv_decl_null_works = no
; then
15435 if test -n "$STDDEF_H"; then
15444 if test $gl_cv_have_include_next = yes; then
15445 gl_cv_next_stddef_h
='<'stddef.h
'>'
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15448 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15449 if ${gl_cv_next_stddef_h+:} false
; then :
15450 $as_echo_n "(cached) " >&6
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <stddef.h>
15459 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15460 *) gl_absname_cpp
="$ac_cpp" ;;
15462 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15463 sed -n '\#/stddef.h#{
15464 s#.*"\(.*/stddef.h\)".*#\1#
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15473 $as_echo "$gl_cv_next_stddef_h" >&6; }
15475 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15477 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15478 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15479 gl_next_as_first_directive
='<'stddef.h
'>'
15481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15482 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15484 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15491 # Code from module stdlib:
15502 if test $gl_cv_have_include_next = yes; then
15503 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15506 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15507 if ${gl_cv_next_stdlib_h+:} false
; then :
15508 $as_echo_n "(cached) " >&6
15511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 #include <stdlib.h>
15517 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15518 *) gl_absname_cpp
="$ac_cpp" ;;
15520 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15521 sed -n '\#/stdlib.h#{
15522 s#.*"\(.*/stdlib.h\)".*#\1#
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15531 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15533 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
15535 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15537 gl_next_as_first_directive
='<'stdlib.h
'>'
15539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15540 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
15542 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
15550 # Code from module strftime:
15561 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
15564 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15572 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15576 # Code from module time:
15580 # Code from module time_r:
15588 if test $ac_cv_have_decl_localtime_r = no
; then
15589 HAVE_DECL_LOCALTIME_R
=0
15593 if test $ac_cv_func_localtime_r = yes; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15596 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15597 if ${gl_cv_time_r_posix+:} false
; then :
15598 $as_echo_n "(cached) " >&6
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15606 /* We don't need to append 'restrict's to the argument types,
15607 even though the POSIX signature has the 'restrict's,
15608 since C99 says they can't affect type compatibility. */
15609 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15611 /* Check the return type is a pointer.
15612 On HP-UX 10 it is 'int'. */
15613 *localtime_r (0, 0);
15619 if ac_fn_c_try_compile
"$LINENO"; then :
15620 gl_cv_time_r_posix
=yes
15622 gl_cv_time_r_posix
=no
15624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15628 $as_echo "$gl_cv_time_r_posix" >&6; }
15629 if test $gl_cv_time_r_posix = yes; then
15630 REPLACE_LOCALTIME_R
=0
15632 REPLACE_LOCALTIME_R
=1
15637 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15646 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15660 # Code from module unistd:
15674 if test $gl_cv_have_include_next = yes; then
15675 gl_cv_next_unistd_h
='<'unistd.h
'>'
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15678 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15679 if ${gl_cv_next_unistd_h+:} false
; then :
15680 $as_echo_n "(cached) " >&6
15683 if test $ac_cv_header_unistd_h = yes; then
15686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 #include <unistd.h>
15692 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15693 *) gl_absname_cpp
="$ac_cpp" ;;
15695 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15696 sed -n '\#/unistd.h#{
15697 s#.*"\(.*/unistd.h\)".*#\1#
15703 gl_cv_next_unistd_h
='<'unistd.h
'>'
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15709 $as_echo "$gl_cv_next_unistd_h" >&6; }
15711 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15713 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15715 gl_next_as_first_directive
='<'unistd.h
'>'
15717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15718 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15720 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15725 if test $ac_cv_header_unistd_h = yes; then
15734 # Code from module warn-on-use:
15735 # End of code from modules
15756 gl_source_base
='tests'
15757 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
15759 gl_module_indicator_condition
=$gltests_WITNESS
15769 LIBGNU_LIBDEPS
="$gl_libdeps"
15771 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
15776 for ac_func
in grantpt
15778 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15779 if test "x$ac_cv_func_grantpt" = xyes
; then :
15780 cat >>confdefs.h
<<_ACEOF
15781 #define HAVE_GRANTPT 1
15788 # PTY-related GNU extensions.
15789 for ac_func
in getpt
15791 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
15792 if test "x$ac_cv_func_getpt" = xyes
; then :
15793 cat >>confdefs.h
<<_ACEOF
15794 #define HAVE_GETPT 1
15801 # Check this now, so that we will NOT find the above functions in ncurses.
15802 # That is because we have not set up to link ncurses in lib-src.
15803 # It's better to believe a function is not available
15804 # than to expect to find it in ncurses.
15805 # Also we need tputs and friends to be able to build at all.
15806 have_tputs_et_al
=true
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15808 $as_echo_n "checking for library containing tputs... " >&6; }
15809 if ${ac_cv_search_tputs+:} false
; then :
15810 $as_echo_n "(cached) " >&6
15812 ac_func_search_save_LIBS
=$LIBS
15813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15816 /* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15831 for ac_lib
in '' ncurses terminfo termcap
; do
15832 if test -z "$ac_lib"; then
15833 ac_res
="none required"
15836 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15838 if ac_fn_c_try_link
"$LINENO"; then :
15839 ac_cv_search_tputs
=$ac_res
15841 rm -f core conftest.err conftest.
$ac_objext \
15843 if ${ac_cv_search_tputs+:} false
; then :
15847 if ${ac_cv_search_tputs+:} false
; then :
15850 ac_cv_search_tputs
=no
15852 rm conftest.
$ac_ext
15853 LIBS
=$ac_func_search_save_LIBS
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15856 $as_echo "$ac_cv_search_tputs" >&6; }
15857 ac_res
=$ac_cv_search_tputs
15858 if test "$ac_res" != no
; then :
15859 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15862 have_tputs_et_al
=false
15865 if test "$have_tputs_et_al" != true
; then
15866 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
15867 Maybe some development libraries/packages are missing? Try installing
15868 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15870 # Must define this when any termcap library is found.
15872 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15874 ## FIXME This was the cpp logic, but I am not sure it is right.
15875 ## The above test has not necessarily found libncurses.
15876 HAVE_LIBNCURSES
=yes
15878 ## Use terminfo instead of termcap?
15879 ## Note only system files NOT using terminfo are:
15880 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15881 ## darwin|gnu without ncurses.
15885 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15886 ## hpux10-20: Use the system provided termcap(3) library.
15887 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15888 ## is necessary. Otherwise Emacs dumps core when run -nw.
15889 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
15891 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15892 ## The ncurses library has been moved out of the System framework in
15893 ## Mac OS X 10.2. So if configure detects it, set the command-line
15894 ## option to use it.
15896 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15897 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15899 LIBS_TERMCAP
="-lncurses"
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15905 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15906 if ${emacs_cv_freebsd_terminfo+:} false
; then :
15907 $as_echo_n "(cached) " >&6
15909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911 #include <osreldate.h>
15915 #if __FreeBSD_version < 400000
15923 if ac_fn_c_try_link
"$LINENO"; then :
15924 emacs_cv_freebsd_terminfo
=yes
15926 emacs_cv_freebsd_terminfo
=no
15928 rm -f core conftest.err conftest.
$ac_objext \
15929 conftest
$ac_exeext conftest.
$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15934 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15936 if test $emacs_cv_freebsd_terminfo = yes; then
15938 LIBS_TERMCAP
="-lncurses"
15940 LIBS_TERMCAP
="-ltermcap"
15945 if test $ac_cv_search_tputs = -lterminfo; then
15947 LIBS_TERMCAP
="-lterminfo"
15949 LIBS_TERMCAP
="-ltermcap"
15956 ## hpux: Make sure we get select from libc rather than from libcurses
15957 ## because libcurses on HPUX 10.10 has a broken version of select.
15958 ## We used to use -lc -lcurses, but this may be cleaner.
15959 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15961 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
15963 ## Must use system termcap, if we use any termcap. It does special things.
15964 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
15967 TERMCAP_OBJ
=tparam.o
15968 if test $TERMINFO = yes; then
15970 $as_echo "#define TERMINFO 1" >>confdefs.h
15973 ## Default used to be -ltermcap. Add a case above if need something else.
15974 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
15976 TERMCAP_OBJ
=terminfo.o
15982 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 #include <netinet/in.h>
15987 #include <arpa/nameser.h>
15988 #include <resolv.h>
15997 if ac_fn_c_try_link
"$LINENO"; then :
16002 rm -f core conftest.err conftest.
$ac_objext \
16003 conftest
$ac_exeext conftest.
$ac_ext
16004 if test "$have_res_init" = no
; then
16006 LIBS
="$LIBS -lresolv"
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
16008 $as_echo_n "checking for res_init with -lresolv... " >&6; }
16009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <netinet/in.h>
16012 #include <arpa/nameser.h>
16013 #include <resolv.h>
16022 if ac_fn_c_try_link
"$LINENO"; then :
16027 rm -f core conftest.err conftest.
$ac_objext \
16028 conftest
$ac_exeext conftest.
$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
16030 $as_echo "$have_res_init" >&6; }
16031 if test "$have_res_init" = yes ; then
16037 if test "$have_res_init" = yes; then
16039 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
16043 # Do we need the Hesiod library to provide the support routines?
16045 if test "$with_hesiod" != no
; then
16046 # Don't set $LIBS here -- see comments above. FIXME which comments?
16047 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
16048 if test "x$ac_cv_func_res_send" = xyes
; then :
16051 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
16052 if test "x$ac_cv_func___res_send" = xyes
; then :
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
16056 $as_echo_n "checking for res_send in -lresolv... " >&6; }
16057 if ${ac_cv_lib_resolv_res_send+:} false
; then :
16058 $as_echo_n "(cached) " >&6
16060 ac_check_lib_save_LIBS
=$LIBS
16061 LIBS
="-lresolv $LIBS"
16062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16075 return res_send ();
16080 if ac_fn_c_try_link
"$LINENO"; then :
16081 ac_cv_lib_resolv_res_send
=yes
16083 ac_cv_lib_resolv_res_send
=no
16085 rm -f core conftest.err conftest.
$ac_objext \
16086 conftest
$ac_exeext conftest.
$ac_ext
16087 LIBS
=$ac_check_lib_save_LIBS
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
16090 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
16091 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
16095 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
16096 if ${ac_cv_lib_resolv___res_send+:} false
; then :
16097 $as_echo_n "(cached) " >&6
16099 ac_check_lib_save_LIBS
=$LIBS
16100 LIBS
="-lresolv $LIBS"
16101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16104 /* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16110 char __res_send ();
16114 return __res_send ();
16119 if ac_fn_c_try_link
"$LINENO"; then :
16120 ac_cv_lib_resolv___res_send
=yes
16122 ac_cv_lib_resolv___res_send
=no
16124 rm -f core conftest.err conftest.
$ac_objext \
16125 conftest
$ac_exeext conftest.
$ac_ext
16126 LIBS
=$ac_check_lib_save_LIBS
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
16129 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
16130 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
16140 if test "$resolv" = yes ; then
16145 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
16146 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
16150 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
16151 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
16152 $as_echo_n "(cached) " >&6
16154 ac_check_lib_save_LIBS
=$LIBS
16155 LIBS
="-lhesiod $RESOLVLIB $LIBS"
16156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16159 /* Override any GCC internal prototype to avoid an error.
16160 Use char because int might match the return type of a GCC
16161 builtin and then its argument prototype would still apply. */
16165 char hes_getmailhost ();
16169 return hes_getmailhost ();
16174 if ac_fn_c_try_link
"$LINENO"; then :
16175 ac_cv_lib_hesiod_hes_getmailhost
=yes
16177 ac_cv_lib_hesiod_hes_getmailhost
=no
16179 rm -f core conftest.err conftest.
$ac_objext \
16180 conftest
$ac_exeext conftest.
$ac_ext
16181 LIBS
=$ac_check_lib_save_LIBS
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16184 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
16185 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
16194 if test x
"$hesiod" = xyes
; then
16196 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
16203 # Do we need libresolv (due to res_init or Hesiod)?
16204 if test "$resolv" = yes ; then
16206 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16214 # These tell us which Kerberos-related libraries to use.
16221 if test "${with_kerberos}" != no
; then
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16223 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
16224 if ${ac_cv_lib_com_err_com_err+:} false
; then :
16225 $as_echo_n "(cached) " >&6
16227 ac_check_lib_save_LIBS
=$LIBS
16228 LIBS
="-lcom_err $LIBS"
16229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16232 /* Override any GCC internal prototype to avoid an error.
16233 Use char because int might match the return type of a GCC
16234 builtin and then its argument prototype would still apply. */
16247 if ac_fn_c_try_link
"$LINENO"; then :
16248 ac_cv_lib_com_err_com_err
=yes
16250 ac_cv_lib_com_err_com_err
=no
16252 rm -f core conftest.err conftest.
$ac_objext \
16253 conftest
$ac_exeext conftest.
$ac_ext
16254 LIBS
=$ac_check_lib_save_LIBS
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16257 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
16258 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
16264 if test $have_com_err = yes; then
16265 COM_ERRLIB
=-lcom_err
16266 LIBS
="$COM_ERRLIB $LIBS"
16268 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16272 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
16273 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
16274 $as_echo_n "(cached) " >&6
16276 ac_check_lib_save_LIBS
=$LIBS
16277 LIBS
="-lcrypto $LIBS"
16278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16287 char mit_des_cbc_encrypt ();
16291 return mit_des_cbc_encrypt ();
16296 if ac_fn_c_try_link
"$LINENO"; then :
16297 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
16299 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
16301 rm -f core conftest.err conftest.
$ac_objext \
16302 conftest
$ac_exeext conftest.
$ac_ext
16303 LIBS
=$ac_check_lib_save_LIBS
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16306 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16307 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
16313 if test $have_crypto = yes; then
16315 LIBS
="$CRYPTOLIB $LIBS"
16317 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16321 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16322 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
16323 $as_echo_n "(cached) " >&6
16325 ac_check_lib_save_LIBS
=$LIBS
16326 LIBS
="-lk5crypto $LIBS"
16327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16330 /* Override any GCC internal prototype to avoid an error.
16331 Use char because int might match the return type of a GCC
16332 builtin and then its argument prototype would still apply. */
16336 char mit_des_cbc_encrypt ();
16340 return mit_des_cbc_encrypt ();
16345 if ac_fn_c_try_link
"$LINENO"; then :
16346 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
16348 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
16350 rm -f core conftest.err conftest.
$ac_objext \
16351 conftest
$ac_exeext conftest.
$ac_ext
16352 LIBS
=$ac_check_lib_save_LIBS
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16355 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16356 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
16362 if test $have_k5crypto = yes; then
16363 CRYPTOLIB
=-lk5crypto
16364 LIBS
="$CRYPTOLIB $LIBS"
16366 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16370 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16371 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
16372 $as_echo_n "(cached) " >&6
16374 ac_check_lib_save_LIBS
=$LIBS
16375 LIBS
="-lkrb5 $LIBS"
16376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16379 /* Override any GCC internal prototype to avoid an error.
16380 Use char because int might match the return type of a GCC
16381 builtin and then its argument prototype would still apply. */
16385 char krb5_init_context ();
16389 return krb5_init_context ();
16394 if ac_fn_c_try_link
"$LINENO"; then :
16395 ac_cv_lib_krb5_krb5_init_context
=yes
16397 ac_cv_lib_krb5_krb5_init_context
=no
16399 rm -f core conftest.err conftest.
$ac_objext \
16400 conftest
$ac_exeext conftest.
$ac_ext
16401 LIBS
=$ac_check_lib_save_LIBS
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16404 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16405 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
16411 if test $have_krb5=yes; then
16413 LIBS
="$KRB5LIB $LIBS"
16415 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16418 if test "${with_kerberos5}" = no
; then
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16420 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16421 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
16422 $as_echo_n "(cached) " >&6
16424 ac_check_lib_save_LIBS
=$LIBS
16425 LIBS
="-ldes425 $LIBS"
16426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16435 char des_cbc_encrypt ();
16439 return des_cbc_encrypt ();
16444 if ac_fn_c_try_link
"$LINENO"; then :
16445 ac_cv_lib_des425_des_cbc_encrypt
=yes
16447 ac_cv_lib_des425_des_cbc_encrypt
=no
16449 rm -f core conftest.err conftest.
$ac_objext \
16450 conftest
$ac_exeext conftest.
$ac_ext
16451 LIBS
=$ac_check_lib_save_LIBS
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16454 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16455 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
16461 if test $have_des425 = yes; then
16463 LIBS
="$DESLIB $LIBS"
16465 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16469 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16470 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
16471 $as_echo_n "(cached) " >&6
16473 ac_check_lib_save_LIBS
=$LIBS
16475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16484 char des_cbc_encrypt ();
16488 return des_cbc_encrypt ();
16493 if ac_fn_c_try_link
"$LINENO"; then :
16494 ac_cv_lib_des_des_cbc_encrypt
=yes
16496 ac_cv_lib_des_des_cbc_encrypt
=no
16498 rm -f core conftest.err conftest.
$ac_objext \
16499 conftest
$ac_exeext conftest.
$ac_ext
16500 LIBS
=$ac_check_lib_save_LIBS
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16503 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16504 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
16510 if test $have_des = yes; then
16512 LIBS
="$DESLIB $LIBS"
16514 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16519 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16520 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
16521 $as_echo_n "(cached) " >&6
16523 ac_check_lib_save_LIBS
=$LIBS
16524 LIBS
="-lkrb4 $LIBS"
16525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16534 char krb_get_cred ();
16538 return krb_get_cred ();
16543 if ac_fn_c_try_link
"$LINENO"; then :
16544 ac_cv_lib_krb4_krb_get_cred
=yes
16546 ac_cv_lib_krb4_krb_get_cred
=no
16548 rm -f core conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16550 LIBS
=$ac_check_lib_save_LIBS
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16553 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16554 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
16560 if test $have_krb4 = yes; then
16562 LIBS
="$KRB4LIB $LIBS"
16564 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16568 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16569 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
16570 $as_echo_n "(cached) " >&6
16572 ac_check_lib_save_LIBS
=$LIBS
16574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16583 char krb_get_cred ();
16587 return krb_get_cred ();
16592 if ac_fn_c_try_link
"$LINENO"; then :
16593 ac_cv_lib_krb_krb_get_cred
=yes
16595 ac_cv_lib_krb_krb_get_cred
=no
16597 rm -f core conftest.err conftest.
$ac_objext \
16598 conftest
$ac_exeext conftest.
$ac_ext
16599 LIBS
=$ac_check_lib_save_LIBS
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16602 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16603 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
16609 if test $have_krb = yes; then
16611 LIBS
="$KRB4LIB $LIBS"
16613 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16619 if test "${with_kerberos5}" != no
; then
16620 for ac_header
in krb5.h
16622 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16623 if test "x$ac_cv_header_krb5_h" = xyes
; then :
16624 cat >>confdefs.h
<<_ACEOF
16625 #define HAVE_KRB5_H 1
16627 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16629 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
16631 cat >>confdefs.h
<<_ACEOF
16632 #define HAVE_KRB5_ERROR_TEXT 1
16637 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16639 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
16641 cat >>confdefs.h
<<_ACEOF
16642 #define HAVE_KRB5_ERROR_E_TEXT 1
16653 for ac_header
in des.h
16655 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16656 if test "x$ac_cv_header_des_h" = xyes
; then :
16657 cat >>confdefs.h
<<_ACEOF
16658 #define HAVE_DES_H 1
16662 for ac_header
in kerberosIV
/des.h
16664 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16665 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
16666 cat >>confdefs.h
<<_ACEOF
16667 #define HAVE_KERBEROSIV_DES_H 1
16671 for ac_header
in kerberos
/des.h
16673 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16674 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
16675 cat >>confdefs.h
<<_ACEOF
16676 #define HAVE_KERBEROS_DES_H 1
16691 for ac_header
in krb.h
16693 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16694 if test "x$ac_cv_header_krb_h" = xyes
; then :
16695 cat >>confdefs.h
<<_ACEOF
16696 #define HAVE_KRB_H 1
16700 for ac_header
in kerberosIV
/krb.h
16702 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16703 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
16704 cat >>confdefs.h
<<_ACEOF
16705 #define HAVE_KERBEROSIV_KRB_H 1
16709 for ac_header
in kerberos
/krb.h
16711 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16712 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
16713 cat >>confdefs.h
<<_ACEOF
16714 #define HAVE_KERBEROS_KRB_H 1
16730 for ac_header
in com_err.h
16732 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16733 if test "x$ac_cv_header_com_err_h" = xyes
; then :
16734 cat >>confdefs.h
<<_ACEOF
16735 #define HAVE_COM_ERR_H 1
16750 # Solaris requires -lintl if you want strerror (which calls dgettext)
16751 # to return localized messages.
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16753 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16754 if ${ac_cv_lib_intl_dgettext+:} false
; then :
16755 $as_echo_n "(cached) " >&6
16757 ac_check_lib_save_LIBS
=$LIBS
16758 LIBS
="-lintl $LIBS"
16759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16772 return dgettext ();
16777 if ac_fn_c_try_link
"$LINENO"; then :
16778 ac_cv_lib_intl_dgettext
=yes
16780 ac_cv_lib_intl_dgettext
=no
16782 rm -f core conftest.err conftest.
$ac_objext \
16783 conftest
$ac_exeext conftest.
$ac_ext
16784 LIBS
=$ac_check_lib_save_LIBS
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16787 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16788 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
16789 cat >>confdefs.h
<<_ACEOF
16790 #define HAVE_LIBINTL 1
16793 LIBS
="-lintl $LIBS"
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16799 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16800 if ${emacs_cv_localtime_cache+:} false
; then :
16801 $as_echo_n "(cached) " >&6
16803 if test x
$ac_cv_func_tzset = xyes
; then
16804 if test "$cross_compiling" = yes; then :
16805 # If we have tzset, assume the worst when cross-compiling.
16806 emacs_cv_localtime_cache
=yes
16808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16811 char TZ_GMT0[] = "TZ=GMT0";
16812 char TZ_PST8[] = "TZ=PST8";
16815 time_t now = time ((time_t *) 0);
16816 int hour_GMT0, hour_unset;
16817 if (putenv (TZ_GMT0) != 0)
16819 hour_GMT0 = localtime (&now)->tm_hour;
16821 hour_unset = localtime (&now)->tm_hour;
16822 if (putenv (TZ_PST8) != 0)
16824 if (localtime (&now)->tm_hour == hour_GMT0)
16827 if (localtime (&now)->tm_hour != hour_unset)
16832 if ac_fn_c_try_run
"$LINENO"; then :
16833 emacs_cv_localtime_cache
=no
16835 emacs_cv_localtime_cache
=yes
16837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16842 # If we lack tzset, report that localtime does not cache TZ,
16843 # since we can't invalidate the cache if we don't have tzset.
16844 emacs_cv_localtime_cache
=no
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16848 $as_echo "$emacs_cv_localtime_cache" >&6; }
16849 if test $emacs_cv_localtime_cache = yes; then
16851 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16855 if test "x$HAVE_TIMEVAL" = xyes
; then
16856 for ac_func
in gettimeofday
16858 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16859 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16860 cat >>confdefs.h
<<_ACEOF
16861 #define HAVE_GETTIMEOFDAY 1
16867 if test $ac_cv_func_gettimeofday = yes; then
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16869 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16870 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
16871 $as_echo_n "(cached) " >&6
16873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16876 #ifdef TIME_WITH_SYS_TIME
16877 #include <sys/time.h>
16880 #ifdef HAVE_SYS_TIME_H
16881 #include <sys/time.h>
16889 struct timeval time;
16890 gettimeofday (&time, 0);
16895 if ac_fn_c_try_compile
"$LINENO"; then :
16896 emacs_cv_gettimeofday_two_arguments
=yes
16898 emacs_cv_gettimeofday_two_arguments
=no
16900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16903 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16904 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16906 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16913 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16914 if test "x$ac_cv_func_socket" = xyes
; then :
16920 if test $ok_so_far = yes; then
16921 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16922 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
16930 if test $ok_so_far = yes; then
16931 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16932 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
16940 if test $ok_so_far = yes; then
16942 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16946 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16948 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16953 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16954 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16956 $as_echo "yes" >&6; }
16958 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16962 $as_echo "no" >&6; }
16965 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16966 if test "x$ac_cv_type_pid_t" = xyes
; then :
16970 cat >>confdefs.h
<<_ACEOF
16976 for ac_header
in vfork.h
16978 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_vfork_h" = xyes
; then :
16980 cat >>confdefs.h
<<_ACEOF
16981 #define HAVE_VFORK_H 1
16988 for ac_func
in fork vfork
16990 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16992 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16993 cat >>confdefs.h
<<_ACEOF
16994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17000 if test "x$ac_cv_func_fork" = xyes
; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17002 $as_echo_n "checking for working fork... " >&6; }
17003 if ${ac_cv_func_fork_works+:} false
; then :
17004 $as_echo_n "(cached) " >&6
17006 if test "$cross_compiling" = yes; then :
17007 ac_cv_func_fork_works
=cross
17009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 $ac_includes_default
17016 /* By Ruediger Kuhlmann. */
17017 return fork () < 0;
17023 if ac_fn_c_try_run
"$LINENO"; then :
17024 ac_cv_func_fork_works
=yes
17026 ac_cv_func_fork_works
=no
17028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17034 $as_echo "$ac_cv_func_fork_works" >&6; }
17037 ac_cv_func_fork_works
=$ac_cv_func_fork
17039 if test "x$ac_cv_func_fork_works" = xcross
; then
17041 *-*-amigaos* |
*-*-msdosdjgpp*)
17042 # Override, as these systems have only a dummy fork() stub
17043 ac_cv_func_fork_works
=no
17046 ac_cv_func_fork_works
=yes
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17050 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17052 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17053 if test "x$ac_cv_func_vfork" = xyes
; then
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17055 $as_echo_n "checking for working vfork... " >&6; }
17056 if ${ac_cv_func_vfork_works+:} false
; then :
17057 $as_echo_n "(cached) " >&6
17059 if test "$cross_compiling" = yes; then :
17060 ac_cv_func_vfork_works
=cross
17062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 /* Thanks to Paul Eggert for this test. */
17065 $ac_includes_default
17066 #include <sys/wait.h>
17067 #ifdef HAVE_VFORK_H
17068 # include <vfork.h>
17070 /* On some sparc systems, changes by the child to local and incoming
17071 argument registers are propagated back to the parent. The compiler
17072 is told about this with #include <vfork.h>, but some compilers
17073 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17074 static variable whose address is put into a register that is
17075 clobbered by the vfork. */
17078 sparc_address_test (int arg)
17080 sparc_address_test (arg) int arg;
17083 static pid_t child;
17101 pid_t parent = getpid ();
17104 sparc_address_test (0);
17109 /* Here is another test for sparc vfork register problems. This
17110 test uses lots of local variables, at least as many local
17111 variables as main has allocated so far including compiler
17112 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17113 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17114 reuse the register of parent for one of the local variables,
17115 since it will think that parent can't possibly be used any more
17116 in this routine. Assigning to the local variable will thus
17117 munge parent in the parent process. */
17119 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17120 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17121 /* Convince the compiler that p..p7 are live; otherwise, it might
17122 use the same hardware register for all 8 local variables. */
17123 if (p != p1 || p != p2 || p != p3 || p != p4
17124 || p != p5 || p != p6 || p != p7)
17127 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17128 from child file descriptors. If the child closes a descriptor
17129 before it execs or exits, this munges the parent's descriptor
17130 as well. Test for this by closing stdout in the child. */
17131 _exit(close(fileno(stdout)) != 0);
17136 while (wait(&status) != child)
17139 /* Was there some problem with vforking? */
17142 /* Did the child fail? (This shouldn't happen.) */
17145 /* Did the vfork/compiler bug occur? */
17146 || parent != getpid()
17148 /* Did the file descriptor bug occur? */
17149 || fstat(fileno(stdout), &st) != 0
17154 if ac_fn_c_try_run
"$LINENO"; then :
17155 ac_cv_func_vfork_works
=yes
17157 ac_cv_func_vfork_works
=no
17159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17165 $as_echo "$ac_cv_func_vfork_works" >&6; }
17168 if test "x$ac_cv_func_fork_works" = xcross
; then
17169 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17171 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17174 if test "x$ac_cv_func_vfork_works" = xyes
; then
17176 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17180 $as_echo "#define vfork fork" >>confdefs.h
17183 if test "x$ac_cv_func_fork_works" = xyes
; then
17185 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17191 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17192 if ${emacs_cv_langinfo_codeset+:} false
; then :
17193 $as_echo_n "(cached) " >&6
17195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197 #include <langinfo.h>
17201 char* cs = nl_langinfo(CODESET);
17206 if ac_fn_c_try_link
"$LINENO"; then :
17207 emacs_cv_langinfo_codeset
=yes
17209 emacs_cv_langinfo_codeset
=no
17211 rm -f core conftest.err conftest.
$ac_objext \
17212 conftest
$ac_exeext conftest.
$ac_ext
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
17216 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
17217 if test $emacs_cv_langinfo_codeset = yes; then
17219 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17223 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17224 if test "x$ac_cv_type_size_t" = xyes
; then :
17226 cat >>confdefs.h
<<_ACEOF
17227 #define HAVE_SIZE_T 1
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17235 $as_echo_n "checking for mbstate_t... " >&6; }
17236 if ${ac_cv_type_mbstate_t+:} false
; then :
17237 $as_echo_n "(cached) " >&6
17239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241 $ac_includes_default
17242 # include <wchar.h>
17246 mbstate_t x; return sizeof x;
17251 if ac_fn_c_try_compile
"$LINENO"; then :
17252 ac_cv_type_mbstate_t
=yes
17254 ac_cv_type_mbstate_t
=no
17256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17259 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17260 if test $ac_cv_type_mbstate_t = yes; then
17262 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17266 $as_echo "#define mbstate_t int" >>confdefs.h
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
17271 $as_echo_n "checking for C restricted array declarations... " >&6; }
17272 if ${emacs_cv_c_restrict_arr+:} false
; then :
17273 $as_echo_n "(cached) " >&6
17275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 void fred (int x[__restrict]);
17286 if ac_fn_c_try_compile
"$LINENO"; then :
17287 emacs_cv_c_restrict_arr
=yes
17289 emacs_cv_c_restrict_arr
=no
17291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17294 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17295 if test "$emacs_cv_c_restrict_arr" = yes; then
17297 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17303 # Set up the CFLAGS for real compilation, so we can substitute it.
17304 CFLAGS
="$REAL_CFLAGS"
17305 CPPFLAGS
="$REAL_CPPFLAGS"
17307 ## Hack to detect a buggy GCC version.
17308 if test "x$GCC" = xyes \
17309 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17310 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17311 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17312 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17315 version
=$PACKAGE_VERSION
17317 ### Specify what sort of things we'll be editing into Makefile and config.h.
17318 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17342 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17343 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17344 ## end of LIBX_BASE, but nothing ever set it.
17349 ## Used in lwlib/Makefile.in.
17351 if test -n "${machfile}"; then
17352 M_FILE
="\$(srcdir)/${machfile}"
17356 S_FILE
="\$(srcdir)/${opsysfile}"
17367 cat >>confdefs.h
<<_ACEOF
17368 #define EMACS_CONFIGURATION "${canonical}"
17372 cat >>confdefs.h
<<_ACEOF
17373 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17376 if test -n "$machfile"; then
17378 cat >>confdefs.h
<<_ACEOF
17379 #define config_machfile "${machfile}"
17384 cat >>confdefs.h
<<_ACEOF
17385 #define config_opsysfile "${opsysfile}"
17392 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17394 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17397 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17399 if test "$HAVE_XFT" = "yes"; then
17400 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17401 elif test "$HAVE_FREETYPE" = "yes"; then
17402 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17412 if test "${USE_X_TOOLKIT}" != "none" ; then
17413 WIDGET_OBJ
=widget.o
17415 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17417 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17419 $as_echo "#define USE_LUCID 1" >>confdefs.h
17421 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17423 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17428 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17429 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17433 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17434 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17435 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17439 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17440 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17443 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17449 case "$USE_X_TOOLKIT" in
17450 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17451 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17452 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17456 if test "$USE_X_TOOLKIT" = "none"; then
17457 LIBXT_OTHER
="\$(LIBXSM)"
17458 OLDXMENU_TARGET
="really-oldXMenu"
17460 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17461 OLDXMENU_TARGET
="really-lwlib"
17465 ## The X Menu stuff is present in the X10 distribution, but missing
17466 ## from X11. If we have X10, just use the installed library;
17467 ## otherwise, use our own copy.
17468 if test "${HAVE_X11}" = "yes" ; then
17470 $as_echo "#define HAVE_X11 1" >>confdefs.h
17473 if test "$USE_X_TOOLKIT" = "none"; then
17474 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17476 OLDXMENU
="\${lwlibdir}/liblw.a"
17478 LIBXMENU
="\$(OLDXMENU)"
17479 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17480 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17482 ## For a syntactically valid Makefile; not actually used for anything.
17483 ## See comments in src/Makefile.in.
17485 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17486 if test "${HAVE_X_WINDOWS}" = "yes"; then
17495 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17508 if test "${HAVE_MENUS}" = "yes" ; then
17510 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17514 if test "${GNU_MALLOC}" = "yes" ; then
17516 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17521 if test "${REL_ALLOC}" = "yes" ; then
17523 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17526 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17530 if test "$opsys" = "cygwin"; then
17531 CYGWIN_OBJ
="sheap.o"
17532 ## Cygwin differs because of its unexec().
17534 POST_ALLOC_OBJ
=lastfile.o
17537 PRE_ALLOC_OBJ
=lastfile.o
17546 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
17549 ## The -headerpad option tells ld (see man page) to leave room at the
17550 ## end of the header for adding load commands. Needed for dumping.
17551 ## 0x690 is the total size of 30 segment load commands (at 56
17552 ## each); under Cocoa 31 commands are required.
17553 if test "$HAVE_NS" = "yes"; then
17554 libs_nsgui
="-framework AppKit"
17555 headerpad_extra
=6C8
17558 headerpad_extra
=690
17560 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17562 ## This is here because src/Makefile.in did some extra fiddling around
17563 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17564 ## #ifndef LD_SWITCH_SYSTEM
17565 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17566 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17567 ## not using gcc, darwin system not on an alpha (ie darwin, since
17568 ## darwin + alpha does not occur).
17569 ## Because this was done in src/Makefile.in, the resulting part of
17570 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17571 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17572 ## rather than LD_SWITCH_SYSTEM.
17573 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17574 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
17577 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17578 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17579 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17580 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17581 ## had different values in configure (in ac_link) and src/Makefile.in.
17582 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17583 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
17585 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
17588 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17589 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17598 ## gnu: GNU needs its own crt0.
17599 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
17601 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17602 ## library search parth, i.e. it won't search /usr/lib for libc and
17603 ## friends. Using -nostartfiles instead avoids this problem, and
17604 ## will also work on earlier NetBSD releases.
17605 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
17607 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17608 ## MkLinux/LinuxPPC needs this.
17609 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17612 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
17618 if test "x$ORDINARY_LINK" = "xyes"; then
17622 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17625 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17626 ## freebsd, gnu-* not on macppc|ibms390x.
17627 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17629 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17630 ## places that are difficult to figure out at make time. Fortunately,
17631 ## these same versions allow you to pass arbitrary flags on to the
17632 ## linker, so there is no reason not to use it as a linker.
17634 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17635 ## searching for libraries in its internal directories, so we have to
17636 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17637 LD_FIRSTFLAG
="-nostdlib"
17640 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17641 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
17646 ## FIXME? The logic here is not precisely the same as that above.
17647 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17648 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17650 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17653 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
17656 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17657 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17663 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17664 ## immediately undefine it again and redefine it to empty.
17665 ## Was the C_SWITCH_X_SITE part really necessary?
17666 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17672 ## Ask GCC where to find libgcc.a.
17673 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17680 ## If we're using X11/GNUstep, define some consequences.
17681 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
17683 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17686 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17688 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
17689 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
17691 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
17692 test "$HAVE_X_WINDOWS" = "yes" && \
17693 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17703 #### Report on what we decided to do.
17704 #### Report GTK as a toolkit, even if it doesn't use Xt.
17705 #### It makes printing result more understandable as using GTK sets
17706 #### toolkit_scroll_bars to yes by default.
17707 if test "${HAVE_GTK}" = "yes"; then
17712 if test -n "$machfile"; then
17713 and_machfile
=" and \`${machfile}'"
17717 Configured for \`${canonical}'.
17719 Where should the build process find the source code? ${srcdir}
17720 What operating system and machine description files should Emacs use?
17721 \`${opsysfile}'${and_machfile}
17722 What compiler should emacs be built with? ${CC} ${CFLAGS}
17723 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17724 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17725 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17726 What window system should Emacs use? ${window_system}
17727 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17729 if test -n "${x_includes}"; then
17730 echo " Where do we find X Windows header files? ${x_includes}"
17732 echo " Where do we find X Windows header files? Standard dirs"
17734 if test -n "${x_libraries}"; then
17735 echo " Where do we find X Windows libraries? ${x_libraries}"
17737 echo " Where do we find X Windows libraries? Standard dirs"
17740 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17741 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17742 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17743 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17744 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17745 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17746 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17747 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17749 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17750 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17751 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17752 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17753 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17754 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17756 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17757 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17758 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17759 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17761 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17764 if test $USE_XASSERTS = yes; then
17765 echo " Compiling with asserts turned on."
17766 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
17771 if test "$HAVE_NS" = "yes"; then
17773 echo "You must run \"make install\" in order to test the built application.
17774 The installed application will go to nextstep/Emacs.app and can be
17775 run or moved from there."
17776 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17777 echo "The application will be fully self-contained."
17779 echo "The lisp resources for the application will be installed under ${prefix}.
17780 You may need to run \"make install\" with sudo. The application will fail
17781 to run if these resources are not installed."
17787 # Remove any trailing slashes in these variables.
17788 test "${prefix}" != NONE
&&
17789 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17790 test "${exec_prefix}" != NONE
&&
17791 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17793 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"
17795 ac_config_commands
="$ac_config_commands default"
17797 cat >confcache
<<\_ACEOF
17798 # This file is a shell script that caches the results of configure
17799 # tests run on this system so they can be shared between configure
17800 # scripts and configure runs, see configure's option --config-cache.
17801 # It is not useful on other systems. If it contains results you don't
17802 # want to keep, you may remove or edit it.
17804 # config.status only pays attention to the cache file if you give it
17805 # the --recheck option to rerun configure.
17807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17809 # following values.
17813 # The following way of writing the cache mishandles newlines in values,
17814 # but we know of no workaround that is simple, portable, and efficient.
17815 # So, we kill variables containing newlines.
17816 # Ultrix sh set writes to stderr and can't be redirected directly,
17817 # and sets the high bit in the cache file unless we assign to the vars.
17819 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17820 eval ac_val
=\$
$ac_var
17824 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17828 _ | IFS | as_nl
) ;; #(
17829 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17830 *) { eval $ac_var=; unset $ac_var;} ;;
17836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17837 *${as_nl}ac_space
=\
*)
17838 # `set' does not quote correctly, so add quotes: double-quote
17839 # substitution turns \\\\ into \\, and sed turns \\ into \.
17842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17845 # `set' quotes correctly as required by POSIX, so do not add quotes.
17846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17859 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17860 if test -w "$cache_file"; then
17861 if test "x$cache_file" != "x/dev/null"; then
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17863 $as_echo "$as_me: updating cache $cache_file" >&6;}
17864 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17865 cat confcache
>"$cache_file"
17867 case $cache_file in #(
17869 mv -f confcache
"$cache_file"$$
&&
17870 mv -f "$cache_file"$$
"$cache_file" ;; #(
17872 mv -f confcache
"$cache_file" ;;
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17883 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17884 # Let make expand exec_prefix.
17885 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17887 DEFS
=-DHAVE_CONFIG_H
17892 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17893 # 1. Remove the extension, and $U if already installed.
17894 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17895 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17897 # will be set to the directory where LIBOBJS objects are built.
17898 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17899 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17901 LIBOBJS
=$ac_libobjs
17903 LTLIBOBJS
=$ac_ltlibobjs
17906 if test -n "$EXEEXT"; then
17908 am__EXEEXT_FALSE
='#'
17910 am__EXEEXT_TRUE
='#'
17914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17915 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17919 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17923 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17924 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
17925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17930 if test -n "$gl_LIBOBJS"; then
17931 # Remove the extension.
17932 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17933 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17934 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17935 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17938 gl_LIBOBJS
=$gl_libobjs
17940 gl_LTLIBOBJS
=$gl_ltlibobjs
17946 if test -n "$gltests_LIBOBJS"; then
17947 # Remove the extension.
17948 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17949 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17950 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17951 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17954 gltests_LIBOBJS
=$gltests_libobjs
17956 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17960 : "${CONFIG_STATUS=./config.status}"
17962 ac_clean_files_save
=$ac_clean_files
17963 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17965 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17967 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17969 # Generated by $as_me.
17970 # Run this file to recreate the current configuration.
17971 # Compiler output produced by configure, useful for debugging
17972 # configure, is in config.log if it exists.
17975 ac_cs_recheck=false
17978 SHELL=\${CONFIG_SHELL-$SHELL}
17981 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17982 ## -------------------- ##
17983 ## M4sh Initialization. ##
17984 ## -------------------- ##
17986 # Be more Bourne compatible
17987 DUALCASE
=1; export DUALCASE
# for MKS sh
17988 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17992 # is contrary to our usage. Disable this feature.
17993 alias -g '${1+"$@"}'='"$@"'
17994 setopt NO_GLOB_SUBST
17996 case `(set -o) 2>/dev/null` in #(
18008 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18009 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18012 # Prefer a ksh shell builtin over an external printf program on Solaris,
18013 # but without wasting forks for bash or zsh.
18014 if test -z "$BASH_VERSION$ZSH_VERSION" \
18015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18016 as_echo='print
-r --'
18017 as_echo_n='print
-rn --'
18018 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18019 as_echo='printf %s
\n'
18020 as_echo_n='printf %s
'
18022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18023 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18024 as_echo_n='/usr
/ucb
/echo -n'
18026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18027 as_echo_n_body='eval
18031 expr "X$arg" : "X\\(.*\\)$as_nl";
18032 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18034 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18036 export as_echo_n_body
18037 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18039 export as_echo_body
18040 as_echo='sh
-c $as_echo_body as_echo
'
18043 # The user is always right.
18044 if test "${PATH_SEPARATOR+set}" != set; then
18046 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18047 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18054 # We need space, tab and new line, in precisely that order. Quoting is
18055 # there to prevent editors from complaining about space-tab.
18056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18057 # splitting by setting IFS to empty value.)
18060 # Find who we are. Look in the path if we contain no directory separator.
18063 *[\\/]* ) as_myself=$0 ;;
18064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18065 for as_dir in $PATH
18068 test -z "$as_dir" && as_dir=.
18069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18075 # We did not find ourselves, most probably we were run as `sh COMMAND'
18076 # in which case we are not to be found in the path.
18077 if test "x$as_myself" = x
; then
18080 if test ! -f "$as_myself"; then
18081 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18085 # Unset variables that we do not need and which cause bugs (e.g. in
18086 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18087 # suppresses any "Segmentation fault" message there. '((' could
18088 # trigger a bug in pdksh 5.2.14.
18089 for as_var
in BASH_ENV ENV MAIL MAILPATH
18090 do eval test x\
${$as_var+set} = xset \
18091 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18104 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18107 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18108 # ----------------------------------------
18109 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18110 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18111 # script with STATUS, using 1 if that was 0.
18114 as_status
=$1; test $as_status -eq 0 && as_status
=1
18116 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18117 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18119 $as_echo "$as_me: error: $2" >&2
18120 as_fn_exit
$as_status
18124 # as_fn_set_status STATUS
18125 # -----------------------
18126 # Set $? to STATUS, without forking.
18127 as_fn_set_status
()
18130 } # as_fn_set_status
18132 # as_fn_exit STATUS
18133 # -----------------
18134 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18138 as_fn_set_status
$1
18144 # Portably unset VAR.
18147 { eval $1=; unset $1;}
18149 as_unset
=as_fn_unset
18150 # as_fn_append VAR VALUE
18151 # ----------------------
18152 # Append the text in VALUE to the end of the definition contained in VAR. Take
18153 # advantage of any shell optimizations that allow amortized linear growth over
18154 # repeated appends, instead of the typical quadratic growth present in naive
18156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18157 eval 'as_fn_append ()
18168 # as_fn_arith ARG...
18169 # ------------------
18170 # Perform arithmetic evaluation on the ARGs, and store the result in the
18171 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18172 # must be portable across $(()) and expr.
18173 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18174 eval 'as_fn_arith ()
18181 as_val
=`expr "$@" || test $? -eq 1`
18186 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18187 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18193 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18194 as_basename
=basename
18199 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18205 as_me
=`$as_basename -- "$0" ||
18206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18207 X"$0" : 'X\(//\)$' \| \
18208 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18210 sed '/^.*\/\([^/][^/]*\)\/*$/{
18224 # Avoid depending upon Character Ranges.
18225 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18226 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18227 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18228 as_cr_digits
='0123456789'
18229 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18231 ECHO_C
= ECHO_N
= ECHO_T
=
18232 case `echo -n x` in #(((((
18234 case `echo 'xy\c'` in
18235 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18237 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18244 rm -f conf$$ conf$$.exe conf$$.
file
18245 if test -d conf$$.dir
; then
18246 rm -f conf$$.dir
/conf$$.
file
18249 mkdir conf$$.dir
2>/dev
/null
18251 if (echo >conf$$.
file) 2>/dev
/null
; then
18252 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18254 # ... but there are two gotchas:
18255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18257 # In both cases, we have to default to `cp -p'.
18258 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18260 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18268 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18269 rmdir conf$$.dir
2>/dev
/null
18274 # Create "$as_dir" as a directory, including parents if necessary.
18279 -*) as_dir
=.
/$as_dir;;
18281 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18285 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18286 *) as_qdir
=$as_dir;;
18288 as_dirs
="'$as_qdir' $as_dirs"
18289 as_dir
=`$as_dirname -- "$as_dir" ||
18290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18291 X"$as_dir" : 'X\(//\)[^/]' \| \
18292 X"$as_dir" : 'X\(//\)$' \| \
18293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18294 $as_echo X"$as_dir" |
18295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299 /^X\(\/\/\)[^/].*/{
18312 test -d "$as_dir" && break
18314 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18315 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18319 if mkdir
-p .
2>/dev
/null
; then
18320 as_mkdir_p
='mkdir -p "$as_dir"'
18322 test -d .
/-p && rmdir .
/-p
18326 if test -x / >/dev
/null
2>&1; then
18327 as_test_x
='test -x'
18329 if ls -dL / >/dev
/null
2>&1; then
18336 if test -d "$1"; then
18342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18343 ???[sx]*):;;*)false;;esac;fi
18347 as_executable_p
=$as_test_x
18349 # Sed expression to map a string onto a valid CPP name.
18350 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18352 # Sed expression to map a string onto a valid variable name.
18353 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18357 ## ----------------------------------- ##
18358 ## Main body of $CONFIG_STATUS script. ##
18359 ## ----------------------------------- ##
18361 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18364 # Save the log message, to keep $0 and so on meaningful, and to
18365 # report actual input values of CONFIG_FILES etc. instead of their
18366 # values after options handling.
18368 This file was extended by emacs $as_me 24.0.50, which was
18369 generated by GNU Autoconf 2.68. Invocation command line was
18371 CONFIG_FILES = $CONFIG_FILES
18372 CONFIG_HEADERS = $CONFIG_HEADERS
18373 CONFIG_LINKS = $CONFIG_LINKS
18374 CONFIG_COMMANDS = $CONFIG_COMMANDS
18377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18382 case $ac_config_files in *"
18383 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18386 case $ac_config_headers in *"
18387 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 # Files that config.status was made for.
18393 config_files="$ac_config_files"
18394 config_headers="$ac_config_headers"
18395 config_commands="$ac_config_commands"
18399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18401 \`$as_me' instantiates files and other configuration actions
18402 from templates according to the current configuration. Unless the files
18403 and actions are specified as TAGs, all are instantiated by default.
18405 Usage: $0 [OPTION]... [TAG]...
18407 -h, --help print this help, then exit
18408 -V, --version print version number and configuration settings, then exit
18409 --config print configuration, then exit
18410 -q, --quiet, --silent
18411 do not print progress messages
18412 -d, --debug don't remove temporary files
18413 --recheck update $as_me by reconfiguring in the same conditions
18414 --file=FILE[:TEMPLATE]
18415 instantiate the configuration file FILE
18416 --header=FILE[:TEMPLATE]
18417 instantiate the configuration header FILE
18419 Configuration files:
18422 Configuration headers:
18425 Configuration commands:
18428 Report bugs to the package provider."
18431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18432 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18434 emacs config.status 24.0.50
18435 configured by $0, generated by GNU Autoconf 2.68,
18436 with options \\"\$ac_cs_config\\"
18438 Copyright (C) 2010 Free Software Foundation, Inc.
18439 This config.status script is free software; the Free Software Foundation
18440 gives unlimited permission to copy, distribute and modify it."
18447 test -n "\$AWK" || AWK=awk
18450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18451 # The default lists apply if the user does not specify any file.
18457 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18458 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18462 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18474 # Handling of the options.
18475 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18477 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18478 $as_echo "$ac_cs_version"; exit ;;
18479 --config |
--confi |
--conf |
--con |
--co |
--c )
18480 $as_echo "$ac_cs_config"; exit ;;
18481 --debug |
--debu |
--deb |
--de |
--d |
-d )
18483 --file |
--fil |
--fi |
--f )
18486 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18487 '') as_fn_error $?
"missing file argument" ;;
18489 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18490 ac_need_defaults
=false
;;
18491 --header |
--heade |
--head |
--hea )
18494 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18496 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18497 ac_need_defaults
=false
;;
18499 # Conflict between --help and --header
18500 as_fn_error $?
"ambiguous option: \`$1'
18501 Try \`$0 --help' for more information.";;
18502 --help |
--hel |
-h )
18503 $as_echo "$ac_cs_usage"; exit ;;
18504 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18505 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18508 # This is an error.
18509 -*) as_fn_error $?
"unrecognized option: \`$1'
18510 Try \`$0 --help' for more information." ;;
18512 *) as_fn_append ac_config_targets
" $1"
18513 ac_need_defaults
=false
;;
18519 ac_configure_extra_args
=
18521 if $ac_cs_silent; then
18523 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18528 if \$ac_cs_recheck; then
18529 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18532 CONFIG_SHELL='$SHELL'
18533 export CONFIG_SHELL
18538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18543 ## Running $as_me. ##
18549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18553 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18554 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18560 # Handling of arguments.
18561 for ac_config_target
in $ac_config_targets
18563 case $ac_config_target in
18564 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18565 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18566 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18567 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18568 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
18569 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18570 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
18571 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
18572 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
18573 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
18574 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18575 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18576 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18577 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18578 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
18579 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18581 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18586 # If the user did not use the arguments to specify the items to instantiate,
18587 # then the envvar interface is used. Set only those that are not.
18588 # We use the long form for the default assignment because of an extremely
18589 # bizarre bug on SunOS 4.1.3.
18590 if $ac_need_defaults; then
18591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18596 # Have a temporary directory for convenience. Make it in the build tree
18597 # simply because there is no reason against having it here, and in addition,
18598 # creating and moving files from /tmp can sometimes cause problems.
18599 # Hook for its removal unless debugging.
18600 # Note that there is a small window in which the directory will not be cleaned:
18601 # after its creation but before its name has been assigned to `$tmp'.
18605 trap 'exit_status=$?
18606 : "${ac_tmp:=$tmp}"
18607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18609 trap 'as_fn_exit 1' 1 2 13 15
18611 # Create a (secure) tmp directory for tmp files.
18614 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18618 tmp
=.
/conf$$
-$RANDOM
18619 (umask 077 && mkdir
"$tmp")
18620 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18623 # Set up the scripts for CONFIG_FILES section.
18624 # No need to generate them if there are no CONFIG_FILES.
18625 # This happens for instance with `./config.status config.h'.
18626 if test -n "$CONFIG_FILES"; then
18628 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18629 ac_cs_awk_getline
=:
18630 ac_cs_awk_pipe_init
=
18631 ac_cs_awk_read_file
='
18632 while ((getline aline < (F[key])) > 0)
18635 ac_cs_awk_pipe_fini
=
18637 ac_cs_awk_getline
=false
18638 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18639 ac_cs_awk_read_file
='
18641 print "cat " F[key] " &&"
18642 '$ac_cs_awk_pipe_init
18643 # The final `:' finishes the AND list.
18644 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18646 ac_cr
=`echo X | tr X '\015'`
18647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18648 # But we know of no other shell where ac_cr would be empty at this
18649 # point, so we can use a bashism as a fallback.
18650 if test "x$ac_cr" = x
; then
18651 eval ac_cr
=\$
\'\\r
\'
18653 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18657 ac_cs_awk_cr
=$ac_cr
18660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18663 # Create commands to substitute file output variables.
18665 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18666 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18667 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18670 } >conf$
$files.sh
&&
18671 . .
/conf$
$files.sh ||
18672 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18673 rm -f conf$
$files.sh
18676 echo "cat >conf$$subs.awk <<_ACEOF" &&
18677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18679 } >conf$$subs.sh ||
18680 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18683 for ac_last_try in false false false false false :; do
18684 . ./conf$$subs.sh ||
18685 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18687 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18688 if test $ac_delim_n = $ac_delim_num; then
18690 elif $ac_last_try; then
18691 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18693 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18696 rm -f conf$$subs.sh
18698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18703 s/^/S["/; s
/!.
*/"]=/
18713 s/\(.\{148\}\)..*/\1/
18715 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18720 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18727 s/\(.\{148\}\)..*/\1/
18729 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18733 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18738 ' <conf$$subs.awk | sed '
18743 ' >>$CONFIG_STATUS || ac_write_fail=1
18744 rm -f conf$$subs.awk
18745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18747 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18748 for (key in S) S_is_set[key] = 1
18750 \$ac_cs_awk_pipe_init
18754 nfields = split(line, field, "@
")
18756 len = length(field[1])
18757 for (i = 2; i < nfields; i++) {
18759 keylen = length(key)
18760 if (S_is_set[key]) {
18762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18763 len += length(value) + length(field[++i])
18768 if (nfields == 3 && !substed) {
18770 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18771 \$ac_cs_awk_read_file
18777 \$ac_cs_awk_pipe_fini
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18782 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18785 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18786 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18789 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18790 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18791 # trailing colons and then remove the whole line if VPATH becomes empty
18792 # (actually we leave an empty line to preserve line numbers).
18793 if test "x
$srcdir" = x.; then
18794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813 fi # test -n "$CONFIG_FILES"
18815 # Set up the scripts for CONFIG_HEADERS section.
18816 # No need to generate them if there are no CONFIG_HEADERS.
18817 # This happens for instance with `./config.status Makefile'.
18818 if test -n "$CONFIG_HEADERS"; then
18819 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18823 # Transform confdefs.h into an awk script `defines.awk', embedded as
18824 # here-document in config.status, that substitutes the proper values into
18825 # config.h.in to produce config.h.
18827 # Create a delimiter string that does not exist in confdefs.h, to ease
18828 # handling of long lines.
18830 for ac_last_try in false false :; do
18831 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18832 if test -z "$ac_tt"; then
18834 elif $ac_last_try; then
18835 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18837 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18841 # For the awk script, D is an array of macro values keyed by name,
18842 # likewise P contains macro parameters if any. Preserve backslash
18843 # newline sequences.
18845 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18847 s/.\{148\}/&'"$ac_delim"'/g
18850 s/^[ ]*#[ ]*define[ ][ ]*/ /
18857 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18859 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18864 D["\
1"]=" \
3\\\\\\n
"\\/p
18866 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18871 s/.\{148\}/&'"$ac_delim"'/g
18876 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18879 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18881 ' <confdefs.h | sed '
18882 s/'"$ac_delim"'/"\\\
18883 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886 for (key in D) D_is_set[key] = 1
18889 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18891 split(line, arg, " ")
18892 if (arg[1] == "#") {
18896 defundef
= substr
(arg
[1], 2)
18899 split(mac1
, mac2
, "(") #)
18901 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18902 if (D_is_set
[macro
]) {
18903 # Preserve the white space surrounding the "#".
18904 print prefix
"define", macro P
[macro
] D
[macro
]
18907 # Replace #undef with comments. This is necessary, for example,
18908 # in the case of _POSIX_SOURCE, which is predefined and required
18909 # on some systems where configure will not decide to define it.
18910 if (defundef
== "undef") {
18911 print
"/*", prefix defundef
, macro
, "*/"
18919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18920 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18921 fi # test -n "$CONFIG_HEADERS"
18924 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18929 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18931 case $ac_mode$ac_tag in
18933 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18934 :[FH
]-) ac_tag
=-:-;;
18935 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18952 -) ac_f
="$ac_tmp/stdin";;
18953 *) # Look for the file first in the build tree, then in the source tree
18954 # (if the path is not absolute). The absolute path cannot be DOS-style,
18955 # because $ac_f cannot contain `:'.
18959 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18961 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18963 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18964 as_fn_append ac_file_inputs
" '$ac_f'"
18967 # Let's still pretend it is `configure' which instantiates (i.e., don't
18968 # use $as_me), people would be surprised to read:
18969 # /* config.h. Generated by config.status. */
18970 configure_input
='Generated from '`
18971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18973 if test x
"$ac_file" != x-
; then
18974 configure_input
="$ac_file. $configure_input"
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18976 $as_echo "$as_me: creating $ac_file" >&6;}
18978 # Neutralize special characters interpreted by sed in replacement strings.
18979 case $configure_input in #(
18980 *\
&* |
*\|
* |
*\\* )
18981 ac_sed_conf_input
=`$as_echo "$configure_input" |
18982 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18983 *) ac_sed_conf_input
=$configure_input;;
18987 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18988 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18993 ac_dir
=`$as_dirname -- "$ac_file" ||
18994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18995 X"$ac_file" : 'X\(//\)[^/]' \| \
18996 X"$ac_file" : 'X\(//\)$' \| \
18997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18998 $as_echo X"$ac_file" |
18999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19003 /^X\(\/\/\)[^/].*/{
19016 as_dir
="$ac_dir"; as_fn_mkdir_p
19020 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19022 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19023 # A ".." for each directory in $ac_dir_suffix.
19024 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19025 case $ac_top_builddir_sub in
19026 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19027 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19030 ac_abs_top_builddir
=$ac_pwd
19031 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19032 # for backward compatibility:
19033 ac_top_builddir
=$ac_top_build_prefix
19036 .
) # We are building in place.
19038 ac_top_srcdir
=$ac_top_builddir_sub
19039 ac_abs_top_srcdir
=$ac_pwd ;;
19040 [\\/]* | ?
:[\\/]* ) # Absolute name.
19041 ac_srcdir
=$srcdir$ac_dir_suffix;
19042 ac_top_srcdir
=$srcdir
19043 ac_abs_top_srcdir
=$srcdir ;;
19044 *) # Relative name.
19045 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19046 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19047 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19049 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19059 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19060 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19062 ac_MKDIR_P
=$MKDIR_P
19064 [\\/$
]* | ?
:[\\/]* ) ;;
19065 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19070 # If the template does not know about datarootdir, expand it.
19071 # FIXME: This hack should be removed a few years after 2.60.
19072 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19083 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19084 *datarootdir
*) ac_datarootdir_seen
=yes;;
19085 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19087 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19090 ac_datarootdir_hack='
19091 s&@datadir@&$datadir&g
19092 s&@docdir@&$docdir&g
19093 s&@infodir@&$infodir&g
19094 s&@localedir@&$localedir&g
19095 s&@mandir@&$mandir&g
19096 s&\\\${datarootdir}&$datarootdir&g' ;;
19100 # Neutralize VPATH when `$srcdir' = `.'.
19101 # Shell code in configure.ac might set extrasub.
19102 # FIXME: do we really want to maintain this feature?
19103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19104 ac_sed_extra="$ac_vpsub
19107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19109 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19110 s|@configure_input@|
$ac_sed_conf_input|
;t t
19111 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19112 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19113 s
&@srcdir@
&$ac_srcdir&;t t
19114 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19115 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19116 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19117 s
&@builddir@
&$ac_builddir&;t t
19118 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19119 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19120 s
&@INSTALL@
&$ac_INSTALL&;t t
19121 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19122 $ac_datarootdir_hack
19124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19125 if $ac_cs_awk_getline; then
19126 $AWK -f "$ac_tmp/subs.
awk"
19128 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19130 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19135 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19137 which seems to be undefined. Please make sure it is defined" >&5
19138 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19139 which seems to be undefined. Please make sure it is defined" >&2;}
19141 rm -f "$ac_tmp/stdin"
19143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19152 if test x"$ac_file" != x-; then
19154 $as_echo "/* $configure_input */" \
19155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19156 } >"$ac_tmp/config.h" \
19157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19160 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19163 mv "$ac_tmp/config.h" "$ac_file" \
19164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19167 $as_echo "/* $configure_input */" \
19168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19169 || as_fn_error $? "could not create -" "$LINENO" 5
19171 # Compute "$ac_file"'s index
in $config_headers.
19174 for _am_header
in $config_headers :; do
19175 case $_am_header in
19176 $_am_arg |
$_am_arg:* )
19179 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19182 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19183 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19184 X"$_am_arg" : 'X\(//\)[^/]' \| \
19185 X"$_am_arg" : 'X\(//\)$' \| \
19186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19187 $as_echo X"$_am_arg" |
19188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19192 /^X\(\/\/\)[^/].*/{
19204 s/.*/./; q'`/stamp-h
$_am_stamp_count
19207 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19208 $as_echo "$as_me: executing $ac_file commands" >&6;}
19213 case $ac_file$ac_mode in
19214 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19215 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19216 # are listed without --file. Let's play safe and only enable the eval
19217 # if we detect the quoting.
19218 case $CONFIG_FILES in
19219 *\'*) eval set x
"$CONFIG_FILES" ;;
19220 *) set x
$CONFIG_FILES ;;
19225 # Strip MF so we end up with the name of the file.
19226 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19227 # Check whether this is an Automake generated Makefile or not.
19228 # We used to match only the files named `Makefile.in', but
19229 # some people rename them; so instead we look at the file content.
19230 # Grep'ing the first line is not enough: some people post-process
19231 # each Makefile.in and add a new line on top of each file to say so.
19232 # Grep'ing the whole file is not good either: AIX grep has a line
19233 # limit of 2048, but all sed's we know have understand at least 4000.
19234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19235 dirpart
=`$as_dirname -- "$mf" ||
19236 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19237 X"$mf" : 'X\(//\)[^/]' \| \
19238 X"$mf" : 'X\(//\)$' \| \
19239 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19245 /^X\(\/\/\)[^/].*/{
19261 # Extract the definition of DEPDIR, am__include, and am__quote
19262 # from the Makefile without running `make'.
19263 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19264 test -z "$DEPDIR" && continue
19265 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19266 test -z "am__include" && continue
19267 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19268 # When using ansi2knr, U may be empty or an underscore; expand it
19269 U
=`sed -n 's/^U = //p' < "$mf"`
19270 # Find all dependency output files, they are included files with
19271 # $(DEPDIR) in their names. We invoke sed twice because it is the
19272 # simplest approach to changing $(DEPDIR) to its actual value in the
19274 for file in `sed -n "
19275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19277 # Make sure the directory exists.
19278 test -f "$dirpart/$file" && continue
19279 fdir
=`$as_dirname -- "$file" ||
19280 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281 X"$file" : 'X\(//\)[^/]' \| \
19282 X"$file" : 'X\(//\)$' \| \
19283 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19284 $as_echo X"$file" |
19285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19289 /^X\(\/\/\)[^/].*/{
19302 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19303 # echo "creating $dirpart/$file"
19304 echo '# dummy' > "$dirpart/$file"
19311 ### Make the necessary directories, if they don't exist.
19312 for dir
in etc lisp
; do
19313 test -d ${dir} || mkdir
${dir}
19316 echo creating src
/epaths.h
19317 ${MAKE-make} epaths-force
19319 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19320 echo creating src
/.gdbinit
19321 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19332 ac_clean_files
=$ac_clean_files_save
19334 test $ac_write_fail = 0 ||
19335 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19338 # configure is writing to config.log, and then calls config.status.
19339 # config.status does its own redirection, appending to config.log.
19340 # Unfortunately, on DOS this fails, as config.log is still kept open
19341 # by configure, so config.status won't be able to write to it; its
19342 # output is simply discarded. So we exec the FD to /dev/null,
19343 # effectively closing config.log, so it can be properly (re)opened and
19344 # appended to by config.status. When coming back to configure, we
19345 # need to make the FD available again.
19346 if test "$no_create" != yes; then
19348 ac_config_status_args
=
19349 test "$silent" = yes &&
19350 ac_config_status_args
="$ac_config_status_args --quiet"
19352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19355 # would make configure fail if this is the last instruction.
19356 $ac_cs_success || as_fn_exit
1
19358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}