2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
599 ac_subst_vars
='gltests_LTLIBOBJS
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
677 APPLE_UNIVERSAL_BUILD
685 HAVE_DECL_LOCALTIME_R
695 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
699 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
701 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
702 UNISTD_H_HAVE_WINSOCK2_H
721 REPLACE_GETDOMAINNAME
731 HAVE_DECL_GETUSERSHELL
732 HAVE_DECL_GETPAGESIZE
734 HAVE_DECL_GETDOMAINNAME
769 GNULIB_UNISTD_H_SIGPIPE
770 GNULIB_UNISTD_H_GETOPT
806 GL_COND_LIBTOOL_FALSE
859 LD_SWITCH_X_SITE_AUX_RPATH
921 INSTALL_STRIP_PROGRAM
963 program_transform_name
974 ac_subst_files
='deps_frag
977 enable_option_checking
999 with_toolkit_scroll_bars
1010 with_pkg_config_prog
1014 enable_ns_self_contained
1016 enable_maintainer_mode
1017 enable_locallisppath
1019 enable_use_lisp_union_type
1022 enable_dependency_tracking
1026 ac_precious_vars
='build_alias
1038 # Initialize some variables set by options.
1040 ac_init_version
=false
1041 ac_unrecognized_opts
=
1042 ac_unrecognized_sep
=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file
=/dev
/null
1052 program_transform_name
=s
,x
,x
,
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir
='${exec_prefix}/bin'
1067 sbindir
='${exec_prefix}/sbin'
1068 libexecdir
='${exec_prefix}/libexec'
1069 datarootdir
='${prefix}/share'
1070 datadir
='${datarootdir}'
1071 sysconfdir
='${prefix}/etc'
1072 sharedstatedir
='${prefix}/com'
1073 localstatedir
='${prefix}/var'
1074 includedir
='${prefix}/include'
1075 oldincludedir
='/usr/include'
1076 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1077 infodir
='${datarootdir}/info'
1082 libdir
='${exec_prefix}/lib'
1083 localedir
='${datarootdir}/locale'
1084 mandir
='${datarootdir}/man'
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\
$ac_option
1098 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103 # Accept the important Cygnus configure options, so we can diagnose typos.
1105 case $ac_dashdash$ac_option in
1109 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1111 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1112 bindir
=$ac_optarg ;;
1114 -build |
--build |
--buil |
--bui |
--bu)
1115 ac_prev
=build_alias
;;
1116 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1117 build_alias
=$ac_optarg ;;
1119 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1120 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1121 ac_prev
=cache_file
;;
1122 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1123 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1124 cache_file
=$ac_optarg ;;
1126 --config-cache |
-C)
1127 cache_file
=config.cache
;;
1129 -datadir |
--datadir |
--datadi |
--datad)
1131 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1132 datadir
=$ac_optarg ;;
1134 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1135 |
--dataroo |
--dataro |
--datar)
1136 ac_prev
=datarootdir
;;
1137 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1138 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1139 datarootdir
=$ac_optarg ;;
1141 -disable-* |
--disable-*)
1142 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid feature name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_
$ac_useropt"
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval enable_
$ac_useropt=no
;;
1157 -docdir |
--docdir |
--docdi |
--doc |
--do)
1159 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1160 docdir
=$ac_optarg ;;
1162 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1164 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1165 dvidir
=$ac_optarg ;;
1167 -enable-* |
--enable-*)
1168 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid feature name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "enable_
$ac_useropt"
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval enable_
$ac_useropt=\
$ac_optarg ;;
1183 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1184 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1185 |
--exec |
--exe |
--ex)
1186 ac_prev
=exec_prefix
;;
1187 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1188 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1189 |
--exec=* |
--exe=* |
--ex=*)
1190 exec_prefix
=$ac_optarg ;;
1192 -gas |
--gas |
--ga |
--g)
1193 # Obsolete; use --with-gas.
1196 -help |
--help |
--hel |
--he |
-h)
1197 ac_init_help
=long
;;
1198 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1199 ac_init_help
=recursive
;;
1200 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1201 ac_init_help
=short
;;
1203 -host |
--host |
--hos |
--ho)
1204 ac_prev
=host_alias
;;
1205 -host=* |
--host=* |
--hos=* |
--ho=*)
1206 host_alias
=$ac_optarg ;;
1208 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1210 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1212 htmldir
=$ac_optarg ;;
1214 -includedir |
--includedir |
--includedi |
--included |
--include \
1215 |
--includ |
--inclu |
--incl |
--inc)
1216 ac_prev
=includedir
;;
1217 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1218 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1219 includedir
=$ac_optarg ;;
1221 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1223 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1224 infodir
=$ac_optarg ;;
1226 -libdir |
--libdir |
--libdi |
--libd)
1228 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1229 libdir
=$ac_optarg ;;
1231 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1232 |
--libexe |
--libex |
--libe)
1233 ac_prev
=libexecdir
;;
1234 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1235 |
--libexe=* |
--libex=* |
--libe=*)
1236 libexecdir
=$ac_optarg ;;
1238 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1239 ac_prev
=localedir
;;
1240 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1241 localedir
=$ac_optarg ;;
1243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1244 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1245 ac_prev
=localstatedir
;;
1246 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1247 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1248 localstatedir
=$ac_optarg ;;
1250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1253 mandir
=$ac_optarg ;;
1255 -nfp |
--nfp |
--nf)
1256 # Obsolete; use --without-fp.
1259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1260 |
--no-cr |
--no-c |
-n)
1263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1269 |
--oldin |
--oldi |
--old |
--ol |
--o)
1270 ac_prev
=oldincludedir
;;
1271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1274 oldincludedir
=$ac_optarg ;;
1276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1279 prefix
=$ac_optarg ;;
1281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1282 |
--program-pre |
--program-pr |
--program-p)
1283 ac_prev
=program_prefix
;;
1284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1286 program_prefix
=$ac_optarg ;;
1288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1289 |
--program-suf |
--program-su |
--program-s)
1290 ac_prev
=program_suffix
;;
1291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1293 program_suffix
=$ac_optarg ;;
1295 -program-transform-name |
--program-transform-name \
1296 |
--program-transform-nam |
--program-transform-na \
1297 |
--program-transform-n |
--program-transform- \
1298 |
--program-transform |
--program-transfor \
1299 |
--program-transfo |
--program-transf \
1300 |
--program-trans |
--program-tran \
1301 |
--progr-tra |
--program-tr |
--program-t)
1302 ac_prev
=program_transform_name
;;
1303 -program-transform-name=* |
--program-transform-name=* \
1304 |
--program-transform-nam=* |
--program-transform-na=* \
1305 |
--program-transform-n=* |
--program-transform-=* \
1306 |
--program-transform=* |
--program-transfor=* \
1307 |
--program-transfo=* |
--program-transf=* \
1308 |
--program-trans=* |
--program-tran=* \
1309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1310 program_transform_name
=$ac_optarg ;;
1312 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1314 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1315 pdfdir
=$ac_optarg ;;
1317 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1319 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1323 |
-silent |
--silent |
--silen |
--sile |
--sil)
1326 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1328 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1330 sbindir
=$ac_optarg ;;
1332 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1333 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1334 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1336 ac_prev
=sharedstatedir
;;
1337 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1338 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1339 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1341 sharedstatedir
=$ac_optarg ;;
1343 -site |
--site |
--sit)
1345 -site=* |
--site=* |
--sit=*)
1348 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1350 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1351 srcdir
=$ac_optarg ;;
1353 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1354 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1355 ac_prev
=sysconfdir
;;
1356 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1357 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1358 sysconfdir
=$ac_optarg ;;
1360 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1361 ac_prev
=target_alias
;;
1362 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1363 target_alias
=$ac_optarg ;;
1365 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1368 -version |
--version |
--versio |
--versi |
--vers |
-V)
1369 ac_init_version
=: ;;
1372 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1375 as_fn_error $?
"invalid package name: $ac_useropt"
1376 ac_useropt_orig
=$ac_useropt
1377 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383 ac_unrecognized_sep
=', ';;
1385 eval with_
$ac_useropt=\
$ac_optarg ;;
1387 -without-* |
--without-*)
1388 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1391 as_fn_error $?
"invalid package name: $ac_useropt"
1392 ac_useropt_orig
=$ac_useropt
1393 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1398 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399 ac_unrecognized_sep
=', ';;
1401 eval with_
$ac_useropt=no
;;
1404 # Obsolete; use --with-x.
1407 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1408 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1409 ac_prev
=x_includes
;;
1410 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1411 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1412 x_includes
=$ac_optarg ;;
1414 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1415 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1416 ac_prev
=x_libraries
;;
1417 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1418 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1419 x_libraries
=$ac_optarg ;;
1421 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1422 Try \`$0 --help' for more information"
1426 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 case $ac_envvar in #(
1429 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1430 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1432 eval $ac_envvar=\
$ac_optarg
1433 export $ac_envvar ;;
1436 # FIXME: should be removed in autoconf 3.0.
1437 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1439 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1446 if test -n "$ac_prev"; then
1447 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1448 as_fn_error $?
"missing argument to $ac_option"
1451 if test -n "$ac_unrecognized_opts"; then
1452 case $enable_option_checking in
1454 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459 # Check all directory arguments for consistency.
1460 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val
=\$
$ac_var
1466 # Remove trailing slashes.
1469 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\
$ac_val;;
1472 # Be sure to have absolute directory names.
1474 [\\/$
]* | ?
:[\\/]* ) continue;;
1475 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1477 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target
=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x
; then
1489 if test "x$build_alias" = x
; then
1490 cross_compiling
=maybe
1491 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1492 If a cross compiler is detected then cross compile mode will be used" >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1499 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1501 test "$silent" = yes && exec 6>/dev
/null
1504 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di
=`ls -di .` &&
1506 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1507 as_fn_error $?
"working directory cannot be determined"
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509 as_fn_error $?
"pwd does not report name of working directory"
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514 ac_srcdir_defaulted
=yes
1515 # Try the directory containing this script, then the parent directory.
1516 ac_confdir
=`$as_dirname -- "$as_myself" ||
1517 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518 X"$as_myself" : 'X\(//\)[^/]' \| \
1519 X"$as_myself" : 'X\(//\)$' \| \
1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521 $as_echo X"$as_myself" |
1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1544 ac_srcdir_defaulted
=no
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1548 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1550 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1562 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1564 for ac_var
in $ac_precious_vars; do
1565 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1567 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1572 # Report the --help message.
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1578 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1585 Defaults for the options are specified in brackets.
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking ...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1609 For better control, use the options below.
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --libdir=DIR object code libraries [EPREFIX/lib]
1619 --includedir=DIR C header files [PREFIX/include]
1620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1621 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1622 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1623 --infodir=DIR info documentation [DATAROOTDIR/info]
1624 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1625 --mandir=DIR man documentation [DATAROOTDIR/man]
1626 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1627 --htmldir=DIR html documentation [DOCDIR]
1628 --dvidir=DIR dvi documentation [DOCDIR]
1629 --pdfdir=DIR pdf documentation [DOCDIR]
1630 --psdir=DIR ps documentation [DOCDIR]
1636 --program-prefix=PREFIX prepend PREFIX to installed program names
1637 --program-suffix=SUFFIX append SUFFIX to installed program names
1638 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1641 --x-includes=DIR X include files are
in DIR
1642 --x-libraries=DIR X library files are
in DIR
1645 --build=BUILD configure
for building on BUILD
[guessed
]
1646 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1650 if test -n "$ac_init_help"; then
1651 case $ac_init_help in
1652 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1657 --disable-option-checking ignore unrecognized
--enable/--with options
1658 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1659 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1660 --disable-ns-self-contained
1661 disable self contained build under NeXTstep
1662 --enable-asserts compile code with asserts enabled
1663 --enable-maintainer-mode
1664 enable make rules and dependencies not useful
(and
1665 sometimes confusing
) to the casual installer
1666 --enable-locallisppath=PATH
1667 directories Emacs should search
for lisp files
1668 specific to this site
1669 --enable-checking[=LIST
]
1670 enable expensive run-time checks. With LIST
, enable
1671 only specific categories of checks. Categories are
:
1672 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1673 stringfreelist
, xmallocoverrun
, conslist
1674 --enable-use-lisp-union-type
1675 use a union
for the Lisp_Object data
type. This is
1676 only useful
for development
for catching certain
1678 --enable-profiling build emacs with profiling support. This might not
1679 work on all platforms
1680 --enable-autodepend automatically generate dependencies to .h-files.
1681 Requires GNU Make and Gcc. Enabled
if GNU Make and
1683 --disable-dependency-tracking speeds up one-time build
1684 --enable-dependency-tracking do not reject slow dependency extractors
1685 --disable-largefile omit support
for large files
1688 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1689 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1690 --without-pop don
't support POP mail retrieval with movemail
1691 --with-kerberos support Kerberos-authenticated POP
1692 --with-kerberos5 support Kerberos version 5 authenticated POP
1693 --with-hesiod support Hesiod to get the POP server host
1694 --with-mmdf support MMDF mailboxes
1695 --with-mail-unlink unlink, rather than empty, mail spool after reading
1696 --with-mailhost=HOSTNAME
1697 string giving default POP mail host
1698 --without-sound don't compile with sound support
1699 --without-sync-input process async input synchronously
1700 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1701 lucid or athena
, motif
, no
)
1702 --without-xpm don
't compile with XPM image support
1703 --without-jpeg don't compile with JPEG image support
1704 --without-tiff don
't compile with TIFF image support
1705 --without-gif don't compile with GIF image support
1706 --without-png don
't compile with PNG image support
1707 --without-rsvg don't compile with SVG image support
1708 --without-xml2 don
't compile with XML parsing support
1709 --without-imagemagick don't compile with ImageMagick image support
1710 --without-xft don
't use XFT for anti aliased fonts
1711 --without-libotf don't use libotf
for OpenType font support
1712 --without-m17n-flt don
't use m17n-flt for text shaping
1713 --without-toolkit-scroll-bars
1714 don't use Motif or Xaw3d scroll bars
1715 --without-xaw3d don
't use Xaw3d
1716 --without-xim don't use X11 XIM
1717 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1718 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1720 --without-dbus don't compile with D-Bus support
1721 --without-gconf don
't compile with GConf support
1722 --without-selinux don't compile with SELinux support
1723 --without-gnutls don
't use -lgnutls for SSL/TLS support
1724 --without-makeinfo don't require makeinfo
for building manuals
1725 --without-compress-info don
't compress the installed Info pages
1726 --with-pkg-config-prog=PATH
1727 path to pkg-config for finding GTK and librsvg
1728 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1729 /usr/lib, or /usr/lib64 on some platforms.
1730 --with-gameuser=USER user for shared game score files
1731 --with-gnustep-conf=PATH
1732 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1733 or /etc/GNUstep/GNUstep.conf
1734 --with-x use the X Window System
1736 Some influential environment variables:
1737 CC C compiler command
1738 CFLAGS C compiler flags
1739 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1740 nonstandard directory <lib dir>
1741 LIBS libraries to pass to the linker, e.g. -l<library>
1742 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1743 you have headers in a nonstandard directory <include dir>
1745 XMKMF Path to xmkmf, Makefile generator for X Window System
1747 Use these variables to override the choices made by `configure' or to
help
1748 it to
find libraries and programs with nonstandard names
/locations.
1750 Report bugs to the package provider.
1755 if test "$ac_init_help" = "recursive"; then
1756 # If there are subdirs, report their specific --help.
1757 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1758 test -d "$ac_dir" ||
1759 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1764 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1766 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1767 # A ".." for each directory in $ac_dir_suffix.
1768 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1769 case $ac_top_builddir_sub in
1770 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1771 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1774 ac_abs_top_builddir
=$ac_pwd
1775 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1776 # for backward compatibility:
1777 ac_top_builddir
=$ac_top_build_prefix
1780 .
) # We are building in place.
1782 ac_top_srcdir
=$ac_top_builddir_sub
1783 ac_abs_top_srcdir
=$ac_pwd ;;
1784 [\\/]* | ?
:[\\/]* ) # Absolute name.
1785 ac_srcdir
=$srcdir$ac_dir_suffix;
1786 ac_top_srcdir
=$srcdir
1787 ac_abs_top_srcdir
=$srcdir ;;
1789 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1790 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1791 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1793 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1795 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1796 # Check for guested configure.
1797 if test -f "$ac_srcdir/configure.gnu"; then
1799 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1800 elif test -f "$ac_srcdir/configure"; then
1802 $SHELL "$ac_srcdir/configure" --help=recursive
1804 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1806 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1810 test -n "$ac_init_help" && exit $ac_status
1811 if $ac_init_version; then
1813 emacs configure
24.0.50
1814 generated by GNU Autoconf
2.67
1816 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1817 This configure
script is free software
; the Free Software Foundation
1818 gives unlimited permission to copy
, distribute and modify it.
1823 ## ------------------------ ##
1824 ## Autoconf initialization. ##
1825 ## ------------------------ ##
1827 # ac_fn_c_try_compile LINENO
1828 # --------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_compile
()
1832 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1833 rm -f conftest.
$ac_objext
1834 if { { ac_try
="$ac_compile"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_c_try_compile
1865 # ac_fn_c_try_cpp LINENO
1866 # ----------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1874 *) ac_try_echo
=$ac_try;;
1876 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 if test -s conftest.err
; then
1881 grep -v '^ *+' conftest.err
>conftest.er1
1882 cat conftest.er1
>&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } > conftest.i
&& {
1887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.
$ac_ext >&5
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1898 as_fn_set_status
$ac_retval
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1907 ac_fn_c_check_header_mongrel
()
1909 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1910 if eval "test \"\${$3+set}\"" = set; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 $as_echo_n "(cached) " >&6
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1928 if ac_fn_c_try_compile
"$LINENO"; then :
1929 ac_header_compiler
=yes
1931 ac_header_compiler
=no
1933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1944 if ac_fn_c_try_cpp
"$LINENO"; then :
1945 ac_header_preproc
=yes
1947 ac_header_preproc
=no
1949 rm -f conftest.err conftest.i conftest.
$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1979 eval "$3=\$ac_header_compiler"
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 if { { ac_try
="$ac_link"
1998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007 { { case "(($ac_try" in
2008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2009 *) ac_try_echo
=$ac_try;;
2011 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_try") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; }; }; then :
2019 $as_echo "$as_me: program exited with status $ac_status" >&5
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.
$ac_ext >&5
2023 ac_retval
=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2027 as_fn_set_status
$ac_retval
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile
()
2037 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval "test \"\${$3+set}\"" = set; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile
"$LINENO"; then :
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2060 } # ac_fn_c_check_header_compile
2062 # ac_fn_c_try_link LINENO
2063 # -----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 rm -f conftest.
$ac_objext conftest
$ac_exeext
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>conftest.err
2078 if test -s conftest.err; then
2079 grep -v '^ *+' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 mv -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && {
2085 test -z "$ac_c_werror_flag" ||
2086 test ! -s conftest.err
2087 } && test -s conftest$ac_exeext && {
2088 test "$cross_compiling" = yes ||
2089 $as_test_x conftest$ac_exeext
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100 # interfere with the next link command; also delete a directory that is
2101 # left behind by Apple's compiler. We do this before executing the actions.
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_c_try_link
2108 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2109 # ---------------------------------------------
2110 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2112 ac_fn_c_check_decl ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2116 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2118 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2119 if eval "test \"\${$3+set}\"" = set; then :
2120 $as_echo_n "(cached) " >&6
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 #ifndef $as_decl_name
2130 (void) $as_decl_use;
2132 (void) $as_decl_name;
2140 if ac_fn_c_try_compile "$LINENO"; then :
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 } # ac_fn_c_check_decl
2154 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2155 # ----------------------------------------------
2156 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2157 ac_fn_c_check_header_preproc ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval "test \"\${$3+set}\"" = set; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 if ac_fn_c_try_cpp "$LINENO"; then :
2174 rm -f conftest.err conftest.i conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 } # ac_fn_c_check_header_preproc
2183 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2184 # ----------------------------------------------------
2185 # Tries to find if the field MEMBER exists in type AGGR, after including
2186 # INCLUDES, setting cache variable VAR accordingly.
2187 ac_fn_c_check_member ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2191 $as_echo_n "checking for $2.$3... " >&6; }
2192 if eval "test \"\${$4+set}\"" = set; then :
2193 $as_echo_n "(cached) " >&6
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2208 if ac_fn_c_try_compile "$LINENO"; then :
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2218 if (sizeof ac_aggr.$3)
2224 if ac_fn_c_try_compile "$LINENO"; then :
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 } # ac_fn_c_check_member
2240 # ac_fn_c_check_func LINENO FUNC VAR
2241 # ----------------------------------
2242 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2243 ac_fn_c_check_func ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval "test \"\${$3+set}\"" = set; then :
2249 $as_echo_n "(cached) " >&6
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2255 #define $2 innocuous_$2
2257 /* System header to define __stub macros and hopefully few prototypes,
2258 which can conflict with char $2 (); below.
2259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2260 <limits.h> exists even on freestanding compilers. */
2263 # include <limits.h>
2265 # include <assert.h>
2270 /* Override any GCC internal prototype to avoid an error.
2271 Use char because int might match the return type of a GCC
2272 builtin and then its argument prototype would still apply. */
2277 /* The GNU C library defines this for functions which it implements
2278 to always fail with ENOSYS. Some functions are actually named
2279 something starting with __ and the normal name is an alias. */
2280 #if defined __stub_$2 || defined __stub___$2
2292 if ac_fn_c_try_link "$LINENO"; then :
2297 rm -f core conftest.err conftest.$ac_objext \
2298 conftest$ac_exeext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_func
2307 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2308 # -------------------------------------------
2309 # Tests whether TYPE exists after having included INCLUDES, setting cache
2310 # variable VAR accordingly.
2311 ac_fn_c_check_type ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315 $as_echo_n "checking for $2... " >&6; }
2316 if eval "test \"\${$3+set}\"" = set; then :
2317 $as_echo_n "(cached) " >&6
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2345 if ac_fn_c_try_compile "$LINENO"; then :
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359 } # ac_fn_c_check_type
2360 cat >config.log <<_ACEOF
2361 This file contains any messages produced by compilers while
2362 running configure, to aid debugging if configure makes a mistake.
2364 It was created by emacs $as_me 24.0.50, which was
2365 generated by GNU Autoconf 2.67. Invocation command line was
2377 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2378 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2379 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2380 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2381 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2383 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2384 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2386 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2387 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2388 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2389 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2390 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2391 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2392 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 $as_echo "PATH: $as_dir"
2417 # Keep a trace of the command line.
2418 # Strip out --no-create and --no-recursion so they do not pile up.
2419 # Strip out --silent because we don't want to record it for future runs.
2420 # Also quote any args containing shell meta-characters.
2421 # Make two passes to allow for proper duplicate-argument suppression.
2425 ac_must_keep_next=false
2431 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2433 | -silent | --silent | --silen | --sile | --sil)
2436 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2439 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2441 as_fn_append ac_configure_args1 " '$ac_arg'"
2442 if test $ac_must_keep_next = true; then
2443 ac_must_keep_next=false # Got value, back to normal.
2446 *=* | --config-cache | -C | -disable-* | --disable-* \
2447 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2448 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2449 | -with-* | --with-* | -without-* | --without-* | --x)
2450 case "$ac_configure_args0 " in
2451 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2454 -* ) ac_must_keep_next=true ;;
2457 as_fn_append ac_configure_args " '$ac_arg'"
2462 { ac_configure_args0=; unset ac_configure_args0;}
2463 { ac_configure_args1=; unset ac_configure_args1;}
2465 # When interrupted or exit'd, cleanup temporary files, and complete
2466 # config.log. We remove comments because anyway the quotes in there
2467 # would cause problems or look ugly.
2468 # WARNING: Use '\'' to represent an apostrophe within the trap.
2469 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2470 trap 'exit_status=$?
2471 # Save into config.log some information that might help in debugging.
2475 $as_echo "## ---------------- ##
2476 ## Cache variables. ##
2477 ## ---------------- ##"
2479 # The following way of writing the cache mishandles newlines in values,
2481 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2482 eval ac_val=\$$ac_var
2486 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2487 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2490 _ | IFS | as_nl) ;; #(
2491 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2492 *) { eval $ac_var=; unset $ac_var;} ;;
2497 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2498 *${as_nl}ac_space=\ *)
2500 "s/'\''/'\''\\\\'\'''\''/g;
2501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2511 $as_echo "## ----------------- ##
2512 ## Output variables. ##
2513 ## ----------------- ##"
2515 for ac_var in $ac_subst_vars
2517 eval ac_val=\$$ac_var
2519 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521 $as_echo "$ac_var='\''$ac_val'\''"
2525 if test -n "$ac_subst_files"; then
2526 $as_echo "## ------------------- ##
2527 ## File substitutions. ##
2528 ## ------------------- ##"
2530 for ac_var in $ac_subst_files
2532 eval ac_val=\$$ac_var
2534 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 $as_echo "$ac_var='\''$ac_val'\''"
2541 if test -s confdefs.h; then
2542 $as_echo "## ----------- ##
2549 test "$ac_signal" != 0 &&
2550 $as_echo "$as_me: caught signal $ac_signal"
2551 $as_echo "$as_me: exit $exit_status"
2553 rm -f core *.core core.conftest.* &&
2554 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2557 for ac_signal in 1 2 13 15; do
2558 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2563 rm -f -r conftest* confdefs.h
2565 $as_echo "/* confdefs.h */" > confdefs.h
2567 # Predefined preprocessor variables.
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_NAME "$PACKAGE_NAME"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_STRING "$PACKAGE_STRING"
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_URL "$PACKAGE_URL"
2594 # Let the site file select an alternate cache file if it wants to.
2595 # Prefer an explicitly selected file to automatically selected ones.
2598 if test -n "$CONFIG_SITE"; then
2599 # We do not want a PATH search for config.site.
2600 case $CONFIG_SITE in #((
2601 -*) ac_site_file1=./$CONFIG_SITE;;
2602 */*) ac_site_file1=$CONFIG_SITE;;
2603 *) ac_site_file1=./$CONFIG_SITE;;
2605 elif test "x$prefix" != xNONE; then
2606 ac_site_file1=$prefix/share/config.site
2607 ac_site_file2=$prefix/etc/config.site
2609 ac_site_file1=$ac_default_prefix/share/config.site
2610 ac_site_file2=$ac_default_prefix/etc/config.site
2612 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2614 test "x$ac_site_file" = xNONE && continue
2615 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2617 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2618 sed 's/^/| /' "$ac_site_file" >&5
2620 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622 as_fn_error $? "failed to load site
script $ac_site_file
2623 See \
`config.log' for more details" "$LINENO" 5 ; }
2627 if test -r "$cache_file"; then
2628 # Some versions of bash will fail to source /dev/null (special files
2629 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2630 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2632 $as_echo "$as_me: loading cache $cache_file" >&6;}
2634 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2635 *) . "./$cache_file";;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2640 $as_echo "$as_me: creating cache $cache_file" >&6;}
2644 as_fn_append ac_header_list " stdlib.h"
2645 as_fn_append ac_header_list " unistd.h"
2646 as_fn_append ac_header_list " sys/param.h"
2647 gl_getopt_required=GNU
2648 as_fn_append ac_header_list " getopt.h"
2649 as_fn_append ac_func_list " alarm"
2650 as_fn_append ac_header_list " sys/time.h"
2651 as_fn_append ac_func_list " localtime_r"
2652 # Check that the precious variables saved in the cache have kept the same
2654 ac_cache_corrupted=false
2655 for ac_var in $ac_precious_vars; do
2656 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2657 eval ac_new_set=\$ac_env_${ac_var}_set
2658 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2659 eval ac_new_val=\$ac_env_${ac_var}_value
2660 case $ac_old_set,$ac_new_set in
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2663 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2667 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2671 if test "x$ac_old_val" != "x$ac_new_val"; then
2672 # differences in whitespace do not lead to failure.
2673 ac_old_val_w=`echo x
$ac_old_val`
2674 ac_new_val_w=`echo x
$ac_new_val`
2675 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2677 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2678 ac_cache_corrupted=:
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2681 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2682 eval $ac_var=\$ac_old_val
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2685 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2687 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 # Pass precious variables to config.status.
2691 if test "$ac_new_set" = set; then
2693 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2694 *) ac_arg=$ac_var=$ac_new_val ;;
2696 case " $ac_configure_args " in
2697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2698 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702 if $ac_cache_corrupted; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2706 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2707 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2709 ## -------------------- ##
2710 ## Main body of script. ##
2711 ## -------------------- ##
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2723 am__api_version='1.11'
2726 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2727 if test -f "$ac_dir/install-sh"; then
2729 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 elif test -f "$ac_dir/install.sh"; then
2733 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 elif test -f "$ac_dir/shtool"; then
2737 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 if test -z "$ac_aux_dir"; then
2742 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2745 # These three variables are undocumented and unsupported,
2746 # and are intended to be withdrawn in a future Autoconf release.
2747 # They can cause serious problems if a builder's source tree is in a directory
2748 # whose full name contains unusual characters.
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2754 # Find a good install program. We prefer a C program (faster),
2755 # so one script is as good as another. But avoid the broken or
2756 # incompatible versions:
2757 # SysV /etc/install, /usr/sbin/install
2758 # SunOS /usr/etc/install
2759 # IRIX /sbin/install
2761 # AmigaOS /C/install, which installs bootblocks on floppy discs
2762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2765 # OS/2's system install, which has a completely different semantic
2766 # ./install, which can be erroneously created by make from ./install.sh.
2767 # Reject install programs that cannot install multiple files.
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2770 if test -z "$INSTALL"; then
2771 if test "${ac_cv_path_install+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 # Account for people who put trailing slashes in PATH elements.
2780 case $as_dir/ in #((
2781 ./ | .// | /[cC]/* | \
2782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2786 # OSF1 and SCO ODT 3.0 have their own names for install.
2787 # Don't use installbsd from OSF since it installs stuff as root
2789 for ac_prog in ginstall scoinst install; do
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2792 if test $ac_prog = install &&
2793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794 # AIX install. It has an incompatible calling convention.
2796 elif test $ac_prog = install &&
2797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # program-specific install script used by HP pwplus--don't use.
2801 rm -rf conftest.one conftest.two conftest.dir
2802 echo one > conftest.one
2803 echo two > conftest.two
2805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2806 test -s conftest.one && test -s conftest.two &&
2807 test -s conftest.dir/conftest.one &&
2808 test -s conftest.dir/conftest.two
2810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2823 rm -rf conftest.one conftest.two conftest.dir
2826 if test "${ac_cv_path_install+set}" = set; then
2827 INSTALL=$ac_cv_path_install
2829 # As a last resort, use the slow shell script. Don't cache a
2830 # value for INSTALL within a source directory, because that will
2831 # break other packages using the cache if that directory is
2832 # removed, or if the value is a relative name.
2833 INSTALL=$ac_install_sh
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2837 $as_echo "$INSTALL" >&6; }
2839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2840 # It thinks the first close brace ends the variable substitution.
2841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2848 $as_echo_n "checking whether build environment is sane... " >&6; }
2851 echo timestamp > conftest.file
2852 # Reject unsafe characters in $srcdir or the absolute working directory
2853 # name. Accept space and tab only in the latter.
2857 *[\\\"\#\$\&\'\`$am_lf]*)
2858 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
2861 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2862 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2865 # Do `set' in a subshell so we don't clobber the current shell's
2866 # arguments. Must try -L first in case configure is actually a
2867 # symlink; some systems play weird games with the mod time of symlinks
2868 # (eg FreeBSD returns the mod time of the symlink's containing
2871 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2872 if test "$*" = "X"; then
2874 set X
`ls -t "$srcdir/configure" conftest.file`
2877 if test "$*" != "X $srcdir/configure conftest.file" \
2878 && test "$*" != "X conftest.file $srcdir/configure"; then
2880 # If neither matched, then we have a broken ls. This can happen
2881 # if, for instance, CONFIG_SHELL is bash and it inherits a
2882 # broken ls alias from the environment. This has actually
2883 # happened. Such a system could not be considered "sane".
2884 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2885 alias in your environment" "$LINENO" 5
2888 test "$2" = conftest.
file
2894 as_fn_error $?
"newly created file is older than distributed files!
2895 Check your system clock" "$LINENO" 5
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899 test "$program_prefix" != NONE
&&
2900 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2901 # Use a double $ so make ignores it.
2902 test "$program_suffix" != NONE
&&
2903 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2904 # Double any \ or $.
2905 # By default was `s,x,x', remove it if useless.
2906 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2907 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2909 # expand $ac_aux_dir to an absolute path
2910 am_aux_dir
=`cd $ac_aux_dir && pwd`
2912 if test x
"${MISSING+set}" != xset
; then
2915 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2917 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2920 # Use eval to expand $SHELL
2921 if eval "$MISSING --run true"; then
2922 am_missing_run
="$MISSING --run "
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2926 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2929 if test x
"${install_sh}" != xset
; then
2932 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2938 # Installed binaries are usually stripped using `strip' when the user
2939 # run `make install-strip'. However `strip' might not be the right
2940 # tool to use in cross-compilation environments, therefore Automake
2941 # will honor the `STRIP' environment variable to overrule this program.
2942 if test "$cross_compiling" != no
; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_STRIP+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$STRIP"; then
2952 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir
=.
2959 for ac_exec_ext
in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 STRIP
=$ac_cv_prog_STRIP
2972 if test -n "$STRIP"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974 $as_echo "$STRIP" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$ac_cv_prog_STRIP"; then
2984 # Extract the first word of "strip", so it can be a program name with args.
2985 set dummy strip
; ac_word
=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_STRIP"; then
2992 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_ac_ct_STRIP
="strip"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3012 if test -n "$ac_ct_STRIP"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014 $as_echo "$ac_ct_STRIP" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3020 if test "x$ac_ct_STRIP" = x
; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned
=yes ;;
3032 STRIP
="$ac_cv_prog_STRIP"
3036 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040 if test -z "$MKDIR_P"; then
3041 if test "${ac_cv_path_mkdir+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3045 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3048 test -z "$as_dir" && as_dir
=.
3049 for ac_prog
in mkdir gmkdir
; do
3050 for ac_exec_ext
in '' $ac_executable_extensions; do
3051 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3052 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053 'mkdir (GNU coreutils) '* | \
3054 'mkdir (coreutils) '* | \
3055 'mkdir (fileutils) '4.1*)
3056 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3066 test -d .
/--version && rmdir .
/--version
3067 if test "${ac_cv_path_mkdir+set}" = set; then
3068 MKDIR_P
="$ac_cv_path_mkdir -p"
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for MKDIR_P within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
3074 MKDIR_P
="$ac_install_sh -d"
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078 $as_echo "$MKDIR_P" >&6; }
3083 [\\/$
]* | ?
:[\\/]*) ;;
3084 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3087 for ac_prog
in gawk mawk nawk
awk
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy
$ac_prog; ac_word
=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_AWK+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$AWK"; then
3097 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir
=.
3104 for ac_exec_ext
in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_AWK
="$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$AWK"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3119 $as_echo "$AWK" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3126 test -n "$AWK" && break
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3130 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3132 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3133 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3134 $as_echo_n "(cached) " >&6
3136 cat >conftest.
make <<\_ACEOF
3139 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3141 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3142 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3144 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3146 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3150 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 SET_MAKE
="MAKE=${MAKE-make}"
3160 rm -rf .tst
2>/dev
/null
3161 mkdir .tst
2>/dev
/null
3162 if test -d .tst
; then
3167 rmdir .tst
2>/dev
/null
3169 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3171 # is not polluted with repeated "-I."
3172 am__isrc
=' -I$(srcdir)'
3173 # test to see if srcdir already configured
3174 if test -f $srcdir/config.status
; then
3175 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3179 # test whether we have cygpath
3180 if test -z "$CYGPATH_W"; then
3181 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3182 CYGPATH_W
='cygpath -w'
3189 # Define the identity of the package.
3194 cat >>confdefs.h
<<_ACEOF
3195 #define PACKAGE "$PACKAGE"
3199 cat >>confdefs.h
<<_ACEOF
3200 #define VERSION "$VERSION"
3203 # Some tools Automake needs.
3205 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3208 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3211 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3214 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3217 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3219 # We need awk for the "check" target. The system "awk" is bad on
3221 # Always define AMTAR for backward compatibility.
3223 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3225 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3234 lispdir
='${datadir}/emacs/${version}/lisp'
3235 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3236 '${datadir}/emacs/site-lisp'
3237 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3238 etcdir
='${datadir}/emacs/${version}/etc'
3239 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3240 docdir
='${datadir}/emacs/${version}/etc'
3241 gamedir
='${localstatedir}/games/emacs'
3246 # Check whether --with-pop was given.
3247 if test "${with_pop+set}" = set; then :
3253 if test "$with_pop" = yes; then
3254 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3259 # Check whether --with-kerberos was given.
3260 if test "${with_kerberos+set}" = set; then :
3261 withval
=$with_kerberos;
3266 if test "$with_kerberos" != no
; then
3267 $as_echo "#define KERBEROS 1" >>confdefs.h
3272 # Check whether --with-kerberos5 was given.
3273 if test "${with_kerberos5+set}" = set; then :
3274 withval
=$with_kerberos5;
3279 if test "${with_kerberos5}" != no
; then
3280 if test "${with_kerberos}" = no
; then
3282 $as_echo "#define KERBEROS 1" >>confdefs.h
3286 $as_echo "#define KERBEROS5 1" >>confdefs.h
3291 # Check whether --with-hesiod was given.
3292 if test "${with_hesiod+set}" = set; then :
3293 withval
=$with_hesiod;
3298 if test "$with_hesiod" != no
; then
3300 $as_echo "#define HESIOD 1" >>confdefs.h
3305 # Check whether --with-mmdf was given.
3306 if test "${with_mmdf+set}" = set; then :
3312 if test "$with_mmdf" != no
; then
3314 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3319 # Check whether --with-mail-unlink was given.
3320 if test "${with_mail_unlink+set}" = set; then :
3321 withval
=$with_mail_unlink;
3326 if test "$with_mail_unlink" != no
; then
3328 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3333 # Check whether --with-mailhost was given.
3334 if test "${with_mailhost+set}" = set; then :
3335 withval
=$with_mailhost;
3336 cat >>confdefs.h
<<_ACEOF
3337 #define MAILHOST "$withval"
3344 # Check whether --with-sound was given.
3345 if test "${with_sound+set}" = set; then :
3346 withval
=$with_sound;
3353 # Check whether --with-sync-input was given.
3354 if test "${with_sync_input+set}" = set; then :
3355 withval
=$with_sync_input;
3360 if test "$with_sync_input" = yes; then
3362 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3367 # Check whether --with-x-toolkit was given.
3368 if test "${with_x_toolkit+set}" = set; then :
3369 withval
=$with_x_toolkit; case "${withval}" in
3370 y | ye |
yes ) val
=gtk
;;
3372 l | lu | luc | luci | lucid
) val
=lucid
;;
3373 a |
at | ath | athe | athen | athena
) val
=athena
;;
3374 m | mo | mot | moti | motif
) val
=motif
;;
3375 g | gt | gtk
) val
=gtk
;;
3378 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3379 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3380 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3389 # Check whether --with-xpm was given.
3390 if test "${with_xpm+set}" = set; then :
3397 # Check whether --with-jpeg was given.
3398 if test "${with_jpeg+set}" = set; then :
3405 # Check whether --with-tiff was given.
3406 if test "${with_tiff+set}" = set; then :
3413 # Check whether --with-gif was given.
3414 if test "${with_gif+set}" = set; then :
3421 # Check whether --with-png was given.
3422 if test "${with_png+set}" = set; then :
3429 # Check whether --with-rsvg was given.
3430 if test "${with_rsvg+set}" = set; then :
3437 # Check whether --with-xml2 was given.
3438 if test "${with_xml2+set}" = set; then :
3445 # Check whether --with-imagemagick was given.
3446 if test "${with_imagemagick+set}" = set; then :
3447 withval
=$with_imagemagick;
3449 with_imagemagick
=yes
3454 # Check whether --with-xft was given.
3455 if test "${with_xft+set}" = set; then :
3462 # Check whether --with-libotf was given.
3463 if test "${with_libotf+set}" = set; then :
3464 withval
=$with_libotf;
3470 # Check whether --with-m17n-flt was given.
3471 if test "${with_m17n_flt+set}" = set; then :
3472 withval
=$with_m17n_flt;
3479 # Check whether --with-toolkit-scroll-bars was given.
3480 if test "${with_toolkit_scroll_bars+set}" = set; then :
3481 withval
=$with_toolkit_scroll_bars;
3483 with_toolkit_scroll_bars
=yes
3487 # Check whether --with-xaw3d was given.
3488 if test "${with_xaw3d+set}" = set; then :
3489 withval
=$with_xaw3d;
3495 # Check whether --with-xim was given.
3496 if test "${with_xim+set}" = set; then :
3503 # Check whether --with-ns was given.
3504 if test "${with_ns+set}" = set; then :
3512 # Check whether --with-gpm was given.
3513 if test "${with_gpm+set}" = set; then :
3520 # Check whether --with-dbus was given.
3521 if test "${with_dbus+set}" = set; then :
3528 # Check whether --with-gconf was given.
3529 if test "${with_gconf+set}" = set; then :
3530 withval
=$with_gconf;
3536 # Check whether --with-selinux was given.
3537 if test "${with_selinux+set}" = set; then :
3538 withval
=$with_selinux;
3544 # Check whether --with-gnutls was given.
3545 if test "${with_gnutls+set}" = set; then :
3546 withval
=$with_gnutls;
3552 ## For the times when you want to build Emacs but don't have
3553 ## a suitable makeinfo, and can live without the manuals.
3555 # Check whether --with-makeinfo was given.
3556 if test "${with_makeinfo+set}" = set; then :
3557 withval
=$with_makeinfo;
3563 ## This is an option because I do not know if all info/man support
3564 ## compressed files, nor how to test if they do so.
3566 # Check whether --with-compress-info was given.
3567 if test "${with_compress_info+set}" = set; then :
3568 withval
=$with_compress_info;
3570 with_compress_info
=yes
3573 if test $with_compress_info = yes; then
3581 # Check whether --with-pkg-config-prog was given.
3582 if test "${with_pkg_config_prog+set}" = set; then :
3583 withval
=$with_pkg_config_prog;
3586 if test "X${with_pkg_config_prog}" != X
; then
3587 if test "${with_pkg_config_prog}" != yes; then
3588 PKG_CONFIG
="${with_pkg_config_prog}"
3594 # Check whether --with-crt-dir was given.
3595 if test "${with_crt_dir+set}" = set; then :
3596 withval
=$with_crt_dir;
3599 CRT_DIR
="${with_crt_dir}"
3602 # Check whether --with-gameuser was given.
3603 if test "${with_gameuser+set}" = set; then :
3604 withval
=$with_gameuser;
3607 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3608 && gameuser
="${with_gameuser}"
3609 test "X$gameuser" = X
&& gameuser
=games
3612 # Check whether --with-gnustep-conf was given.
3613 if test "${with_gnustep_conf+set}" = set; then :
3614 withval
=$with_gnustep_conf;
3617 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3618 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3619 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3620 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3622 # Check whether --enable-ns-self-contained was given.
3623 if test "${enable_ns_self_contained+set}" = set; then :
3624 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3626 EN_NS_SELF_CONTAINED
=yes
3630 # Check whether --enable-asserts was given.
3631 if test "${enable_asserts+set}" = set; then :
3632 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3638 # Check whether --enable-maintainer-mode was given.
3639 if test "${enable_maintainer_mode+set}" = set; then :
3640 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3642 USE_MAINTAINER_MODE
=no
3645 if test $USE_MAINTAINER_MODE = yes; then
3652 # Check whether --enable-locallisppath was given.
3653 if test "${enable_locallisppath+set}" = set; then :
3654 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3656 elif test "${enableval}" != "yes"; then
3657 locallisppath
=${enableval}
3662 # Check whether --enable-checking was given.
3663 if test "${enable_checking+set}" = set; then :
3664 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3667 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3668 for check
in $ac_checking_flags
3671 # these set all the flags to specific states
3672 yes) ac_enable_checking
=1 ;;
3673 no
) ac_enable_checking
= ;
3674 ac_gc_check_stringbytes
= ;
3675 ac_gc_check_string_overrun
= ;
3676 ac_gc_check_string_free_list
= ;
3677 ac_xmalloc_overrun
= ;
3678 ac_gc_check_cons_list
= ;;
3679 all
) ac_enable_checking
=1 ;
3680 ac_gc_check_stringbytes
=1 ;
3681 ac_gc_check_string_overrun
=1 ;
3682 ac_gc_check_string_free_list
=1 ;
3683 ac_xmalloc_overrun
=1 ;
3684 ac_gc_check_cons_list
=1 ;;
3685 # these enable particular checks
3686 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3687 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3688 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3689 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3690 conslist
) ac_gc_check_cons_list
=1 ;;
3691 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3696 if test x
$ac_enable_checking != x
; then
3698 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3701 if test x
$ac_gc_check_stringbytes != x
; then
3703 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3706 if test x
$ac_gc_check_stringoverrun != x
; then
3708 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3711 if test x
$ac_gc_check_string_free_list != x
; then
3713 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3716 if test x
$ac_xmalloc_overrun != x
; then
3718 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3721 if test x
$ac_gc_check_cons_list != x
; then
3723 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3727 # Check whether --enable-use-lisp-union-type was given.
3728 if test "${enable_use_lisp_union_type+set}" = set; then :
3729 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3731 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3738 # Check whether --enable-profiling was given.
3739 if test "${enable_profiling+set}" = set; then :
3740 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3743 if test x
$ac_enable_profiling != x
; then
3744 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3750 # Check whether --enable-autodepend was given.
3751 if test "${enable_autodepend+set}" = set; then :
3752 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3754 ac_enable_autodepend
=yes
3758 #### Make srcdir absolute, if it isn't already. It's important to
3759 #### avoid running the path through pwd unnecessarily, since pwd can
3760 #### give you automounter prefixes, which can go away. We do all this
3761 #### so Emacs can find its files when run uninstalled.
3762 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3767 ## We may be able to use the $PWD environment variable to make this
3768 ## absolute. But sometimes PWD is inaccurate.
3769 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3770 ## but that tested only for a well-formed and valid PWD,
3771 ## it did not object when PWD was well-formed and valid but just wrong.
3772 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3776 srcdir
="`(cd ${srcdir}; pwd)`"
3779 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3782 #### Check if the source directory already has a configured system in it.
3783 if test `pwd` != `(cd ${srcdir} && pwd)` \
3784 && test -f "${srcdir}/src/config.h" ; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3786 as a build directory right now; it has been configured in its own
3787 right. To configure in another directory as well, you MUST
3788 use GNU make. If you do not have GNU make, then you must
3789 now do \`make distclean' in ${srcdir},
3790 and then run $0 again." >&5
3791 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3792 as a build directory right now; it has been configured in its own
3793 right. To configure in another directory as well, you MUST
3794 use GNU make. If you do not have GNU make, then you must
3795 now do \`make distclean' in ${srcdir},
3796 and then run $0 again." >&2;}
3799 #### Given the configuration name, set machfile and opsysfile to the
3800 #### names of the m/*.h and s/*.h files we should use.
3802 ### Canonicalize the configuration name.
3804 # Make sure we can run config.sub.
3805 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3806 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3809 $as_echo_n "checking build system type... " >&6; }
3810 if test "${ac_cv_build+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3813 ac_build_alias
=$build_alias
3814 test "x$ac_build_alias" = x
&&
3815 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3816 test "x$ac_build_alias" = x
&&
3817 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3818 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3819 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3823 $as_echo "$ac_cv_build" >&6; }
3824 case $ac_cv_build in
3826 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
3829 ac_save_IFS
=$IFS; IFS
='-'
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3839 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3843 $as_echo_n "checking host system type... " >&6; }
3844 if test "${ac_cv_host+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3847 if test "x$host_alias" = x
; then
3848 ac_cv_host
=$ac_cv_build
3850 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3856 $as_echo "$ac_cv_host" >&6; }
3859 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
3862 ac_save_IFS
=$IFS; IFS
='-'
3868 # Remember, the first character of IFS is used to create $*,
3869 # except with old shells:
3872 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3876 configuration
=${host_alias-${build_alias-$host}}
3880 ### If you add support for a new configuration, add code to this
3881 ### switch statement to recognize your configuration name and select
3882 ### the appropriate operating system and machine description files.
3884 ### You would hope that you could choose an m/*.h file pretty much
3885 ### based on the machine portion of the configuration name, and an s/*.h
3886 ### file based on the operating system portion. However, it turns out
3887 ### that each m/*.h file is pretty manufacturer-specific - for
3888 ### example mips.h is MIPS
3889 ### So we basically have to have a special case for each
3890 ### configuration name.
3892 ### As far as handling version numbers on operating systems is
3893 ### concerned, make sure things will fail in a fixable way. If
3894 ### /etc/MACHINES doesn't say anything about version numbers, be
3895 ### prepared to handle anything reasonably. If version numbers
3896 ### matter, be sure /etc/MACHINES says something about it.
3898 machine
='' opsys
='' unported
=no
3899 case "${canonical}" in
3904 case ${canonical} in
3905 alpha
*) machine
=alpha
;;
3906 s390-
*) machine
=ibms390
;;
3907 s390x-
*) machine
=ibms390x
;;
3908 powerpc
*) machine
=macppc
;;
3909 sparc
*) machine
=sparc
;;
3910 ia64
*) machine
=ia64
;;
3911 m68k
*) machine
=m68k
;;
3912 x86_64
*) machine
=amdx86-64
;;
3919 case "${canonical}" in
3920 alpha
*) machine
=alpha
;;
3921 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3922 ia64-
*) machine
=ia64
;;
3923 i
[3456]86-*) machine
=intel386
;;
3924 powerpc-
*) machine
=macppc
;;
3925 sparc-
*) machine
=sparc
;;
3926 sparc64-
*) machine
=sparc
;;
3930 ## FreeBSD kernel + glibc based userland
3933 case "${canonical}" in
3934 alpha
*) machine
=alpha
;;
3935 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3936 ia64-
*) machine
=ia64
;;
3937 i
[3456]86-*) machine
=intel386
;;
3938 powerpc-
*) machine
=macppc
;;
3939 sparc-
*) machine
=sparc
;;
3940 sparc64-
*) machine
=sparc
;;
3947 case "${canonical}" in
3948 alpha
*) machine
=alpha
;;
3949 x86_64-
*) machine
=amdx86-64
;;
3950 i
[3456]86-*) machine
=intel386
;;
3951 m68k-
*) machine
=m68k
;;
3952 powerpc-
*) machine
=macppc
;;
3953 sparc
*-) machine
=sparc
;;
3954 vax-
*) machine
=vax
;;
3961 case "${canonical}" in
3962 alpha
*) machine
=alpha
;;
3963 x86_64-
*) machine
=amdx86-64
;;
3964 i386-
*) machine
=intel386
;;
3965 powerpc-
*) machine
=macppc
;;
3966 sparc
*) machine
=sparc
;;
3967 vax-
*) machine
=vax
;;
3971 ## Apple Darwin / Mac OS X
3973 case "${canonical}" in
3974 i
[3456]86-* ) machine
=intel386
;;
3975 powerpc-
* ) machine
=macppc
;;
3976 x86_64-
* ) machine
=amdx86-64
;;
3980 # Define CPP as follows to make autoconf work correctly.
3981 CPP
="${CC-cc} -E -no-cpp-precomp"
3982 # Use fink packages if available.
3983 if test -d /sw
/include
&& test -d /sw
/lib
; then
3984 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3985 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3986 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3990 ## HP 9000 series 700 and 800, running HP/UX
3991 hppa
*-hp-hpux10.2
* )
3994 hppa
*-hp-hpux1[1-9]* )
3996 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4000 rs6000-ibm-aix4.
[23]* )
4001 machine
=ibmrs6000 opsys
=aix4-2
4003 powerpc-ibm-aix4.
[23]* )
4004 machine
=ibmrs6000 opsys
=aix4-2
4006 rs6000-ibm-aix
[56]* )
4007 machine
=ibmrs6000 opsys
=aix4-2
4009 powerpc-ibm-aix
[56]* )
4010 machine
=ibmrs6000 opsys
=aix4-2
4013 ## Silicon Graphics machines
4016 machine
=iris4d opsys
=irix6-5
4017 # Without defining _LANGUAGE_C, things get masked out in the headers
4018 # so that, for instance, grepping for `free' in stdlib.h fails and
4019 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4020 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4021 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4026 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4027 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4028 case "${canonical}" in
4029 i
[3456]86-*-* ) machine
=intel386
;;
4030 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4031 sparc
* ) machine
=sparc
;;
4034 case "${canonical}" in
4035 *-sunos5.6
* |
*-solaris2.6
* )
4037 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4040 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4042 emacs_check_sunpro_c
=yes
4043 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4045 *-sunos5* |
*-solaris* )
4047 emacs_check_sunpro_c
=yes
4048 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4051 ## Watch out for a compiler that we know will not work.
4052 case "${canonical}" in
4053 *-solaris* |
*-sunos5* )
4054 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4055 ## /usr/ucb/cc doesn't work;
4056 ## we should find some other compiler that does work.
4064 ## Intel 386 machines where we don't care about the manufacturer.
4067 case "${canonical}" in
4068 *-cygwin ) opsys
=cygwin
;;
4069 *-darwin* ) opsys
=darwin
4070 CPP
="${CC-cc} -E -no-cpp-precomp"
4072 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4073 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4074 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4075 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4084 ### If the code above didn't choose an operating system, just choose
4085 ### an operating system based on the configuration name. You really
4086 ### only want to use this when you have no idea what the right
4087 ### operating system is; if you know what operating systems a machine
4088 ### runs, it's cleaner to make it explicit in the case statement
4090 if test x
"${opsys}" = x
; then
4091 case "${canonical}" in
4092 *-gnu* ) opsys
=gnu
;;
4101 if test $unported = yes; then
4102 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4103 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4106 if test -n "$machine"; then
4107 machfile
="m/${machine}.h"
4111 opsysfile
="s/${opsys}.h"
4114 #### Choose a compiler.
4115 test -n "$CC" && cc_specified
=yes
4117 # Save the value of CFLAGS that the user specified.
4118 SPECIFIED_CFLAGS
="$CFLAGS"
4121 ac_cpp
='$CPP $CPPFLAGS'
4122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4125 if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4127 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_prog_CC+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC
="$CC" # Let the user override the test.
4136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir
=.
4141 for ac_exec_ext
in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test -n "$CC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4164 if test -z "$ac_cv_prog_CC"; then
4166 # Extract the first word of "gcc", so it can be a program name with args.
4167 set dummy gcc
; ac_word
=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_exec_ext
in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_ac_ct_CC
="gcc"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4194 if test -n "$ac_ct_CC"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4196 $as_echo "$ac_ct_CC" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4202 if test "x$ac_ct_CC" = x
; then
4205 case $cross_compiling:$ac_tool_warned in
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned
=yes ;;
4217 if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_CC+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC
="$CC" # Let the user override the test.
4229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir
=.
4234 for ac_exec_ext
in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4258 if test -z "$CC"; then
4259 # Extract the first word of "cc", so it can be a program name with args.
4260 set dummy cc
; ac_word
=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_prog_CC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC
="$CC" # Let the user override the test.
4270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir
=.
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4278 ac_prog_rejected
=yes
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 if test $ac_prog_rejected = yes; then
4290 # We found a bogon in the path, so make sure we never use it.
4291 set dummy
$ac_cv_prog_CC
4293 if test $# != 0; then
4294 # We chose a different compiler from the bogus one.
4295 # However, it has the same basename, so the bogon will be chosen
4296 # first if we set CC to just the basename; use the full file name.
4298 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4304 if test -n "$CC"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4306 $as_echo "$CC" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 if test -z "$CC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog
in cl.exe
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_CC+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$CC"; then
4326 ac_cv_prog_CC
="$CC" # Let the user override the test.
4328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir
=.
4333 for ac_exec_ext
in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 if test -n "$CC"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4348 $as_echo "$CC" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$CC" && break
4358 if test -z "$CC"; then
4360 for ac_prog
in cl.exe
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy
$ac_prog; ac_word
=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$ac_ct_CC"; then
4370 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir
=.
4377 for ac_exec_ext
in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CC
="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4392 $as_echo "$ac_ct_CC" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$ac_ct_CC" && break
4402 if test "x$ac_ct_CC" = x
; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned
=yes ;;
4418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error $?
"no acceptable C compiler found in \$PATH
4421 See \`config.log' for more details" "$LINENO" 5 ; }
4423 # Provide some information about the compiler.
4424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4427 for ac_option
in --version -v -V -qversion; do
4428 { { ac_try
="$ac_compiler $ac_option >&5"
4430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4437 if test -s conftest.err; then
4439 ... rest of stderr output deleted ...
4440 10q' conftest.err >conftest.er1
4441 cat conftest.er1 >&5
4443 rm -f conftest.er1 conftest.err
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4459 ac_clean_files_save=$ac_clean_files
4460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4461 # Try to create an executable without -o first, disregard a.out.
4462 # It will help us diagnose broken compilers, and finding out an intuition
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465 $as_echo_n "checking whether the C compiler works... " >&6; }
4466 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4468 # The possible output files:
4469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472 for ac_file in $ac_files
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4481 if { { ac_try="$ac_link_default"
4483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4484 *) ac_try_echo
=$ac_try;;
4486 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_link_default") 2>&5
4490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }; then :
4492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4494 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4495 # so that the user can short-circuit this test for compilers unknown to
4497 for ac_file
in $ac_files ''
4499 test -f "$ac_file" ||
continue
4501 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4504 # We found the default executable, but exeext='' is most
4508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4510 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 # We set ac_cv_exeext here because the later test for it is not
4513 # safe: cross compilers may not add the suffix if given an `-o'
4514 # argument, so we may need to know it at that point already.
4515 # Even if this section looks crufty: it has the advantage of
4522 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4527 if test -z "$ac_file"; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535 as_fn_error
77 "C compiler cannot create executables
4536 See \`config.log' for more details" "$LINENO" 5 ; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4542 $as_echo_n "checking for C compiler default output file name... " >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4544 $as_echo "$ac_file" >&6; }
4545 ac_exeext
=$ac_cv_exeext
4547 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4548 ac_clean_files
=$ac_clean_files_save
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4550 $as_echo_n "checking for suffix of executables... " >&6; }
4551 if { { ac_try
="$ac_link"
4553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_link") 2>&5
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
4562 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4563 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4564 # work properly (i.e., refer to `conftest.exe'), while it won't with
4566 for ac_file
in conftest.exe conftest conftest.
*; do
4567 test -f "$ac_file" ||
continue
4569 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4570 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4579 See \`config.log' for more details" "$LINENO" 5 ; }
4581 rm -f conftest conftest
$ac_cv_exeext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4583 $as_echo "$ac_cv_exeext" >&6; }
4585 rm -f conftest.
$ac_ext
4586 EXEEXT
=$ac_cv_exeext
4588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4594 FILE *f = fopen ("conftest.out", "w");
4595 return ferror (f) || fclose (f) != 0;
4601 ac_clean_files
="$ac_clean_files conftest.out"
4602 # Check that the compiler produces executables we can run. If not, either
4603 # the compiler is broken, or we cross compile.
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4605 $as_echo_n "checking whether we are cross compiling... " >&6; }
4606 if test "$cross_compiling" != yes; then
4607 { { ac_try
="$ac_link"
4609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618 if { ac_try='./conftest$ac_cv_exeext'
4619 { { case "(($ac_try" in
4620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4621 *) ac_try_echo
=$ac_try;;
4623 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_try") 2>&5
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; }; then
4631 if test "$cross_compiling" = maybe
; then
4634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636 as_fn_error $?
"cannot run C compiled programs.
4637 If you meant to cross compile, use \`--host'.
4638 See \`config.log' for more details" "$LINENO" 5 ; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4643 $as_echo "$cross_compiling" >&6; }
4645 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4646 ac_clean_files
=$ac_clean_files_save
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4648 $as_echo_n "checking for suffix of object files... " >&6; }
4649 if test "${ac_cv_objext+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4663 rm -f conftest.o conftest.obj
4664 if { { ac_try
="$ac_compile"
4666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compile") 2>&5
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }; then :
4675 for ac_file in conftest.o conftest.obj conftest.*; do
4676 test -f "$ac_file" || continue;
4678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4684 $as_echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4690 See \
`config.log' for more details" "$LINENO" 5 ; }
4692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4695 $as_echo "$ac_cv_objext" >&6; }
4696 OBJEXT=$ac_cv_objext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4700 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4717 if ac_fn_c_try_compile "$LINENO"; then :
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4728 if test $ac_compiler_gnu = yes; then
4733 ac_test_CFLAGS=${CFLAGS+set}
4734 ac_save_CFLAGS=$CFLAGS
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4737 if test "${ac_cv_prog_cc_g+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 ac_save_c_werror_flag=$ac_c_werror_flag
4741 ac_c_werror_flag=yes
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4755 if ac_fn_c_try_compile "$LINENO"; then :
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4773 ac_c_werror_flag=$ac_save_c_werror_flag
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4786 if ac_fn_c_try_compile "$LINENO"; then :
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 ac_c_werror_flag=$ac_save_c_werror_flag
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4797 $as_echo "$ac_cv_prog_cc_g" >&6; }
4798 if test "$ac_test_CFLAGS" = set; then
4799 CFLAGS=$ac_save_CFLAGS
4800 elif test $ac_cv_prog_cc_g = yes; then
4801 if test "$GCC" = yes; then
4807 if test "$GCC" = yes; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4815 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4818 ac_cv_prog_cc_c89=no
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4824 #include <sys/types.h>
4825 #include <sys/stat.h>
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4840 s = g (p, va_arg (v,int));
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
4880 rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4883 rm -f conftest.$ac_ext
4888 case "x$ac_cv_prog_cc_c89" in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 DEPDIR="${am__leading_dot}deps"
4911 ac_config_commands="$ac_config_commands depfiles"
4914 am_make=${MAKE-make}
4915 cat > confinc << 'END'
4917 @echo this is the am__doit target
4920 # If we don't find an include directive, just comment out the code.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4922 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4926 # First try GNU make style include.
4927 echo "include confinc" > confmf
4928 # Ignore all kinds of additional output from `make'.
4929 case `$am_make -s -f confmf 2> /dev/null` in #(
4930 *the\ am__doit\ target*)
4936 # Now try BSD make style include.
4937 if test "$am__include" = "#"; then
4938 echo '.include
"confinc"' > confmf
4939 case `$am_make -s -f confmf 2> /dev/null` in #(
4940 *the\ am__doit\ target*)
4941 am__include=.include
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4950 $as_echo "$_am_result" >&6; }
4951 rm -f confinc confmf
4953 # Check whether --enable-dependency-tracking was given.
4954 if test "${enable_dependency_tracking+set}" = set; then :
4955 enableval=$enable_dependency_tracking;
4958 if test "x$enable_dependency_tracking" != xno; then
4959 am_depcomp="$ac_aux_dir/depcomp"
4962 if test "x$enable_dependency_tracking" != xno
; then
4972 depcc
="$CC" am_compiler_list
=
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4975 $as_echo_n "checking dependency style of $depcc... " >&6; }
4976 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4980 # We make a subdir and do the tests there. Otherwise we can end up
4981 # making bogus files that we don't know about and never remove. For
4982 # instance it was reported that on HP-UX the gcc test will end up
4983 # making a dummy file named `D' -- because `-MD' means `put the output
4986 # Copy depcomp to subdir because otherwise we won't find it if we're
4987 # using a relative directory.
4988 cp "$am_depcomp" conftest.dir
4990 # We will build objects and dependencies in a subdirectory because
4991 # it helps to detect inapplicable dependency modes. For instance
4992 # both Tru64's cc and ICC support -MD to output dependencies as a
4993 # side effect of compilation, but ICC will put the dependencies in
4994 # the current directory while Tru64 will put them in the object
4998 am_cv_CC_dependencies_compiler_type
=none
4999 if test "$am_compiler_list" = ""; then
5000 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5003 case " $depcc " in #(
5004 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5007 for depmode
in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5016 for i
in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019 # Solaris 8's {/usr,}/bin/sh.
5020 touch sub
/conftst
$i.h
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle `-M -o', and we need to detect this. Also, some Intel
5027 # versions had trouble with output in subdirs
5028 am__obj
=sub
/conftest.
${OBJEXT-o}
5029 am__minus_obj
="-o $am__obj"
5032 # This depmode causes a compiler race in universal mode.
5033 test "$am__universal" = false ||
continue
5036 # after this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested
5038 if test "x$enable_dependency_tracking" = xyes
; then
5044 msvisualcpp | msvcmsys
)
5045 # This compiler won't grok `-c -o', but also, the minuso test has
5046 # not run yet. These depmodes are late enough in the game, and
5047 # so weak that their functioning should not be impacted.
5048 am__obj
=conftest.
${OBJEXT-o}
5053 if depmode
=$depmode \
5054 source=sub
/conftest.c object
=$am__obj \
5055 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5056 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5057 >/dev
/null
2>conftest.err
&&
5058 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5059 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5060 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5061 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type
=$depmode
5080 am_cv_CC_dependencies_compiler_type
=none
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5086 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5089 test "x$enable_dependency_tracking" != xno \
5090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5092 am__fastdepCC_FALSE
='#'
5094 am__fastdepCC_TRUE
='#'
5095 am__fastdepCC_FALSE
=
5099 if test "x$CC" != xcc
; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5101 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5104 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5106 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5107 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5108 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5122 # Make sure it works both with $CC and with simple cc.
5123 # We do the test twice because some compilers refuse to overwrite an
5124 # existing .o file with -o, though they will create one.
5125 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5127 if { { case "(($ac_try" in
5128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132 $as_echo "$ac_try_echo"; } >&5
5133 (eval "$ac_try") 2>&5
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; } &&
5137 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5139 *) ac_try_echo
=$ac_try;;
5141 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142 $as_echo "$ac_try_echo"; } >&5
5143 (eval "$ac_try") 2>&5
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; };
5148 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5149 if test "x$CC" != xcc
; then
5150 # Test first that cc exists at all.
5151 if { ac_try
='cc -c conftest.$ac_ext >&5'
5152 { { case "(($ac_try" in
5153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_try") 2>&5
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; }; then
5162 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5164 if { { case "(($ac_try" in
5165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5166 *) ac_try_echo
=$ac_try;;
5168 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169 $as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_try") 2>&5
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; } &&
5174 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 $as_echo "$ac_try_echo"; } >&5
5180 (eval "$ac_try") 2>&5
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; };
5188 # cc exists but doesn't like -o.
5189 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5194 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5196 rm -f core conftest*
5199 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5201 $as_echo "yes" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5206 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5210 # FIXME: we rely on the cache variable name because
5211 # there is no other way.
5213 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5214 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5215 if test "$am_t" != yes; then
5216 # Losing compiler, so override with the script.
5217 # FIXME: It is wrong to rewrite CC.
5218 # But if we don't then we get into trouble of one sort or another.
5219 # A longer-term fix would be to have automake use am__CC in this case,
5220 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5221 CC="$am_aux_dir/compile $CC"
5226 # Initialize gnulib right after verifying that the C compiler works.
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 if test -n "$RANLIB"; then
5236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 RANLIB=$ac_cv_prog_RANLIB
5256 if test -n "$RANLIB"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5258 $as_echo "$RANLIB" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5266 if test -z "$ac_cv_prog_RANLIB"; then
5267 ac_ct_RANLIB=$RANLIB
5268 # Extract the first word of "ranlib", so it can be a program name with args.
5269 set dummy ranlib; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$ac_ct_RANLIB"; then
5276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_RANLIB="ranlib"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5296 if test -n "$ac_ct_RANLIB"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5298 $as_echo "$ac_ct_RANLIB" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5304 if test "x$ac_ct_RANLIB" = x; then
5307 case $cross_compiling:$ac_tool_warned in
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311 ac_tool_warned=yes ;;
5313 RANLIB=$ac_ct_RANLIB
5316 RANLIB="$ac_cv_prog_RANLIB"
5321 ac_cpp='$CPP $CPPFLAGS'
5322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5327 # On Suns, sometimes $CPP names a directory.
5328 if test -n "$CPP" && test -d "$CPP"; then
5331 if test -z "$CPP"; then
5332 if test "${ac_cv_prog_CPP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 # Double quotes because CPP needs to be expanded
5336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339 for ac_c_preproc_warn_flag in '' yes
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5350 # include <limits.h>
5352 # include <assert.h>
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5359 # Broken: fails on valid input.
5362 rm -f conftest.err conftest.i conftest.$ac_ext
5364 # OK, works on sane cases. Now check whether nonexistent headers
5365 # can be detected and how.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5370 if ac_fn_c_try_cpp "$LINENO"; then :
5371 # Broken: success on invalid input.
5374 # Passes both tests.
5378 rm -f conftest.err conftest.i conftest.$ac_ext
5381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382 rm -f conftest.i conftest.err conftest.
$ac_ext
5383 if $ac_preproc_ok; then :
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5396 $as_echo "$CPP" >&6; }
5398 for ac_c_preproc_warn_flag
in '' yes
5400 # Use a header file that comes with gcc, so configuring glibc
5401 # with a fresh cross-compiler works.
5402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5403 # <limits.h> exists even on freestanding compilers.
5404 # On the NeXT, cc -E runs the code through the compiler's parser,
5405 # not just through cpp. "Syntax error" is here to catch this case.
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5409 # include <limits.h>
5411 # include <assert.h>
5415 if ac_fn_c_try_cpp
"$LINENO"; then :
5418 # Broken: fails on valid input.
5421 rm -f conftest.err conftest.i conftest.
$ac_ext
5423 # OK, works on sane cases. Now check whether nonexistent headers
5424 # can be detected and how.
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5429 if ac_fn_c_try_cpp
"$LINENO"; then :
5430 # Broken: success on invalid input.
5433 # Passes both tests.
5437 rm -f conftest.err conftest.i conftest.
$ac_ext
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.i conftest.err conftest.
$ac_ext
5442 if $ac_preproc_ok; then :
5445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5447 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details" "$LINENO" 5 ; }
5452 ac_cpp
='$CPP $CPPFLAGS'
5453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5460 if test "${ac_cv_path_GREP+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -z "$GREP"; then
5464 ac_path_GREP_found
=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5470 test -z "$as_dir" && as_dir
=.
5471 for ac_prog
in grep ggrep
; do
5472 for ac_exec_ext
in '' $ac_executable_extensions; do
5473 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5475 # Check for GNU ac_path_GREP and select it if it is found.
5476 # Check for GNU $ac_path_GREP
5477 case `"$ac_path_GREP" --version 2>&1` in
5479 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5482 $as_echo_n 0123456789 >"conftest.in"
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'GREP' >> "conftest.nl"
5489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5491 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_GREP
="$ac_path_GREP"
5495 ac_path_GREP_max
=$ac_count
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5503 $ac_path_GREP_found && break 3
5508 if test -z "$ac_cv_path_GREP"; then
5509 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 ac_cv_path_GREP
=$GREP
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5517 $as_echo "$ac_cv_path_GREP" >&6; }
5518 GREP
="$ac_cv_path_GREP"
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5522 $as_echo_n "checking for egrep... " >&6; }
5523 if test "${ac_cv_path_EGREP+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5527 then ac_cv_path_EGREP
="$GREP -E"
5529 if test -z "$EGREP"; then
5530 ac_path_EGREP_found
=false
5531 # Loop through the user's path and test for each of PROGNAME-LIST
5532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5533 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5536 test -z "$as_dir" && as_dir
=.
5537 for ac_prog
in egrep; do
5538 for ac_exec_ext
in '' $ac_executable_extensions; do
5539 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5541 # Check for GNU ac_path_EGREP and select it if it is found.
5542 # Check for GNU $ac_path_EGREP
5543 case `"$ac_path_EGREP" --version 2>&1` in
5545 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5548 $as_echo_n 0123456789 >"conftest.in"
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 $as_echo 'EGREP' >> "conftest.nl"
5555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5556 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5557 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_EGREP
="$ac_path_EGREP"
5561 ac_path_EGREP_max
=$ac_count
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5566 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5569 $ac_path_EGREP_found && break 3
5574 if test -z "$ac_cv_path_EGREP"; then
5575 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5578 ac_cv_path_EGREP
=$EGREP
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5584 $as_echo "$ac_cv_path_EGREP" >&6; }
5585 EGREP
="$ac_cv_path_EGREP"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5589 $as_echo_n "checking for ANSI C header files... " >&6; }
5590 if test "${ac_cv_header_stdc+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5608 if ac_fn_c_try_compile
"$LINENO"; then :
5609 ac_cv_header_stdc
=yes
5611 ac_cv_header_stdc
=no
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 if test $ac_cv_header_stdc = yes; then
5616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev
/null
2>&1; then :
5626 ac_cv_header_stdc
=no
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "free" >/dev
/null
2>&1; then :
5643 ac_cv_header_stdc
=no
5649 if test $ac_cv_header_stdc = yes; then
5650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5651 if test "$cross_compiling" = yes; then :
5654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 #if ((' ' & 0x0FF) == 0x020)
5659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5662 # define ISLOWER(c) \
5663 (('a' <= (c) && (c) <= 'i') \
5664 || ('j' <= (c) && (c) <= 'r') \
5665 || ('s' <= (c) && (c) <= 'z'))
5666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5674 for (i = 0; i < 256; i++)
5675 if (XOR (islower (i), ISLOWER (i))
5676 || toupper (i) != TOUPPER (i))
5681 if ac_fn_c_try_run
"$LINENO"; then :
5684 ac_cv_header_stdc
=no
5686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5693 $as_echo "$ac_cv_header_stdc" >&6; }
5694 if test $ac_cv_header_stdc = yes; then
5696 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5701 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5702 inttypes.h stdint.h unistd.h
5704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5707 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5708 cat >>confdefs.h
<<_ACEOF
5709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5720 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5721 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5728 if test "$MINIX" = yes; then
5730 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5733 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5736 $as_echo "#define _MINIX 1" >>confdefs.h
5743 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5750 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5751 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 # define __EXTENSIONS__ 1
5758 $ac_includes_default
5767 if ac_fn_c_try_compile
"$LINENO"; then :
5768 ac_cv_safe_to_define___extensions__
=yes
5770 ac_cv_safe_to_define___extensions__
=no
5772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5775 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5776 test $ac_cv_safe_to_define___extensions__ = yes &&
5777 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5779 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5781 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5783 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5785 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5796 # Code from module arg-nonnull:
5797 # Code from module c++defs:
5798 # Code from module dtoastr:
5799 # Code from module extensions:
5801 # Code from module getopt-gnu:
5802 # Code from module getopt-posix:
5803 # Code from module gettext-h:
5804 # Code from module include_next:
5805 # Code from module intprops:
5806 # Code from module mktime:
5807 # Code from module multiarch:
5808 # Code from module stddef:
5809 # Code from module time:
5810 # Code from module time_r:
5811 # Code from module unistd:
5812 # Code from module warn-on-use:
5815 # On Suns, sometimes $CPP names a directory.
5816 if test -n "$CPP" && test -d "$CPP"; then
5820 ## If not using gcc, and on Solaris, and no CPP specified, see if
5821 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5822 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
5823 test x
"$CPP" = x
; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5825 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5826 if test "${emacs_cv_sunpro_c+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5843 if ac_fn_c_try_link
"$LINENO"; then :
5844 emacs_cv_sunpro_c
=yes
5846 emacs_cv_sunpro_c
=no
5848 rm -f core conftest.err conftest.
$ac_objext \
5849 conftest
$ac_exeext conftest.
$ac_ext
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5853 $as_echo "$emacs_cv_sunpro_c" >&6; }
5855 if test x
"$emacs_cv_sunpro_c" = xyes
; then
5856 NON_GNU_CPP
="$CC -E -Xs"
5860 #### Some systems specify a CPP to use unless we are using GCC.
5861 #### Now that we know whether we are using GCC, we can decide whether
5862 #### to use that one.
5863 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
5868 #### Some systems specify a CC to use unless we are using GCC.
5869 #### Now that we know whether we are using GCC, we can decide whether
5870 #### to use that one.
5871 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
5872 test x
$cc_specified != xyes
5877 if test x
$GCC = xyes
; then
5878 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
5880 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
5883 ### Use -Wno-pointer-sign if the compiler supports it
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5885 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5886 SAVE_CFLAGS
="$CFLAGS"
5887 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5899 if ac_fn_c_try_compile
"$LINENO"; then :
5904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 if test $has_option = yes; then
5906 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5909 $as_echo "$has_option" >&6; }
5910 CFLAGS
="$SAVE_CFLAGS"
5914 ### Use -Wdeclaration-after-statement if the compiler supports it
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5916 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5917 SAVE_CFLAGS
="$CFLAGS"
5918 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5930 if ac_fn_c_try_compile
"$LINENO"; then :
5935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 if test $has_option = yes; then
5937 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5940 $as_echo "$has_option" >&6; }
5941 CFLAGS
="$SAVE_CFLAGS"
5945 ### Use -Wold-style-definition if the compiler supports it
5946 # This can be removed when conversion to standard C is finished.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5948 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5949 SAVE_CFLAGS
="$CFLAGS"
5950 CFLAGS
="$CFLAGS -Wold-style-definition"
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5962 if ac_fn_c_try_compile
"$LINENO"; then :
5967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5968 if test $has_option = yes; then
5969 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5972 $as_echo "$has_option" >&6; }
5973 CFLAGS
="$SAVE_CFLAGS"
5977 ### Use -Wimplicit-function-declaration if the compiler supports it
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5979 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5980 SAVE_CFLAGS
="$CFLAGS"
5981 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
5982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5993 if ac_fn_c_try_compile
"$LINENO"; then :
5998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5999 if test $has_option = yes; then
6000 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6003 $as_echo "$has_option" >&6; }
6004 CFLAGS
="$SAVE_CFLAGS"
6011 #### Some other nice autoconf tests.
6014 ac_cpp
='$CPP $CPPFLAGS'
6015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6020 # On Suns, sometimes $CPP names a directory.
6021 if test -n "$CPP" && test -d "$CPP"; then
6024 if test -z "$CPP"; then
6025 if test "${ac_cv_prog_CPP+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6028 # Double quotes because CPP needs to be expanded
6029 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6032 for ac_c_preproc_warn_flag
in '' yes
6034 # Use a header file that comes with gcc, so configuring glibc
6035 # with a fresh cross-compiler works.
6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 # <limits.h> exists even on freestanding compilers.
6038 # On the NeXT, cc -E runs the code through the compiler's parser,
6039 # not just through cpp. "Syntax error" is here to catch this case.
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6043 # include <limits.h>
6045 # include <assert.h>
6049 if ac_fn_c_try_cpp
"$LINENO"; then :
6052 # Broken: fails on valid input.
6055 rm -f conftest.err conftest.i conftest.
$ac_ext
6057 # OK, works on sane cases. Now check whether nonexistent headers
6058 # can be detected and how.
6059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <ac_nonexistent.h>
6063 if ac_fn_c_try_cpp
"$LINENO"; then :
6064 # Broken: success on invalid input.
6067 # Passes both tests.
6071 rm -f conftest.err conftest.i conftest.
$ac_ext
6074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075 rm -f conftest.i conftest.err conftest.
$ac_ext
6076 if $ac_preproc_ok; then :
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6089 $as_echo "$CPP" >&6; }
6091 for ac_c_preproc_warn_flag
in '' yes
6093 # Use a header file that comes with gcc, so configuring glibc
6094 # with a fresh cross-compiler works.
6095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096 # <limits.h> exists even on freestanding compilers.
6097 # On the NeXT, cc -E runs the code through the compiler's parser,
6098 # not just through cpp. "Syntax error" is here to catch this case.
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6102 # include <limits.h>
6104 # include <assert.h>
6108 if ac_fn_c_try_cpp
"$LINENO"; then :
6111 # Broken: fails on valid input.
6114 rm -f conftest.err conftest.i conftest.
$ac_ext
6116 # OK, works on sane cases. Now check whether nonexistent headers
6117 # can be detected and how.
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <ac_nonexistent.h>
6122 if ac_fn_c_try_cpp
"$LINENO"; then :
6123 # Broken: success on invalid input.
6126 # Passes both tests.
6130 rm -f conftest.err conftest.i conftest.
$ac_ext
6133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134 rm -f conftest.i conftest.err conftest.
$ac_ext
6135 if $ac_preproc_ok; then :
6138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6140 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6141 See \`config.log' for more details" "$LINENO" 5 ; }
6145 ac_cpp
='$CPP $CPPFLAGS'
6146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6151 if test "x$RANLIB" = x
; then
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6154 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$RANLIB"; then
6161 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir
=.
6168 for ac_exec_ext
in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 RANLIB
=$ac_cv_prog_RANLIB
6181 if test -n "$RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6183 $as_echo "$RANLIB" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$ac_cv_prog_RANLIB"; then
6192 ac_ct_RANLIB
=$RANLIB
6193 # Extract the first word of "ranlib", so it can be a program name with args.
6194 set dummy ranlib
; ac_word
=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$ac_ct_RANLIB"; then
6201 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 for ac_exec_ext
in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6221 if test -n "$ac_ct_RANLIB"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6223 $as_echo "$ac_ct_RANLIB" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test "x$ac_ct_RANLIB" = x
; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned
=yes ;;
6238 RANLIB
=$ac_ct_RANLIB
6241 RANLIB
="$ac_cv_prog_RANLIB"
6246 ## Although we're running on an amd64 kernel, we're actually compiling for
6247 ## the x86 architecture. The user should probably have provided an
6248 ## explicit --build to `configure', but if everything else than the kernel
6249 ## is running in i386 mode, we can help them out.
6250 if test "$machine" = "amdx86-64"; then
6251 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6252 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6256 if test "$ac_cv_have_decl_i386" = "yes"; then
6257 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6259 machfile
="m/${machine}.h"
6263 # Extract the first word of "install-info", so it can be a program name with args.
6264 set dummy install-info
; ac_word
=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6270 case $INSTALL_INFO in
6272 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir
=.
6280 for ac_exec_ext
in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6294 if test -n "$INSTALL_INFO"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6296 $as_echo "$INSTALL_INFO" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6303 # Extract the first word of "install-info", so it can be a program name with args.
6304 set dummy install-info
; ac_word
=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6310 case $INSTALL_INFO in
6312 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 for as_dir
in /usr
/sbin
6319 test -z "$as_dir" && as_dir
=.
6320 for ac_exec_ext
in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6334 if test -n "$INSTALL_INFO"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6336 $as_echo "$INSTALL_INFO" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6343 # Extract the first word of "install-info", so it can be a program name with args.
6344 set dummy install-info
; ac_word
=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6350 case $INSTALL_INFO in
6352 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir
=.
6360 for ac_exec_ext
in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6374 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6375 if test -n "$INSTALL_INFO"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6377 $as_echo "$INSTALL_INFO" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6384 # Extract the first word of "gzip", so it can be a program name with args.
6385 set dummy
gzip; ac_word
=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6393 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir
=.
6401 for ac_exec_ext
in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6415 if test -n "$GZIP_PROG"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6417 $as_echo "$GZIP_PROG" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6426 ## Need makeinfo >= 4.6 (?) to build the manuals.
6427 # Extract the first word of "makeinfo", so it can be a program name with args.
6428 set dummy makeinfo
; ac_word
=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6436 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir
=.
6444 for ac_exec_ext
in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6458 MAKEINFO
=$ac_cv_path_MAKEINFO
6459 if test -n "$MAKEINFO"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6461 $as_echo "$MAKEINFO" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 if test "$MAKEINFO" != "no" && \
6469 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
6473 ## Makeinfo is unusual. For a released Emacs, the manuals are
6474 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6475 ## therefore in the category of "special tools" not normally required, which
6476 ## configure does not have to check for (eg autoconf itself).
6477 ## In a Bazaar checkout on the other hand, the manuals are not included.
6478 ## So makeinfo is a requirement to build from Bazaar, and configure
6479 ## should test for it as it does for any other build requirement.
6480 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6481 ## with pre-built manuals, from a Bazaar checkout.
6484 if test "$MAKEINFO" = "no"; then
6486 if test "x${with_makeinfo}" = "xno"; then
6488 elif test ! -e $srcdir/info
/emacs
; then
6489 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6490 source tree does not seem to have pre-built manuals in the \`info' directory.
6491 Either install a suitable version of makeinfo, or re-run configure
6492 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6498 if test x
$GCC = xyes
; then
6499 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6500 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6502 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6503 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6507 late_LDFLAGS
=$LDFLAGS
6508 if test x
$GCC = xyes
; then
6509 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6511 LDFLAGS
="$LDFLAGS -znocombreloc"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6515 $as_echo_n "checking for -znocombreloc... " >&6; }
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6527 if ac_fn_c_try_link
"$LINENO"; then :
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529 $as_echo "yes" >&6; }
6531 LDFLAGS
=$late_LDFLAGS
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6535 rm -f core conftest.err conftest.
$ac_objext \
6536 conftest
$ac_exeext conftest.
$ac_ext
6539 # The value of CPP is a quoted variable reference, so we need to do this
6540 # to get its actual value...
6541 CPP
=`eval "echo $CPP"`
6549 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6556 UNEXEC_OBJ
=unexelf.o
6558 # MSDOS uses unexcoff.o
6559 # MSWindows uses unexw32.o
6561 UNEXEC_OBJ
=unexaix.o
6567 UNEXEC_OBJ
=unexmacosx.o
6570 UNEXEC_OBJ
=unexhp9k800.o
6573 # Use the Solaris dldump() function, called from unexsol.c, to dump
6574 # emacs, instead of the generic ELF dump code found in unexelf.c.
6575 # The resulting binary has a complete symbol table, and is better
6576 # for debugging and other observability tools (debuggers, pstack, etc).
6578 # If you encounter a problem using dldump(), please consider sending
6579 # a message to the OpenSolaris tools-linking mailing list:
6580 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6582 # It is likely that dldump() works with older Solaris too, but this has
6583 # not been tested, so for now this change is for Solaris 10 or newer.
6584 UNEXEC_OBJ
=unexsol.o
6591 ## Let `ld' find image libs and similar things in /usr/local/lib.
6592 ## The system compiler, GCC, has apparently been modified to not
6593 ## look there, contrary to what a stock GCC would do.
6594 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6598 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6599 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6603 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6607 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6608 ## otherwise Emacs dumps core on elf systems.
6609 LD_SWITCH_SYSTEM
="-Z"
6614 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6616 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6617 ## which has not been defined yet. When this was handled with cpp,
6618 ## it was expanded to null when configure sourced the s/*.h file.
6619 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6620 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6621 ## (or somesuch), but because it is supposed to go at the _front_
6622 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6623 ## Compare with the gnu-linux case below, which added to the end
6624 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6625 ## LD_SWITCH_SYSTEM_TEMACS.
6628 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6629 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6634 if test "$machine" = "alpha"; then
6635 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6636 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
6640 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6641 ## With ELF, make sure that all common symbols get allocated to in the
6642 ## data section. Otherwise, the dump of temacs may miss variables in
6643 ## the shared library that have been initialized. For example, with
6644 ## GNU libc, __malloc_initialized would normally be resolved to the
6645 ## shared library's .bss section, which is fatal.
6646 if test "x$GCC" = "xyes"; then
6647 C_SWITCH_MACHINE
="-fno-common"
6649 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6652 UNEXEC_OBJ
=unexalpha.o
6660 ## Some programs in src produce warnings saying certain subprograms
6661 ## are too complex and need a MAXMEM value greater than 2000 for
6662 ## additional optimization. --nils@exp-math.uni-essen.de
6663 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6664 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6665 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6666 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6672 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6673 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6675 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6677 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6679 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
6681 ## Motif needs -lgen.
6682 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6687 ### Make sure subsequent tests use flags consistent with the build flags.
6689 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6690 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6692 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6697 # Check whether --enable-largefile was given.
6698 if test "${enable_largefile+set}" = set; then :
6699 enableval
=$enable_largefile;
6702 if test "$enable_largefile" != no
; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6706 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6709 ac_cv_sys_largefile_CC
=no
6710 if test "$GCC" != yes; then
6713 # IRIX 6.2 and later do not support large files by default,
6714 # so use the C compiler's -n32 option if that helps.
6715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 /* Check that off_t can represent 2**63 - 1 correctly.
6719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6720 since some C++ compilers masquerading as C compilers
6721 incorrectly reject 9223372036854775807. */
6722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6724 && LARGE_OFF_T % 2147483647 == 1)
6734 if ac_fn_c_try_compile
"$LINENO"; then :
6737 rm -f core conftest.err conftest.
$ac_objext
6739 if ac_fn_c_try_compile
"$LINENO"; then :
6740 ac_cv_sys_largefile_CC
=' -n32'; break
6742 rm -f core conftest.err conftest.
$ac_objext
6746 rm -f conftest.
$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6751 if test "$ac_cv_sys_largefile_CC" != no
; then
6752 CC
=$CC$ac_cv_sys_largefile_CC
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6757 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <sys/types.h>
6764 /* Check that off_t can represent 2**63 - 1 correctly.
6765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6766 since some C++ compilers masquerading as C compilers
6767 incorrectly reject 9223372036854775807. */
6768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6770 && LARGE_OFF_T % 2147483647 == 1)
6780 if ac_fn_c_try_compile
"$LINENO"; then :
6781 ac_cv_sys_file_offset_bits
=no
; break
6783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #define _FILE_OFFSET_BITS 64
6787 #include <sys/types.h>
6788 /* Check that off_t can represent 2**63 - 1 correctly.
6789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790 since some C++ compilers masquerading as C compilers
6791 incorrectly reject 9223372036854775807. */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794 && LARGE_OFF_T % 2147483647 == 1)
6804 if ac_fn_c_try_compile
"$LINENO"; then :
6805 ac_cv_sys_file_offset_bits
=64; break
6807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6808 ac_cv_sys_file_offset_bits
=unknown
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6814 case $ac_cv_sys_file_offset_bits in #(
6817 cat >>confdefs.h
<<_ACEOF
6818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6823 if test $ac_cv_sys_file_offset_bits = unknown
; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6826 if test "${ac_cv_sys_large_files+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 /* Check that off_t can represent 2**63 - 1 correctly.
6834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6835 since some C++ compilers masquerading as C compilers
6836 incorrectly reject 9223372036854775807. */
6837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6839 && LARGE_OFF_T % 2147483647 == 1)
6849 if ac_fn_c_try_compile
"$LINENO"; then :
6850 ac_cv_sys_large_files
=no
; break
6852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #define _LARGE_FILES 1
6856 #include <sys/types.h>
6857 /* Check that off_t can represent 2**63 - 1 correctly.
6858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859 since some C++ compilers masquerading as C compilers
6860 incorrectly reject 9223372036854775807. */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863 && LARGE_OFF_T % 2147483647 == 1)
6873 if ac_fn_c_try_compile
"$LINENO"; then :
6874 ac_cv_sys_large_files
=1; break
6876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6877 ac_cv_sys_large_files
=unknown
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6882 $as_echo "$ac_cv_sys_large_files" >&6; }
6883 case $ac_cv_sys_large_files in #(
6886 cat >>confdefs.h
<<_ACEOF
6887 #define _LARGE_FILES $ac_cv_sys_large_files
6897 ## If user specified a crt-dir, use that unconditionally.
6898 if test "X$CRT_DIR" = "X"; then
6900 case "$canonical" in
6901 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6902 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6903 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6904 ## For anything else (eg /usr/lib32), it is up the user to specify
6905 ## the location (bug#5655).
6906 ## Test for crtn.o, not just the directory, because sometimes the
6907 ## directory exists but does not have the relevant files (bug#1287).
6908 ## FIXME better to test for binary compatibility somehow.
6909 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6912 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6916 hpux10-20
) CRT_DIR
=/lib
;;
6919 ## Default is /usr/lib.
6920 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6924 ## Some platforms don't use any of these files, so it is not
6925 ## appropriate to put this test outside the if block.
6926 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6927 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
6940 START_FILES
='pre-crt0.o'
6943 ## Adding -lm confuses the dynamic linker, so omit it.
6945 START_FILES
='pre-crt0.o'
6948 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6949 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6951 gnu-linux | gnu-kfreebsd
)
6952 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6953 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6955 hpux10-20 | hpux11
)
6957 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
6960 if test -f $CRT_DIR/crti.o
; then
6961 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6962 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6964 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6965 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6976 if test "${with_sound}" != "no"; then
6977 # Sound support for GNU/Linux and the free BSDs.
6978 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6980 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6981 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6982 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6983 cat >>confdefs.h
<<_ACEOF
6984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 have_sound_header
=yes
6991 # Emulation library used on NetBSD.
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6993 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6994 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6997 ac_check_lib_save_LIBS
=$LIBS
6998 LIBS
="-lossaudio $LIBS"
6999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7002 /* Override any GCC internal prototype to avoid an error.
7003 Use char because int might match the return type of a GCC
7004 builtin and then its argument prototype would still apply. */
7012 return _oss_ioctl ();
7017 if ac_fn_c_try_link
"$LINENO"; then :
7018 ac_cv_lib_ossaudio__oss_ioctl
=yes
7020 ac_cv_lib_ossaudio__oss_ioctl
=no
7022 rm -f core conftest.err conftest.
$ac_objext \
7023 conftest
$ac_exeext conftest.
$ac_ext
7024 LIBS
=$ac_check_lib_save_LIBS
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7027 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7028 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7037 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7041 # Extract the first word of "pkg-config", so it can be a program name with args.
7042 set dummy pkg-config
; ac_word
=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7050 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir
=.
7058 for ac_exec_ext
in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7072 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7073 if test -n "$PKG_CONFIG"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7075 $as_echo "$PKG_CONFIG" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7083 if test "$PKG_CONFIG" = "no" ; then
7086 PKG_CONFIG_MIN_VERSION
=0.9.0
7087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7089 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7091 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7093 $as_echo "yes" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7097 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7098 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7100 $as_echo "$ALSA_CFLAGS" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7103 $as_echo_n "checking ALSA_LIBS... " >&6; }
7104 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7106 $as_echo "$ALSA_LIBS" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7112 ## If we have a custom action on failure, don't print errors, but
7113 ## do set a variable so people can do so.
7114 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7126 if test $succeeded = yes; then
7132 if test $HAVE_ALSA = yes; then
7133 SAVE_CFLAGS
="$CFLAGS"
7134 SAVE_LDFLAGS
="$LDFLAGS"
7135 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7136 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 #include <asoundlib.h>
7143 snd_lib_error_set_handler (0);
7148 if ac_fn_c_try_compile
"$LINENO"; then :
7149 emacs_alsa_normal
=yes
7151 emacs_alsa_normal
=no
7153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 if test "$emacs_alsa_normal" != yes; then
7155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <alsa/asoundlib.h>
7161 snd_lib_error_set_handler (0);
7166 if ac_fn_c_try_compile
"$LINENO"; then :
7167 emacs_alsa_subdir
=yes
7169 emacs_alsa_subdir
=no
7171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 if test "$emacs_alsa_subdir" != yes; then
7173 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7175 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7178 CFLAGS
="$SAVE_CFLAGS"
7179 LDFLAGS
="$SAVE_LDFLAGS"
7180 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7181 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7183 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7187 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7189 gnu-linux|freebsd|netbsd
)
7191 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7200 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7201 linux
/version.h sys
/systeminfo.h limits.h \
7202 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7203 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7204 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7207 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7208 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7209 cat >>confdefs.h
<<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <sys/personality.h>
7226 personality (PER_LINUX32)
7231 if ac_fn_c_try_compile
"$LINENO"; then :
7232 emacs_cv_personality_linux32
=yes
7234 emacs_cv_personality_linux32
=no
7236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7238 $as_echo "$emacs_cv_personality_linux32" >&6; }
7240 if test $emacs_cv_personality_linux32 = yes; then
7242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7246 for ac_header
in term.h
7248 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7249 if test "x$ac_cv_header_term_h" = x
""yes; then :
7250 cat >>confdefs.h
<<_ACEOF
7251 #define HAVE_TERM_H 1
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7259 $as_echo_n "checking for ANSI C header files... " >&6; }
7260 if test "${ac_cv_header_stdc+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7278 if ac_fn_c_try_compile
"$LINENO"; then :
7279 ac_cv_header_stdc
=yes
7281 ac_cv_header_stdc
=no
7283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7285 if test $ac_cv_header_stdc = yes; then
7286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "memchr" >/dev
/null
2>&1; then :
7296 ac_cv_header_stdc
=no
7302 if test $ac_cv_header_stdc = yes; then
7303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 $EGREP "free" >/dev
/null
2>&1; then :
7313 ac_cv_header_stdc
=no
7319 if test $ac_cv_header_stdc = yes; then
7320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7321 if test "$cross_compiling" = yes; then :
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7328 #if ((' ' & 0x0FF) == 0x020)
7329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7332 # define ISLOWER(c) \
7333 (('a' <= (c) && (c) <= 'i') \
7334 || ('j' <= (c) && (c) <= 'r') \
7335 || ('s' <= (c) && (c) <= 'z'))
7336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7344 for (i = 0; i < 256; i++)
7345 if (XOR (islower (i), ISLOWER (i))
7346 || toupper (i) != TOUPPER (i))
7351 if ac_fn_c_try_run
"$LINENO"; then :
7354 ac_cv_header_stdc
=no
7356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7363 $as_echo "$ac_cv_header_stdc" >&6; }
7364 if test $ac_cv_header_stdc = yes; then
7366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7372 if test "${ac_cv_header_time+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <sys/types.h>
7378 #include <sys/time.h>
7384 if ((struct tm *) 0)
7390 if ac_fn_c_try_compile
"$LINENO"; then :
7391 ac_cv_header_time
=yes
7393 ac_cv_header_time
=no
7395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7398 $as_echo "$ac_cv_header_time" >&6; }
7399 if test $ac_cv_header_time = yes; then
7401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7405 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7406 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7412 cat >>confdefs.h
<<_ACEOF
7413 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7416 if test $ac_cv_have_decl_sys_siglist != yes; then
7417 # For Tru64, at least:
7418 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7419 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7425 cat >>confdefs.h
<<_ACEOF
7426 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7429 if test $ac_cv_have_decl___sys_siglist = yes; then
7431 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7436 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7437 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <sys/types.h>
7443 #include <sys/wait.h>
7445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7461 if ac_fn_c_try_compile
"$LINENO"; then :
7462 ac_cv_header_sys_wait_h
=yes
7464 ac_cv_header_sys_wait_h
=no
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7469 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7470 if test $ac_cv_header_sys_wait_h = yes; then
7472 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7478 $as_echo_n "checking for struct utimbuf... " >&6; }
7479 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #ifdef TIME_WITH_SYS_TIME
7485 #include <sys/time.h>
7488 #ifdef HAVE_SYS_TIME_H
7489 #include <sys/time.h>
7500 static struct utimbuf x; x.actime = x.modtime;
7505 if ac_fn_c_try_compile
"$LINENO"; then :
7506 emacs_cv_struct_utimbuf
=yes
7508 emacs_cv_struct_utimbuf
=no
7510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7513 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7514 if test $emacs_cv_struct_utimbuf = yes; then
7516 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7521 $as_echo_n "checking return type of signal handlers... " >&6; }
7522 if test "${ac_cv_type_signal+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7533 return *(signal (0, 0)) (0) == 1;
7538 if ac_fn_c_try_compile
"$LINENO"; then :
7539 ac_cv_type_signal
=int
7541 ac_cv_type_signal
=void
7543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7546 $as_echo "$ac_cv_type_signal" >&6; }
7548 cat >>confdefs.h
<<_ACEOF
7549 #define RETSIGTYPE $ac_cv_type_signal
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7555 $as_echo_n "checking for speed_t... " >&6; }
7556 if test "${emacs_cv_speed_t+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <termios.h>
7570 if ac_fn_c_try_compile
"$LINENO"; then :
7571 emacs_cv_speed_t
=yes
7575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7578 $as_echo "$emacs_cv_speed_t" >&6; }
7579 if test $emacs_cv_speed_t = yes; then
7581 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7586 $as_echo_n "checking for struct timeval... " >&6; }
7587 if test "${emacs_cv_struct_timeval+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 #ifdef TIME_WITH_SYS_TIME
7593 #include <sys/time.h>
7596 #ifdef HAVE_SYS_TIME_H
7597 #include <sys/time.h>
7605 static struct timeval x; x.tv_sec = x.tv_usec;
7610 if ac_fn_c_try_compile
"$LINENO"; then :
7611 emacs_cv_struct_timeval
=yes
7613 emacs_cv_struct_timeval
=no
7615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7618 $as_echo "$emacs_cv_struct_timeval" >&6; }
7619 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7620 if test $emacs_cv_struct_timeval = yes; then
7622 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7627 $as_echo_n "checking for struct exception... " >&6; }
7628 if test "${emacs_cv_struct_exception+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7642 if ac_fn_c_try_compile
"$LINENO"; then :
7643 emacs_cv_struct_exception
=yes
7645 emacs_cv_struct_exception
=no
7647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7650 $as_echo "$emacs_cv_struct_exception" >&6; }
7651 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7652 if test $emacs_cv_struct_exception != yes; then
7654 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7658 for ac_header
in sys
/socket.h
7660 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7661 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
7662 cat >>confdefs.h
<<_ACEOF
7663 #define HAVE_SYS_SOCKET_H 1
7670 for ac_header
in net
/if.h
7672 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7673 #if HAVE_SYS_SOCKET_H
7674 #include <sys/socket.h>
7677 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
7678 cat >>confdefs.h
<<_ACEOF
7679 #define HAVE_NET_IF_H 1
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7688 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7689 if test "${ac_cv_struct_tm+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <sys/types.h>
7701 int *p = &tm.tm_sec;
7707 if ac_fn_c_try_compile
"$LINENO"; then :
7708 ac_cv_struct_tm
=time.h
7710 ac_cv_struct_tm
=sys
/time.h
7712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7715 $as_echo "$ac_cv_struct_tm" >&6; }
7716 if test $ac_cv_struct_tm = sys
/time.h
; then
7718 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7722 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7723 #include <$ac_cv_struct_tm>
7726 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
7728 cat >>confdefs.h
<<_ACEOF
7729 #define HAVE_STRUCT_TM_TM_ZONE 1
7735 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7737 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7740 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7742 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
7748 cat >>confdefs.h
<<_ACEOF
7749 #define HAVE_DECL_TZNAME $ac_have_decl
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7753 $as_echo_n "checking for tzname... " >&6; }
7754 if test "${ac_cv_var_tzname+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7760 #if !HAVE_DECL_TZNAME
7761 extern char *tzname[];
7767 return tzname[0][0];
7772 if ac_fn_c_try_link
"$LINENO"; then :
7773 ac_cv_var_tzname
=yes
7777 rm -f core conftest.err conftest.
$ac_objext \
7778 conftest
$ac_exeext conftest.
$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7781 $as_echo "$ac_cv_var_tzname" >&6; }
7782 if test $ac_cv_var_tzname = yes; then
7784 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7789 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7791 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
7793 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7797 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7798 #if HAVE_SYS_SOCKET_H
7799 #include <sys/socket.h>
7805 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
7807 cat >>confdefs.h
<<_ACEOF
7808 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7813 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7814 #if HAVE_SYS_SOCKET_H
7815 #include <sys/socket.h>
7821 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
7823 cat >>confdefs.h
<<_ACEOF
7824 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7829 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7830 #if HAVE_SYS_SOCKET_H
7831 #include <sys/socket.h>
7837 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
7839 cat >>confdefs.h
<<_ACEOF
7840 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7845 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7846 #if HAVE_SYS_SOCKET_H
7847 #include <sys/socket.h>
7853 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
7855 cat >>confdefs.h
<<_ACEOF
7856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7861 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7862 #if HAVE_SYS_SOCKET_H
7863 #include <sys/socket.h>
7869 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
7871 cat >>confdefs.h
<<_ACEOF
7872 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7881 $as_echo_n "checking for function prototypes... " >&6; }
7882 if test "$ac_cv_prog_cc_c89" != no
; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7886 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7889 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7897 $as_echo_n "checking for working volatile... " >&6; }
7898 if test "${ac_cv_c_volatile+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7909 int * volatile y = (int *) 0;
7915 if ac_fn_c_try_compile
"$LINENO"; then :
7916 ac_cv_c_volatile
=yes
7920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7923 $as_echo "$ac_cv_c_volatile" >&6; }
7924 if test $ac_cv_c_volatile = no
; then
7926 $as_echo "#define volatile /**/" >>confdefs.h
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7932 if test "${ac_cv_c_const+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7941 /* FIXME: Include the comments suggested by Paul. */
7943 /* Ultrix mips cc rejects this. */
7944 typedef int charset[2];
7946 /* SunOS 4.1.1 cc rejects this. */
7947 char const *const *pcpcc;
7949 /* NEC SVR4.0.2 mips cc rejects this. */
7950 struct point {int x, y;};
7951 static struct point const zero = {0,0};
7952 /* AIX XL C 1.02.0.0 rejects this.
7953 It does not let you subtract one const X* pointer from another in
7954 an arm of an if-expression whose if-part is not a constant
7956 const char *g = "string";
7957 pcpcc = &g + (g ? g-g : 0);
7958 /* HPUX 7.0 cc rejects these. */
7960 ppc = (char**) pcpcc;
7961 pcpcc = (char const *const *) ppc;
7962 { /* SCO 3.2v4 cc rejects this. */
7964 char const *s = 0 ? (char *) 0 : (char const *) 0;
7969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7971 const int *foo = &x[0];
7974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7975 typedef const int *iptr;
7979 { /* AIX XL C 1.02.0.0 rejects this saying
7980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7981 struct s { int j; const int *ap[3]; };
7982 struct s *b; b->j = 5;
7984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7988 return !cs[0] && !zero.x;
7995 if ac_fn_c_try_compile
"$LINENO"; then :
8000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8003 $as_echo "$ac_cv_c_const" >&6; }
8004 if test $ac_cv_c_const = no
; then
8006 $as_echo "#define const /**/" >>confdefs.h
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8011 $as_echo_n "checking for void * support... " >&6; }
8012 if test "${emacs_cv_void_star+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8026 if ac_fn_c_try_compile
"$LINENO"; then :
8027 emacs_cv_void_star
=yes
8029 emacs_cv_void_star
=no
8031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8034 $as_echo "$emacs_cv_void_star" >&6; }
8035 if test $emacs_cv_void_star = yes; then
8036 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8039 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8045 if test "${ac_cv_c_bigendian+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 ac_cv_c_bigendian
=unknown
8049 # See if we're dealing with a universal compiler.
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #ifndef __APPLE_CC__
8053 not a universal capable compiler
8058 if ac_fn_c_try_compile
"$LINENO"; then :
8060 # Check for potential -arch flags. It is not universal unless
8061 # there are at least two -arch flags with different values.
8064 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8065 if test -n "$ac_prev"; then
8067 i?
86 | x86_64 | ppc | ppc64
)
8068 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8071 ac_cv_c_bigendian
=universal
8077 elif test "x$ac_word" = "x-arch"; then
8082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8083 if test $ac_cv_c_bigendian = unknown
; then
8084 # See if sys/param.h defines the BYTE_ORDER macro.
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <sys/types.h>
8088 #include <sys/param.h>
8093 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8094 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8103 if ac_fn_c_try_compile
"$LINENO"; then :
8104 # It does; now see whether it defined to BIG_ENDIAN or not.
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <sys/types.h>
8108 #include <sys/param.h>
8113 #if BYTE_ORDER != BIG_ENDIAN
8121 if ac_fn_c_try_compile
"$LINENO"; then :
8122 ac_cv_c_bigendian
=yes
8124 ac_cv_c_bigendian
=no
8126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 if test $ac_cv_c_bigendian = unknown
; then
8131 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8139 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8147 if ac_fn_c_try_compile
"$LINENO"; then :
8148 # It does; now see whether it defined to _BIG_ENDIAN or not.
8149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8164 if ac_fn_c_try_compile
"$LINENO"; then :
8165 ac_cv_c_bigendian
=yes
8167 ac_cv_c_bigendian
=no
8169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 if test $ac_cv_c_bigendian = unknown
; then
8174 # Compile a test program.
8175 if test "$cross_compiling" = yes; then :
8176 # Try to guess by grepping values from an object file.
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 short int ascii_mm[] =
8180 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8181 short int ascii_ii[] =
8182 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8183 int use_ascii (int i) {
8184 return ascii_mm[i] + ascii_ii[i];
8186 short int ebcdic_ii[] =
8187 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8188 short int ebcdic_mm[] =
8189 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8190 int use_ebcdic (int i) {
8191 return ebcdic_mm[i] + ebcdic_ii[i];
8198 return use_ascii (foo) == use_ebcdic (foo);
8203 if ac_fn_c_try_compile
"$LINENO"; then :
8204 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8205 ac_cv_c_bigendian
=yes
8207 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8208 if test "$ac_cv_c_bigendian" = unknown
; then
8209 ac_cv_c_bigendian
=no
8211 # finding both strings is unlikely to happen, but who knows?
8212 ac_cv_c_bigendian
=unknown
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 $ac_includes_default
8225 /* Are we little or big endian? From Harbison&Steele. */
8229 char c[sizeof (long int)];
8232 return u.c[sizeof (long int) - 1] == 1;
8238 if ac_fn_c_try_run
"$LINENO"; then :
8239 ac_cv_c_bigendian
=no
8241 ac_cv_c_bigendian
=yes
8243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8244 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8250 $as_echo "$ac_cv_c_bigendian" >&6; }
8251 case $ac_cv_c_bigendian in #(
8253 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8259 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8263 as_fn_error $?
"unknown endianness
8264 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8269 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8270 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 char __attribute__ ((__aligned__ (1 << 3))) c;
8284 if ac_fn_c_try_compile
"$LINENO"; then :
8285 emacs_cv_attribute_aligned
=yes
8287 emacs_cv_attribute_aligned
=no
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8292 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8293 if test $emacs_cv_attribute_aligned = yes; then
8295 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8302 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8303 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 cat >conftest.
make <<\_ACEOF
8309 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8311 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8314 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8316 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8320 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 SET_MAKE
="MAKE=${MAKE-make}"
8334 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8336 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8338 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8339 if test "x$testval" != x
; then
8342 ac_enable_autodepend
=no
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8345 $as_echo "$HAVE_GNU_MAKE" >&6; }
8346 if test $HAVE_GNU_MAKE = yes; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8348 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8349 SAVE_CFLAGS
="$CFLAGS"
8350 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8362 if ac_fn_c_try_compile
"$LINENO"; then :
8365 ac_enable_autodepend
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 CFLAGS
="$SAVE_CFLAGS"
8369 test -f deps.d || ac_enable_autodepend
=no
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8372 $as_echo "$ac_enable_autodepend" >&6; }
8374 if test $ac_enable_autodepend = yes; then
8375 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8376 ## In parallel builds, another make might create depdir between
8377 ## the first test and mkdir, so stick another test on the end.
8378 ## Or use mkinstalldirs? mkdir -p is not portable.
8379 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8380 deps_frag
=autodeps.mk
8383 deps_frag
=$srcdir/src
/$deps_frag
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8390 $as_echo_n "checking for long file names... " >&6; }
8391 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8394 ac_cv_sys_long_file_names
=yes
8395 # Test for long file names in all the places we know might matter:
8396 # . the current directory, where building will happen
8397 # $prefix/lib where we will be installing things
8398 # $exec_prefix/lib likewise
8399 # $TMPDIR if set, where it might want to write temporary files
8400 # /tmp where it might want to write temporary files
8403 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8404 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8405 # in the usual case where exec_prefix is '${prefix}'.
8407 . |
/* | ?
:[\\/]*) ;; #(
8410 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8411 ac_xdir
=$ac_dir/cf$$
8412 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8413 ac_tf1
=$ac_xdir/conftest9012345
8414 ac_tf2
=$ac_xdir/conftest9012346
8415 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8416 ac_cv_sys_long_file_names
=no
8417 rm -f -r "$ac_xdir" 2>/dev
/null
8418 test $ac_cv_sys_long_file_names = no
&& break
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8422 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8423 if test $ac_cv_sys_long_file_names = yes; then
8425 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8430 #### Choose a window system.
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8433 $as_echo_n "checking for X... " >&6; }
8436 # Check whether --with-x was given.
8437 if test "${with_x+set}" = set; then :
8441 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8442 if test "x$with_x" = xno
; then
8443 # The user explicitly disabled X.
8446 case $x_includes,$x_libraries in #(
8447 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
8448 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8451 # One or both of the vars are not set, and there is no cached value.
8452 ac_x_includes
=no ac_x_libraries
=no
8453 rm -f -r conftest.dir
8454 if mkdir conftest.dir
; then
8456 cat >Imakefile
<<'_ACEOF'
8458 @echo incroot='${INCROOT}'
8460 @echo usrlibdir='${USRLIBDIR}'
8462 @echo libdir='${LIBDIR}'
8464 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8465 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8466 for ac_var
in incroot usrlibdir libdir
; do
8467 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8469 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8470 for ac_extension
in a so sl dylib la dll
; do
8471 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8472 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8473 ac_im_usrlibdir
=$ac_im_libdir; break
8476 # Screen out bogus values from the imake configuration. They are
8477 # bogus both because they are the default anyway, and because
8478 # using them would break gcc on systems where it needs fixed includes.
8479 case $ac_im_incroot in
8480 /usr
/include
) ac_x_includes
= ;;
8481 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8483 case $ac_im_usrlibdir in
8484 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8485 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8489 rm -f -r conftest.dir
8492 # Standard set of common directories for X headers.
8493 # Check X11 before X11Rn because it is often a symlink to the current release.
8507 /usr/local/X11/include
8508 /usr/local/X11R7/include
8509 /usr/local/X11R6/include
8510 /usr/local/X11R5/include
8511 /usr/local/X11R4/include
8513 /usr/local/include/X11
8514 /usr/local/include/X11R7
8515 /usr/local/include/X11R6
8516 /usr/local/include/X11R5
8517 /usr/local/include/X11R4
8521 /usr/XFree86/include/X11
8525 /usr/unsupported/include
8527 /usr/local/x11r5/include
8528 /usr/lpp/Xamples/include
8530 /usr/openwin/include
8531 /usr/openwin/share/include'
8533 if test "$ac_x_includes" = no
; then
8534 # Guess where to find include files, by looking for Xlib.h.
8535 # First, try using that file with no special directory specified.
8536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 #include <X11/Xlib.h>
8540 if ac_fn_c_try_cpp
"$LINENO"; then :
8541 # We can compile using X headers with no special include directory.
8544 for ac_dir
in $ac_x_header_dirs; do
8545 if test -r "$ac_dir/X11/Xlib.h"; then
8546 ac_x_includes
=$ac_dir
8551 rm -f conftest.err conftest.i conftest.
$ac_ext
8552 fi # $ac_x_includes = no
8554 if test "$ac_x_libraries" = no
; then
8555 # Check for the libraries.
8556 # See if we find them without any special options.
8557 # Don't add to $LIBS permanently.
8560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 #include <X11/Xlib.h>
8571 if ac_fn_c_try_link
"$LINENO"; then :
8573 # We can link X programs with no special library path.
8577 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8579 # Don't even attempt the hair of trying to link an X program!
8580 for ac_extension
in a so sl dylib la dll
; do
8581 if test -r "$ac_dir/libX11.$ac_extension"; then
8582 ac_x_libraries
=$ac_dir
8588 rm -f core conftest.err conftest.
$ac_objext \
8589 conftest
$ac_exeext conftest.
$ac_ext
8590 fi # $ac_x_libraries = no
8592 case $ac_x_includes,$ac_x_libraries in #(
8594 # Didn't find X, or a directory has "'" in its name.
8595 ac_cv_have_x
="have_x=no";; #(
8597 # Record where we found X for the cache.
8598 ac_cv_have_x
="have_x=yes\
8599 ac_x_includes='$ac_x_includes'\
8600 ac_x_libraries='$ac_x_libraries'"
8606 eval "$ac_cv_have_x"
8609 if test "$have_x" != yes; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8611 $as_echo "$have_x" >&6; }
8614 # If each of the values was on the command line, it overrides each guess.
8615 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8616 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8617 # Update the cache value to reflect the command line values.
8618 ac_cv_have_x
="have_x=yes\
8619 ac_x_includes='$x_includes'\
8620 ac_x_libraries='$x_libraries'"
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8622 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8625 if test "$no_x" = yes; then
8631 ## Workaround for bug in autoconf <= 2.62.
8632 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8633 ## No need to do anything special for these standard directories.
8634 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8636 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8640 LD_SWITCH_X_SITE_AUX
=
8641 LD_SWITCH_X_SITE_AUX_RPATH
=
8642 if test "${x_libraries}" != NONE
; then
8643 if test -n "${x_libraries}"; then
8644 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8645 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8646 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8648 x_default_search_path
=""
8649 x_search_path
=${x_libraries}
8650 if test -z "${x_search_path}"; then
8651 x_search_path
=/usr
/lib
8653 for x_library
in `echo ${x_search_path}: | \
8654 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8656 ${x_library}/X11/%L/%T/%N%C%S:\
8657 ${x_library}/X11/%l/%T/%N%C%S:\
8658 ${x_library}/X11/%T/%N%C%S:\
8659 ${x_library}/X11/%L/%T/%N%S:\
8660 ${x_library}/X11/%l/%T/%N%S:\
8661 ${x_library}/X11/%T/%N%S"
8662 if test x
"${x_default_search_path}" = x
; then
8663 x_default_search_path
=${x_search_path}
8665 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8672 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8673 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8676 if test x
"${x_includes}" = x
; then
8677 bitmapdir
=/usr
/include
/X11
/bitmaps
8679 # accumulate include directories that have X11 bitmap subdirectories
8681 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8682 if test -d "${bmd}/X11/bitmaps"; then
8683 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8685 if test -d "${bmd}/bitmaps"; then
8686 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8689 if test ${bmd_acc} != "dummyval"; then
8690 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8697 tmp_CPPFLAGS
="$CPPFLAGS"
8698 tmp_CFLAGS
="$CFLAGS"
8699 CPPFLAGS
="$CPPFLAGS -x objective-c"
8700 CFLAGS
="$CFLAGS -x objective-c"
8701 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8702 if test "${with_ns}" != no
; then
8703 if test "${opsys}" = darwin
; then
8705 ns_appdir
=`pwd`/nextstep
/Emacs.app
8706 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8707 ns_appresdir
=${ns_appdir}/Contents
/Resources
8708 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8709 elif test -f $GNUSTEP_CONFIG_FILE; then
8711 ns_appdir
=`pwd`/nextstep
/Emacs.app
8712 ns_appbindir
=${ns_appdir}/
8713 ns_appresdir
=${ns_appdir}/Resources
8714 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8715 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8716 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8717 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8718 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8719 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8720 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8721 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8722 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8723 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8724 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8725 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8730 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8731 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
8734 as_fn_error $?
"\`--with-ns' was specified, but the include
8735 files are missing or cannot be compiled." "$LINENO" 5
8739 NS_HAVE_NSINTEGER
=yes
8740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 #include <Foundation/NSObjCRuntime.h>
8751 if ac_fn_c_try_compile
"$LINENO"; then :
8752 ns_have_nsinteger
=yes
8754 ns_have_nsinteger
=no
8756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8757 if test $ns_have_nsinteger = no
; then
8758 NS_HAVE_NSINTEGER
=no
8766 if test "${HAVE_NS}" = yes; then
8767 window_system
=nextstep
8769 # set up packaging dirs
8770 exec_prefix
=${ns_appbindir}
8771 libexecdir
=${ns_appbindir}/libexec
8772 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8773 prefix
=${ns_appresdir}
8775 ns_frag
=$srcdir/src
/ns.mk
8776 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8777 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8779 CFLAGS
="$tmp_CFLAGS"
8780 CPPFLAGS
="$tmp_CPPFLAGS"
8786 case "${window_system}" in
8790 case "${with_x_toolkit}" in
8791 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8792 motif
) USE_X_TOOLKIT
=MOTIF
;;
8794 USE_X_TOOLKIT
=none
;;
8795 gtk3
) with_gtk3
=yes
8796 USE_X_TOOLKIT
=none
;;
8797 no
) USE_X_TOOLKIT
=none
;;
8798 * ) USE_X_TOOLKIT
=maybe
;;
8808 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8809 # Extract the first word of "X", so it can be a program name with args.
8810 set dummy X
; ac_word
=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8816 if test -n "$HAVE_XSERVER"; then
8817 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8823 test -z "$as_dir" && as_dir
=.
8824 for ac_exec_ext
in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_prog_HAVE_XSERVER
="true"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8837 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8838 if test -n "$HAVE_XSERVER"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8840 $as_echo "$HAVE_XSERVER" >&6; }
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8847 if test "$HAVE_XSERVER" = true ||
8848 test -n "$DISPLAY" ||
8849 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8850 as_fn_error $?
"You seem to be running X, but no X development libraries
8851 were found. You should install the relevant development files for X
8852 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8853 sure you have development files for image handling, i.e.
8854 tiff, gif, jpeg, png and xpm.
8855 If you are sure you want Emacs compiled without X window support, pass
8857 to configure." "$LINENO" 5
8861 ### If we're using X11, we should use the X menu package.
8864 yes ) HAVE_MENUS
=yes ;;
8867 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8868 # Assume not, until told otherwise.
8871 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8872 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
8878 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8879 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8886 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8887 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 extern void (* __after_morecore_hook)();
8896 __after_morecore_hook = 0
8901 if ac_fn_c_try_link
"$LINENO"; then :
8902 emacs_cv_var___after_morecore_hook
=yes
8904 emacs_cv_var___after_morecore_hook
=no
8906 rm -f core conftest.err conftest.
$ac_objext \
8907 conftest
$ac_exeext conftest.
$ac_ext
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8910 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8911 if test $emacs_cv_var___after_morecore_hook = no
; then
8918 ## darwin ld insists on the use of malloc routines in the System framework.
8919 darwin|sol2-10
) system_malloc
=yes ;;
8922 if test "${system_malloc}" = "yes"; then
8924 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8928 (The GNU allocators don't work with this system configuration.)"
8932 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
8933 VMLIMIT_OBJ
=vm-limit.o
8938 if test "$doug_lea_malloc" = "yes" ; then
8939 if test "$GNU_MALLOC" = yes ; then
8941 (Using Doug Lea's new malloc from the GNU C Library.)"
8944 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8947 ## Use mmap directly for allocating larger buffers.
8948 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8949 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8950 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8952 gnu
*) REL_ALLOC
=no
;;
8956 if test x
"${REL_ALLOC}" = x
; then
8957 REL_ALLOC
=${GNU_MALLOC}
8960 use_mmap_for_buffers
=no
8962 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
8968 for ac_header
in $ac_header_list
8970 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8971 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8973 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8974 cat >>confdefs.h
<<_ACEOF
8975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8989 for ac_func
in getpagesize
8991 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8992 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
8993 cat >>confdefs.h
<<_ACEOF
8994 #define HAVE_GETPAGESIZE 1
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9001 $as_echo_n "checking for working mmap... " >&6; }
9002 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 if test "$cross_compiling" = yes; then :
9006 ac_cv_func_mmap_fixed_mapped
=no
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 /* malloc might have been renamed as rpl_malloc. */
9014 /* Thanks to Mike Haertel and Jim Avera for this test.
9015 Here is a matrix of mmap possibilities:
9016 mmap private not fixed
9017 mmap private fixed at somewhere currently unmapped
9018 mmap private fixed at somewhere already mapped
9019 mmap shared not fixed
9020 mmap shared fixed at somewhere currently unmapped
9021 mmap shared fixed at somewhere already mapped
9022 For private mappings, we should verify that changes cannot be read()
9023 back from the file, nor mmap's back from the file at a different
9024 address. (There have been systems where private was not correctly
9025 implemented like the infamous i386 svr4.0, and systems where the
9026 VM page cache was not coherent with the file system buffer cache
9027 like early versions of FreeBSD and possibly contemporary NetBSD.)
9028 For shared mappings, we should conversely verify that changes get
9029 propagated back to all the places they're supposed to be.
9031 Grep wants private fixed already mapped.
9032 The main things grep needs to know about mmap are:
9033 * does it exist and is it safe to write into the mmap'd area
9034 * how to use it (BSD variants) */
9037 #include <sys/mman.h>
9039 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9043 /* This mess was copied from the GNU getpagesize.h. */
9044 #ifndef HAVE_GETPAGESIZE
9045 # ifdef _SC_PAGESIZE
9046 # define getpagesize() sysconf(_SC_PAGESIZE)
9047 # else /* no _SC_PAGESIZE */
9048 # ifdef HAVE_SYS_PARAM_H
9049 # include <sys/param.h>
9050 # ifdef EXEC_PAGESIZE
9051 # define getpagesize() EXEC_PAGESIZE
9052 # else /* no EXEC_PAGESIZE */
9054 # define getpagesize() NBPG * CLSIZE
9057 # endif /* no CLSIZE */
9058 # else /* no NBPG */
9060 # define getpagesize() NBPC
9061 # else /* no NBPC */
9063 # define getpagesize() PAGESIZE
9064 # endif /* PAGESIZE */
9065 # endif /* no NBPC */
9066 # endif /* no NBPG */
9067 # endif /* no EXEC_PAGESIZE */
9068 # else /* no HAVE_SYS_PARAM_H */
9069 # define getpagesize() 8192 /* punt totally */
9070 # endif /* no HAVE_SYS_PARAM_H */
9071 # endif /* no _SC_PAGESIZE */
9073 #endif /* no HAVE_GETPAGESIZE */
9078 char *data, *data2, *data3;
9083 pagesize = getpagesize ();
9085 /* First, make a file with some known garbage in it. */
9086 data = (char *) malloc (pagesize);
9089 for (i = 0; i < pagesize; ++i)
9090 *(data + i) = rand ();
9092 fd = creat ("conftest.mmap", 0600);
9095 if (write (fd, data, pagesize) != pagesize)
9099 /* Next, check that the tail of a page is zero-filled. File must have
9100 non-zero length, otherwise we risk SIGBUS for entire page. */
9101 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9105 if (write (fd2, cdata2, 1) != 1)
9107 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9108 if (data2 == MAP_FAILED)
9110 for (i = 0; i < pagesize; ++i)
9114 if (munmap (data2, pagesize))
9117 /* Next, try to mmap the file at a fixed address which already has
9118 something else allocated at it. If we can, also make sure that
9119 we see the same garbage. */
9120 fd = open ("conftest.mmap", O_RDWR);
9123 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9126 for (i = 0; i < pagesize; ++i)
9127 if (*(data + i) != *(data2 + i))
9130 /* Finally, make sure that changes to the mapped area do not
9131 percolate back to the file as seen by read(). (This is a bug on
9132 some variants of i386 svr4.0.) */
9133 for (i = 0; i < pagesize; ++i)
9134 *(data2 + i) = *(data2 + i) + 1;
9135 data3 = (char *) malloc (pagesize);
9138 if (read (fd, data3, pagesize) != pagesize)
9140 for (i = 0; i < pagesize; ++i)
9141 if (*(data + i) != *(data3 + i))
9147 if ac_fn_c_try_run
"$LINENO"; then :
9148 ac_cv_func_mmap_fixed_mapped
=yes
9150 ac_cv_func_mmap_fixed_mapped
=no
9152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9158 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9159 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9161 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9164 rm -f conftest.mmap conftest.txt
9166 if test $use_mmap_for_buffers = yes; then
9168 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9173 LIBS
="$LIBS_SYSTEM $LIBS"
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9176 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9177 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9180 ac_check_lib_save_LIBS
=$LIBS
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9185 /* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9195 return dnet_ntoa ();
9200 if ac_fn_c_try_link
"$LINENO"; then :
9201 ac_cv_lib_dnet_dnet_ntoa
=yes
9203 ac_cv_lib_dnet_dnet_ntoa
=no
9205 rm -f core conftest.err conftest.
$ac_objext \
9206 conftest
$ac_exeext conftest.
$ac_ext
9207 LIBS
=$ac_check_lib_save_LIBS
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9210 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9211 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9212 cat >>confdefs.h
<<_ACEOF
9213 #define HAVE_LIBDNET 1
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9222 $as_echo_n "checking for main in -lXbsd... " >&6; }
9223 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9226 ac_check_lib_save_LIBS
=$LIBS
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9240 if ac_fn_c_try_link
"$LINENO"; then :
9241 ac_cv_lib_Xbsd_main
=yes
9243 ac_cv_lib_Xbsd_main
=no
9245 rm -f core conftest.err conftest.
$ac_objext \
9246 conftest
$ac_exeext conftest.
$ac_ext
9247 LIBS
=$ac_check_lib_save_LIBS
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9250 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9251 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9252 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9257 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9258 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9259 $as_echo_n "(cached) " >&6
9261 ac_check_lib_save_LIBS
=$LIBS
9262 LIBS
="-lpthreads $LIBS"
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9266 /* Override any GCC internal prototype to avoid an error.
9267 Use char because int might match the return type of a GCC
9268 builtin and then its argument prototype would still apply. */
9281 if ac_fn_c_try_link
"$LINENO"; then :
9282 ac_cv_lib_pthreads_cma_open
=yes
9284 ac_cv_lib_pthreads_cma_open
=no
9286 rm -f core conftest.err conftest.
$ac_objext \
9287 conftest
$ac_exeext conftest.
$ac_ext
9288 LIBS
=$ac_check_lib_save_LIBS
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9291 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9292 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9293 cat >>confdefs.h
<<_ACEOF
9294 #define HAVE_LIBPTHREADS 1
9297 LIBS
="-lpthreads $LIBS"
9302 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9303 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9304 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9305 ## added to LIBS in configure would never contain the pthreads part,
9306 ## but the value used in Makefiles might. FIXME?
9308 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9309 ## be harmless on older versions of X where it happens to exist.
9310 test "$opsys" = "aix4-2" && \
9311 test $ac_cv_lib_pthreads_cma_open = yes && \
9312 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9318 $as_echo_n "checking for -bbigtoc option... " >&6; }
9319 if test "${gdb_cv_bigtoc+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9324 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9325 *) gdb_cv_bigtoc
=-bbigtoc ;;
9328 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9340 if ac_fn_c_try_link
"$LINENO"; then :
9345 rm -f core conftest.err conftest.
$ac_objext \
9346 conftest
$ac_exeext conftest.
$ac_ext
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9350 $as_echo "$gdb_cv_bigtoc" >&6; }
9354 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9355 # used for the tests that follow. We set them back to REAL_CFLAGS and
9356 # REAL_CPPFLAGS later on.
9358 REAL_CFLAGS
="$CFLAGS"
9359 REAL_CPPFLAGS
="$CPPFLAGS"
9361 if test "${HAVE_X11}" = "yes"; then
9362 DEFS
="$C_SWITCH_X_SITE $DEFS"
9363 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9365 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9366 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9368 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9369 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9370 # but it's more convenient here to set LD_RUN_PATH
9371 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9372 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9373 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9377 if test "${opsys}" = "gnu-linux"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9379 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9386 XOpenDisplay ("foo");
9391 if ac_fn_c_try_link
"$LINENO"; then :
9392 xlinux_first_failure
=no
9394 xlinux_first_failure
=yes
9396 rm -f core conftest.err conftest.
$ac_objext \
9397 conftest
$ac_exeext conftest.
$ac_ext
9398 if test "${xlinux_first_failure}" = "yes"; then
9399 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9400 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9401 OLD_CPPFLAGS
="$CPPFLAGS"
9403 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9404 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9405 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9406 LIBS
="$LIBS -b i486-linuxaout"
9407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9413 XOpenDisplay ("foo");
9418 if ac_fn_c_try_link
"$LINENO"; then :
9419 xlinux_second_failure
=no
9421 xlinux_second_failure
=yes
9423 rm -f core conftest.err conftest.
$ac_objext \
9424 conftest
$ac_exeext conftest.
$ac_ext
9425 if test "${xlinux_second_failure}" = "yes"; then
9426 # If we get the same failure with -b, there is no use adding -b.
9427 # So take it out. This plays safe.
9428 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9429 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9430 CPPFLAGS
="$OLD_CPPFLAGS"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9436 $as_echo "yes" >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9444 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9445 # header files included from there.
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9447 $as_echo_n "checking for Xkb... " >&6; }
9448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <X11/Xlib.h>
9451 #include <X11/XKBlib.h>
9455 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9460 if ac_fn_c_try_link
"$LINENO"; then :
9465 rm -f core conftest.err conftest.
$ac_objext \
9466 conftest
$ac_exeext conftest.
$ac_ext
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9468 $as_echo "$emacs_xkb" >&6; }
9469 if test $emacs_xkb = yes; then
9471 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9475 for ac_func
in XrmSetDatabase XScreenResourceString \
9476 XScreenNumberOfScreen XSetWMProtocols
9478 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9479 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9480 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9481 cat >>confdefs.h
<<_ACEOF
9482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9490 if test "${window_system}" = "x11"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9492 $as_echo_n "checking X11 version 6... " >&6; }
9493 if test "${emacs_cv_x11_version_6+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #include <X11/Xlib.h>
9502 #if XlibSpecificationRelease < 6
9510 if ac_fn_c_try_link
"$LINENO"; then :
9511 emacs_cv_x11_version_6
=yes
9513 emacs_cv_x11_version_6
=no
9515 rm -f core conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9519 if test $emacs_cv_x11_version_6 = yes; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9521 $as_echo "6 or newer" >&6; }
9523 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9526 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9528 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9533 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9539 $as_echo "before 6" >&6; }
9544 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9546 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9547 if test "${with_rsvg}" != "no"; then
9548 RSVG_REQUIRED
=2.11.0
9549 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9554 # Extract the first word of "pkg-config", so it can be a program name with args.
9555 set dummy pkg-config
; ac_word
=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9563 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9570 test -z "$as_dir" && as_dir
=.
9571 for ac_exec_ext
in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9585 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9586 if test -n "$PKG_CONFIG"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9588 $as_echo "$PKG_CONFIG" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9596 if test "$PKG_CONFIG" = "no" ; then
9599 PKG_CONFIG_MIN_VERSION
=0.9.0
9600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9602 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9604 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9606 $as_echo "yes" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9610 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9611 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9613 $as_echo "$RSVG_CFLAGS" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9616 $as_echo_n "checking RSVG_LIBS... " >&6; }
9617 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9619 $as_echo "$RSVG_LIBS" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9625 ## If we have a custom action on failure, don't print errors, but
9626 ## do set a variable so people can do so.
9627 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9639 if test $succeeded = yes; then
9648 if test $HAVE_RSVG = yes; then
9650 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9652 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9653 LIBS
="$RSVG_LIBS $LIBS"
9659 if test "${HAVE_X11}" = "yes"; then
9660 if test "${with_imagemagick}" != "no"; then
9661 IMAGEMAGICK_MODULE
="Wand"
9665 # Extract the first word of "pkg-config", so it can be a program name with args.
9666 set dummy pkg-config
; ac_word
=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9674 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir
=.
9682 for ac_exec_ext
in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9696 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9697 if test -n "$PKG_CONFIG"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9699 $as_echo "$PKG_CONFIG" >&6; }
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9707 if test "$PKG_CONFIG" = "no" ; then
9710 PKG_CONFIG_MIN_VERSION
=0.9.0
9711 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9713 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9715 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9717 $as_echo "yes" >&6; }
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9721 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9722 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9724 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9727 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9728 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9730 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 IMAGEMAGICK_CFLAGS
=""
9736 ## If we have a custom action on failure, don't print errors, but
9737 ## do set a variable so people can do so.
9738 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9745 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9746 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9750 if test $succeeded = yes; then
9751 HAVE_IMAGEMAGICK
=yes
9759 if test $HAVE_IMAGEMAGICK = yes; then
9761 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9763 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9764 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9765 for ac_func
in MagickExportImagePixels
9767 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9768 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
9769 cat >>confdefs.h
<<_ACEOF
9770 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9782 if test "${with_gtk3}" = "yes"; then
9785 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9790 # Extract the first word of "pkg-config", so it can be a program name with args.
9791 set dummy pkg-config
; ac_word
=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9799 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9806 test -z "$as_dir" && as_dir
=.
9807 for ac_exec_ext
in '' $ac_executable_extensions; do
9808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9809 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9821 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9822 if test -n "$PKG_CONFIG"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9824 $as_echo "$PKG_CONFIG" >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test "$PKG_CONFIG" = "no" ; then
9835 PKG_CONFIG_MIN_VERSION
=0.9.0
9836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9838 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9840 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842 $as_echo "yes" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9846 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9847 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9849 $as_echo "$GTK_CFLAGS" >&6; }
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9852 $as_echo_n "checking GTK_LIBS... " >&6; }
9853 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9855 $as_echo "$GTK_LIBS" >&6; }
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9861 ## If we have a custom action on failure, don't print errors, but
9862 ## do set a variable so people can do so.
9863 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9875 if test $succeeded = yes; then
9881 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9882 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9886 if test "$pkg_check_gtk" != "yes"; then
9888 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9891 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9896 # Extract the first word of "pkg-config", so it can be a program name with args.
9897 set dummy pkg-config
; ac_word
=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9905 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir
=.
9913 for ac_exec_ext
in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9927 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9928 if test -n "$PKG_CONFIG"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9930 $as_echo "$PKG_CONFIG" >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9938 if test "$PKG_CONFIG" = "no" ; then
9941 PKG_CONFIG_MIN_VERSION
=0.9.0
9942 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9944 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9946 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9952 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9953 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9955 $as_echo "$GTK_CFLAGS" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9958 $as_echo_n "checking GTK_LIBS... " >&6; }
9959 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9961 $as_echo "$GTK_LIBS" >&6; }
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9967 ## If we have a custom action on failure, don't print errors, but
9968 ## do set a variable so people can do so.
9969 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9976 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9977 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9981 if test $succeeded = yes; then
9987 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9988 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9994 if test x
"$pkg_check_gtk" = xyes
; then
9998 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9999 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10000 LIBS
="$GTK_LIBS $LIBS"
10002 for ac_func
in gtk_main
10004 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10005 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10006 cat >>confdefs.h
<<_ACEOF
10007 #define HAVE_GTK_MAIN 1
10013 if test "${GTK_COMPILES}" != "yes"; then
10014 if test "$USE_X_TOOLKIT" != "maybe"; then
10015 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10020 $as_echo "#define USE_GTK 1" >>confdefs.h
10024 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10028 closing open displays. This is no problem if you just use
10029 one display, but if you use more than one and close one of them
10030 Emacs may crash." >&5
10031 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10032 closing open displays. This is no problem if you just use
10033 one display, but if you use more than one and close one of them
10034 Emacs may crash." >&2;}
10043 if test "${HAVE_GTK}" = "yes"; then
10045 if test "$with_toolkit_scroll_bars" != no
; then
10046 with_toolkit_scroll_bars
=yes
10049 HAVE_GTK_FILE_SELECTION
=no
10050 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10051 #include <gtk/gtk.h>
10053 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10054 HAVE_GTK_FILE_SELECTION
=yes
10056 HAVE_GTK_FILE_SELECTION
=no
10059 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10060 for ac_func
in gtk_file_selection_new
10062 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10063 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10064 cat >>confdefs.h
<<_ACEOF
10065 #define HAVE_GTK_FILE_SELECTION_NEW 1
10073 HAVE_GTK_AND_PTHREAD
=no
10074 for ac_header
in pthread.h
10076 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10077 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10078 cat >>confdefs.h
<<_ACEOF
10079 #define HAVE_PTHREAD_H 1
10086 if test "$ac_cv_header_pthread_h"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10088 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10089 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10090 $as_echo_n "(cached) " >&6
10092 ac_check_lib_save_LIBS
=$LIBS
10093 LIBS
="-lpthread $LIBS"
10094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10103 char pthread_self ();
10107 return pthread_self ();
10112 if ac_fn_c_try_link
"$LINENO"; then :
10113 ac_cv_lib_pthread_pthread_self
=yes
10115 ac_cv_lib_pthread_pthread_self
=no
10117 rm -f core conftest.err conftest.
$ac_objext \
10118 conftest
$ac_exeext conftest.
$ac_ext
10119 LIBS
=$ac_check_lib_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10122 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10123 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10124 HAVE_GTK_AND_PTHREAD
=yes
10128 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10129 case "${canonical}" in
10131 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10134 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10138 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10139 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10140 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10141 gtk_orientable_set_orientation
10143 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10144 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10145 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10146 cat >>confdefs.h
<<_ACEOF
10147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10158 if test "${with_dbus}" = "yes"; then
10162 # Extract the first word of "pkg-config", so it can be a program name with args.
10163 set dummy pkg-config
; ac_word
=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10169 case $PKG_CONFIG in
10171 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10175 for as_dir
in $PATH
10178 test -z "$as_dir" && as_dir
=.
10179 for ac_exec_ext
in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10193 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10194 if test -n "$PKG_CONFIG"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10196 $as_echo "$PKG_CONFIG" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10204 if test "$PKG_CONFIG" = "no" ; then
10207 PKG_CONFIG_MIN_VERSION
=0.9.0
10208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10210 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10212 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10214 $as_echo "yes" >&6; }
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10218 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10219 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10221 $as_echo "$DBUS_CFLAGS" >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10224 $as_echo_n "checking DBUS_LIBS... " >&6; }
10225 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10227 $as_echo "$DBUS_LIBS" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10233 ## If we have a custom action on failure, don't print errors, but
10234 ## do set a variable so people can do so.
10235 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10242 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10243 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10247 if test $succeeded = yes; then
10253 if test "$HAVE_DBUS" = yes; then
10254 LIBS
="$LIBS $DBUS_LIBS"
10256 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10258 for ac_func
in dbus_watch_get_unix_fd
10260 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10261 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10262 cat >>confdefs.h
<<_ACEOF
10263 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10269 DBUS_OBJ
=dbusbind.o
10275 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10279 # Extract the first word of "pkg-config", so it can be a program name with args.
10280 set dummy pkg-config
; ac_word
=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10284 $as_echo_n "(cached) " >&6
10286 case $PKG_CONFIG in
10288 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10292 for as_dir
in $PATH
10295 test -z "$as_dir" && as_dir
=.
10296 for ac_exec_ext
in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10310 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10311 if test -n "$PKG_CONFIG"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10313 $as_echo "$PKG_CONFIG" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10321 if test "$PKG_CONFIG" = "no" ; then
10324 PKG_CONFIG_MIN_VERSION
=0.9.0
10325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10327 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10329 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331 $as_echo "yes" >&6; }
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10335 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10336 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10338 $as_echo "$GCONF_CFLAGS" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10341 $as_echo_n "checking GCONF_LIBS... " >&6; }
10342 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10344 $as_echo "$GCONF_LIBS" >&6; }
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10350 ## If we have a custom action on failure, don't print errors, but
10351 ## do set a variable so people can do so.
10352 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10359 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10360 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10364 if test $succeeded = yes; then
10370 if test "$HAVE_GCONF" = yes; then
10372 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10374 for ac_func
in g_type_init
10376 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10377 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10378 cat >>confdefs.h
<<_ACEOF
10379 #define HAVE_G_TYPE_INIT 1
10390 if test "${with_selinux}" = "yes"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10392 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10393 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10396 ac_check_lib_save_LIBS
=$LIBS
10397 LIBS
="-lselinux $LIBS"
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10407 char lgetfilecon ();
10411 return lgetfilecon ();
10416 if ac_fn_c_try_link
"$LINENO"; then :
10417 ac_cv_lib_selinux_lgetfilecon
=yes
10419 ac_cv_lib_selinux_lgetfilecon
=no
10421 rm -f core conftest.err conftest.
$ac_objext \
10422 conftest
$ac_exeext conftest.
$ac_ext
10423 LIBS
=$ac_check_lib_save_LIBS
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10426 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10427 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10428 HAVE_LIBSELINUX
=yes
10433 if test "$HAVE_LIBSELINUX" = yes; then
10435 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10437 LIBSELINUX_LIBS
=-lselinux
10443 if test "${with_gnutls}" = "yes" ; then
10447 # Extract the first word of "pkg-config", so it can be a program name with args.
10448 set dummy pkg-config
; ac_word
=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10454 case $PKG_CONFIG in
10456 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10460 for as_dir
in $PATH
10463 test -z "$as_dir" && as_dir
=.
10464 for ac_exec_ext
in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10478 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10479 if test -n "$PKG_CONFIG"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10481 $as_echo "$PKG_CONFIG" >&6; }
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10489 if test "$PKG_CONFIG" = "no" ; then
10492 PKG_CONFIG_MIN_VERSION
=0.9.0
10493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10495 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10497 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10503 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10504 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10506 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10509 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10510 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10512 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10516 LIBGNUTLS_CFLAGS
=""
10518 ## If we have a custom action on failure, don't print errors, but
10519 ## do set a variable so people can do so.
10520 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10527 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10528 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10532 if test $succeeded = yes; then
10538 if test "${HAVE_GNUTLS}" = "yes"; then
10540 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10549 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10550 if test "$with_xaw3d" != no
; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10552 $as_echo_n "checking for xaw3d... " >&6; }
10553 if test "${emacs_cv_xaw3d+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 #include <X11/Intrinsic.h>
10560 #include <X11/Xaw3d/Simple.h>
10569 if ac_fn_c_try_link
"$LINENO"; then :
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10581 if test $emacs_cv_xaw3d = yes; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10583 $as_echo "yes; using Lucid toolkit" >&6; }
10584 USE_X_TOOLKIT
=LUCID
10588 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10594 $as_echo_n "checking for libXaw... " >&6; }
10595 if test "${emacs_cv_xaw+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 #include <X11/Intrinsic.h>
10602 #include <X11/Xaw/Simple.h>
10611 if ac_fn_c_try_link
"$LINENO"; then :
10616 rm -f core conftest.err conftest.
$ac_objext \
10617 conftest
$ac_exeext conftest.
$ac_ext
10620 if test $emacs_cv_xaw = yes; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10622 $as_echo "yes; using Lucid toolkit" >&6; }
10623 USE_X_TOOLKIT
=LUCID
10625 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10626 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10629 $as_echo "no; do not use toolkit by default" >&6; }
10635 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10638 if test "${USE_X_TOOLKIT}" != "none"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10640 $as_echo_n "checking X11 toolkit version... " >&6; }
10641 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <X11/Intrinsic.h>
10650 #if XtSpecificationRelease < 6
10658 if ac_fn_c_try_link
"$LINENO"; then :
10659 emacs_cv_x11_toolkit_version_6
=yes
10661 emacs_cv_x11_toolkit_version_6
=no
10663 rm -f core conftest.err conftest.
$ac_objext \
10664 conftest
$ac_exeext conftest.
$ac_ext
10667 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10668 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10670 $as_echo "6 or newer" >&6; }
10672 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10674 LIBXTR6
="-lSM -lICE"
10676 ## Use libw.a along with X11R6 Xt.
10677 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10681 $as_echo "before 6" >&6; }
10685 if test x
$HAVE_X11XTR6 = xyes
; then
10686 LIBS
="-lXt -lSM -lICE $LIBS"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10691 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10692 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10695 ac_check_lib_save_LIBS
=$LIBS
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10706 char XmuConvertStandardSelection ();
10710 return XmuConvertStandardSelection ();
10715 if ac_fn_c_try_link
"$LINENO"; then :
10716 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10718 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10720 rm -f core conftest.err conftest.
$ac_objext \
10721 conftest
$ac_exeext conftest.
$ac_ext
10722 LIBS
=$ac_check_lib_save_LIBS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10725 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10726 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
10727 cat >>confdefs.h
<<_ACEOF
10728 #define HAVE_LIBXMU 1
10735 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10741 ## These systems don't supply Xmu.
10743 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10748 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10749 if test "${HAVE_X11}" = "yes"; then
10750 if test "${USE_X_TOOLKIT}" != "none"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10752 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10753 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
10754 $as_echo_n "(cached) " >&6
10756 ac_check_lib_save_LIBS
=$LIBS
10757 LIBS
="-lXext $LIBS"
10758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10761 /* Override any GCC internal prototype to avoid an error.
10762 Use char because int might match the return type of a GCC
10763 builtin and then its argument prototype would still apply. */
10767 char XShapeQueryExtension ();
10771 return XShapeQueryExtension ();
10776 if ac_fn_c_try_link
"$LINENO"; then :
10777 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10779 ac_cv_lib_Xext_XShapeQueryExtension
=no
10781 rm -f core conftest.err conftest.
$ac_objext \
10782 conftest
$ac_exeext conftest.
$ac_ext
10783 LIBS
=$ac_check_lib_save_LIBS
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10786 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10787 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
10788 cat >>confdefs.h
<<_ACEOF
10789 #define HAVE_LIBXEXT 1
10792 LIBS
="-lXext $LIBS"
10800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10802 $as_echo_n "checking for Motif version 2.1... " >&6; }
10803 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10812 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10815 Motif version prior to 2.1.
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10822 emacs_cv_motif_version_2_1
=yes
10824 emacs_cv_motif_version_2_1
=no
10826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10829 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10830 if test $emacs_cv_motif_version_2_1 = yes; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10832 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10833 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10836 ac_check_lib_save_LIBS
=$LIBS
10838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10847 char XpCreateContext ();
10851 return XpCreateContext ();
10856 if ac_fn_c_try_link
"$LINENO"; then :
10857 ac_cv_lib_Xp_XpCreateContext
=yes
10859 ac_cv_lib_Xp_XpCreateContext
=no
10861 rm -f core conftest.err conftest.
$ac_objext \
10862 conftest
$ac_exeext conftest.
$ac_ext
10863 LIBS
=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10866 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10867 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10873 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10874 if test "${emacs_cv_lesstif+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10877 # We put this in CFLAGS temporarily to precede other -I options
10878 # that might be in CFLAGS temporarily.
10879 # We put this in CPPFLAGS where it precedes the other -I options.
10880 OLD_CPPFLAGS
=$CPPFLAGS
10882 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10883 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10895 if ac_fn_c_try_compile
"$LINENO"; then :
10896 emacs_cv_lesstif
=yes
10898 emacs_cv_lesstif
=no
10900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10903 $as_echo "$emacs_cv_lesstif" >&6; }
10904 if test $emacs_cv_lesstif = yes; then
10905 # Make sure this -I option remains in CPPFLAGS after it is set
10906 # back to REAL_CPPFLAGS.
10907 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10908 # have those other -I options anyway. Ultimately, having this
10909 # directory ultimately in CPPFLAGS will be enough.
10910 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10911 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10914 CPPFLAGS
=$OLD_CPPFLAGS
10920 USE_TOOLKIT_SCROLL_BARS
=no
10921 if test "${with_toolkit_scroll_bars}" != "no"; then
10922 if test "${USE_X_TOOLKIT}" != "none"; then
10923 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10924 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10927 USE_TOOLKIT_SCROLL_BARS
=yes
10928 elif test "${HAVE_XAW3D}" = "yes"; then
10929 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10931 USE_TOOLKIT_SCROLL_BARS
=yes
10933 elif test "${HAVE_GTK}" = "yes"; then
10934 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10936 USE_TOOLKIT_SCROLL_BARS
=yes
10937 elif test "${HAVE_NS}" = "yes"; then
10938 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10940 USE_TOOLKIT_SCROLL_BARS
=yes
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 #include <X11/Xlib.h>
10948 #include <X11/Xresource.h>
10957 if ac_fn_c_try_compile
"$LINENO"; then :
10960 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10968 if test "${with_xim}" != "no"; then
10970 $as_echo "#define USE_XIM 1" >>confdefs.h
10975 if test "${HAVE_XIM}" != "no"; then
10976 late_CFLAGS
=$CFLAGS
10977 if test "$GCC" = yes; then
10978 CFLAGS
="$CFLAGS --pedantic-errors"
10980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10983 #include <X11/Xlib.h>
10984 #include <X11/Xresource.h>
10993 XPointer *client_data;
10995 /* If we're not using GCC, it's probably not XFree86, and this is
10996 probably right, but we can't use something like --pedantic-errors. */
10997 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10998 char*, XIMProc, XPointer*);
11000 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11006 if ac_fn_c_try_compile
"$LINENO"; then :
11007 emacs_cv_arg6_star
=yes
11009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11010 if test "$emacs_cv_arg6_star" = yes; then
11011 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11014 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11017 CFLAGS
=$late_CFLAGS
11020 ### Start of font-backend (under any platform) section.
11021 # (nothing here yet -- this is a placeholder)
11022 ### End of font-backend (under any platform) section.
11024 ### Start of font-backend (under X11) section.
11025 if test "${HAVE_X11}" = "yes"; then
11029 # Extract the first word of "pkg-config", so it can be a program name with args.
11030 set dummy pkg-config
; ac_word
=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11036 case $PKG_CONFIG in
11038 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11042 for as_dir
in $PATH
11045 test -z "$as_dir" && as_dir
=.
11046 for ac_exec_ext
in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11060 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11061 if test -n "$PKG_CONFIG"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11063 $as_echo "$PKG_CONFIG" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11071 if test "$PKG_CONFIG" = "no" ; then
11074 PKG_CONFIG_MIN_VERSION
=0.9.0
11075 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11077 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11079 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11081 $as_echo "yes" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11085 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11086 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11088 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11091 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11092 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11094 $as_echo "$FONTCONFIG_LIBS" >&6; }
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 FONTCONFIG_CFLAGS
=""
11100 ## If we have a custom action on failure, don't print errors, but
11101 ## do set a variable so people can do so.
11102 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11114 if test $succeeded = yes; then
11121 ## Use -lXft if available, unless `--with-xft=no'.
11123 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11126 if test "x${with_xft}" != "xno"; then
11131 # Extract the first word of "pkg-config", so it can be a program name with args.
11132 set dummy pkg-config
; ac_word
=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11138 case $PKG_CONFIG in
11140 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11144 for as_dir
in $PATH
11147 test -z "$as_dir" && as_dir
=.
11148 for ac_exec_ext
in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11162 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11163 if test -n "$PKG_CONFIG"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11165 $as_echo "$PKG_CONFIG" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11173 if test "$PKG_CONFIG" = "no" ; then
11176 PKG_CONFIG_MIN_VERSION
=0.9.0
11177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11179 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11181 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11183 $as_echo "yes" >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11187 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11188 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11190 $as_echo "$XFT_CFLAGS" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11193 $as_echo_n "checking XFT_LIBS... " >&6; }
11194 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11196 $as_echo "$XFT_LIBS" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11202 ## If we have a custom action on failure, don't print errors, but
11203 ## do set a variable so people can do so.
11204 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11216 if test $succeeded = yes; then
11222 ## Because xftfont.c uses XRenderQueryExtension, we also
11223 ## need to link to -lXrender.
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11226 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11227 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11230 ac_check_lib_save_LIBS
=$LIBS
11231 LIBS
="-lXrender $LIBS"
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11241 char XRenderQueryExtension ();
11245 return XRenderQueryExtension ();
11250 if ac_fn_c_try_link
"$LINENO"; then :
11251 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11253 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11255 rm -f core conftest.err conftest.
$ac_objext \
11256 conftest
$ac_exeext conftest.
$ac_ext
11257 LIBS
=$ac_check_lib_save_LIBS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11260 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11261 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11265 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11266 OLD_CPPFLAGS
="$CPPFLAGS"
11267 OLD_CFLAGS
="$CFLAGS"
11269 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11270 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11271 XFT_LIBS
="-lXrender $XFT_LIBS"
11272 LIBS
="$XFT_LIBS $LIBS"
11273 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11274 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11276 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11277 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 ac_check_lib_save_LIBS
=$LIBS
11281 LIBS
="-lXft $XFT_LIBS $LIBS"
11282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11291 char XftFontOpen ();
11295 return XftFontOpen ();
11300 if ac_fn_c_try_link
"$LINENO"; then :
11301 ac_cv_lib_Xft_XftFontOpen
=yes
11303 ac_cv_lib_Xft_XftFontOpen
=no
11305 rm -f core conftest.err conftest.
$ac_objext \
11306 conftest
$ac_exeext conftest.
$ac_ext
11307 LIBS
=$ac_check_lib_save_LIBS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11310 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11311 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11319 if test "${HAVE_XFT}" = "yes"; then
11321 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11324 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11326 CPPFLAGS
="$OLD_CPPFLAGS"
11327 CFLAGS
="$OLD_CFLAGS"
11329 fi # "${HAVE_XFT}" = "yes"
11330 fi # "$HAVE_XFT" != no
11331 fi # "x${with_xft}" != "xno"
11333 if test "$HAVE_XFT" != "yes"; then
11337 ## We used to allow building with FreeType and without Xft.
11338 ## However, the ftx font backend driver is not in good shape.
11339 HAVE_FREETYPE
=$HAVE_XFT
11342 if test "${HAVE_FREETYPE}" = "yes"; then
11344 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11346 if test "${with_libotf}" != "no"; then
11350 # Extract the first word of "pkg-config", so it can be a program name with args.
11351 set dummy pkg-config
; ac_word
=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11357 case $PKG_CONFIG in
11359 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11363 for as_dir
in $PATH
11366 test -z "$as_dir" && as_dir
=.
11367 for ac_exec_ext
in '' $ac_executable_extensions; do
11368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11369 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11381 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11382 if test -n "$PKG_CONFIG"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11384 $as_echo "$PKG_CONFIG" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11392 if test "$PKG_CONFIG" = "no" ; then
11395 PKG_CONFIG_MIN_VERSION
=0.9.0
11396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11398 $as_echo_n "checking for libotf... " >&6; }
11400 if $PKG_CONFIG --exists "libotf" 2>&5; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11406 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11407 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11409 $as_echo "$LIBOTF_CFLAGS" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11412 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11413 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11415 $as_echo "$LIBOTF_LIBS" >&6; }
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11421 ## If we have a custom action on failure, don't print errors, but
11422 ## do set a variable so people can do so.
11423 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11430 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11431 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11435 if test $succeeded = yes; then
11441 if test "$HAVE_LIBOTF" = "yes"; then
11443 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11446 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11447 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
11450 ac_check_lib_save_LIBS
=$LIBS
11452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11461 char OTF_get_variation_glyphs ();
11465 return OTF_get_variation_glyphs ();
11470 if ac_fn_c_try_link
"$LINENO"; then :
11471 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11473 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11475 rm -f core conftest.err conftest.
$ac_objext \
11476 conftest
$ac_exeext conftest.
$ac_ext
11477 LIBS
=$ac_check_lib_save_LIBS
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11480 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11481 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11482 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11484 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11487 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11489 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11497 if test "${HAVE_LIBOTF}" = yes; then
11498 if test "${with_m17n_flt}" != "no"; then
11502 # Extract the first word of "pkg-config", so it can be a program name with args.
11503 set dummy pkg-config
; ac_word
=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11509 case $PKG_CONFIG in
11511 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11515 for as_dir
in $PATH
11518 test -z "$as_dir" && as_dir
=.
11519 for ac_exec_ext
in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11533 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11534 if test -n "$PKG_CONFIG"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11536 $as_echo "$PKG_CONFIG" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11544 if test "$PKG_CONFIG" = "no" ; then
11547 PKG_CONFIG_MIN_VERSION
=0.9.0
11548 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11550 $as_echo_n "checking for m17n-flt... " >&6; }
11552 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11558 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11559 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11561 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11564 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11565 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11567 $as_echo "$M17N_FLT_LIBS" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11573 ## If we have a custom action on failure, don't print errors, but
11574 ## do set a variable so people can do so.
11575 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11587 if test $succeeded = yes; then
11593 if test "$HAVE_M17N_FLT" = "yes"; then
11595 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11607 ### End of font-backend (under X11) section.
11618 ### Use -lXpm if available, unless `--with-xpm=no'.
11621 if test "${HAVE_X11}" = "yes"; then
11622 if test "${with_xpm}" != "no"; then
11623 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11624 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11626 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11627 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11630 ac_check_lib_save_LIBS
=$LIBS
11631 LIBS
="-lXpm -lX11 $LIBS"
11632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11641 char XpmReadFileToPixmap ();
11645 return XpmReadFileToPixmap ();
11650 if ac_fn_c_try_link
"$LINENO"; then :
11651 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11653 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11655 rm -f core conftest.err conftest.
$ac_objext \
11656 conftest
$ac_exeext conftest.
$ac_ext
11657 LIBS
=$ac_check_lib_save_LIBS
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11660 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11661 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
11668 if test "${HAVE_XPM}" = "yes"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11670 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673 #include "X11/xpm.h"
11674 #ifndef XpmReturnAllocPixels
11675 no_return_alloc_pixels
11679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11680 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11688 if test "${HAVE_XPM}" = "yes"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11690 $as_echo "yes" >&6; }
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11698 if test "${HAVE_XPM}" = "yes"; then
11700 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11707 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11710 if test "${HAVE_X11}" = "yes"; then
11711 if test "${with_jpeg}" != "no"; then
11712 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11713 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11715 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11716 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11719 ac_check_lib_save_LIBS
=$LIBS
11720 LIBS
="-ljpeg $LIBS"
11721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11730 char jpeg_destroy_compress ();
11734 return jpeg_destroy_compress ();
11739 if ac_fn_c_try_link
"$LINENO"; then :
11740 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11742 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11744 rm -f core conftest.err conftest.
$ac_objext \
11745 conftest
$ac_exeext conftest.
$ac_ext
11746 LIBS
=$ac_check_lib_save_LIBS
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11749 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11750 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
11759 if test "${HAVE_JPEG}" = "yes"; then
11760 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include <jpeglib.h>
11765 version=JPEG_LIB_VERSION
11768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11769 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11770 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11774 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11780 if test "${HAVE_JPEG}" = "yes"; then
11786 ### Use -lpng if available, unless `--with-png=no'.
11789 if test "${HAVE_X11}" = "yes"; then
11790 if test "${with_png}" != "no"; then
11791 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11792 # in /usr/include/libpng.
11793 for ac_header
in png.h libpng
/png.h
11795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11797 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11798 cat >>confdefs.h
<<_ACEOF
11799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11806 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11808 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11809 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11812 ac_check_lib_save_LIBS
=$LIBS
11813 LIBS
="-lpng -lz -lm $LIBS"
11814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11817 /* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11823 char png_get_channels ();
11827 return png_get_channels ();
11832 if ac_fn_c_try_link
"$LINENO"; then :
11833 ac_cv_lib_png_png_get_channels
=yes
11835 ac_cv_lib_png_png_get_channels
=no
11837 rm -f core conftest.err conftest.
$ac_objext \
11838 conftest
$ac_exeext conftest.
$ac_ext
11839 LIBS
=$ac_check_lib_save_LIBS
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11842 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11843 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
11850 if test "${HAVE_PNG}" = "yes"; then
11852 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11854 LIBPNG
="-lpng -lz -lm"
11859 ### Use -ltiff if available, unless `--with-tiff=no'.
11862 if test "${HAVE_X11}" = "yes"; then
11863 if test "${with_tiff}" != "no"; then
11864 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11865 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
11867 # At least one tiff package requires the jpeg library.
11868 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11870 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11871 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11874 ac_check_lib_save_LIBS
=$LIBS
11875 LIBS
="-ltiff $tifflibs $LIBS"
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11885 char TIFFGetVersion ();
11889 return TIFFGetVersion ();
11894 if ac_fn_c_try_link
"$LINENO"; then :
11895 ac_cv_lib_tiff_TIFFGetVersion
=yes
11897 ac_cv_lib_tiff_TIFFGetVersion
=no
11899 rm -f core conftest.err conftest.
$ac_objext \
11900 conftest
$ac_exeext conftest.
$ac_ext
11901 LIBS
=$ac_check_lib_save_LIBS
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11904 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11905 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
11914 if test "${HAVE_TIFF}" = "yes"; then
11916 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11923 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11926 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11927 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11928 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
11929 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11930 # Earlier versions can crash Emacs.
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11932 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11933 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_check_lib_save_LIBS
=$LIBS
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char EGifPutExtensionLast ();
11951 return EGifPutExtensionLast ();
11956 if ac_fn_c_try_link
"$LINENO"; then :
11957 ac_cv_lib_gif_EGifPutExtensionLast
=yes
11959 ac_cv_lib_gif_EGifPutExtensionLast
=no
11961 rm -f core conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 LIBS
=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11966 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11967 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
11977 if test "$HAVE_GIF" = yes; then
11979 elif test "$HAVE_GIF" = maybe
; then
11980 # If gif_lib.h but no libgif, try libungif.
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11982 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11983 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11986 ac_check_lib_save_LIBS
=$LIBS
11987 LIBS
="-lungif $LIBS"
11988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11997 char EGifPutExtensionLast ();
12001 return EGifPutExtensionLast ();
12006 if ac_fn_c_try_link
"$LINENO"; then :
12007 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12009 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12011 rm -f core conftest.err conftest.
$ac_objext \
12012 conftest
$ac_exeext conftest.
$ac_ext
12013 LIBS
=$ac_check_lib_save_LIBS
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12016 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12017 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12023 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12026 if test "${HAVE_GIF}" = "yes"; then
12028 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12034 if test "${HAVE_X11}" = "yes"; then
12037 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12038 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12039 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12040 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12041 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12042 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12043 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12044 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12045 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12046 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12048 if test "X${MISSING}" != X
; then
12049 as_fn_error $?
"The following required libraries were not found:
12051 Maybe some development libraries/packages are missing?
12052 If you don't want to link with them give
12054 as options to configure" "$LINENO" 5
12058 ### Use -lgpm if available, unless `--with-gpm=no'.
12062 if test "${with_gpm}" != "no"; then
12063 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12064 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12066 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12067 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12070 ac_check_lib_save_LIBS
=$LIBS
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12085 return Gpm_Open ();
12090 if ac_fn_c_try_link
"$LINENO"; then :
12091 ac_cv_lib_gpm_Gpm_Open
=yes
12093 ac_cv_lib_gpm_Gpm_Open
=no
12095 rm -f core conftest.err conftest.
$ac_objext \
12096 conftest
$ac_exeext conftest.
$ac_ext
12097 LIBS
=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12100 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12101 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12109 if test "${HAVE_GPM}" = "yes"; then
12111 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12114 ## May be reset below.
12115 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12120 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12123 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12130 ### Use NeXTstep API to implement GUI.
12131 if test "${HAVE_NS}" = "yes"; then
12133 $as_echo "#define HAVE_NS 1" >>confdefs.h
12135 if test "${NS_IMPL_COCOA}" = "yes"; then
12137 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12141 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12143 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12145 # See also .m.o rule in Makefile.in */
12146 # FIXME: are all these flags really needed? Document here why. */
12147 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12148 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12150 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12152 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12155 # We also have mouse menus.
12161 ### Use session management (-lSM -lICE) if available
12164 if test "${HAVE_X11}" = "yes"; then
12165 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12166 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12168 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12169 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 ac_check_lib_save_LIBS
=$LIBS
12173 LIBS
="-lSM -lICE $LIBS"
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12183 char SmcOpenConnection ();
12187 return SmcOpenConnection ();
12192 if ac_fn_c_try_link
"$LINENO"; then :
12193 ac_cv_lib_SM_SmcOpenConnection
=yes
12195 ac_cv_lib_SM_SmcOpenConnection
=no
12197 rm -f core conftest.err conftest.
$ac_objext \
12198 conftest
$ac_exeext conftest.
$ac_ext
12199 LIBS
=$ac_check_lib_save_LIBS
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12202 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12203 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12211 if test "${HAVE_X_SM}" = "yes"; then
12213 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12215 LIBXSM
="-lSM -lICE"
12218 *) LIBS
="$LIBXSM $LIBS" ;;
12224 ### Use libxml (-lxml2) if available
12225 if test "${with_xml2}" != "no"; then
12226 ### I'm not sure what the version number should be, so I just guessed.
12230 # Extract the first word of "pkg-config", so it can be a program name with args.
12231 set dummy pkg-config
; ac_word
=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 case $PKG_CONFIG in
12239 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12243 for as_dir
in $PATH
12246 test -z "$as_dir" && as_dir
=.
12247 for ac_exec_ext
in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12261 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12262 if test -n "$PKG_CONFIG"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12264 $as_echo "$PKG_CONFIG" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test "$PKG_CONFIG" = "no" ; then
12275 PKG_CONFIG_MIN_VERSION
=0.9.0
12276 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12278 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12280 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282 $as_echo "yes" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12286 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12287 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12289 $as_echo "$LIBXML2_CFLAGS" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12292 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12293 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12295 $as_echo "$LIBXML2_LIBS" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12301 ## If we have a custom action on failure, don't print errors, but
12302 ## do set a variable so people can do so.
12303 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12315 if test $succeeded = yes; then
12321 if test "${HAVE_LIBXML2}" = "yes"; then
12322 LIBS
="$LIBXML2_LIBS $LIBS"
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12324 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12325 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12328 ac_check_lib_save_LIBS
=$LIBS
12329 LIBS
="-lxml2 $LIBS"
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12339 char htmlReadMemory ();
12343 return htmlReadMemory ();
12348 if ac_fn_c_try_link
"$LINENO"; then :
12349 ac_cv_lib_xml2_htmlReadMemory
=yes
12351 ac_cv_lib_xml2_htmlReadMemory
=no
12353 rm -f core conftest.err conftest.
$ac_objext \
12354 conftest
$ac_exeext conftest.
$ac_ext
12355 LIBS
=$ac_check_lib_save_LIBS
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12358 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12359 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12365 if test "${HAVE_LIBXML2}" = "yes"; then
12367 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12378 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12380 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12381 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12395 if ac_fn_c_try_link
"$LINENO"; then :
12396 emacs_cv_netdb_declares_h_errno
=yes
12398 emacs_cv_netdb_declares_h_errno
=no
12400 rm -f core conftest.err conftest.
$ac_objext \
12401 conftest
$ac_exeext conftest.
$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12404 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12405 if test $emacs_cv_netdb_declares_h_errno = yes; then
12407 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12412 # for constant arguments. Useless!
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12414 $as_echo_n "checking for working alloca.h... " >&6; }
12415 if test "${ac_cv_working_alloca_h+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12420 #include <alloca.h>
12424 char *p = (char *) alloca (2 * sizeof (int));
12430 if ac_fn_c_try_link
"$LINENO"; then :
12431 ac_cv_working_alloca_h
=yes
12433 ac_cv_working_alloca_h
=no
12435 rm -f core conftest.err conftest.
$ac_objext \
12436 conftest
$ac_exeext conftest.
$ac_ext
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12439 $as_echo "$ac_cv_working_alloca_h" >&6; }
12440 if test $ac_cv_working_alloca_h = yes; then
12442 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12447 $as_echo_n "checking for alloca... " >&6; }
12448 if test "${ac_cv_func_alloca_works+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 # define alloca __builtin_alloca
12457 # include <malloc.h>
12458 # define alloca _alloca
12460 # ifdef HAVE_ALLOCA_H
12461 # include <alloca.h>
12466 # ifndef alloca /* predefined by HP cc +Olibcalls */
12477 char *p = (char *) alloca (1);
12483 if ac_fn_c_try_link
"$LINENO"; then :
12484 ac_cv_func_alloca_works
=yes
12486 ac_cv_func_alloca_works
=no
12488 rm -f core conftest.err conftest.
$ac_objext \
12489 conftest
$ac_exeext conftest.
$ac_ext
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12492 $as_echo "$ac_cv_func_alloca_works" >&6; }
12494 if test $ac_cv_func_alloca_works = yes; then
12496 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12499 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12500 # that cause trouble. Some versions do not even contain alloca or
12501 # contain a buggy version. If you still want to use their alloca,
12502 # use ar to extract alloca.o from them instead of compiling alloca.c.
12504 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12506 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12510 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12511 if test "${ac_cv_os_cray+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 #if defined CRAY && ! defined CRAY2
12523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12524 $EGREP "webecray" >/dev
/null
2>&1; then :
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12533 $as_echo "$ac_cv_os_cray" >&6; }
12534 if test $ac_cv_os_cray = yes; then
12535 for ac_func
in _getb67 GETB67 getb67
; do
12536 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12537 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12538 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12540 cat >>confdefs.h
<<_ACEOF
12541 #define CRAY_STACKSEG_END $ac_func
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12551 $as_echo_n "checking stack direction for C alloca... " >&6; }
12552 if test "${ac_cv_c_stack_direction+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12555 if test "$cross_compiling" = yes; then :
12556 ac_cv_c_stack_direction
=0
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 $ac_includes_default
12562 find_stack_direction ()
12564 static char *addr = 0;
12569 return find_stack_direction ();
12572 return (&dummy > addr) ? 1 : -1;
12578 return find_stack_direction () < 0;
12581 if ac_fn_c_try_run
"$LINENO"; then :
12582 ac_cv_c_stack_direction
=1
12584 ac_cv_c_stack_direction
=-1
12586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12592 $as_echo "$ac_cv_c_stack_direction" >&6; }
12593 cat >>confdefs.h
<<_ACEOF
12594 #define STACK_DIRECTION $ac_cv_c_stack_direction
12601 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12602 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12605 # fmod, logb, and frexp are found in -lm on most systems.
12606 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12608 $as_echo_n "checking for sqrt in -lm... " >&6; }
12609 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12612 ac_check_lib_save_LIBS
=$LIBS
12614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12617 /* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12632 if ac_fn_c_try_link
"$LINENO"; then :
12633 ac_cv_lib_m_sqrt
=yes
12635 ac_cv_lib_m_sqrt
=no
12637 rm -f core conftest.err conftest.
$ac_objext \
12638 conftest
$ac_exeext conftest.
$ac_ext
12639 LIBS
=$ac_check_lib_save_LIBS
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12642 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12643 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12644 cat >>confdefs.h
<<_ACEOF
12645 #define HAVE_LIBM 1
12653 # Check for mail-locking functions in a "mail" library. Probably this should
12654 # have the same check as for liblockfile below.
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12656 $as_echo_n "checking for maillock in -lmail... " >&6; }
12657 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12660 ac_check_lib_save_LIBS
=$LIBS
12661 LIBS
="-lmail $LIBS"
12662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12675 return maillock ();
12680 if ac_fn_c_try_link
"$LINENO"; then :
12681 ac_cv_lib_mail_maillock
=yes
12683 ac_cv_lib_mail_maillock
=no
12685 rm -f core conftest.err conftest.
$ac_objext \
12686 conftest
$ac_exeext conftest.
$ac_ext
12687 LIBS
=$ac_check_lib_save_LIBS
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12690 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12691 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12697 if test $have_mail = yes; then
12699 LIBS
="$LIBS_MAIL $LIBS"
12701 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12707 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12708 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12711 ac_check_lib_save_LIBS
=$LIBS
12712 LIBS
="-llockfile $LIBS"
12713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12726 return maillock ();
12731 if ac_fn_c_try_link
"$LINENO"; then :
12732 ac_cv_lib_lockfile_maillock
=yes
12734 ac_cv_lib_lockfile_maillock
=no
12736 rm -f core conftest.err conftest.
$ac_objext \
12737 conftest
$ac_exeext conftest.
$ac_ext
12738 LIBS
=$ac_check_lib_save_LIBS
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12741 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12742 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12748 if test $have_lockfile = yes; then
12749 LIBS_MAIL
=-llockfile
12750 LIBS
="$LIBS_MAIL $LIBS"
12752 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12755 # If we have the shared liblockfile, assume we must use it for mail
12756 # locking (e.g. Debian). If we couldn't link against liblockfile
12757 # (no liblockfile.a installed), ensure that we don't need to.
12758 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12759 set dummy liblockfile.so
; ac_word
=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12765 if test -n "$liblockfile"; then
12766 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12769 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12770 for as_dir
in $as_dummy
12773 test -z "$as_dir" && as_dir
=.
12774 for ac_exec_ext
in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776 ac_cv_prog_liblockfile
="yes"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12787 liblockfile
=$ac_cv_prog_liblockfile
12788 if test -n "$liblockfile"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12790 $as_echo "$liblockfile" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12797 if test $ac_cv_prog_liblockfile = yes; then
12798 as_fn_error $?
"Shared liblockfile found but can't link against it.
12799 This probably means that movemail could lose mail.
12800 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12803 for ac_func
in touchlock
12805 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12806 if test "x$ac_cv_func_touchlock" = x
""yes; then :
12807 cat >>confdefs.h
<<_ACEOF
12808 #define HAVE_TOUCHLOCK 1
12814 for ac_header
in maillock.h
12816 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
12818 cat >>confdefs.h
<<_ACEOF
12819 #define HAVE_MAILLOCK_H 1
12828 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12829 ## interlock access to the mail spool. The alternative is a lock file named
12830 ## /usr/spool/mail/$USER.lock.
12833 aix4-2
) mail_lock
="lockf" ;;
12835 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12837 ## On GNU/Linux systems, both methods are used by various mail programs.
12838 ## I assume most people are using newer mailers that have heard of flock.
12839 ## Change this if you need to.
12840 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12841 ## configure gets the right answers, and that means *NOT* using flock.
12842 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12843 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12844 ## Debian maintainer hasn't provided a clean fix for Emacs.
12845 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12846 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12847 ## correct logic. -- fx
12848 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12849 ## liblockfile is a Free Software replacement for libmail, used on
12850 ## Debian systems and elsewhere. -rfr.
12853 if test $have_mail = yes ||
test $have_lockfile = yes; then
12854 test $ac_cv_header_maillock_h = yes && mail_lock
=no
12860 case "$mail_lock" in
12862 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12866 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12869 *) BLESSMAIL_TARGET
="need-blessmail" ;;
12874 for ac_func
in gethostname getdomainname dup2 \
12875 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
12876 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12877 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
12878 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12879 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12880 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12881 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12882 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12883 cfmakeraw cfsetspeed isnan copysign __executable_start
12885 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12886 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12887 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12888 cat >>confdefs.h
<<_ACEOF
12889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12897 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12898 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12907 __builtin_unwind_init ();
12912 if ac_fn_c_try_link
"$LINENO"; then :
12913 emacs_cv_func___builtin_unwind_init
=yes
12915 emacs_cv_func___builtin_unwind_init
=no
12917 rm -f core conftest.err conftest.
$ac_objext \
12918 conftest
$ac_exeext conftest.
$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12921 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12922 if test $emacs_cv_func___builtin_unwind_init = yes; then
12924 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12928 for ac_header
in sys
/un.h
12930 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12931 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
12932 cat >>confdefs.h
<<_ACEOF
12933 #define HAVE_SYS_UN_H 1
12941 ac_have_func
=no
# yes means we've found a way to get the load average.
12943 # Make sure getloadavg.c is where it belongs, at configure-time.
12944 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12945 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12949 # Check for getloadavg, but be sure not to touch the cache variable.
12950 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12951 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12956 ) && ac_have_func
=yes
12958 # On HPUX9, an unprivileged user can get load averages through this function.
12959 for ac_func
in pstat_getdynamic
12961 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12962 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12963 cat >>confdefs.h
<<_ACEOF
12964 #define HAVE_PSTAT_GETDYNAMIC 1
12971 # Solaris has libkstat which does not require root.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12973 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12974 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12977 ac_check_lib_save_LIBS
=$LIBS
12978 LIBS
="-lkstat $LIBS"
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12988 char kstat_open ();
12992 return kstat_open ();
12997 if ac_fn_c_try_link
"$LINENO"; then :
12998 ac_cv_lib_kstat_kstat_open
=yes
13000 ac_cv_lib_kstat_kstat_open
=no
13002 rm -f core conftest.err conftest.
$ac_objext \
13003 conftest
$ac_exeext conftest.
$ac_ext
13004 LIBS
=$ac_check_lib_save_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13007 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13008 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
13009 cat >>confdefs.h
<<_ACEOF
13010 #define HAVE_LIBKSTAT 1
13013 LIBS
="-lkstat $LIBS"
13017 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13019 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13020 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13021 # to get the right answer into the cache.
13022 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13023 if test $ac_have_func = no
; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13025 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13026 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
13029 ac_check_lib_save_LIBS
=$LIBS
13031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13044 return elf_begin ();
13049 if ac_fn_c_try_link
"$LINENO"; then :
13050 ac_cv_lib_elf_elf_begin
=yes
13052 ac_cv_lib_elf_elf_begin
=no
13054 rm -f core conftest.err conftest.
$ac_objext \
13055 conftest
$ac_exeext conftest.
$ac_ext
13056 LIBS
=$ac_check_lib_save_LIBS
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13059 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13060 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
13065 if test $ac_have_func = no
; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13067 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13068 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13071 ac_check_lib_save_LIBS
=$LIBS
13073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13086 return kvm_open ();
13091 if ac_fn_c_try_link
"$LINENO"; then :
13092 ac_cv_lib_kvm_kvm_open
=yes
13094 ac_cv_lib_kvm_kvm_open
=no
13096 rm -f core conftest.err conftest.
$ac_objext \
13097 conftest
$ac_exeext conftest.
$ac_ext
13098 LIBS
=$ac_check_lib_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13101 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13102 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
13106 # Check for the 4.4BSD definition of getloadavg.
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13108 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13109 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13112 ac_check_lib_save_LIBS
=$LIBS
13113 LIBS
="-lutil $LIBS"
13114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13117 /* Override any GCC internal prototype to avoid an error.
13118 Use char because int might match the return type of a GCC
13119 builtin and then its argument prototype would still apply. */
13123 char getloadavg ();
13127 return getloadavg ();
13132 if ac_fn_c_try_link
"$LINENO"; then :
13133 ac_cv_lib_util_getloadavg
=yes
13135 ac_cv_lib_util_getloadavg
=no
13137 rm -f core conftest.err conftest.
$ac_objext \
13138 conftest
$ac_exeext conftest.
$ac_ext
13139 LIBS
=$ac_check_lib_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13142 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13143 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
13144 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13149 if test $ac_have_func = no
; then
13150 # There is a commonly available library for RS/6000 AIX.
13151 # Since it is not a standard part of AIX, it might be installed locally.
13152 ac_getloadavg_LIBS
=$LIBS
13153 LIBS
="-L/usr/local/lib $LIBS"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13155 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13156 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13159 ac_check_lib_save_LIBS
=$LIBS
13160 LIBS
="-lgetloadavg $LIBS"
13161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13170 char getloadavg ();
13174 return getloadavg ();
13179 if ac_fn_c_try_link
"$LINENO"; then :
13180 ac_cv_lib_getloadavg_getloadavg
=yes
13182 ac_cv_lib_getloadavg_getloadavg
=no
13184 rm -f core conftest.err conftest.
$ac_objext \
13185 conftest
$ac_exeext conftest.
$ac_ext
13186 LIBS
=$ac_check_lib_save_LIBS
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13189 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13190 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
13191 LIBS
="-lgetloadavg $LIBS"
13193 LIBS
=$ac_getloadavg_LIBS
13198 # Make sure it is really in the library, if we think we found it,
13199 # otherwise set up the replacement function.
13200 for ac_func
in getloadavg
13202 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13203 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
13204 cat >>confdefs.h
<<_ACEOF
13205 #define HAVE_GETLOADAVG 1
13209 case " $LIBOBJS " in
13210 *" getloadavg.$ac_objext "* ) ;;
13211 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13216 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13218 # Figure out what our getloadavg.c needs.
13220 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13221 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
13224 $as_echo "#define DGUX 1" >>confdefs.h
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13227 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13228 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13231 ac_check_lib_save_LIBS
=$LIBS
13233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13242 char dg_sys_info ();
13246 return dg_sys_info ();
13251 if ac_fn_c_try_link
"$LINENO"; then :
13252 ac_cv_lib_dgc_dg_sys_info
=yes
13254 ac_cv_lib_dgc_dg_sys_info
=no
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13258 LIBS
=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13261 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13262 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
13263 cat >>confdefs.h
<<_ACEOF
13264 #define HAVE_LIBDGC 1
13275 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13276 if test "x$ac_cv_header_locale_h" = x
""yes; then :
13281 for ac_func
in setlocale
13283 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13284 if test "x$ac_cv_func_setlocale" = x
""yes; then :
13285 cat >>confdefs.h
<<_ACEOF
13286 #define HAVE_SETLOCALE 1
13293 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13294 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13295 # Irix 4.0.5F has the header but not the library.
13296 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13299 $as_echo "#define SVR4 1" >>confdefs.h
13303 if test $ac_have_func = no
; then
13304 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13305 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
13308 $as_echo "#define UMAX 1" >>confdefs.h
13311 $as_echo "#define UMAX4_3 1" >>confdefs.h
13318 if test $ac_have_func = no
; then
13319 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
13321 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13328 if test $ac_have_func = no
; then
13329 for ac_header
in mach
/mach.h
13331 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13332 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
13333 cat >>confdefs.h
<<_ACEOF
13334 #define HAVE_MACH_MACH_H 1
13343 for ac_header
in nlist.h
13345 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
13347 cat >>confdefs.h
<<_ACEOF
13348 #define HAVE_NLIST_H 1
13350 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13352 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
13354 cat >>confdefs.h
<<_ACEOF
13355 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13359 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13372 # Some definitions of getloadavg require that the program be installed setgid.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13374 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13375 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13381 #ifdef LDAV_PRIVILEGED
13382 Yowza Am I SETGID yet
13385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13386 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
13387 ac_cv_func_getloadavg_setgid
=yes
13389 ac_cv_func_getloadavg_setgid
=no
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13395 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13396 if test $ac_cv_func_getloadavg_setgid = yes; then
13399 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13405 if test $ac_cv_func_getloadavg_setgid = yes; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13407 $as_echo_n "checking group of /dev/kmem... " >&6; }
13408 if test "${ac_cv_group_kmem+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
13411 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13412 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13413 # If we got an error (system does not support symlinks), try without -L.
13414 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13415 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
13416 | sed -ne 's/[ ][ ]*/ /g;
13417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13422 $as_echo "$ac_cv_group_kmem" >&6; }
13423 KMEM_GROUP
=$ac_cv_group_kmem
13425 if test "x$ac_save_LIBS" = x
; then
13426 GETLOADAVG_LIBS
=$LIBS
13428 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13435 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13436 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <sys/types.h> /* for off_t */
13447 int (*fp) (FILE *, off_t, int) = fseeko;
13448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13453 if ac_fn_c_try_link
"$LINENO"; then :
13454 ac_cv_sys_largefile_source
=no
; break
13456 rm -f core conftest.err conftest.
$ac_objext \
13457 conftest
$ac_exeext conftest.
$ac_ext
13458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #define _LARGEFILE_SOURCE 1
13461 #include <sys/types.h> /* for off_t */
13466 int (*fp) (FILE *, off_t, int) = fseeko;
13467 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13472 if ac_fn_c_try_link
"$LINENO"; then :
13473 ac_cv_sys_largefile_source
=1; break
13475 rm -f core conftest.err conftest.
$ac_objext \
13476 conftest
$ac_exeext conftest.
$ac_ext
13477 ac_cv_sys_largefile_source
=unknown
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13482 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13483 case $ac_cv_sys_largefile_source in #(
13486 cat >>confdefs.h
<<_ACEOF
13487 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13493 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13494 # in glibc 2.1.3, but that breaks too many other things.
13495 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13496 if test $ac_cv_sys_largefile_source != unknown
; then
13498 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13504 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13505 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 # Use it with a single arg.
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 $ac_includes_default
13520 if ac_fn_c_try_compile
"$LINENO"; then :
13521 ac_cv_func_getpgrp_void
=no
13523 ac_cv_func_getpgrp_void
=yes
13525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13529 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13530 if test $ac_cv_func_getpgrp_void = yes; then
13532 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13537 # Configure gnulib.
13545 LIBC_FATAL_STDERR_
=1
13546 export LIBC_FATAL_STDERR_
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13550 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13551 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 /* On HP-UX before 11.23, strtold returns a struct instead of
13557 long double. Reject implementations like that, by requiring
13558 compatibility with the C99 prototype. */
13559 #include <stdlib.h>
13560 static long double (*p) (char const *, char **) = strtold;
13562 test (char const *nptr, char **endptr)
13565 r = strtold (nptr, endptr);
13571 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13576 if ac_fn_c_try_link
"$LINENO"; then :
13577 gl_cv_func_c99_strtold
=yes
13579 gl_cv_func_c99_strtold
=no
13581 rm -f core conftest.err conftest.
$ac_objext \
13582 conftest
$ac_exeext conftest.
$ac_ext
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13585 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13586 if test $gl_cv_func_c99_strtold = yes; then
13588 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13598 GNULIB_EUIDACCESS
=0;
13599 GNULIB_FACCESSAT
=0;
13603 GNULIB_FTRUNCATE
=0;
13605 GNULIB_GETDOMAINNAME
=0;
13606 GNULIB_GETDTABLESIZE
=0;
13607 GNULIB_GETGROUPS
=0;
13608 GNULIB_GETHOSTNAME
=0;
13610 GNULIB_GETLOGIN_R
=0;
13611 GNULIB_GETPAGESIZE
=0;
13612 GNULIB_GETUSERSHELL
=0;
13622 GNULIB_READLINKAT
=0;
13626 GNULIB_SYMLINKAT
=0;
13627 GNULIB_TTYNAME_R
=0;
13628 GNULIB_UNISTD_H_GETOPT
=0;
13629 GNULIB_UNISTD_H_SIGPIPE
=0;
13643 HAVE_GETDTABLESIZE
=1;
13645 HAVE_GETHOSTNAME
=1;
13647 HAVE_GETPAGESIZE
=1;
13662 HAVE_DECL_ENVIRON
=1;
13663 HAVE_DECL_FCHDIR
=1;
13664 HAVE_DECL_GETDOMAINNAME
=1;
13665 HAVE_DECL_GETLOGIN_R
=1;
13666 HAVE_DECL_GETPAGESIZE
=1;
13667 HAVE_DECL_GETUSERSHELL
=1;
13668 HAVE_DECL_TTYNAME_R
=1;
13670 HAVE_SYS_PARAM_H
=0;
13675 REPLACE_FCHOWNAT
=0;
13677 REPLACE_GETDOMAINNAME
=0;
13678 REPLACE_GETLOGIN_R
=0;
13679 REPLACE_GETGROUPS
=0;
13680 REPLACE_GETPAGESIZE
=0;
13687 REPLACE_READLINK
=0;
13691 REPLACE_TTYNAME_R
=0;
13693 REPLACE_UNLINKAT
=0;
13696 UNISTD_H_HAVE_WINSOCK2_H
=0;
13697 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13703 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13704 if test "${gl_cv_have_include_next+set}" = set; then :
13705 $as_echo_n "(cached) " >&6
13707 rm -rf conftestd1a conftestd1b conftestd2
13708 mkdir conftestd1a conftestd1b conftestd2
13709 cat <<EOF > conftestd1a/conftest.h
13710 #define DEFINED_IN_CONFTESTD1
13711 #include_next <conftest.h>
13712 #ifdef DEFINED_IN_CONFTESTD2
13715 #error "include_next doesn't work"
13718 cat <<EOF > conftestd1b/conftest.h
13719 #define DEFINED_IN_CONFTESTD1
13721 #include_next <conftest.h>
13722 #ifdef DEFINED_IN_CONFTESTD2
13725 #error "include_next doesn't work"
13728 cat <<EOF > conftestd2/conftest.h
13729 #ifndef DEFINED_IN_CONFTESTD1
13730 #error "include_next test doesn't work"
13732 #define DEFINED_IN_CONFTESTD2
13734 gl_save_CPPFLAGS
="$CPPFLAGS"
13735 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 #include <conftest.h>
13740 if ac_fn_c_try_compile
"$LINENO"; then :
13741 gl_cv_have_include_next
=yes
13743 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 #include <conftest.h>
13748 if ac_fn_c_try_compile
"$LINENO"; then :
13749 gl_cv_have_include_next
=buggy
13751 gl_cv_have_include_next
=no
13753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13757 CPPFLAGS
="$gl_save_CPPFLAGS"
13758 rm -rf conftestd1a conftestd1b conftestd2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13762 $as_echo "$gl_cv_have_include_next" >&6; }
13763 PRAGMA_SYSTEM_HEADER
=
13764 if test $gl_cv_have_include_next = yes; then
13765 INCLUDE_NEXT
=include_next
13766 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13767 if test -n "$GCC"; then
13768 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13771 if test $gl_cv_have_include_next = buggy
; then
13772 INCLUDE_NEXT
=include
13773 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13775 INCLUDE_NEXT
=include
13776 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13783 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13784 if test "${gl_cv_pragma_columns+set}" = set; then :
13785 $as_echo_n "(cached) " >&6
13787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13796 $EGREP "choke me" >/dev
/null
2>&1; then :
13797 gl_cv_pragma_columns
=yes
13799 gl_cv_pragma_columns
=no
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13806 $as_echo "$gl_cv_pragma_columns" >&6; }
13807 if test $gl_cv_pragma_columns = yes; then
13808 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13829 if test $gl_cv_have_include_next = yes; then
13830 gl_cv_next_getopt_h
='<'getopt.h
'>'
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13833 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13834 if test "${gl_cv_next_getopt_h+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13838 if test $ac_cv_header_getopt_h = yes; then
13841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <getopt.h>
13847 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13848 *) gl_absname_cpp
="$ac_cpp" ;;
13850 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13851 sed -n '\#/getopt.h#{
13852 s#.*"\(.*/getopt.h\)".*#\1#
13858 gl_cv_next_getopt_h
='<'getopt.h
'>'
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13864 $as_echo "$gl_cv_next_getopt_h" >&6; }
13866 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
13868 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13870 gl_next_as_first_directive
='<'getopt.h
'>'
13872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13873 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13875 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13880 if test $ac_cv_header_getopt_h = yes; then
13889 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13890 for ac_header
in getopt.h
13892 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13893 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
13894 cat >>confdefs.h
<<_ACEOF
13895 #define HAVE_GETOPT_H 1
13899 gl_replace_getopt
=yes
13906 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13907 for ac_func
in getopt_long_only
13909 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13910 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
13911 cat >>confdefs.h
<<_ACEOF
13912 #define HAVE_GETOPT_LONG_ONLY 1
13916 gl_replace_getopt
=yes
13922 if test -z "$gl_replace_getopt"; then
13923 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13925 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
13931 cat >>confdefs.h
<<_ACEOF
13932 #define HAVE_DECL_OPTRESET $ac_have_decl
13934 if test $ac_have_decl = 1; then :
13937 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13939 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
13945 cat >>confdefs.h
<<_ACEOF
13946 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
13954 if test -z "$gl_replace_getopt"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13956 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13957 if test "${gl_cv_func_getopt_posix+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13961 if test "$cross_compiling" = yes; then :
13963 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
13964 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
13965 *) gl_cv_func_getopt_posix
="guessing yes";;
13969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 #include <unistd.h>
13973 #include <stdlib.h>
13974 #include <string.h>
13976 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
13977 # define OPTIND_MIN 0
13979 # define OPTIND_MIN 1
13990 argv[argc++] = "program";
13991 argv[argc++] = "-a";
13992 argv[argc++] = "foo";
13993 argv[argc++] = "bar";
13995 optind = OPTIND_MIN;
13998 c = getopt (argc, argv, "ab");
14001 c = getopt (argc, argv, "ab");
14004 if (!(optind == 2))
14007 /* Some internal state exists at this point. */
14013 argv[argc++] = "program";
14014 argv[argc++] = "donald";
14015 argv[argc++] = "-p";
14016 argv[argc++] = "billy";
14017 argv[argc++] = "duck";
14018 argv[argc++] = "-a";
14019 argv[argc++] = "bar";
14021 optind = OPTIND_MIN;
14024 c = getopt (argc, argv, "+abp:q:");
14027 if (!(strcmp (argv[0], "program") == 0))
14029 if (!(strcmp (argv[1], "donald") == 0))
14031 if (!(strcmp (argv[2], "-p") == 0))
14033 if (!(strcmp (argv[3], "billy") == 0))
14035 if (!(strcmp (argv[4], "duck") == 0))
14037 if (!(strcmp (argv[5], "-a") == 0))
14039 if (!(strcmp (argv[6], "bar") == 0))
14041 if (!(optind == 1))
14044 /* Detect MacOS 10.5, AIX 7.1 bug. */
14046 char *argv[3] = { "program", "-ab", NULL };
14047 optind = OPTIND_MIN;
14049 if (getopt (2, argv, "ab:") != 'a')
14051 if (getopt (2, argv, "ab:") != '?')
14063 if ac_fn_c_try_run
"$LINENO"; then :
14064 gl_cv_func_getopt_posix
=yes
14066 gl_cv_func_getopt_posix
=no
14068 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14069 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14075 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14076 case "$gl_cv_func_getopt_posix" in
14077 *no
) gl_replace_getopt
=yes ;;
14081 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14083 $as_echo_n "checking for working GNU getopt function... " >&6; }
14084 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14087 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14088 # optstring is necessary for programs like m4 that have POSIX-mandated
14089 # semantics for supporting options interspersed with files.
14090 # Also, since getopt_long is a GNU extension, we require optind=0.
14091 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14092 # so take care to revert to the correct (non-)export state.
14093 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14094 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14095 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14096 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14097 *) gl_had_POSIXLY_CORRECT
= ;;
14100 export POSIXLY_CORRECT
14101 if test "$cross_compiling" = yes; then :
14102 case $host_os:$ac_cv_have_decl_optreset in
14103 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14104 *:yes) gl_cv_func_getopt_gnu
=no
;;
14105 *) gl_cv_func_getopt_gnu
=yes;;
14109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #include <getopt.h>
14112 #include <stddef.h>
14113 #include <string.h>
14120 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14121 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14122 OSF/1 5.1, Solaris 10. */
14125 myargv[0] = "conftest";
14129 if (getopt (2, myargv, "+a") != '?')
14132 /* This code succeeds on glibc 2.8, mingw,
14133 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14134 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14136 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14139 if (getopt (4, argv, "p::") != 'p')
14141 else if (optarg != NULL)
14143 else if (getopt (4, argv, "p::") != -1)
14145 else if (optind != 2)
14148 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14150 char *argv[] = { "program", "foo", "-p", NULL };
14152 if (getopt (3, argv, "-p") != 1)
14154 else if (getopt (3, argv, "-p") != 'p')
14157 /* This code fails on glibc 2.11. */
14159 char *argv[] = { "program", "-b", "-a", NULL };
14160 optind = opterr = 0;
14161 if (getopt (3, argv, "+:a:b") != 'b')
14163 else if (getopt (3, argv, "+:a:b") != ':')
14172 if ac_fn_c_try_run
"$LINENO"; then :
14173 gl_cv_func_getopt_gnu
=yes
14175 gl_cv_func_getopt_gnu
=no
14177 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14178 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14181 case $gl_had_POSIXLY_CORRECT in
14183 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14184 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14189 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14190 if test "$gl_cv_func_getopt_gnu" = "no"; then
14191 gl_replace_getopt
=yes
14195 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14196 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14202 cat >>confdefs.h
<<_ACEOF
14203 #define HAVE_DECL_GETENV $ac_have_decl
14211 if test -n "$gl_replace_getopt"; then :
14217 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14221 GNULIB_UNISTD_H_GETOPT
=1
14230 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14240 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14252 GNULIB_NANOSLEEP
=0;
14256 HAVE_DECL_LOCALTIME_R
=1;
14260 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14261 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14262 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14263 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14268 for ac_func
in $ac_func_list
14270 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14272 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14273 cat >>confdefs.h
<<_ACEOF
14274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14283 gl_cv_c_multiarch
=no
14284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #ifndef __APPLE_CC__
14287 not a universal capable compiler
14292 if ac_fn_c_try_compile
"$LINENO"; then :
14296 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14297 if test -n "$prev"; then
14299 i?
86 | x86_64 | ppc | ppc64
)
14300 if test -z "$arch" ||
test "$arch" = "$word"; then
14303 gl_cv_c_multiarch
=yes
14309 if test "x$word" = "x-arch"; then
14316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14317 if test $gl_cv_c_multiarch = yes; then
14318 APPLE_UNIVERSAL_BUILD
=1
14320 APPLE_UNIVERSAL_BUILD
=0
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14325 $as_echo_n "checking for inline... " >&6; }
14326 if test "${ac_cv_c_inline+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14330 for ac_kw
in inline __inline__ __inline
; do
14331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333 #ifndef __cplusplus
14335 static $ac_kw foo_t static_foo () {return 0; }
14336 $ac_kw foo_t foo () {return 0; }
14340 if ac_fn_c_try_compile
"$LINENO"; then :
14341 ac_cv_c_inline
=$ac_kw
14343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14344 test "$ac_cv_c_inline" != no
&& break
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14349 $as_echo "$ac_cv_c_inline" >&6; }
14351 case $ac_cv_c_inline in
14354 case $ac_cv_c_inline in
14356 *) ac_val
=$ac_cv_c_inline;;
14358 cat >>confdefs.h
<<_ACEOF
14359 #ifndef __cplusplus
14360 #define inline $ac_val
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14373 $as_echo_n "checking for wchar_t... " >&6; }
14374 if test "${gt_cv_c_wchar_t+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 #include <stddef.h>
14380 wchar_t foo = (wchar_t)'\0';
14389 if ac_fn_c_try_compile
"$LINENO"; then :
14390 gt_cv_c_wchar_t
=yes
14394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14397 $as_echo "$gt_cv_c_wchar_t" >&6; }
14398 if test $gt_cv_c_wchar_t = yes; then
14400 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14405 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14406 if test "${ac_cv_c_restrict+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14409 ac_cv_c_restrict
=no
14410 # The order here caters to the fact that C++ does not require restrict.
14411 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 typedef int * int_ptr;
14415 int foo (int_ptr $ac_kw ip) {
14422 int * $ac_kw t = s;
14429 if ac_fn_c_try_compile
"$LINENO"; then :
14430 ac_cv_c_restrict
=$ac_kw
14432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14433 test "$ac_cv_c_restrict" != no
&& break
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14438 $as_echo "$ac_cv_c_restrict" >&6; }
14440 case $ac_cv_c_restrict in
14442 no
) $as_echo "#define restrict /**/" >>confdefs.h
14444 *) cat >>confdefs.h
<<_ACEOF
14445 #define restrict $ac_cv_c_restrict
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14455 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14456 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14466 static struct timespec x; x.tv_sec = x.tv_nsec;
14471 if ac_fn_c_try_compile
"$LINENO"; then :
14472 gl_cv_sys_struct_timespec_in_time_h
=yes
14474 gl_cv_sys_struct_timespec_in_time_h
=no
14476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14479 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14481 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14482 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14483 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14484 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14485 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14488 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14489 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
14490 $as_echo_n "(cached) " >&6
14492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 #include <sys/time.h>
14499 static struct timespec x; x.tv_sec = x.tv_nsec;
14504 if ac_fn_c_try_compile
"$LINENO"; then :
14505 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14507 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14512 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14513 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14514 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14517 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14518 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
14519 $as_echo_n "(cached) " >&6
14521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 #include <pthread.h>
14528 static struct timespec x; x.tv_sec = x.tv_nsec;
14533 if ac_fn_c_try_compile
"$LINENO"; then :
14534 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14536 gl_cv_sys_struct_timespec_in_pthread_h
=no
14538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14541 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14542 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14543 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14562 if test $gl_cv_have_include_next = yes; then
14563 gl_cv_next_time_h
='<'time.h
'>'
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14566 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14567 if test "${gl_cv_next_time_h+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14577 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14578 *) gl_absname_cpp
="$ac_cpp" ;;
14580 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14581 sed -n '\#/time.h#{
14582 s#.*"\(.*/time.h\)".*#\1#
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14591 $as_echo "$gl_cv_next_time_h" >&6; }
14593 NEXT_TIME_H
=$gl_cv_next_time_h
14595 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14597 gl_next_as_first_directive
='<'time.h
'>'
14599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14600 gl_next_as_first_directive
=$gl_cv_next_time_h
14602 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14609 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14610 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
14616 cat >>confdefs.h
<<_ACEOF
14617 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14624 GL_COND_LIBTOOL_TRUE
=
14625 GL_COND_LIBTOOL_FALSE
='#'
14627 GL_COND_LIBTOOL_TRUE
='#'
14628 GL_COND_LIBTOOL_FALSE
=
14631 gl_cond_libtool
=false
14644 gl_source_base
='lib'
14645 # Code from module arg-nonnull:
14646 # Code from module c++defs:
14647 # Code from module dtoastr:
14649 # Code from module extensions:
14650 # Code from module getopt-gnu:
14657 # Code from module getopt-posix:
14663 if test -n "$gl_replace_getopt"; then :
14669 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14673 GNULIB_UNISTD_H_GETOPT
=1
14682 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14692 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14702 # Code from module gettext-h:
14705 # Code from module include_next:
14706 # Code from module intprops:
14707 # Code from module mktime:
14713 if test $APPLE_UNIVERSAL_BUILD = 1; then
14714 # A universal build on Apple MacOS X platforms.
14715 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14716 # But we need a configuration result that is valid in both modes.
14717 ac_cv_func_working_mktime
=no
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14720 $as_echo_n "checking for working mktime... " >&6; }
14721 if test "${ac_cv_func_working_mktime+set}" = set; then :
14722 $as_echo_n "(cached) " >&6
14724 if test "$cross_compiling" = yes; then :
14725 ac_cv_func_working_mktime
=no
14727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 /* Test program from Paul Eggert and Tony Leneis. */
14730 #include <limits.h>
14731 #include <stdlib.h>
14734 #ifdef HAVE_UNISTD_H
14735 # include <unistd.h>
14739 # define alarm(X) /* empty */
14742 /* Work around redefinition to rpl_putenv by other config tests. */
14745 static time_t time_t_max;
14746 static time_t time_t_min;
14748 /* Values we'll use to set the TZ environment variable. */
14749 static char *tz_strings[] = {
14750 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14751 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14753 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14755 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14756 Based on a problem report from Andreas Jaeger. */
14758 spring_forward_gap ()
14760 /* glibc (up to about 1998-10-07) failed this test. */
14763 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14764 instead of "TZ=America/Vancouver" in order to detect the bug even
14765 on systems that don't support the Olson extension, or don't have the
14766 full zoneinfo tables installed. */
14767 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14776 return mktime (&tm) != (time_t) -1;
14780 mktime_test1 (time_t now)
14783 return ! (lt = localtime (&now)) || mktime (lt) == now;
14787 mktime_test (time_t now)
14789 return (mktime_test1 (now)
14790 && mktime_test1 ((time_t) (time_t_max - now))
14791 && mktime_test1 ((time_t) (time_t_min + now)));
14797 /* Based on code from Ariel Faigon. */
14807 return tm.tm_mon == 2 && tm.tm_mday == 31;
14811 bigtime_test (int j)
14815 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14816 now = mktime (&tm);
14817 if (now != (time_t) -1)
14819 struct tm *lt = localtime (&now);
14821 && lt->tm_year == tm.tm_year
14822 && lt->tm_mon == tm.tm_mon
14823 && lt->tm_mday == tm.tm_mday
14824 && lt->tm_hour == tm.tm_hour
14825 && lt->tm_min == tm.tm_min
14826 && lt->tm_sec == tm.tm_sec
14827 && lt->tm_yday == tm.tm_yday
14828 && lt->tm_wday == tm.tm_wday
14829 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14830 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14839 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14840 ignoring leap seconds. */
14841 unsigned long int answer = 2527315200UL;
14845 tm.tm_year = 2050 - 1900;
14848 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14851 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14852 instead of "TZ=America/Vancouver" in order to detect the bug even
14853 on systems that don't support the Olson extension, or don't have the
14854 full zoneinfo tables installed. */
14855 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14859 /* Check that the result is either a failure, or close enough
14860 to the correct answer that we can assume the discrepancy is
14861 due to leap seconds. */
14862 return (t == (time_t) -1
14863 || (0 < t && answer - 120 <= t && t <= answer + 120));
14873 /* This test makes some buggy mktime implementations loop.
14874 Give up after 60 seconds; a mktime slower than that
14875 isn't worth using anyway. */
14880 t = (time_t_max << 1) + 1;
14881 if (t <= time_t_max)
14885 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14887 delta = time_t_max / 997; /* a suitable prime number */
14888 for (i = 0; i < N_STRINGS; i++)
14891 putenv (tz_strings[i]);
14893 for (t = 0; t <= time_t_max - delta; t += delta)
14894 if (! mktime_test (t))
14896 if (! (mktime_test ((time_t) 1)
14897 && mktime_test ((time_t) (60 * 60))
14898 && mktime_test ((time_t) (60 * 60 * 24))))
14901 for (j = 1; ; j <<= 1)
14902 if (! bigtime_test (j))
14904 else if (INT_MAX / 2 < j)
14906 if (! bigtime_test (INT_MAX))
14909 if (! irix_6_4_bug ())
14911 if (! spring_forward_gap ())
14913 if (! year_2050_test ())
14918 if ac_fn_c_try_run
"$LINENO"; then :
14919 ac_cv_func_working_mktime
=yes
14921 ac_cv_func_working_mktime
=no
14923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14929 $as_echo "$ac_cv_func_working_mktime" >&6; }
14930 if test $ac_cv_func_working_mktime = no
; then
14939 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
14943 if test $ac_cv_func_working_mktime = no
; then
14959 # Code from module multiarch:
14961 # Code from module stddef:
14965 if test $gt_cv_c_wchar_t = no
; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14970 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14971 if test "${gl_cv_decl_null_works+set}" = set; then :
14972 $as_echo_n "(cached) " >&6
14974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 #include <stddef.h>
14977 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14987 if ac_fn_c_try_compile
"$LINENO"; then :
14988 gl_cv_decl_null_works
=yes
14990 gl_cv_decl_null_works
=no
14992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14995 $as_echo "$gl_cv_decl_null_works" >&6; }
14996 if test $gl_cv_decl_null_works = no
; then
15000 if test -n "$STDDEF_H"; then
15009 if test $gl_cv_have_include_next = yes; then
15010 gl_cv_next_stddef_h
='<'stddef.h
'>'
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15013 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15014 if test "${gl_cv_next_stddef_h+set}" = set; then :
15015 $as_echo_n "(cached) " >&6
15018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020 #include <stddef.h>
15024 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15025 *) gl_absname_cpp
="$ac_cpp" ;;
15027 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15028 sed -n '\#/stddef.h#{
15029 s#.*"\(.*/stddef.h\)".*#\1#
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15038 $as_echo "$gl_cv_next_stddef_h" >&6; }
15040 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15042 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15044 gl_next_as_first_directive
='<'stddef.h
'>'
15046 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15047 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15049 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15056 # Code from module time:
15060 # Code from module time_r:
15068 if test $ac_cv_have_decl_localtime_r = no
; then
15069 HAVE_DECL_LOCALTIME_R
=0
15073 if test $ac_cv_func_localtime_r = yes; then
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15076 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15077 if test "${gl_cv_time_r_posix+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15086 /* We don't need to append 'restrict's to the argument types,
15087 even though the POSIX signature has the 'restrict's,
15088 since C99 says they can't affect type compatibility. */
15089 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15091 /* Check the return type is a pointer.
15092 On HP-UX 10 it is 'int'. */
15093 *localtime_r (0, 0);
15099 if ac_fn_c_try_compile
"$LINENO"; then :
15100 gl_cv_time_r_posix
=yes
15102 gl_cv_time_r_posix
=no
15104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15108 $as_echo "$gl_cv_time_r_posix" >&6; }
15109 if test $gl_cv_time_r_posix = yes; then
15110 REPLACE_LOCALTIME_R
=0
15112 REPLACE_LOCALTIME_R
=1
15117 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15126 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15140 # Code from module unistd:
15154 if test $gl_cv_have_include_next = yes; then
15155 gl_cv_next_unistd_h
='<'unistd.h
'>'
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15158 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15159 if test "${gl_cv_next_unistd_h+set}" = set; then :
15160 $as_echo_n "(cached) " >&6
15163 if test $ac_cv_header_unistd_h = yes; then
15166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168 #include <unistd.h>
15172 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15173 *) gl_absname_cpp
="$ac_cpp" ;;
15175 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15176 sed -n '\#/unistd.h#{
15177 s#.*"\(.*/unistd.h\)".*#\1#
15183 gl_cv_next_unistd_h
='<'unistd.h
'>'
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15189 $as_echo "$gl_cv_next_unistd_h" >&6; }
15191 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15193 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15194 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15195 gl_next_as_first_directive
='<'unistd.h
'>'
15197 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15198 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15200 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15205 if test $ac_cv_header_unistd_h = yes; then
15213 for gl_func
in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
15214 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15216 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15217 if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
15218 $as_echo_n "(cached) " >&6
15220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <unistd.h>
15223 /* Some systems declare various items in the wrong headers. */
15224 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15225 # include <fcntl.h>
15226 # include <stdio.h>
15227 # include <stdlib.h>
15228 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15242 if ac_fn_c_try_compile
"$LINENO"; then :
15243 eval "$as_gl_Symbol=yes"
15245 eval "$as_gl_Symbol=no"
15247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15249 eval ac_res
=\$
$as_gl_Symbol
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15251 $as_echo "$ac_res" >&6; }
15252 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15253 cat >>confdefs.h
<<_ACEOF
15254 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15257 eval ac_cv_have_decl_
$gl_func=yes
15262 # Code from module warn-on-use:
15263 # End of code from modules
15284 gl_source_base
='tests'
15285 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
15287 gl_module_indicator_condition
=$gltests_WITNESS
15297 LIBGNU_LIBDEPS
="$gl_libdeps"
15299 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
15303 for ac_func
in strftime
15305 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
15306 if test "x$ac_cv_func_strftime" = x
""yes; then :
15307 cat >>confdefs.h
<<_ACEOF
15308 #define HAVE_STRFTIME 1
15312 # strftime is in -lintl on SCO UNIX.
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15314 $as_echo_n "checking for strftime in -lintl... " >&6; }
15315 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15318 ac_check_lib_save_LIBS
=$LIBS
15319 LIBS
="-lintl $LIBS"
15320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15333 return strftime ();
15338 if ac_fn_c_try_link
"$LINENO"; then :
15339 ac_cv_lib_intl_strftime
=yes
15341 ac_cv_lib_intl_strftime
=no
15343 rm -f core conftest.err conftest.
$ac_objext \
15344 conftest
$ac_exeext conftest.
$ac_ext
15345 LIBS
=$ac_check_lib_save_LIBS
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15348 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15349 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
15350 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15352 LIBS
="-lintl $LIBS"
15360 for ac_func
in grantpt
15362 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15363 if test "x$ac_cv_func_grantpt" = x
""yes; then :
15364 cat >>confdefs.h
<<_ACEOF
15365 #define HAVE_GRANTPT 1
15372 # PTY-related GNU extensions.
15373 for ac_func
in getpt
15375 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
15376 if test "x$ac_cv_func_getpt" = x
""yes; then :
15377 cat >>confdefs.h
<<_ACEOF
15378 #define HAVE_GETPT 1
15385 # Check this now, so that we will NOT find the above functions in ncurses.
15386 # That is because we have not set up to link ncurses in lib-src.
15387 # It's better to believe a function is not available
15388 # than to expect to find it in ncurses.
15389 # Also we need tputs and friends to be able to build at all.
15390 have_tputs_et_al
=true
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15392 $as_echo_n "checking for library containing tputs... " >&6; }
15393 if test "${ac_cv_search_tputs+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15396 ac_func_search_save_LIBS
=$LIBS
15397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15400 /* Override any GCC internal prototype to avoid an error.
15401 Use char because int might match the return type of a GCC
15402 builtin and then its argument prototype would still apply. */
15415 for ac_lib
in '' ncurses terminfo termcap
; do
15416 if test -z "$ac_lib"; then
15417 ac_res
="none required"
15420 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15422 if ac_fn_c_try_link
"$LINENO"; then :
15423 ac_cv_search_tputs
=$ac_res
15425 rm -f core conftest.err conftest.
$ac_objext \
15427 if test "${ac_cv_search_tputs+set}" = set; then :
15431 if test "${ac_cv_search_tputs+set}" = set; then :
15434 ac_cv_search_tputs
=no
15436 rm conftest.
$ac_ext
15437 LIBS
=$ac_func_search_save_LIBS
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15440 $as_echo "$ac_cv_search_tputs" >&6; }
15441 ac_res
=$ac_cv_search_tputs
15442 if test "$ac_res" != no
; then :
15443 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15446 have_tputs_et_al
=false
15449 if test "$have_tputs_et_al" != true
; then
15450 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
15451 Maybe some development libraries/packages are missing? Try installing
15452 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15454 # Must define this when any termcap library is found.
15456 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15458 ## FIXME This was the cpp logic, but I am not sure it is right.
15459 ## The above test has not necessarily found libncurses.
15460 HAVE_LIBNCURSES
=yes
15462 ## Use terminfo instead of termcap?
15463 ## Note only system files NOT using terminfo are:
15464 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15465 ## darwin|gnu without ncurses.
15469 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15470 ## hpux10-20: Use the system provided termcap(3) library.
15471 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15472 ## is necessary. Otherwise Emacs dumps core when run -nw.
15473 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
15475 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15476 ## The ncurses library has been moved out of the System framework in
15477 ## Mac OS X 10.2. So if configure detects it, set the command-line
15478 ## option to use it.
15480 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15481 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15483 LIBS_TERMCAP
="-lncurses"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15489 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15490 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15491 $as_echo_n "(cached) " >&6
15493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 #include <osreldate.h>
15499 #if __FreeBSD_version < 400000
15507 if ac_fn_c_try_link
"$LINENO"; then :
15508 emacs_cv_freebsd_terminfo
=yes
15510 emacs_cv_freebsd_terminfo
=no
15512 rm -f core conftest.err conftest.
$ac_objext \
15513 conftest
$ac_exeext conftest.
$ac_ext
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15518 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15520 if test $emacs_cv_freebsd_terminfo = yes; then
15522 LIBS_TERMCAP
="-lncurses"
15524 LIBS_TERMCAP
="-ltermcap"
15529 if test $ac_cv_search_tputs = -lterminfo; then
15531 LIBS_TERMCAP
="-lterminfo"
15533 LIBS_TERMCAP
="-ltermcap"
15540 ## hpux: Make sure we get select from libc rather than from libcurses
15541 ## because libcurses on HPUX 10.10 has a broken version of select.
15542 ## We used to use -lc -lcurses, but this may be cleaner.
15543 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15545 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
15547 ## Must use system termcap, if we use any termcap. It does special things.
15548 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
15551 TERMCAP_OBJ
=tparam.o
15552 if test $TERMINFO = yes; then
15554 $as_echo "#define TERMINFO 1" >>confdefs.h
15557 ## Default used to be -ltermcap. Add a case above if need something else.
15558 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
15560 TERMCAP_OBJ
=terminfo.o
15566 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 #include <netinet/in.h>
15571 #include <arpa/nameser.h>
15572 #include <resolv.h>
15581 if ac_fn_c_try_link
"$LINENO"; then :
15586 rm -f core conftest.err conftest.
$ac_objext \
15587 conftest
$ac_exeext conftest.
$ac_ext
15588 if test "$have_res_init" = no
; then
15590 LIBS
="$LIBS -lresolv"
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15592 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 #include <netinet/in.h>
15596 #include <arpa/nameser.h>
15597 #include <resolv.h>
15606 if ac_fn_c_try_link
"$LINENO"; then :
15611 rm -f core conftest.err conftest.
$ac_objext \
15612 conftest
$ac_exeext conftest.
$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15614 $as_echo "$have_res_init" >&6; }
15615 if test "$have_res_init" = yes ; then
15621 if test "$have_res_init" = yes; then
15623 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15627 # Do we need the Hesiod library to provide the support routines?
15629 if test "$with_hesiod" != no
; then
15630 # Don't set $LIBS here -- see comments above. FIXME which comments?
15631 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15632 if test "x$ac_cv_func_res_send" = x
""yes; then :
15635 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15636 if test "x$ac_cv_func___res_send" = x
""yes; then :
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15640 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15641 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15644 ac_check_lib_save_LIBS
=$LIBS
15645 LIBS
="-lresolv $LIBS"
15646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15649 /* Override any GCC internal prototype to avoid an error.
15650 Use char because int might match the return type of a GCC
15651 builtin and then its argument prototype would still apply. */
15659 return res_send ();
15664 if ac_fn_c_try_link
"$LINENO"; then :
15665 ac_cv_lib_resolv_res_send
=yes
15667 ac_cv_lib_resolv_res_send
=no
15669 rm -f core conftest.err conftest.
$ac_objext \
15670 conftest
$ac_exeext conftest.
$ac_ext
15671 LIBS
=$ac_check_lib_save_LIBS
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15674 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15675 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15679 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15680 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15683 ac_check_lib_save_LIBS
=$LIBS
15684 LIBS
="-lresolv $LIBS"
15685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15688 /* Override any GCC internal prototype to avoid an error.
15689 Use char because int might match the return type of a GCC
15690 builtin and then its argument prototype would still apply. */
15694 char __res_send ();
15698 return __res_send ();
15703 if ac_fn_c_try_link
"$LINENO"; then :
15704 ac_cv_lib_resolv___res_send
=yes
15706 ac_cv_lib_resolv___res_send
=no
15708 rm -f core conftest.err conftest.
$ac_objext \
15709 conftest
$ac_exeext conftest.
$ac_ext
15710 LIBS
=$ac_check_lib_save_LIBS
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15713 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15714 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15724 if test "$resolv" = yes ; then
15729 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15730 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15734 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15735 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15736 $as_echo_n "(cached) " >&6
15738 ac_check_lib_save_LIBS
=$LIBS
15739 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15743 /* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply. */
15749 char hes_getmailhost ();
15753 return hes_getmailhost ();
15758 if ac_fn_c_try_link
"$LINENO"; then :
15759 ac_cv_lib_hesiod_hes_getmailhost
=yes
15761 ac_cv_lib_hesiod_hes_getmailhost
=no
15763 rm -f core conftest.err conftest.
$ac_objext \
15764 conftest
$ac_exeext conftest.
$ac_ext
15765 LIBS
=$ac_check_lib_save_LIBS
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15768 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15769 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15778 if test x
"$hesiod" = xyes
; then
15780 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15787 # Do we need libresolv (due to res_init or Hesiod)?
15788 if test "$resolv" = yes ; then
15790 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15798 # These tell us which Kerberos-related libraries to use.
15805 if test "${with_kerberos}" != no
; then
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15807 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15808 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15809 $as_echo_n "(cached) " >&6
15811 ac_check_lib_save_LIBS
=$LIBS
15812 LIBS
="-lcom_err $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 if ac_fn_c_try_link
"$LINENO"; then :
15832 ac_cv_lib_com_err_com_err
=yes
15834 ac_cv_lib_com_err_com_err
=no
15836 rm -f core conftest.err conftest.
$ac_objext \
15837 conftest
$ac_exeext conftest.
$ac_ext
15838 LIBS
=$ac_check_lib_save_LIBS
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15841 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15842 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15848 if test $have_com_err = yes; then
15849 COM_ERRLIB
=-lcom_err
15850 LIBS
="$COM_ERRLIB $LIBS"
15852 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15856 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15857 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15858 $as_echo_n "(cached) " >&6
15860 ac_check_lib_save_LIBS
=$LIBS
15861 LIBS
="-lcrypto $LIBS"
15862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15865 /* Override any GCC internal prototype to avoid an error.
15866 Use char because int might match the return type of a GCC
15867 builtin and then its argument prototype would still apply. */
15871 char mit_des_cbc_encrypt ();
15875 return mit_des_cbc_encrypt ();
15880 if ac_fn_c_try_link
"$LINENO"; then :
15881 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15883 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15885 rm -f core conftest.err conftest.
$ac_objext \
15886 conftest
$ac_exeext conftest.
$ac_ext
15887 LIBS
=$ac_check_lib_save_LIBS
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15890 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15891 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15897 if test $have_crypto = yes; then
15899 LIBS
="$CRYPTOLIB $LIBS"
15901 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15905 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15906 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15907 $as_echo_n "(cached) " >&6
15909 ac_check_lib_save_LIBS
=$LIBS
15910 LIBS
="-lk5crypto $LIBS"
15911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15920 char mit_des_cbc_encrypt ();
15924 return mit_des_cbc_encrypt ();
15929 if ac_fn_c_try_link
"$LINENO"; then :
15930 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15932 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15934 rm -f core conftest.err conftest.
$ac_objext \
15935 conftest
$ac_exeext conftest.
$ac_ext
15936 LIBS
=$ac_check_lib_save_LIBS
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15939 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15940 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15946 if test $have_k5crypto = yes; then
15947 CRYPTOLIB
=-lk5crypto
15948 LIBS
="$CRYPTOLIB $LIBS"
15950 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15954 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15955 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15956 $as_echo_n "(cached) " >&6
15958 ac_check_lib_save_LIBS
=$LIBS
15959 LIBS
="-lkrb5 $LIBS"
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15963 /* Override any GCC internal prototype to avoid an error.
15964 Use char because int might match the return type of a GCC
15965 builtin and then its argument prototype would still apply. */
15969 char krb5_init_context ();
15973 return krb5_init_context ();
15978 if ac_fn_c_try_link
"$LINENO"; then :
15979 ac_cv_lib_krb5_krb5_init_context
=yes
15981 ac_cv_lib_krb5_krb5_init_context
=no
15983 rm -f core conftest.err conftest.
$ac_objext \
15984 conftest
$ac_exeext conftest.
$ac_ext
15985 LIBS
=$ac_check_lib_save_LIBS
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15988 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15989 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15995 if test $have_krb5=yes; then
15997 LIBS
="$KRB5LIB $LIBS"
15999 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16002 if test "${with_kerberos5}" = no
; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16004 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16005 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16006 $as_echo_n "(cached) " >&6
16008 ac_check_lib_save_LIBS
=$LIBS
16009 LIBS
="-ldes425 $LIBS"
16010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16013 /* Override any GCC internal prototype to avoid an error.
16014 Use char because int might match the return type of a GCC
16015 builtin and then its argument prototype would still apply. */
16019 char des_cbc_encrypt ();
16023 return des_cbc_encrypt ();
16028 if ac_fn_c_try_link
"$LINENO"; then :
16029 ac_cv_lib_des425_des_cbc_encrypt
=yes
16031 ac_cv_lib_des425_des_cbc_encrypt
=no
16033 rm -f core conftest.err conftest.
$ac_objext \
16034 conftest
$ac_exeext conftest.
$ac_ext
16035 LIBS
=$ac_check_lib_save_LIBS
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16038 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16039 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
16045 if test $have_des425 = yes; then
16047 LIBS
="$DESLIB $LIBS"
16049 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16053 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16054 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16055 $as_echo_n "(cached) " >&6
16057 ac_check_lib_save_LIBS
=$LIBS
16059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16062 /* Override any GCC internal prototype to avoid an error.
16063 Use char because int might match the return type of a GCC
16064 builtin and then its argument prototype would still apply. */
16068 char des_cbc_encrypt ();
16072 return des_cbc_encrypt ();
16077 if ac_fn_c_try_link
"$LINENO"; then :
16078 ac_cv_lib_des_des_cbc_encrypt
=yes
16080 ac_cv_lib_des_des_cbc_encrypt
=no
16082 rm -f core conftest.err conftest.
$ac_objext \
16083 conftest
$ac_exeext conftest.
$ac_ext
16084 LIBS
=$ac_check_lib_save_LIBS
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16087 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16088 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
16094 if test $have_des = yes; then
16096 LIBS
="$DESLIB $LIBS"
16098 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16103 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16104 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16107 ac_check_lib_save_LIBS
=$LIBS
16108 LIBS
="-lkrb4 $LIBS"
16109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16118 char krb_get_cred ();
16122 return krb_get_cred ();
16127 if ac_fn_c_try_link
"$LINENO"; then :
16128 ac_cv_lib_krb4_krb_get_cred
=yes
16130 ac_cv_lib_krb4_krb_get_cred
=no
16132 rm -f core conftest.err conftest.
$ac_objext \
16133 conftest
$ac_exeext conftest.
$ac_ext
16134 LIBS
=$ac_check_lib_save_LIBS
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16137 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16138 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
16144 if test $have_krb4 = yes; then
16146 LIBS
="$KRB4LIB $LIBS"
16148 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16152 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16153 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16154 $as_echo_n "(cached) " >&6
16156 ac_check_lib_save_LIBS
=$LIBS
16158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16161 /* Override any GCC internal prototype to avoid an error.
16162 Use char because int might match the return type of a GCC
16163 builtin and then its argument prototype would still apply. */
16167 char krb_get_cred ();
16171 return krb_get_cred ();
16176 if ac_fn_c_try_link
"$LINENO"; then :
16177 ac_cv_lib_krb_krb_get_cred
=yes
16179 ac_cv_lib_krb_krb_get_cred
=no
16181 rm -f core conftest.err conftest.
$ac_objext \
16182 conftest
$ac_exeext conftest.
$ac_ext
16183 LIBS
=$ac_check_lib_save_LIBS
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16186 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16187 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
16193 if test $have_krb = yes; then
16195 LIBS
="$KRB4LIB $LIBS"
16197 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16203 if test "${with_kerberos5}" != no
; then
16204 for ac_header
in krb5.h
16206 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16207 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
16208 cat >>confdefs.h
<<_ACEOF
16209 #define HAVE_KRB5_H 1
16211 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16213 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
16215 cat >>confdefs.h
<<_ACEOF
16216 #define HAVE_KRB5_ERROR_TEXT 1
16221 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16223 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
16225 cat >>confdefs.h
<<_ACEOF
16226 #define HAVE_KRB5_ERROR_E_TEXT 1
16237 for ac_header
in des.h
16239 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16240 if test "x$ac_cv_header_des_h" = x
""yes; then :
16241 cat >>confdefs.h
<<_ACEOF
16242 #define HAVE_DES_H 1
16246 for ac_header
in kerberosIV
/des.h
16248 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16249 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
16250 cat >>confdefs.h
<<_ACEOF
16251 #define HAVE_KERBEROSIV_DES_H 1
16255 for ac_header
in kerberos
/des.h
16257 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16258 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
16259 cat >>confdefs.h
<<_ACEOF
16260 #define HAVE_KERBEROS_DES_H 1
16275 for ac_header
in krb.h
16277 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16278 if test "x$ac_cv_header_krb_h" = x
""yes; then :
16279 cat >>confdefs.h
<<_ACEOF
16280 #define HAVE_KRB_H 1
16284 for ac_header
in kerberosIV
/krb.h
16286 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16287 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
16288 cat >>confdefs.h
<<_ACEOF
16289 #define HAVE_KERBEROSIV_KRB_H 1
16293 for ac_header
in kerberos
/krb.h
16295 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16296 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
16297 cat >>confdefs.h
<<_ACEOF
16298 #define HAVE_KERBEROS_KRB_H 1
16314 for ac_header
in com_err.h
16316 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16317 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
16318 cat >>confdefs.h
<<_ACEOF
16319 #define HAVE_COM_ERR_H 1
16334 # Solaris requires -lintl if you want strerror (which calls dgettext)
16335 # to return localized messages.
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16337 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16338 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16339 $as_echo_n "(cached) " >&6
16341 ac_check_lib_save_LIBS
=$LIBS
16342 LIBS
="-lintl $LIBS"
16343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16346 /* Override any GCC internal prototype to avoid an error.
16347 Use char because int might match the return type of a GCC
16348 builtin and then its argument prototype would still apply. */
16356 return dgettext ();
16361 if ac_fn_c_try_link
"$LINENO"; then :
16362 ac_cv_lib_intl_dgettext
=yes
16364 ac_cv_lib_intl_dgettext
=no
16366 rm -f core conftest.err conftest.
$ac_objext \
16367 conftest
$ac_exeext conftest.
$ac_ext
16368 LIBS
=$ac_check_lib_save_LIBS
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16371 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16372 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
16373 cat >>confdefs.h
<<_ACEOF
16374 #define HAVE_LIBINTL 1
16377 LIBS
="-lintl $LIBS"
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16383 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16384 if test "${emacs_cv_localtime_cache+set}" = set; then :
16385 $as_echo_n "(cached) " >&6
16387 if test x
$ac_cv_func_tzset = xyes
; then
16388 if test "$cross_compiling" = yes; then :
16389 # If we have tzset, assume the worst when cross-compiling.
16390 emacs_cv_localtime_cache
=yes
16392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16395 char TZ_GMT0[] = "TZ=GMT0";
16396 char TZ_PST8[] = "TZ=PST8";
16399 time_t now = time ((time_t *) 0);
16400 int hour_GMT0, hour_unset;
16401 if (putenv (TZ_GMT0) != 0)
16403 hour_GMT0 = localtime (&now)->tm_hour;
16405 hour_unset = localtime (&now)->tm_hour;
16406 if (putenv (TZ_PST8) != 0)
16408 if (localtime (&now)->tm_hour == hour_GMT0)
16411 if (localtime (&now)->tm_hour != hour_unset)
16416 if ac_fn_c_try_run
"$LINENO"; then :
16417 emacs_cv_localtime_cache
=no
16419 emacs_cv_localtime_cache
=yes
16421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16426 # If we lack tzset, report that localtime does not cache TZ,
16427 # since we can't invalidate the cache if we don't have tzset.
16428 emacs_cv_localtime_cache
=no
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16432 $as_echo "$emacs_cv_localtime_cache" >&6; }
16433 if test $emacs_cv_localtime_cache = yes; then
16435 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16439 if test "x$HAVE_TIMEVAL" = xyes
; then
16440 for ac_func
in gettimeofday
16442 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16443 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
16444 cat >>confdefs.h
<<_ACEOF
16445 #define HAVE_GETTIMEOFDAY 1
16451 if test $ac_cv_func_gettimeofday = yes; then
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16453 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16454 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
16455 $as_echo_n "(cached) " >&6
16457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16460 #ifdef TIME_WITH_SYS_TIME
16461 #include <sys/time.h>
16464 #ifdef HAVE_SYS_TIME_H
16465 #include <sys/time.h>
16473 struct timeval time;
16474 gettimeofday (&time, 0);
16479 if ac_fn_c_try_compile
"$LINENO"; then :
16480 emacs_cv_gettimeofday_two_arguments
=yes
16482 emacs_cv_gettimeofday_two_arguments
=no
16484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16487 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16488 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16490 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16497 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16498 if test "x$ac_cv_func_socket" = x
""yes; then :
16504 if test $ok_so_far = yes; then
16505 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16506 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
16514 if test $ok_so_far = yes; then
16515 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16516 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
16524 if test $ok_so_far = yes; then
16526 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16530 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16532 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16537 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16538 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16540 $as_echo "yes" >&6; }
16542 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16549 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16550 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16554 cat >>confdefs.h
<<_ACEOF
16560 for ac_header
in vfork.h
16562 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16563 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16564 cat >>confdefs.h
<<_ACEOF
16565 #define HAVE_VFORK_H 1
16572 for ac_func
in fork vfork
16574 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16575 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16576 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16577 cat >>confdefs.h
<<_ACEOF
16578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16584 if test "x$ac_cv_func_fork" = xyes
; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16586 $as_echo_n "checking for working fork... " >&6; }
16587 if test "${ac_cv_func_fork_works+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16590 if test "$cross_compiling" = yes; then :
16591 ac_cv_func_fork_works
=cross
16593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 $ac_includes_default
16600 /* By Ruediger Kuhlmann. */
16601 return fork () < 0;
16607 if ac_fn_c_try_run
"$LINENO"; then :
16608 ac_cv_func_fork_works
=yes
16610 ac_cv_func_fork_works
=no
16612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16618 $as_echo "$ac_cv_func_fork_works" >&6; }
16621 ac_cv_func_fork_works
=$ac_cv_func_fork
16623 if test "x$ac_cv_func_fork_works" = xcross
; then
16625 *-*-amigaos* |
*-*-msdosdjgpp*)
16626 # Override, as these systems have only a dummy fork() stub
16627 ac_cv_func_fork_works
=no
16630 ac_cv_func_fork_works
=yes
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16634 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16636 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16637 if test "x$ac_cv_func_vfork" = xyes
; then
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16639 $as_echo_n "checking for working vfork... " >&6; }
16640 if test "${ac_cv_func_vfork_works+set}" = set; then :
16641 $as_echo_n "(cached) " >&6
16643 if test "$cross_compiling" = yes; then :
16644 ac_cv_func_vfork_works
=cross
16646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16648 /* Thanks to Paul Eggert for this test. */
16649 $ac_includes_default
16650 #include <sys/wait.h>
16651 #ifdef HAVE_VFORK_H
16652 # include <vfork.h>
16654 /* On some sparc systems, changes by the child to local and incoming
16655 argument registers are propagated back to the parent. The compiler
16656 is told about this with #include <vfork.h>, but some compilers
16657 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16658 static variable whose address is put into a register that is
16659 clobbered by the vfork. */
16662 sparc_address_test (int arg)
16664 sparc_address_test (arg) int arg;
16667 static pid_t child;
16685 pid_t parent = getpid ();
16688 sparc_address_test (0);
16693 /* Here is another test for sparc vfork register problems. This
16694 test uses lots of local variables, at least as many local
16695 variables as main has allocated so far including compiler
16696 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16697 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16698 reuse the register of parent for one of the local variables,
16699 since it will think that parent can't possibly be used any more
16700 in this routine. Assigning to the local variable will thus
16701 munge parent in the parent process. */
16703 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16704 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16705 /* Convince the compiler that p..p7 are live; otherwise, it might
16706 use the same hardware register for all 8 local variables. */
16707 if (p != p1 || p != p2 || p != p3 || p != p4
16708 || p != p5 || p != p6 || p != p7)
16711 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16712 from child file descriptors. If the child closes a descriptor
16713 before it execs or exits, this munges the parent's descriptor
16714 as well. Test for this by closing stdout in the child. */
16715 _exit(close(fileno(stdout)) != 0);
16720 while (wait(&status) != child)
16723 /* Was there some problem with vforking? */
16726 /* Did the child fail? (This shouldn't happen.) */
16729 /* Did the vfork/compiler bug occur? */
16730 || parent != getpid()
16732 /* Did the file descriptor bug occur? */
16733 || fstat(fileno(stdout), &st) != 0
16738 if ac_fn_c_try_run
"$LINENO"; then :
16739 ac_cv_func_vfork_works
=yes
16741 ac_cv_func_vfork_works
=no
16743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16749 $as_echo "$ac_cv_func_vfork_works" >&6; }
16752 if test "x$ac_cv_func_fork_works" = xcross
; then
16753 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16755 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16758 if test "x$ac_cv_func_vfork_works" = xyes
; then
16760 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16764 $as_echo "#define vfork fork" >>confdefs.h
16767 if test "x$ac_cv_func_fork_works" = xyes
; then
16769 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16775 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16776 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16777 $as_echo_n "(cached) " >&6
16779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <langinfo.h>
16785 char* cs = nl_langinfo(CODESET);
16790 if ac_fn_c_try_link
"$LINENO"; then :
16791 emacs_cv_langinfo_codeset
=yes
16793 emacs_cv_langinfo_codeset
=no
16795 rm -f core conftest.err conftest.
$ac_objext \
16796 conftest
$ac_exeext conftest.
$ac_ext
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16800 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16801 if test $emacs_cv_langinfo_codeset = yes; then
16803 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16807 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16808 if test "x$ac_cv_type_size_t" = x
""yes; then :
16810 cat >>confdefs.h
<<_ACEOF
16811 #define HAVE_SIZE_T 1
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16819 $as_echo_n "checking for mbstate_t... " >&6; }
16820 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16821 $as_echo_n "(cached) " >&6
16823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 # include <wchar.h>
16830 mbstate_t x; return sizeof x;
16835 if ac_fn_c_try_compile
"$LINENO"; then :
16836 ac_cv_type_mbstate_t
=yes
16838 ac_cv_type_mbstate_t
=no
16840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16843 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16844 if test $ac_cv_type_mbstate_t = yes; then
16846 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16850 $as_echo "#define mbstate_t int" >>confdefs.h
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16855 $as_echo_n "checking for C restricted array declarations... " >&6; }
16856 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16857 $as_echo_n "(cached) " >&6
16859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861 void fred (int x[__restrict]);
16870 if ac_fn_c_try_compile
"$LINENO"; then :
16871 emacs_cv_c_restrict_arr
=yes
16873 emacs_cv_c_restrict_arr
=no
16875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16878 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16879 if test "$emacs_cv_c_restrict_arr" = yes; then
16881 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16887 # Set up the CFLAGS for real compilation, so we can substitute it.
16888 CFLAGS
="$REAL_CFLAGS"
16889 CPPFLAGS
="$REAL_CPPFLAGS"
16891 ## Hack to detect a buggy GCC version.
16892 if test "x$GCC" = xyes \
16893 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16894 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16895 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16896 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16899 #### Find out which version of Emacs this is.
16900 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16901 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16902 if test x
"${version}" = x
; then
16903 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
16905 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16907 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16910 ### Specify what sort of things we'll be editing into Makefile and config.h.
16911 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16935 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16936 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16937 ## end of LIBX_BASE, but nothing ever set it.
16942 ## Used in lwlib/Makefile.in.
16944 if test -n "${machfile}"; then
16945 M_FILE="\$
(srcdir
)/${machfile}"
16949 S_FILE="\$
(srcdir
)/${opsysfile}"
16961 cat >>confdefs.h <<_ACEOF
16962 #define EMACS_CONFIGURATION "${canonical}"
16966 cat >>confdefs.h <<_ACEOF
16967 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16970 if test -n "$machfile"; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define config_machfile "${machfile}"
16978 cat >>confdefs.h <<_ACEOF
16979 #define config_opsysfile "${opsysfile}"
16986 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16988 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16991 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16993 if test "$HAVE_XFT" = "yes"; then
16994 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16995 elif test "$HAVE_FREETYPE" = "yes"; then
16996 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17006 if test "${USE_X_TOOLKIT}" != "none" ; then
17007 WIDGET_OBJ
=widget.o
17009 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17011 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17013 $as_echo "#define USE_LUCID 1" >>confdefs.h
17015 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17017 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17022 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17023 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17027 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17028 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17029 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17033 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17034 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17037 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17043 case "$USE_X_TOOLKIT" in
17044 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17045 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17046 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17050 if test "$USE_X_TOOLKIT" = "none"; then
17051 LIBXT_OTHER
="\$(LIBXSM)"
17052 OLDXMENU_TARGET
="really-oldXMenu"
17054 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17055 OLDXMENU_TARGET
="really-lwlib"
17059 ## The X Menu stuff is present in the X10 distribution, but missing
17060 ## from X11. If we have X10, just use the installed library;
17061 ## otherwise, use our own copy.
17062 if test "${HAVE_X11}" = "yes" ; then
17064 $as_echo "#define HAVE_X11 1" >>confdefs.h
17067 if test "$USE_X_TOOLKIT" = "none"; then
17068 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17070 OLDXMENU
="\${lwlibdir}/liblw.a"
17072 LIBXMENU
="\$(OLDXMENU)"
17073 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17074 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17076 ## For a syntactically valid Makefile; not actually used for anything.
17077 ## See comments in src/Makefile.in.
17079 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17080 if test "${HAVE_X_WINDOWS}" = "yes"; then
17089 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17102 if test "${HAVE_MENUS}" = "yes" ; then
17104 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17108 if test "${GNU_MALLOC}" = "yes" ; then
17110 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17115 if test "${REL_ALLOC}" = "yes" ; then
17117 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17120 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17124 if test "$opsys" = "cygwin"; then
17125 CYGWIN_OBJ
="sheap.o"
17126 ## Cygwin differs because of its unexec().
17128 POST_ALLOC_OBJ
=lastfile.o
17131 PRE_ALLOC_OBJ
=lastfile.o
17140 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
17143 ## The -headerpad option tells ld (see man page) to leave room at the
17144 ## end of the header for adding load commands. Needed for dumping.
17145 ## 0x690 is the total size of 30 segment load commands (at 56
17146 ## each); under Cocoa 31 commands are required.
17147 if test "$HAVE_NS" = "yes"; then
17148 libs_nsgui
="-framework AppKit"
17149 headerpad_extra
=6C8
17152 headerpad_extra
=690
17154 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17156 ## This is here because src/Makefile.in did some extra fiddling around
17157 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17158 ## #ifndef LD_SWITCH_SYSTEM
17159 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17160 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17161 ## not using gcc, darwin system not on an alpha (ie darwin, since
17162 ## darwin + alpha does not occur).
17163 ## Because this was done in src/Makefile.in, the resulting part of
17164 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17165 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17166 ## rather than LD_SWITCH_SYSTEM.
17167 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17168 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
17171 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17172 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17173 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17174 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17175 ## had different values in configure (in ac_link) and src/Makefile.in.
17176 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17177 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
17179 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
17182 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17183 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17192 ## gnu: GNU needs its own crt0.
17193 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
17195 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17196 ## library search parth, i.e. it won't search /usr/lib for libc and
17197 ## friends. Using -nostartfiles instead avoids this problem, and
17198 ## will also work on earlier NetBSD releases.
17199 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
17201 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17202 ## MkLinux/LinuxPPC needs this.
17203 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17206 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
17212 if test "x$ORDINARY_LINK" = "xyes"; then
17216 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17219 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17220 ## freebsd, gnu-* not on macppc|ibms390x.
17221 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17223 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17224 ## places that are difficult to figure out at make time. Fortunately,
17225 ## these same versions allow you to pass arbitrary flags on to the
17226 ## linker, so there is no reason not to use it as a linker.
17228 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17229 ## searching for libraries in its internal directories, so we have to
17230 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17231 LD_FIRSTFLAG
="-nostdlib"
17234 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17235 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
17240 ## FIXME? The logic here is not precisely the same as that above.
17241 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17242 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17244 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17247 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
17250 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17251 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17257 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17258 ## immediately undefine it again and redefine it to empty.
17259 ## Was the C_SWITCH_X_SITE part really necessary?
17260 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17266 ## Ask GCC where to find libgcc.a.
17267 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17274 ## If we're using X11/GNUstep, define some consequences.
17275 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
17277 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17280 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17282 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
17283 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
17285 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
17286 test "$HAVE_X_WINDOWS" = "yes" && \
17287 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17297 #### Report on what we decided to do.
17298 #### Report GTK as a toolkit, even if it doesn't use Xt.
17299 #### It makes printing result more understandable as using GTK sets
17300 #### toolkit_scroll_bars to yes by default.
17301 if test "${HAVE_GTK}" = "yes"; then
17306 if test -n "$machfile"; then
17307 and_machfile
=" and \`${machfile}'"
17311 Configured for \`${canonical}'.
17313 Where should the build process find the source code? ${srcdir}
17314 What operating system and machine description files should Emacs use?
17315 \`${opsysfile}'${and_machfile}
17316 What compiler should emacs be built with? ${CC} ${CFLAGS}
17317 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17318 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17319 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17320 What window system should Emacs use? ${window_system}
17321 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17323 if test -n "${x_includes}"; then
17324 echo " Where do we find X Windows header files? ${x_includes}"
17326 echo " Where do we find X Windows header files? Standard dirs"
17328 if test -n "${x_libraries}"; then
17329 echo " Where do we find X Windows libraries? ${x_libraries}"
17331 echo " Where do we find X Windows libraries? Standard dirs"
17334 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17335 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17336 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17337 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17338 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17339 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17340 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17341 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17343 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17344 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17345 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17346 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17347 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17348 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17350 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17351 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17352 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17353 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17355 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17358 if test $USE_XASSERTS = yes; then
17359 echo " Compiling with asserts turned on."
17360 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
17365 if test "$HAVE_NS" = "yes"; then
17367 echo "You must run \"make install\" in order to test the built application.
17368 The installed application will go to nextstep/Emacs.app and can be
17369 run or moved from there."
17370 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17371 echo "The application will be fully self-contained."
17373 echo "The lisp resources for the application will be installed under ${prefix}.
17374 You may need to run \"make install\" with sudo. The application will fail
17375 to run if these resources are not installed."
17381 # Remove any trailing slashes in these variables.
17382 test "${prefix}" != NONE
&&
17383 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17384 test "${exec_prefix}" != NONE
&&
17385 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17387 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"
17389 ac_config_commands
="$ac_config_commands default"
17391 cat >confcache
<<\_ACEOF
17392 # This file is a shell script that caches the results of configure
17393 # tests run on this system so they can be shared between configure
17394 # scripts and configure runs, see configure's option --config-cache.
17395 # It is not useful on other systems. If it contains results you don't
17396 # want to keep, you may remove or edit it.
17398 # config.status only pays attention to the cache file if you give it
17399 # the --recheck option to rerun configure.
17401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17403 # following values.
17407 # The following way of writing the cache mishandles newlines in values,
17408 # but we know of no workaround that is simple, portable, and efficient.
17409 # So, we kill variables containing newlines.
17410 # Ultrix sh set writes to stderr and can't be redirected directly,
17411 # and sets the high bit in the cache file unless we assign to the vars.
17413 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17414 eval ac_val
=\$
$ac_var
17418 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17422 _ | IFS | as_nl
) ;; #(
17423 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17424 *) { eval $ac_var=; unset $ac_var;} ;;
17430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17431 *${as_nl}ac_space
=\
*)
17432 # `set' does not quote correctly, so add quotes: double-quote
17433 # substitution turns \\\\ into \\, and sed turns \\ into \.
17436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17439 # `set' quotes correctly as required by POSIX, so do not add quotes.
17440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17453 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17454 if test -w "$cache_file"; then
17455 test "x$cache_file" != "x/dev/null" &&
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17457 $as_echo "$as_me: updating cache $cache_file" >&6;}
17458 cat confcache
>$cache_file
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17466 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17467 # Let make expand exec_prefix.
17468 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17470 DEFS
=-DHAVE_CONFIG_H
17475 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17476 # 1. Remove the extension, and $U if already installed.
17477 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17478 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17480 # will be set to the directory where LIBOBJS objects are built.
17481 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17482 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17484 LIBOBJS
=$ac_libobjs
17486 LTLIBOBJS
=$ac_ltlibobjs
17489 if test -n "$EXEEXT"; then
17491 am__EXEEXT_FALSE
='#'
17493 am__EXEEXT_TRUE
='#'
17497 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17498 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17501 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17502 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17506 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17507 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
17508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17513 if test -n "$gl_LIBOBJS"; then
17514 # Remove the extension.
17515 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17516 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17517 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17518 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17521 gl_LIBOBJS
=$gl_libobjs
17523 gl_LTLIBOBJS
=$gl_ltlibobjs
17529 if test -n "$gltests_LIBOBJS"; then
17530 # Remove the extension.
17531 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17532 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17533 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17534 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17537 gltests_LIBOBJS
=$gltests_libobjs
17539 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17543 : ${CONFIG_STATUS=./config.status}
17545 ac_clean_files_save
=$ac_clean_files
17546 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17548 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17550 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17552 # Generated by $as_me.
17553 # Run this file to recreate the current configuration.
17554 # Compiler output produced by configure, useful for debugging
17555 # configure, is in config.log if it exists.
17558 ac_cs_recheck=false
17561 SHELL=\${CONFIG_SHELL-$SHELL}
17564 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17565 ## -------------------- ##
17566 ## M4sh Initialization. ##
17567 ## -------------------- ##
17569 # Be more Bourne compatible
17570 DUALCASE
=1; export DUALCASE
# for MKS sh
17571 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17574 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17575 # is contrary to our usage. Disable this feature.
17576 alias -g '${1+"$@"}'='"$@"'
17577 setopt NO_GLOB_SUBST
17579 case `(set -o) 2>/dev/null` in #(
17591 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17592 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17593 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17595 # Prefer a ksh shell builtin over an external printf program on Solaris,
17596 # but without wasting forks for bash or zsh.
17597 if test -z "$BASH_VERSION$ZSH_VERSION" \
17598 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17599 as_echo='print
-r --'
17600 as_echo_n='print
-rn --'
17601 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17602 as_echo='printf %s
\n'
17603 as_echo_n='printf %s
'
17605 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17606 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17607 as_echo_n='/usr
/ucb
/echo -n'
17609 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17610 as_echo_n_body='eval
17614 expr "X$arg" : "X\\(.*\\)$as_nl";
17615 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17617 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17619 export as_echo_n_body
17620 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17622 export as_echo_body
17623 as_echo='sh
-c $as_echo_body as_echo
'
17626 # The user is always right.
17627 if test "${PATH_SEPARATOR+set}" != set; then
17629 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17630 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17637 # We need space, tab and new line, in precisely that order. Quoting is
17638 # there to prevent editors from complaining about space-tab.
17639 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17640 # splitting by setting IFS to empty value.)
17643 # Find who we are. Look in the path if we contain no directory separator.
17645 *[\\/]* ) as_myself=$0 ;;
17646 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17650 test -z "$as_dir" && as_dir=.
17651 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17657 # We did not find ourselves, most probably we were run as `sh COMMAND'
17658 # in which case we are not to be found in the path.
17659 if test "x$as_myself" = x
; then
17662 if test ! -f "$as_myself"; then
17663 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17667 # Unset variables that we do not need and which cause bugs (e.g. in
17668 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17669 # suppresses any "Segmentation fault" message there. '((' could
17670 # trigger a bug in pdksh 5.2.14.
17671 for as_var
in BASH_ENV ENV MAIL MAILPATH
17672 do eval test x\
${$as_var+set} = xset \
17673 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17686 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17689 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17690 # ----------------------------------------
17691 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17692 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17693 # script with STATUS, using 1 if that was 0.
17696 as_status
=$1; test $as_status -eq 0 && as_status
=1
17698 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17699 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17701 $as_echo "$as_me: error: $2" >&2
17702 as_fn_exit
$as_status
17706 # as_fn_set_status STATUS
17707 # -----------------------
17708 # Set $? to STATUS, without forking.
17709 as_fn_set_status
()
17712 } # as_fn_set_status
17714 # as_fn_exit STATUS
17715 # -----------------
17716 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17720 as_fn_set_status
$1
17726 # Portably unset VAR.
17729 { eval $1=; unset $1;}
17731 as_unset
=as_fn_unset
17732 # as_fn_append VAR VALUE
17733 # ----------------------
17734 # Append the text in VALUE to the end of the definition contained in VAR. Take
17735 # advantage of any shell optimizations that allow amortized linear growth over
17736 # repeated appends, instead of the typical quadratic growth present in naive
17738 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17739 eval 'as_fn_append ()
17750 # as_fn_arith ARG...
17751 # ------------------
17752 # Perform arithmetic evaluation on the ARGs, and store the result in the
17753 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17754 # must be portable across $(()) and expr.
17755 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17756 eval 'as_fn_arith ()
17763 as_val
=`expr "$@" || test $? -eq 1`
17768 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17769 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17775 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17776 as_basename
=basename
17781 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17787 as_me
=`$as_basename -- "$0" ||
17788 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17789 X"$0" : 'X\(//\)$' \| \
17790 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17792 sed '/^.*\/\([^/][^/]*\)\/*$/{
17806 # Avoid depending upon Character Ranges.
17807 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17808 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17809 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17810 as_cr_digits
='0123456789'
17811 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17813 ECHO_C
= ECHO_N
= ECHO_T
=
17814 case `echo -n x` in #(((((
17816 case `echo 'xy\c'` in
17817 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17819 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17826 rm -f conf$$ conf$$.exe conf$$.
file
17827 if test -d conf$$.dir
; then
17828 rm -f conf$$.dir
/conf$$.
file
17831 mkdir conf$$.dir
2>/dev
/null
17833 if (echo >conf$$.
file) 2>/dev
/null
; then
17834 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17836 # ... but there are two gotchas:
17837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17839 # In both cases, we have to default to `cp -p'.
17840 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17842 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17850 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17851 rmdir conf$$.dir
2>/dev
/null
17856 # Create "$as_dir" as a directory, including parents if necessary.
17861 -*) as_dir
=.
/$as_dir;;
17863 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17867 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17868 *) as_qdir
=$as_dir;;
17870 as_dirs
="'$as_qdir' $as_dirs"
17871 as_dir
=`$as_dirname -- "$as_dir" ||
17872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17873 X"$as_dir" : 'X\(//\)[^/]' \| \
17874 X"$as_dir" : 'X\(//\)$' \| \
17875 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17876 $as_echo X"$as_dir" |
17877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17881 /^X\(\/\/\)[^/].*/{
17894 test -d "$as_dir" && break
17896 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17897 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17901 if mkdir
-p .
2>/dev
/null
; then
17902 as_mkdir_p
='mkdir -p "$as_dir"'
17904 test -d .
/-p && rmdir .
/-p
17908 if test -x / >/dev
/null
2>&1; then
17909 as_test_x
='test -x'
17911 if ls -dL / >/dev
/null
2>&1; then
17918 if test -d "$1"; then
17924 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17925 ???[sx]*):;;*)false;;esac;fi
17929 as_executable_p
=$as_test_x
17931 # Sed expression to map a string onto a valid CPP name.
17932 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17934 # Sed expression to map a string onto a valid variable name.
17935 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17939 ## ----------------------------------- ##
17940 ## Main body of $CONFIG_STATUS script. ##
17941 ## ----------------------------------- ##
17943 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17946 # Save the log message, to keep $0 and so on meaningful, and to
17947 # report actual input values of CONFIG_FILES etc. instead of their
17948 # values after options handling.
17950 This file was extended by emacs $as_me 24.0.50, which was
17951 generated by GNU Autoconf 2.67. Invocation command line was
17953 CONFIG_FILES = $CONFIG_FILES
17954 CONFIG_HEADERS = $CONFIG_HEADERS
17955 CONFIG_LINKS = $CONFIG_LINKS
17956 CONFIG_COMMANDS = $CONFIG_COMMANDS
17959 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17964 case $ac_config_files in *"
17965 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17968 case $ac_config_headers in *"
17969 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17974 # Files that config.status was made for.
17975 config_files="$ac_config_files"
17976 config_headers="$ac_config_headers"
17977 config_commands="$ac_config_commands"
17981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17983 \`$as_me' instantiates files and other configuration actions
17984 from templates according to the current configuration. Unless the files
17985 and actions are specified as TAGs, all are instantiated by default.
17987 Usage: $0 [OPTION]... [TAG]...
17989 -h, --help print this help, then exit
17990 -V, --version print version number and configuration settings, then exit
17991 --config print configuration, then exit
17992 -q, --quiet, --silent
17993 do not print progress messages
17994 -d, --debug don't remove temporary files
17995 --recheck update $as_me by reconfiguring in the same conditions
17996 --file=FILE[:TEMPLATE]
17997 instantiate the configuration file FILE
17998 --header=FILE[:TEMPLATE]
17999 instantiate the configuration header FILE
18001 Configuration files:
18004 Configuration headers:
18007 Configuration commands:
18010 Report bugs to the package provider."
18013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18014 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18016 emacs config.status 24.0.50
18017 configured by $0, generated by GNU Autoconf 2.67,
18018 with options \\"\$ac_cs_config\\"
18020 Copyright (C) 2010 Free Software Foundation, Inc.
18021 This config.status script is free software; the Free Software Foundation
18022 gives unlimited permission to copy, distribute and modify it."
18029 test -n "\$AWK" || AWK=awk
18032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18033 # The default lists apply if the user does not specify any file.
18039 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18040 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18044 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18056 # Handling of the options.
18057 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18059 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18060 $as_echo "$ac_cs_version"; exit ;;
18061 --config |
--confi |
--conf |
--con |
--co |
--c )
18062 $as_echo "$ac_cs_config"; exit ;;
18063 --debug |
--debu |
--deb |
--de |
--d |
-d )
18065 --file |
--fil |
--fi |
--f )
18068 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18069 '') as_fn_error $?
"missing file argument" ;;
18071 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18072 ac_need_defaults
=false
;;
18073 --header |
--heade |
--head |
--hea )
18076 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18078 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18079 ac_need_defaults
=false
;;
18081 # Conflict between --help and --header
18082 as_fn_error $?
"ambiguous option: \`$1'
18083 Try \`$0 --help' for more information.";;
18084 --help |
--hel |
-h )
18085 $as_echo "$ac_cs_usage"; exit ;;
18086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18087 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18090 # This is an error.
18091 -*) as_fn_error $?
"unrecognized option: \`$1'
18092 Try \`$0 --help' for more information." ;;
18094 *) as_fn_append ac_config_targets
" $1"
18095 ac_need_defaults
=false
;;
18101 ac_configure_extra_args
=
18103 if $ac_cs_silent; then
18105 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 if \$ac_cs_recheck; then
18111 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18113 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18114 CONFIG_SHELL='$SHELL'
18115 export CONFIG_SHELL
18120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18125 ## Running $as_me. ##
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18135 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18136 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18142 # Handling of arguments.
18143 for ac_config_target
in $ac_config_targets
18145 case $ac_config_target in
18146 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18147 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18148 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18149 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18150 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
18151 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18152 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
18153 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
18154 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
18155 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
18156 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18157 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18158 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18159 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18160 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
18161 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18163 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
18168 # If the user did not use the arguments to specify the items to instantiate,
18169 # then the envvar interface is used. Set only those that are not.
18170 # We use the long form for the default assignment because of an extremely
18171 # bizarre bug on SunOS 4.1.3.
18172 if $ac_need_defaults; then
18173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18178 # Have a temporary directory for convenience. Make it in the build tree
18179 # simply because there is no reason against having it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Hook for its removal unless debugging.
18182 # Note that there is a small window in which the directory will not be cleaned:
18183 # after its creation but before its name has been assigned to `$tmp'.
18187 trap 'exit_status=$?
18188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18190 trap 'as_fn_exit 1' 1 2 13 15
18192 # Create a (secure) tmp directory for tmp files.
18195 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18196 test -n "$tmp" && test -d "$tmp"
18199 tmp
=.
/conf$$
-$RANDOM
18200 (umask 077 && mkdir
"$tmp")
18201 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18203 # Set up the scripts for CONFIG_FILES section.
18204 # No need to generate them if there are no CONFIG_FILES.
18205 # This happens for instance with `./config.status config.h'.
18206 if test -n "$CONFIG_FILES"; then
18208 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18209 ac_cs_awk_getline
=:
18210 ac_cs_awk_pipe_init
=
18211 ac_cs_awk_read_file
='
18212 while ((getline aline < (F[key])) > 0)
18215 ac_cs_awk_pipe_fini
=
18217 ac_cs_awk_getline
=false
18218 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18219 ac_cs_awk_read_file
='
18221 print "cat " F[key] " &&"
18222 '$ac_cs_awk_pipe_init
18223 # The final `:' finishes the AND list.
18224 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18226 ac_cr
=`echo X | tr X '\015'`
18227 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18228 # But we know of no other shell where ac_cr would be empty at this
18229 # point, so we can use a bashism as a fallback.
18230 if test "x$ac_cr" = x
; then
18231 eval ac_cr
=\$
\'\\r
\'
18233 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18234 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18237 ac_cs_awk_cr
=$ac_cr
18240 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18243 # Create commands to substitute file output variables.
18245 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18246 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18247 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18250 } >conf$
$files.sh
&&
18251 . .
/conf$
$files.sh ||
18252 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18253 rm -f conf$
$files.sh
18256 echo "cat >conf$$subs.awk <<_ACEOF" &&
18257 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18259 } >conf$$subs.sh ||
18260 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18261 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18263 for ac_last_try in false false false false false :; do
18264 . ./conf$$subs.sh ||
18265 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18267 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18268 if test $ac_delim_n = $ac_delim_num; then
18270 elif $ac_last_try; then
18271 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18273 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18276 rm -f conf$$subs.sh
18278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18279 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18283 s/^/S["/; s
/!.
*/"]=/
18293 s/\(.\{148\}\)..*/\1/
18295 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18300 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18307 s/\(.\{148\}\)..*/\1/
18309 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18313 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18318 ' <conf$$subs.awk | sed '
18323 ' >>$CONFIG_STATUS || ac_write_fail=1
18324 rm -f conf$$subs.awk
18325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18327 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18328 for (key in S) S_is_set[key] = 1
18330 \$ac_cs_awk_pipe_init
18334 nfields = split(line, field, "@
")
18336 len = length(field[1])
18337 for (i = 2; i < nfields; i++) {
18339 keylen = length(key)
18340 if (S_is_set[key]) {
18342 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18343 len += length(value) + length(field[++i])
18348 if (nfields == 3 && !substed) {
18350 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18351 \$ac_cs_awk_read_file
18357 \$ac_cs_awk_pipe_fini
18360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18361 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18362 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18365 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18366 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18369 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18370 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18371 # trailing colons and then remove the whole line if VPATH becomes empty
18372 # (actually we leave an empty line to preserve line numbers).
18373 if test "x
$srcdir" = x.; then
18374 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18393 fi # test -n "$CONFIG_FILES"
18395 # Set up the scripts for CONFIG_HEADERS section.
18396 # No need to generate them if there are no CONFIG_HEADERS.
18397 # This happens for instance with `./config.status Makefile'.
18398 if test -n "$CONFIG_HEADERS"; then
18399 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18403 # Transform confdefs.h into an awk script `defines.awk', embedded as
18404 # here-document in config.status, that substitutes the proper values into
18405 # config.h.in to produce config.h.
18407 # Create a delimiter string that does not exist in confdefs.h, to ease
18408 # handling of long lines.
18410 for ac_last_try in false false :; do
18411 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18412 if test -z "$ac_t"; then
18414 elif $ac_last_try; then
18415 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18417 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18421 # For the awk script, D is an array of macro values keyed by name,
18422 # likewise P contains macro parameters if any. Preserve backslash
18423 # newline sequences.
18425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18427 s/.\{148\}/&'"$ac_delim"'/g
18430 s/^[ ]*#[ ]*define[ ][ ]*/ /
18437 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18439 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18444 D["\
1"]=" \
3\\\\\\n
"\\/p
18446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18451 s/.\{148\}/&'"$ac_delim"'/g
18456 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18459 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18461 ' <confdefs.h | sed '
18462 s/'"$ac_delim"'/"\\\
18463 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18466 for (key in D) D_is_set[key] = 1
18469 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18471 split(line, arg, " ")
18472 if (arg[1] == "#") {
18476 defundef
= substr
(arg
[1], 2)
18479 split(mac1
, mac2
, "(") #)
18481 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18482 if (D_is_set
[macro
]) {
18483 # Preserve the white space surrounding the "#".
18484 print prefix
"define", macro P
[macro
] D
[macro
]
18487 # Replace #undef with comments. This is necessary, for example,
18488 # in the case of _POSIX_SOURCE, which is predefined and required
18489 # on some systems where configure will not decide to define it.
18490 if (defundef
== "undef") {
18491 print
"/*", prefix defundef
, macro
, "*/"
18499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18500 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18501 fi # test -n "$CONFIG_HEADERS"
18504 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18509 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18511 case $ac_mode$ac_tag in
18513 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18514 :[FH
]-) ac_tag
=-:-;;
18515 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18532 -) ac_f
="$tmp/stdin";;
18533 *) # Look for the file first in the build tree, then in the source tree
18534 # (if the path is not absolute). The absolute path cannot be DOS-style,
18535 # because $ac_f cannot contain `:'.
18539 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18541 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18543 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18544 as_fn_append ac_file_inputs
" '$ac_f'"
18547 # Let's still pretend it is `configure' which instantiates (i.e., don't
18548 # use $as_me), people would be surprised to read:
18549 # /* config.h. Generated by config.status. */
18550 configure_input
='Generated from '`
18551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18553 if test x
"$ac_file" != x-
; then
18554 configure_input
="$ac_file. $configure_input"
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18556 $as_echo "$as_me: creating $ac_file" >&6;}
18558 # Neutralize special characters interpreted by sed in replacement strings.
18559 case $configure_input in #(
18560 *\
&* |
*\|
* |
*\\* )
18561 ac_sed_conf_input
=`$as_echo "$configure_input" |
18562 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18563 *) ac_sed_conf_input
=$configure_input;;
18567 *:-:* |
*:-) cat >"$tmp/stdin" \
18568 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18573 ac_dir
=`$as_dirname -- "$ac_file" ||
18574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18575 X"$ac_file" : 'X\(//\)[^/]' \| \
18576 X"$ac_file" : 'X\(//\)$' \| \
18577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18578 $as_echo X"$ac_file" |
18579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18583 /^X\(\/\/\)[^/].*/{
18596 as_dir
="$ac_dir"; as_fn_mkdir_p
18600 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18602 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18603 # A ".." for each directory in $ac_dir_suffix.
18604 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18605 case $ac_top_builddir_sub in
18606 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18607 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18610 ac_abs_top_builddir
=$ac_pwd
18611 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18612 # for backward compatibility:
18613 ac_top_builddir
=$ac_top_build_prefix
18616 .
) # We are building in place.
18618 ac_top_srcdir
=$ac_top_builddir_sub
18619 ac_abs_top_srcdir
=$ac_pwd ;;
18620 [\\/]* | ?
:[\\/]* ) # Absolute name.
18621 ac_srcdir
=$srcdir$ac_dir_suffix;
18622 ac_top_srcdir
=$srcdir
18623 ac_abs_top_srcdir
=$srcdir ;;
18624 *) # Relative name.
18625 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18626 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18627 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18629 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18639 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18640 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18642 ac_MKDIR_P
=$MKDIR_P
18644 [\\/$
]* | ?
:[\\/]* ) ;;
18645 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18650 # If the template does not know about datarootdir, expand it.
18651 # FIXME: This hack should be removed a few years after 2.60.
18652 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18664 *datarootdir
*) ac_datarootdir_seen
=yes;;
18665 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 ac_datarootdir_hack='
18671 s&@datadir@&$datadir&g
18672 s&@docdir@&$docdir&g
18673 s&@infodir@&$infodir&g
18674 s&@localedir@&$localedir&g
18675 s&@mandir@&$mandir&g
18676 s&\\\${datarootdir}&$datarootdir&g' ;;
18680 # Neutralize VPATH when `$srcdir' = `.'.
18681 # Shell code in configure.ac might set extrasub.
18682 # FIXME: do we really want to maintain this feature?
18683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684 ac_sed_extra="$ac_vpsub
18687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18689 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18690 s|@configure_input@|
$ac_sed_conf_input|
;t t
18691 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18692 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18693 s
&@srcdir@
&$ac_srcdir&;t t
18694 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18695 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18696 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18697 s
&@builddir@
&$ac_builddir&;t t
18698 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18699 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18700 s
&@INSTALL@
&$ac_INSTALL&;t t
18701 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18702 $ac_datarootdir_hack
18704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18705 if $ac_cs_awk_getline; then
18706 $AWK -f "$tmp/subs.
awk"
18708 $AWK -f "$tmp/subs.
awk" | $SHELL
18710 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18713 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18716 which seems to be undefined. Please make sure it is defined" >&5
18717 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18718 which seems to be undefined. Please make sure it is defined" >&2;}
18722 -) cat "$tmp/out" && rm -f "$tmp/out";;
18723 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18731 if test x"$ac_file" != x-; then
18733 $as_echo "/* $configure_input */" \
18734 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18735 } >"$tmp/config.h" \
18736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18737 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18739 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18742 mv "$tmp/config.h" "$ac_file" \
18743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18746 $as_echo "/* $configure_input */" \
18747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18748 || as_fn_error $? "could not create -" "$LINENO" 5
18750 # Compute "$ac_file"'s index
in $config_headers.
18753 for _am_header
in $config_headers :; do
18754 case $_am_header in
18755 $_am_arg |
$_am_arg:* )
18758 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18761 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18762 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18763 X"$_am_arg" : 'X\(//\)[^/]' \| \
18764 X"$_am_arg" : 'X\(//\)$' \| \
18765 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18766 $as_echo X"$_am_arg" |
18767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18771 /^X\(\/\/\)[^/].*/{
18783 s/.*/./; q'`/stamp-h
$_am_stamp_count
18786 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18787 $as_echo "$as_me: executing $ac_file commands" >&6;}
18792 case $ac_file$ac_mode in
18793 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18794 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18795 # are listed without --file. Let's play safe and only enable the eval
18796 # if we detect the quoting.
18797 case $CONFIG_FILES in
18798 *\'*) eval set x
"$CONFIG_FILES" ;;
18799 *) set x
$CONFIG_FILES ;;
18804 # Strip MF so we end up with the name of the file.
18805 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18806 # Check whether this is an Automake generated Makefile or not.
18807 # We used to match only the files named `Makefile.in', but
18808 # some people rename them; so instead we look at the file content.
18809 # Grep'ing the first line is not enough: some people post-process
18810 # each Makefile.in and add a new line on top of each file to say so.
18811 # Grep'ing the whole file is not good either: AIX grep has a line
18812 # limit of 2048, but all sed's we know have understand at least 4000.
18813 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18814 dirpart
=`$as_dirname -- "$mf" ||
18815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18816 X"$mf" : 'X\(//\)[^/]' \| \
18817 X"$mf" : 'X\(//\)$' \| \
18818 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18824 /^X\(\/\/\)[^/].*/{
18840 # Extract the definition of DEPDIR, am__include, and am__quote
18841 # from the Makefile without running `make'.
18842 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18843 test -z "$DEPDIR" && continue
18844 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18845 test -z "am__include" && continue
18846 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18847 # When using ansi2knr, U may be empty or an underscore; expand it
18848 U
=`sed -n 's/^U = //p' < "$mf"`
18849 # Find all dependency output files, they are included files with
18850 # $(DEPDIR) in their names. We invoke sed twice because it is the
18851 # simplest approach to changing $(DEPDIR) to its actual value in the
18853 for file in `sed -n "
18854 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18855 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18856 # Make sure the directory exists.
18857 test -f "$dirpart/$file" && continue
18858 fdir
=`$as_dirname -- "$file" ||
18859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18860 X"$file" : 'X\(//\)[^/]' \| \
18861 X"$file" : 'X\(//\)$' \| \
18862 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18863 $as_echo X"$file" |
18864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18868 /^X\(\/\/\)[^/].*/{
18881 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18882 # echo "creating $dirpart/$file"
18883 echo '# dummy' > "$dirpart/$file"
18890 ### Make the necessary directories, if they don't exist.
18891 for dir
in etc lisp
; do
18892 test -d ${dir} || mkdir
${dir}
18895 echo creating src
/epaths.h
18896 ${MAKE-make} epaths-force
18898 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
18899 echo creating src
/.gdbinit
18900 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
18911 ac_clean_files
=$ac_clean_files_save
18913 test $ac_write_fail = 0 ||
18914 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18917 # configure is writing to config.log, and then calls config.status.
18918 # config.status does its own redirection, appending to config.log.
18919 # Unfortunately, on DOS this fails, as config.log is still kept open
18920 # by configure, so config.status won't be able to write to it; its
18921 # output is simply discarded. So we exec the FD to /dev/null,
18922 # effectively closing config.log, so it can be properly (re)opened and
18923 # appended to by config.status. When coming back to configure, we
18924 # need to make the FD available again.
18925 if test "$no_create" != yes; then
18927 ac_config_status_args
=
18928 test "$silent" = yes &&
18929 ac_config_status_args
="$ac_config_status_args --quiet"
18931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18934 # would make configure fail if this is the last instruction.
18935 $ac_cs_success || as_fn_exit
1
18937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}