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
679 APPLE_UNIVERSAL_BUILD
687 HAVE_DECL_LOCALTIME_R
697 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
701 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
703 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
704 UNISTD_H_HAVE_WINSOCK2_H
723 REPLACE_GETDOMAINNAME
733 HAVE_DECL_GETUSERSHELL
734 HAVE_DECL_GETPAGESIZE
736 HAVE_DECL_GETDOMAINNAME
771 GNULIB_UNISTD_H_SIGPIPE
772 GNULIB_UNISTD_H_GETOPT
808 GL_COND_LIBTOOL_FALSE
862 LD_SWITCH_X_SITE_AUX_RPATH
924 INSTALL_STRIP_PROGRAM
966 program_transform_name
977 ac_subst_files
='deps_frag
980 enable_option_checking
1002 with_toolkit_scroll_bars
1013 with_pkg_config_prog
1017 enable_ns_self_contained
1019 enable_maintainer_mode
1020 enable_locallisppath
1022 enable_use_lisp_union_type
1025 enable_dependency_tracking
1029 ac_precious_vars
='build_alias
1041 # Initialize some variables set by options.
1043 ac_init_version
=false
1044 ac_unrecognized_opts
=
1045 ac_unrecognized_sep
=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file
=/dev
/null
1055 program_transform_name
=s
,x
,x
,
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir
='${exec_prefix}/bin'
1070 sbindir
='${exec_prefix}/sbin'
1071 libexecdir
='${exec_prefix}/libexec'
1072 datarootdir
='${prefix}/share'
1073 datadir
='${datarootdir}'
1074 sysconfdir
='${prefix}/etc'
1075 sharedstatedir
='${prefix}/com'
1076 localstatedir
='${prefix}/var'
1077 includedir
='${prefix}/include'
1078 oldincludedir
='/usr/include'
1079 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1080 infodir
='${datarootdir}/info'
1085 libdir
='${exec_prefix}/lib'
1086 localedir
='${datarootdir}/locale'
1087 mandir
='${datarootdir}/man'
1093 # If the previous option needs an argument, assign it.
1094 if test -n "$ac_prev"; then
1095 eval $ac_prev=\
$ac_option
1101 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1114 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1115 bindir
=$ac_optarg ;;
1117 -build |
--build |
--buil |
--bui |
--bu)
1118 ac_prev
=build_alias
;;
1119 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1120 build_alias
=$ac_optarg ;;
1122 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1123 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1124 ac_prev
=cache_file
;;
1125 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1126 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1127 cache_file
=$ac_optarg ;;
1129 --config-cache |
-C)
1130 cache_file
=config.cache
;;
1132 -datadir |
--datadir |
--datadi |
--datad)
1134 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1135 datadir
=$ac_optarg ;;
1137 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1138 |
--dataroo |
--dataro |
--datar)
1139 ac_prev
=datarootdir
;;
1140 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1141 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1142 datarootdir
=$ac_optarg ;;
1144 -disable-* |
--disable-*)
1145 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1148 as_fn_error $?
"invalid feature name: $ac_useropt"
1149 ac_useropt_orig
=$ac_useropt
1150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_
$ac_useropt"
1155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156 ac_unrecognized_sep
=', ';;
1158 eval enable_
$ac_useropt=no
;;
1160 -docdir |
--docdir |
--docdi |
--doc |
--do)
1162 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1163 docdir
=$ac_optarg ;;
1165 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1167 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1168 dvidir
=$ac_optarg ;;
1170 -enable-* |
--enable-*)
1171 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 as_fn_error $?
"invalid feature name: $ac_useropt"
1175 ac_useropt_orig
=$ac_useropt
1176 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "enable_
$ac_useropt"
1181 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182 ac_unrecognized_sep
=', ';;
1184 eval enable_
$ac_useropt=\
$ac_optarg ;;
1186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1188 |
--exec |
--exe |
--ex)
1189 ac_prev
=exec_prefix
;;
1190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1192 |
--exec=* |
--exe=* |
--ex=*)
1193 exec_prefix
=$ac_optarg ;;
1195 -gas |
--gas |
--ga |
--g)
1196 # Obsolete; use --with-gas.
1199 -help |
--help |
--hel |
--he |
-h)
1200 ac_init_help
=long
;;
1201 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1202 ac_init_help
=recursive
;;
1203 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1204 ac_init_help
=short
;;
1206 -host |
--host |
--hos |
--ho)
1207 ac_prev
=host_alias
;;
1208 -host=* |
--host=* |
--hos=* |
--ho=*)
1209 host_alias
=$ac_optarg ;;
1211 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1213 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1215 htmldir
=$ac_optarg ;;
1217 -includedir |
--includedir |
--includedi |
--included |
--include \
1218 |
--includ |
--inclu |
--incl |
--inc)
1219 ac_prev
=includedir
;;
1220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1222 includedir
=$ac_optarg ;;
1224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1227 infodir
=$ac_optarg ;;
1229 -libdir |
--libdir |
--libdi |
--libd)
1231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1232 libdir
=$ac_optarg ;;
1234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1235 |
--libexe |
--libex |
--libe)
1236 ac_prev
=libexecdir
;;
1237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1238 |
--libexe=* |
--libex=* |
--libe=*)
1239 libexecdir
=$ac_optarg ;;
1241 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1242 ac_prev
=localedir
;;
1243 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1244 localedir
=$ac_optarg ;;
1246 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1247 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1248 ac_prev
=localstatedir
;;
1249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1251 localstatedir
=$ac_optarg ;;
1253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1256 mandir
=$ac_optarg ;;
1258 -nfp |
--nfp |
--nf)
1259 # Obsolete; use --without-fp.
1262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1263 |
--no-cr |
--no-c |
-n)
1266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1272 |
--oldin |
--oldi |
--old |
--ol |
--o)
1273 ac_prev
=oldincludedir
;;
1274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1277 oldincludedir
=$ac_optarg ;;
1279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1282 prefix
=$ac_optarg ;;
1284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1285 |
--program-pre |
--program-pr |
--program-p)
1286 ac_prev
=program_prefix
;;
1287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1289 program_prefix
=$ac_optarg ;;
1291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1292 |
--program-suf |
--program-su |
--program-s)
1293 ac_prev
=program_suffix
;;
1294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1296 program_suffix
=$ac_optarg ;;
1298 -program-transform-name |
--program-transform-name \
1299 |
--program-transform-nam |
--program-transform-na \
1300 |
--program-transform-n |
--program-transform- \
1301 |
--program-transform |
--program-transfor \
1302 |
--program-transfo |
--program-transf \
1303 |
--program-trans |
--program-tran \
1304 |
--progr-tra |
--program-tr |
--program-t)
1305 ac_prev
=program_transform_name
;;
1306 -program-transform-name=* |
--program-transform-name=* \
1307 |
--program-transform-nam=* |
--program-transform-na=* \
1308 |
--program-transform-n=* |
--program-transform-=* \
1309 |
--program-transform=* |
--program-transfor=* \
1310 |
--program-transfo=* |
--program-transf=* \
1311 |
--program-trans=* |
--program-tran=* \
1312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1313 program_transform_name
=$ac_optarg ;;
1315 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1317 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1318 pdfdir
=$ac_optarg ;;
1320 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1322 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1326 |
-silent |
--silent |
--silen |
--sile |
--sil)
1329 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1331 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1333 sbindir
=$ac_optarg ;;
1335 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1336 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1337 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1339 ac_prev
=sharedstatedir
;;
1340 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1341 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1342 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1344 sharedstatedir
=$ac_optarg ;;
1346 -site |
--site |
--sit)
1348 -site=* |
--site=* |
--sit=*)
1351 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1353 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1354 srcdir
=$ac_optarg ;;
1356 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1357 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1358 ac_prev
=sysconfdir
;;
1359 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1360 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1361 sysconfdir
=$ac_optarg ;;
1363 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1364 ac_prev
=target_alias
;;
1365 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1366 target_alias
=$ac_optarg ;;
1368 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1371 -version |
--version |
--versio |
--versi |
--vers |
-V)
1372 ac_init_version
=: ;;
1375 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1378 as_fn_error $?
"invalid package name: $ac_useropt"
1379 ac_useropt_orig
=$ac_useropt
1380 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1385 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386 ac_unrecognized_sep
=', ';;
1388 eval with_
$ac_useropt=\
$ac_optarg ;;
1390 -without-* |
--without-*)
1391 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1394 as_fn_error $?
"invalid package name: $ac_useropt"
1395 ac_useropt_orig
=$ac_useropt
1396 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1401 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402 ac_unrecognized_sep
=', ';;
1404 eval with_
$ac_useropt=no
;;
1407 # Obsolete; use --with-x.
1410 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1411 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1412 ac_prev
=x_includes
;;
1413 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1414 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1415 x_includes
=$ac_optarg ;;
1417 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1418 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1419 ac_prev
=x_libraries
;;
1420 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1421 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1422 x_libraries
=$ac_optarg ;;
1424 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information"
1429 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 case $ac_envvar in #(
1432 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1433 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1435 eval $ac_envvar=\
$ac_optarg
1436 export $ac_envvar ;;
1439 # FIXME: should be removed in autoconf 3.0.
1440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1449 if test -n "$ac_prev"; then
1450 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1451 as_fn_error $?
"missing argument to $ac_option"
1454 if test -n "$ac_unrecognized_opts"; then
1455 case $enable_option_checking in
1457 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 # Check all directory arguments for consistency.
1463 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1468 eval ac_val
=\$
$ac_var
1469 # Remove trailing slashes.
1472 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473 eval $ac_var=\
$ac_val;;
1475 # Be sure to have absolute directory names.
1477 [\\/$
]* | ?
:[\\/]* ) continue;;
1478 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1480 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1488 target
=$target_alias
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x
; then
1492 if test "x$build_alias" = x
; then
1493 cross_compiling
=maybe
1494 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1495 If a cross compiler is detected then cross compile mode will be used" >&2
1496 elif test "x$build_alias" != "x$host_alias"; then
1502 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1504 test "$silent" = yes && exec 6>/dev
/null
1507 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di
=`ls -di .` &&
1509 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error $?
"working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error $?
"pwd does not report name of working directory"
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted
=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir
=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1547 ac_srcdir_defaulted
=no
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1551 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1553 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1565 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 for ac_var
in $ac_precious_vars; do
1568 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1570 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1575 # Report the --help message.
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1581 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1588 Defaults for the options are specified in brackets.
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking ...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1612 For better control, use the options below.
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1644 --x-includes=DIR X include files are
in DIR
1645 --x-libraries=DIR X library files are
in DIR
1648 --build=BUILD configure
for building on BUILD
[guessed
]
1649 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1653 if test -n "$ac_init_help"; then
1654 case $ac_init_help in
1655 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1660 --disable-option-checking ignore unrecognized
--enable/--with options
1661 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1662 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1663 --disable-ns-self-contained
1664 disable self contained build under NeXTstep
1665 --enable-asserts compile code with asserts enabled
1666 --enable-maintainer-mode
1667 enable make rules and dependencies not useful
(and
1668 sometimes confusing
) to the casual installer
1669 --enable-locallisppath=PATH
1670 directories Emacs should search
for lisp files
1671 specific to this site
1672 --enable-checking[=LIST
]
1673 enable expensive run-time checks. With LIST
, enable
1674 only specific categories of checks. Categories are
:
1675 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1676 stringfreelist
, xmallocoverrun
, conslist
1677 --enable-use-lisp-union-type
1678 use a union
for the Lisp_Object data
type. This is
1679 only useful
for development
for catching certain
1681 --enable-profiling build emacs with profiling support. This might not
1682 work on all platforms
1683 --enable-autodepend automatically generate dependencies to .h-files.
1684 Requires GNU Make and Gcc. Enabled
if GNU Make and
1686 --disable-dependency-tracking speeds up one-time build
1687 --enable-dependency-tracking do not reject slow dependency extractors
1688 --disable-largefile omit support
for large files
1691 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1692 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1693 --without-pop don
't support POP mail retrieval with movemail
1694 --with-kerberos support Kerberos-authenticated POP
1695 --with-kerberos5 support Kerberos version 5 authenticated POP
1696 --with-hesiod support Hesiod to get the POP server host
1697 --with-mmdf support MMDF mailboxes
1698 --with-mail-unlink unlink, rather than empty, mail spool after reading
1699 --with-mailhost=HOSTNAME
1700 string giving default POP mail host
1701 --without-sound don't compile with sound support
1702 --without-sync-input process async input synchronously
1703 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1704 lucid or athena
, motif
, no
)
1705 --without-xpm don
't compile with XPM image support
1706 --without-jpeg don't compile with JPEG image support
1707 --without-tiff don
't compile with TIFF image support
1708 --without-gif don't compile with GIF image support
1709 --without-png don
't compile with PNG image support
1710 --without-rsvg don't compile with SVG image support
1711 --without-xml2 don
't compile with XML parsing support
1712 --without-imagemagick don't compile with ImageMagick image support
1713 --without-xft don
't use XFT for anti aliased fonts
1714 --without-libotf don't use libotf
for OpenType font support
1715 --without-m17n-flt don
't use m17n-flt for text shaping
1716 --without-toolkit-scroll-bars
1717 don't use Motif or Xaw3d scroll bars
1718 --without-xaw3d don
't use Xaw3d
1719 --without-xim don't use X11 XIM
1720 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1721 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1723 --without-dbus don't compile with D-Bus support
1724 --without-gconf don
't compile with GConf support
1725 --without-selinux don't compile with SELinux support
1726 --without-gnutls don
't use -lgnutls for SSL/TLS support
1727 --without-makeinfo don't require makeinfo
for building manuals
1728 --without-compress-info don
't compress the installed Info pages
1729 --with-pkg-config-prog=PATH
1730 path to pkg-config for finding GTK and librsvg
1731 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1732 /usr/lib, or /usr/lib64 on some platforms.
1733 --with-gameuser=USER user for shared game score files
1734 --with-gnustep-conf=PATH
1735 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1736 or /etc/GNUstep/GNUstep.conf
1737 --with-x use the X Window System
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 Use these variables to override the choices made by `configure' or to
help
1751 it to
find libraries and programs with nonstandard names
/locations.
1753 Report bugs to the package provider.
1758 if test "$ac_init_help" = "recursive"; then
1759 # If there are subdirs, report their specific --help.
1760 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1761 test -d "$ac_dir" ||
1762 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1767 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1769 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770 # A ".." for each directory in $ac_dir_suffix.
1771 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772 case $ac_top_builddir_sub in
1773 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1774 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1777 ac_abs_top_builddir
=$ac_pwd
1778 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir
=$ac_top_build_prefix
1783 .
) # We are building in place.
1785 ac_top_srcdir
=$ac_top_builddir_sub
1786 ac_abs_top_srcdir
=$ac_pwd ;;
1787 [\\/]* | ?
:[\\/]* ) # Absolute name.
1788 ac_srcdir
=$srcdir$ac_dir_suffix;
1789 ac_top_srcdir
=$srcdir
1790 ac_abs_top_srcdir
=$srcdir ;;
1792 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1794 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1796 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1798 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1799 # Check for guested configure.
1800 if test -f "$ac_srcdir/configure.gnu"; then
1802 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803 elif test -f "$ac_srcdir/configure"; then
1805 $SHELL "$ac_srcdir/configure" --help=recursive
1807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1809 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1816 emacs configure
24.0.50
1817 generated by GNU Autoconf
2.67
1819 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1820 This configure
script is free software
; the Free Software Foundation
1821 gives unlimited permission to copy
, distribute and modify it.
1826 ## ------------------------ ##
1827 ## Autoconf initialization. ##
1828 ## ------------------------ ##
1830 # ac_fn_c_try_compile LINENO
1831 # --------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_compile
()
1835 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1836 rm -f conftest.
$ac_objext
1837 if { { ac_try
="$ac_compile"
1839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.$ac_objext; then :
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_c_try_compile
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1877 *) ac_try_echo
=$ac_try;;
1879 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err
; then
1884 grep -v '^ *+' conftest.err
>conftest.er1
1885 cat conftest.er1
>&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i
&& {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.
$ac_ext >&5
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1901 as_fn_set_status
$ac_retval
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1910 ac_fn_c_check_header_mongrel
()
1912 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval "test \"\${$3+set}\"" = set; then :
1917 $as_echo_n "(cached) " >&6
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile
"$LINENO"; then :
1932 ac_header_compiler
=yes
1934 ac_header_compiler
=no
1936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 if ac_fn_c_try_cpp
"$LINENO"; then :
1948 ac_header_preproc
=yes
1950 ac_header_preproc
=no
1952 rm -f conftest.err conftest.i conftest.
$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval "test \"\${$3+set}\"" = set; then :
1980 $as_echo_n "(cached) " >&6
1982 eval "$3=\$ac_header_compiler"
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1990 } # ac_fn_c_check_header_mongrel
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1998 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1999 if { { ac_try
="$ac_link"
2001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2012 *) ac_try_echo
=$ac_try;;
2014 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.
$ac_ext >&5
2026 ac_retval
=$ac_status
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2030 as_fn_set_status
$ac_retval
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile
()
2040 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval "test \"\${$3+set}\"" = set; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2051 if ac_fn_c_try_compile
"$LINENO"; then :
2056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2063 } # ac_fn_c_check_header_compile
2065 # ac_fn_c_try_link LINENO
2066 # -----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded.
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 rm -f conftest.
$ac_objext conftest
$ac_exeext
2072 if { { ac_try
="$ac_link"
2074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>conftest.err
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest$ac_exeext && {
2091 test "$cross_compiling" = yes ||
2092 $as_test_x conftest$ac_exeext
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2101 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2102 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2103 # interfere with the next link command; also delete a directory that is
2104 # left behind by Apple's compiler. We do this before executing the actions.
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 as_fn_set_status $ac_retval
2109 } # ac_fn_c_try_link
2111 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2112 # ---------------------------------------------
2113 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2115 ac_fn_c_check_decl ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2119 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2121 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2122 if eval "test \"\${$3+set}\"" = set; then :
2123 $as_echo_n "(cached) " >&6
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 #ifndef $as_decl_name
2133 (void) $as_decl_use;
2135 (void) $as_decl_name;
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 } # ac_fn_c_check_decl
2157 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2158 # ----------------------------------------------
2159 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2160 ac_fn_c_check_header_preproc ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval "test \"\${$3+set}\"" = set; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 if ac_fn_c_try_cpp "$LINENO"; then :
2177 rm -f conftest.err conftest.i conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 } # ac_fn_c_check_header_preproc
2186 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2187 # ----------------------------------------------------
2188 # Tries to find if the field MEMBER exists in type AGGR, after including
2189 # INCLUDES, setting cache variable VAR accordingly.
2190 ac_fn_c_check_member ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2194 $as_echo_n "checking for $2.$3... " >&6; }
2195 if eval "test \"\${$4+set}\"" = set; then :
2196 $as_echo_n "(cached) " >&6
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2211 if ac_fn_c_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2221 if (sizeof ac_aggr.$3)
2227 if ac_fn_c_try_compile "$LINENO"; then :
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 } # ac_fn_c_check_member
2243 # ac_fn_c_check_func LINENO FUNC VAR
2244 # ----------------------------------
2245 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2246 ac_fn_c_check_func ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval "test \"\${$3+set}\"" = set; then :
2252 $as_echo_n "(cached) " >&6
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2258 #define $2 innocuous_$2
2260 /* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $2 (); below.
2262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263 <limits.h> exists even on freestanding compilers. */
2266 # include <limits.h>
2268 # include <assert.h>
2273 /* Override any GCC internal prototype to avoid an error.
2274 Use char because int might match the return type of a GCC
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined __stub_$2 || defined __stub___$2
2295 if ac_fn_c_try_link "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext \
2301 conftest$ac_exeext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_func
2310 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2311 # -------------------------------------------
2312 # Tests whether TYPE exists after having included INCLUDES, setting cache
2313 # variable VAR accordingly.
2314 ac_fn_c_check_type ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval "test \"\${$3+set}\"" = set; then :
2320 $as_echo_n "(cached) " >&6
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2348 if ac_fn_c_try_compile "$LINENO"; then :
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 } # ac_fn_c_check_type
2363 cat >config.log <<_ACEOF
2364 This file contains any messages produced by compilers while
2365 running configure, to aid debugging if configure makes a mistake.
2367 It was created by emacs $as_me 24.0.50, which was
2368 generated by GNU Autoconf 2.67. Invocation command line was
2380 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2381 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2382 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2383 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2384 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2386 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2387 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2389 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2390 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2391 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2392 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2393 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2394 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2395 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 $as_echo "PATH: $as_dir"
2420 # Keep a trace of the command line.
2421 # Strip out --no-create and --no-recursion so they do not pile up.
2422 # Strip out --silent because we don't want to record it for future runs.
2423 # Also quote any args containing shell meta-characters.
2424 # Make two passes to allow for proper duplicate-argument suppression.
2428 ac_must_keep_next=false
2434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436 | -silent | --silent | --silen | --sile | --sil)
2439 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2442 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444 as_fn_append ac_configure_args1 " '$ac_arg'"
2445 if test $ac_must_keep_next = true; then
2446 ac_must_keep_next=false # Got value, back to normal.
2449 *=* | --config-cache | -C | -disable-* | --disable-* \
2450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452 | -with-* | --with-* | -without-* | --without-* | --x)
2453 case "$ac_configure_args0 " in
2454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457 -* ) ac_must_keep_next=true ;;
2460 as_fn_append ac_configure_args " '$ac_arg'"
2465 { ac_configure_args0=; unset ac_configure_args0;}
2466 { ac_configure_args1=; unset ac_configure_args1;}
2468 # When interrupted or exit'd, cleanup temporary files, and complete
2469 # config.log. We remove comments because anyway the quotes in there
2470 # would cause problems or look ugly.
2471 # WARNING: Use '\'' to represent an apostrophe within the trap.
2472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473 trap 'exit_status=$?
2474 # Save into config.log some information that might help in debugging.
2478 $as_echo "## ---------------- ##
2479 ## Cache variables. ##
2480 ## ---------------- ##"
2482 # The following way of writing the cache mishandles newlines in values,
2484 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2485 eval ac_val=\$$ac_var
2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493 _ | IFS | as_nl) ;; #(
2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495 *) { eval $ac_var=; unset $ac_var;} ;;
2500 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2501 *${as_nl}ac_space=\ *)
2503 "s/'\''/'\''\\\\'\'''\''/g;
2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2514 $as_echo "## ----------------- ##
2515 ## Output variables. ##
2516 ## ----------------- ##"
2518 for ac_var in $ac_subst_vars
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -n "$ac_subst_files"; then
2529 $as_echo "## ------------------- ##
2530 ## File substitutions. ##
2531 ## ------------------- ##"
2533 for ac_var in $ac_subst_files
2535 eval ac_val=\$$ac_var
2537 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 $as_echo "$ac_var='\''$ac_val'\''"
2544 if test -s confdefs.h; then
2545 $as_echo "## ----------- ##
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2568 $as_echo "/* confdefs.h */" > confdefs.h
2570 # Predefined preprocessor variables.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2601 if test -n "$CONFIG_SITE"; then
2602 # We do not want a PATH search for config.site.
2603 case $CONFIG_SITE in #((
2604 -*) ac_site_file1=./$CONFIG_SITE;;
2605 */*) ac_site_file1=$CONFIG_SITE;;
2606 *) ac_site_file1=./$CONFIG_SITE;;
2608 elif test "x$prefix" != xNONE; then
2609 ac_site_file1=$prefix/share/config.site
2610 ac_site_file2=$prefix/etc/config.site
2612 ac_site_file1=$ac_default_prefix/share/config.site
2613 ac_site_file2=$ac_default_prefix/etc/config.site
2615 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617 test "x$ac_site_file" = xNONE && continue
2618 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621 sed 's/^/| /' "$ac_site_file" >&5
2623 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 as_fn_error $? "failed to load site
script $ac_site_file
2626 See \
`config.log' for more details" "$LINENO" 5 ; }
2630 if test -r "$cache_file"; then
2631 # Some versions of bash will fail to source /dev/null (special files
2632 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2633 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638 *) . "./$cache_file";;
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643 $as_echo "$as_me: creating cache $cache_file" >&6;}
2647 as_fn_append ac_header_list " stdlib.h"
2648 as_fn_append ac_header_list " unistd.h"
2649 as_fn_append ac_header_list " sys/param.h"
2650 gl_getopt_required=GNU
2651 as_fn_append ac_header_list " getopt.h"
2652 as_fn_append ac_func_list " alarm"
2653 as_fn_append ac_func_list " tzset"
2654 as_fn_append ac_header_list " sys/time.h"
2655 as_fn_append ac_func_list " localtime_r"
2656 # Check that the precious variables saved in the cache have kept the same
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2667 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2671 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x
$ac_old_val`
2678 ac_new_val_w=`echo x
$ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2682 ac_cache_corrupted=:
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2727 am__api_version='1.11'
2730 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2731 if test -f "$ac_dir/install-sh"; then
2733 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 elif test -f "$ac_dir/install.sh"; then
2737 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 elif test -f "$ac_dir/shtool"; then
2741 ac_install_sh="$ac_aux_dir/shtool install -c"
2745 if test -z "$ac_aux_dir"; then
2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2749 # These three variables are undocumented and unsupported,
2750 # and are intended to be withdrawn in a future Autoconf release.
2751 # They can cause serious problems if a builder's source tree is in a directory
2752 # whose full name contains unusual characters.
2753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2758 # Find a good install program. We prefer a C program (faster),
2759 # so one script is as good as another. But avoid the broken or
2760 # incompatible versions:
2761 # SysV /etc/install, /usr/sbin/install
2762 # SunOS /usr/etc/install
2763 # IRIX /sbin/install
2765 # AmigaOS /C/install, which installs bootblocks on floppy discs
2766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2769 # OS/2's system install, which has a completely different semantic
2770 # ./install, which can be erroneously created by make from ./install.sh.
2771 # Reject install programs that cannot install multiple files.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2774 if test -z "$INSTALL"; then
2775 if test "${ac_cv_path_install+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 # Account for people who put trailing slashes in PATH elements.
2784 case $as_dir/ in #((
2785 ./ | .// | /[cC]/* | \
2786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790 # OSF1 and SCO ODT 3.0 have their own names for install.
2791 # Don't use installbsd from OSF since it installs stuff as root
2793 for ac_prog in ginstall scoinst install; do
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2796 if test $ac_prog = install &&
2797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # AIX install. It has an incompatible calling convention.
2800 elif test $ac_prog = install &&
2801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # program-specific install script used by HP pwplus--don't use.
2805 rm -rf conftest.one conftest.two conftest.dir
2806 echo one > conftest.one
2807 echo two > conftest.two
2809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2810 test -s conftest.one && test -s conftest.two &&
2811 test -s conftest.dir/conftest.one &&
2812 test -s conftest.dir/conftest.two
2814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2827 rm -rf conftest.one conftest.two conftest.dir
2830 if test "${ac_cv_path_install+set}" = set; then
2831 INSTALL=$ac_cv_path_install
2833 # As a last resort, use the slow shell script. Don't cache a
2834 # value for INSTALL within a source directory, because that will
2835 # break other packages using the cache if that directory is
2836 # removed, or if the value is a relative name.
2837 INSTALL=$ac_install_sh
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2841 $as_echo "$INSTALL" >&6; }
2843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2844 # It thinks the first close brace ends the variable substitution.
2845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2852 $as_echo_n "checking whether build environment is sane... " >&6; }
2855 echo timestamp > conftest.file
2856 # Reject unsafe characters in $srcdir or the absolute working directory
2857 # name. Accept space and tab only in the latter.
2861 *[\\\"\#\$\&\'\`$am_lf]*)
2862 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
2865 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2866 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2869 # Do `set' in a subshell so we don't clobber the current shell's
2870 # arguments. Must try -L first in case configure is actually a
2871 # symlink; some systems play weird games with the mod time of symlinks
2872 # (eg FreeBSD returns the mod time of the symlink's containing
2875 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2876 if test "$*" = "X"; then
2878 set X
`ls -t "$srcdir/configure" conftest.file`
2881 if test "$*" != "X $srcdir/configure conftest.file" \
2882 && test "$*" != "X conftest.file $srcdir/configure"; then
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2889 alias in your environment" "$LINENO" 5
2892 test "$2" = conftest.
file
2898 as_fn_error $?
"newly created file is older than distributed files!
2899 Check your system clock" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 test "$program_prefix" != NONE
&&
2904 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2905 # Use a double $ so make ignores it.
2906 test "$program_suffix" != NONE
&&
2907 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2908 # Double any \ or $.
2909 # By default was `s,x,x', remove it if useless.
2910 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2911 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2913 # expand $ac_aux_dir to an absolute path
2914 am_aux_dir
=`cd $ac_aux_dir && pwd`
2916 if test x
"${MISSING+set}" != xset
; then
2919 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2921 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2924 # Use eval to expand $SHELL
2925 if eval "$MISSING --run true"; then
2926 am_missing_run
="$MISSING --run "
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2930 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2933 if test x
"${install_sh}" != xset
; then
2936 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2938 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2942 # Installed binaries are usually stripped using `strip' when the user
2943 # run `make install-strip'. However `strip' might not be the right
2944 # tool to use in cross-compilation environments, therefore Automake
2945 # will honor the `STRIP' environment variable to overrule this program.
2946 if test "$cross_compiling" != no
; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2949 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$STRIP"; then
2956 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir
=.
2963 for ac_exec_ext
in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 STRIP
=$ac_cv_prog_STRIP
2976 if test -n "$STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978 $as_echo "$STRIP" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2986 if test -z "$ac_cv_prog_STRIP"; then
2988 # Extract the first word of "strip", so it can be a program name with args.
2989 set dummy strip
; ac_word
=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$ac_ct_STRIP"; then
2996 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir
=.
3003 for ac_exec_ext
in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_ac_ct_STRIP
="strip"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3016 if test -n "$ac_ct_STRIP"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3018 $as_echo "$ac_ct_STRIP" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3024 if test "x$ac_ct_STRIP" = x
; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned
=yes ;;
3036 STRIP
="$ac_cv_prog_STRIP"
3040 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3043 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3044 if test -z "$MKDIR_P"; then
3045 if test "${ac_cv_path_mkdir+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3049 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_prog
in mkdir gmkdir
; do
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3056 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3057 'mkdir (GNU coreutils) '* | \
3058 'mkdir (coreutils) '* | \
3059 'mkdir (fileutils) '4.1*)
3060 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3070 test -d .
/--version && rmdir .
/--version
3071 if test "${ac_cv_path_mkdir+set}" = set; then
3072 MKDIR_P
="$ac_cv_path_mkdir -p"
3074 # As a last resort, use the slow shell script. Don't cache a
3075 # value for MKDIR_P within a source directory, because that will
3076 # break other packages using the cache if that directory is
3077 # removed, or if the value is a relative name.
3078 MKDIR_P
="$ac_install_sh -d"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3082 $as_echo "$MKDIR_P" >&6; }
3087 [\\/$
]* | ?
:[\\/]*) ;;
3088 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3091 for ac_prog
in gawk mawk nawk
awk
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy
$ac_prog; ac_word
=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_AWK+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$AWK"; then
3101 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir
=.
3108 for ac_exec_ext
in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_AWK
="$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$AWK"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123 $as_echo "$AWK" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$AWK" && break
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3138 $as_echo_n "(cached) " >&6
3140 cat >conftest.
make <<\_ACEOF
3143 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3145 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3150 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3154 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 SET_MAKE
="MAKE=${MAKE-make}"
3164 rm -rf .tst
2>/dev
/null
3165 mkdir .tst
2>/dev
/null
3166 if test -d .tst
; then
3171 rmdir .tst
2>/dev
/null
3173 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3174 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3175 # is not polluted with repeated "-I."
3176 am__isrc
=' -I$(srcdir)'
3177 # test to see if srcdir already configured
3178 if test -f $srcdir/config.status
; then
3179 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3183 # test whether we have cygpath
3184 if test -z "$CYGPATH_W"; then
3185 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3186 CYGPATH_W
='cygpath -w'
3193 # Define the identity of the package.
3198 cat >>confdefs.h
<<_ACEOF
3199 #define PACKAGE "$PACKAGE"
3203 cat >>confdefs.h
<<_ACEOF
3204 #define VERSION "$VERSION"
3207 # Some tools Automake needs.
3209 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3212 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3215 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3218 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3221 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3223 # We need awk for the "check" target. The system "awk" is bad on
3225 # Always define AMTAR for backward compatibility.
3227 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3229 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3238 lispdir
='${datadir}/emacs/${version}/lisp'
3239 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3240 '${datadir}/emacs/site-lisp'
3241 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3242 etcdir
='${datadir}/emacs/${version}/etc'
3243 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3244 docdir
='${datadir}/emacs/${version}/etc'
3245 gamedir
='${localstatedir}/games/emacs'
3250 # Check whether --with-pop was given.
3251 if test "${with_pop+set}" = set; then :
3257 if test "$with_pop" = yes; then
3258 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3263 # Check whether --with-kerberos was given.
3264 if test "${with_kerberos+set}" = set; then :
3265 withval
=$with_kerberos;
3270 if test "$with_kerberos" != no
; then
3271 $as_echo "#define KERBEROS 1" >>confdefs.h
3276 # Check whether --with-kerberos5 was given.
3277 if test "${with_kerberos5+set}" = set; then :
3278 withval
=$with_kerberos5;
3283 if test "${with_kerberos5}" != no
; then
3284 if test "${with_kerberos}" = no
; then
3286 $as_echo "#define KERBEROS 1" >>confdefs.h
3290 $as_echo "#define KERBEROS5 1" >>confdefs.h
3295 # Check whether --with-hesiod was given.
3296 if test "${with_hesiod+set}" = set; then :
3297 withval
=$with_hesiod;
3302 if test "$with_hesiod" != no
; then
3304 $as_echo "#define HESIOD 1" >>confdefs.h
3309 # Check whether --with-mmdf was given.
3310 if test "${with_mmdf+set}" = set; then :
3316 if test "$with_mmdf" != no
; then
3318 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3323 # Check whether --with-mail-unlink was given.
3324 if test "${with_mail_unlink+set}" = set; then :
3325 withval
=$with_mail_unlink;
3330 if test "$with_mail_unlink" != no
; then
3332 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3337 # Check whether --with-mailhost was given.
3338 if test "${with_mailhost+set}" = set; then :
3339 withval
=$with_mailhost;
3340 cat >>confdefs.h
<<_ACEOF
3341 #define MAILHOST "$withval"
3348 # Check whether --with-sound was given.
3349 if test "${with_sound+set}" = set; then :
3350 withval
=$with_sound;
3357 # Check whether --with-sync-input was given.
3358 if test "${with_sync_input+set}" = set; then :
3359 withval
=$with_sync_input;
3364 if test "$with_sync_input" = yes; then
3366 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3371 # Check whether --with-x-toolkit was given.
3372 if test "${with_x_toolkit+set}" = set; then :
3373 withval
=$with_x_toolkit; case "${withval}" in
3374 y | ye |
yes ) val
=gtk
;;
3376 l | lu | luc | luci | lucid
) val
=lucid
;;
3377 a |
at | ath | athe | athen | athena
) val
=athena
;;
3378 m | mo | mot | moti | motif
) val
=motif
;;
3379 g | gt | gtk
) val
=gtk
;;
3382 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3383 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3384 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3393 # Check whether --with-xpm was given.
3394 if test "${with_xpm+set}" = set; then :
3401 # Check whether --with-jpeg was given.
3402 if test "${with_jpeg+set}" = set; then :
3409 # Check whether --with-tiff was given.
3410 if test "${with_tiff+set}" = set; then :
3417 # Check whether --with-gif was given.
3418 if test "${with_gif+set}" = set; then :
3425 # Check whether --with-png was given.
3426 if test "${with_png+set}" = set; then :
3433 # Check whether --with-rsvg was given.
3434 if test "${with_rsvg+set}" = set; then :
3441 # Check whether --with-xml2 was given.
3442 if test "${with_xml2+set}" = set; then :
3449 # Check whether --with-imagemagick was given.
3450 if test "${with_imagemagick+set}" = set; then :
3451 withval
=$with_imagemagick;
3453 with_imagemagick
=yes
3458 # Check whether --with-xft was given.
3459 if test "${with_xft+set}" = set; then :
3466 # Check whether --with-libotf was given.
3467 if test "${with_libotf+set}" = set; then :
3468 withval
=$with_libotf;
3474 # Check whether --with-m17n-flt was given.
3475 if test "${with_m17n_flt+set}" = set; then :
3476 withval
=$with_m17n_flt;
3483 # Check whether --with-toolkit-scroll-bars was given.
3484 if test "${with_toolkit_scroll_bars+set}" = set; then :
3485 withval
=$with_toolkit_scroll_bars;
3487 with_toolkit_scroll_bars
=yes
3491 # Check whether --with-xaw3d was given.
3492 if test "${with_xaw3d+set}" = set; then :
3493 withval
=$with_xaw3d;
3499 # Check whether --with-xim was given.
3500 if test "${with_xim+set}" = set; then :
3507 # Check whether --with-ns was given.
3508 if test "${with_ns+set}" = set; then :
3516 # Check whether --with-gpm was given.
3517 if test "${with_gpm+set}" = set; then :
3524 # Check whether --with-dbus was given.
3525 if test "${with_dbus+set}" = set; then :
3532 # Check whether --with-gconf was given.
3533 if test "${with_gconf+set}" = set; then :
3534 withval
=$with_gconf;
3540 # Check whether --with-selinux was given.
3541 if test "${with_selinux+set}" = set; then :
3542 withval
=$with_selinux;
3548 # Check whether --with-gnutls was given.
3549 if test "${with_gnutls+set}" = set; then :
3550 withval
=$with_gnutls;
3556 ## For the times when you want to build Emacs but don't have
3557 ## a suitable makeinfo, and can live without the manuals.
3559 # Check whether --with-makeinfo was given.
3560 if test "${with_makeinfo+set}" = set; then :
3561 withval
=$with_makeinfo;
3567 ## This is an option because I do not know if all info/man support
3568 ## compressed files, nor how to test if they do so.
3570 # Check whether --with-compress-info was given.
3571 if test "${with_compress_info+set}" = set; then :
3572 withval
=$with_compress_info;
3574 with_compress_info
=yes
3577 if test $with_compress_info = yes; then
3585 # Check whether --with-pkg-config-prog was given.
3586 if test "${with_pkg_config_prog+set}" = set; then :
3587 withval
=$with_pkg_config_prog;
3590 if test "X${with_pkg_config_prog}" != X
; then
3591 if test "${with_pkg_config_prog}" != yes; then
3592 PKG_CONFIG
="${with_pkg_config_prog}"
3598 # Check whether --with-crt-dir was given.
3599 if test "${with_crt_dir+set}" = set; then :
3600 withval
=$with_crt_dir;
3603 CRT_DIR
="${with_crt_dir}"
3606 # Check whether --with-gameuser was given.
3607 if test "${with_gameuser+set}" = set; then :
3608 withval
=$with_gameuser;
3611 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3612 && gameuser
="${with_gameuser}"
3613 test "X$gameuser" = X
&& gameuser
=games
3616 # Check whether --with-gnustep-conf was given.
3617 if test "${with_gnustep_conf+set}" = set; then :
3618 withval
=$with_gnustep_conf;
3621 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3622 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3623 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3624 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3626 # Check whether --enable-ns-self-contained was given.
3627 if test "${enable_ns_self_contained+set}" = set; then :
3628 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3630 EN_NS_SELF_CONTAINED
=yes
3634 # Check whether --enable-asserts was given.
3635 if test "${enable_asserts+set}" = set; then :
3636 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3642 # Check whether --enable-maintainer-mode was given.
3643 if test "${enable_maintainer_mode+set}" = set; then :
3644 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3646 USE_MAINTAINER_MODE
=no
3649 if test $USE_MAINTAINER_MODE = yes; then
3656 # Check whether --enable-locallisppath was given.
3657 if test "${enable_locallisppath+set}" = set; then :
3658 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3660 elif test "${enableval}" != "yes"; then
3661 locallisppath
=${enableval}
3666 # Check whether --enable-checking was given.
3667 if test "${enable_checking+set}" = set; then :
3668 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3671 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3672 for check
in $ac_checking_flags
3675 # these set all the flags to specific states
3676 yes) ac_enable_checking
=1 ;;
3677 no
) ac_enable_checking
= ;
3678 ac_gc_check_stringbytes
= ;
3679 ac_gc_check_string_overrun
= ;
3680 ac_gc_check_string_free_list
= ;
3681 ac_xmalloc_overrun
= ;
3682 ac_gc_check_cons_list
= ;;
3683 all
) ac_enable_checking
=1 ;
3684 ac_gc_check_stringbytes
=1 ;
3685 ac_gc_check_string_overrun
=1 ;
3686 ac_gc_check_string_free_list
=1 ;
3687 ac_xmalloc_overrun
=1 ;
3688 ac_gc_check_cons_list
=1 ;;
3689 # these enable particular checks
3690 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3691 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3692 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3693 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3694 conslist
) ac_gc_check_cons_list
=1 ;;
3695 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3700 if test x
$ac_enable_checking != x
; then
3702 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3705 if test x
$ac_gc_check_stringbytes != x
; then
3707 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3710 if test x
$ac_gc_check_stringoverrun != x
; then
3712 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3715 if test x
$ac_gc_check_string_free_list != x
; then
3717 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3720 if test x
$ac_xmalloc_overrun != x
; then
3722 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3725 if test x
$ac_gc_check_cons_list != x
; then
3727 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3731 # Check whether --enable-use-lisp-union-type was given.
3732 if test "${enable_use_lisp_union_type+set}" = set; then :
3733 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3735 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3742 # Check whether --enable-profiling was given.
3743 if test "${enable_profiling+set}" = set; then :
3744 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3747 if test x
$ac_enable_profiling != x
; then
3748 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3754 # Check whether --enable-autodepend was given.
3755 if test "${enable_autodepend+set}" = set; then :
3756 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3758 ac_enable_autodepend
=yes
3762 #### Make srcdir absolute, if it isn't already. It's important to
3763 #### avoid running the path through pwd unnecessarily, since pwd can
3764 #### give you automounter prefixes, which can go away. We do all this
3765 #### so Emacs can find its files when run uninstalled.
3766 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3771 ## We may be able to use the $PWD environment variable to make this
3772 ## absolute. But sometimes PWD is inaccurate.
3773 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3774 ## but that tested only for a well-formed and valid PWD,
3775 ## it did not object when PWD was well-formed and valid but just wrong.
3776 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3780 srcdir
="`(cd ${srcdir}; pwd)`"
3783 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3786 #### Check if the source directory already has a configured system in it.
3787 if test `pwd` != `(cd ${srcdir} && pwd)` \
3788 && test -f "${srcdir}/src/config.h" ; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3790 as a build directory right now; it has been configured in its own
3791 right. To configure in another directory as well, you MUST
3792 use GNU make. If you do not have GNU make, then you must
3793 now do \`make distclean' in ${srcdir},
3794 and then run $0 again." >&5
3795 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3796 as a build directory right now; it has been configured in its own
3797 right. To configure in another directory as well, you MUST
3798 use GNU make. If you do not have GNU make, then you must
3799 now do \`make distclean' in ${srcdir},
3800 and then run $0 again." >&2;}
3803 #### Given the configuration name, set machfile and opsysfile to the
3804 #### names of the m/*.h and s/*.h files we should use.
3806 ### Canonicalize the configuration name.
3808 # Make sure we can run config.sub.
3809 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3810 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3813 $as_echo_n "checking build system type... " >&6; }
3814 if test "${ac_cv_build+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 ac_build_alias
=$build_alias
3818 test "x$ac_build_alias" = x
&&
3819 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3820 test "x$ac_build_alias" = x
&&
3821 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3822 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3823 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3827 $as_echo "$ac_cv_build" >&6; }
3828 case $ac_cv_build in
3830 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
3833 ac_save_IFS
=$IFS; IFS
='-'
3839 # Remember, the first character of IFS is used to create $*,
3840 # except with old shells:
3843 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3847 $as_echo_n "checking host system type... " >&6; }
3848 if test "${ac_cv_host+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3851 if test "x$host_alias" = x
; then
3852 ac_cv_host
=$ac_cv_build
3854 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3855 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3860 $as_echo "$ac_cv_host" >&6; }
3863 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
3866 ac_save_IFS
=$IFS; IFS
='-'
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3876 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3880 configuration
=${host_alias-${build_alias-$host}}
3884 ### If you add support for a new configuration, add code to this
3885 ### switch statement to recognize your configuration name and select
3886 ### the appropriate operating system and machine description files.
3888 ### You would hope that you could choose an m/*.h file pretty much
3889 ### based on the machine portion of the configuration name, and an s/*.h
3890 ### file based on the operating system portion. However, it turns out
3891 ### that each m/*.h file is pretty manufacturer-specific - for
3892 ### example mips.h is MIPS
3893 ### So we basically have to have a special case for each
3894 ### configuration name.
3896 ### As far as handling version numbers on operating systems is
3897 ### concerned, make sure things will fail in a fixable way. If
3898 ### /etc/MACHINES doesn't say anything about version numbers, be
3899 ### prepared to handle anything reasonably. If version numbers
3900 ### matter, be sure /etc/MACHINES says something about it.
3902 machine
='' opsys
='' unported
=no
3903 case "${canonical}" in
3908 case ${canonical} in
3909 alpha
*) machine
=alpha
;;
3910 s390-
*) machine
=ibms390
;;
3911 s390x-
*) machine
=ibms390x
;;
3912 powerpc
*) machine
=macppc
;;
3913 sparc
*) machine
=sparc
;;
3914 ia64
*) machine
=ia64
;;
3915 m68k
*) machine
=m68k
;;
3916 x86_64
*) machine
=amdx86-64
;;
3923 case "${canonical}" in
3924 alpha
*) machine
=alpha
;;
3925 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3926 ia64-
*) machine
=ia64
;;
3927 i
[3456]86-*) machine
=intel386
;;
3928 powerpc-
*) machine
=macppc
;;
3929 sparc-
*) machine
=sparc
;;
3930 sparc64-
*) machine
=sparc
;;
3934 ## FreeBSD kernel + glibc based userland
3937 case "${canonical}" in
3938 alpha
*) machine
=alpha
;;
3939 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3940 ia64-
*) machine
=ia64
;;
3941 i
[3456]86-*) machine
=intel386
;;
3942 powerpc-
*) machine
=macppc
;;
3943 sparc-
*) machine
=sparc
;;
3944 sparc64-
*) machine
=sparc
;;
3951 case "${canonical}" in
3952 alpha
*) machine
=alpha
;;
3953 x86_64-
*) machine
=amdx86-64
;;
3954 i
[3456]86-*) machine
=intel386
;;
3955 m68k-
*) machine
=m68k
;;
3956 powerpc-
*) machine
=macppc
;;
3957 sparc
*-) machine
=sparc
;;
3958 vax-
*) machine
=vax
;;
3965 case "${canonical}" in
3966 alpha
*) machine
=alpha
;;
3967 x86_64-
*) machine
=amdx86-64
;;
3968 i386-
*) machine
=intel386
;;
3969 powerpc-
*) machine
=macppc
;;
3970 sparc
*) machine
=sparc
;;
3971 vax-
*) machine
=vax
;;
3975 ## Apple Darwin / Mac OS X
3977 case "${canonical}" in
3978 i
[3456]86-* ) machine
=intel386
;;
3979 powerpc-
* ) machine
=macppc
;;
3980 x86_64-
* ) machine
=amdx86-64
;;
3984 # Define CPP as follows to make autoconf work correctly.
3985 CPP
="${CC-cc} -E -no-cpp-precomp"
3986 # Use fink packages if available.
3987 if test -d /sw
/include
&& test -d /sw
/lib
; then
3988 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3989 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3990 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3994 ## HP 9000 series 700 and 800, running HP/UX
3995 hppa
*-hp-hpux10.2
* )
3998 hppa
*-hp-hpux1[1-9]* )
4000 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4003 ia64
*-hp-hpux1[1-9]* )
4004 machine
=hp800 opsys
=hpux11
4005 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4006 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4010 hppa
*-*-linux-gnu* )
4011 machine
=hp800 opsys
=gnu-linux
4015 rs6000-ibm-aix4.
[23]* )
4016 machine
=ibmrs6000 opsys
=aix4-2
4018 powerpc-ibm-aix4.
[23]* )
4019 machine
=ibmrs6000 opsys
=aix4-2
4021 rs6000-ibm-aix
[56]* )
4022 machine
=ibmrs6000 opsys
=aix4-2
4024 powerpc-ibm-aix
[56]* )
4025 machine
=ibmrs6000 opsys
=aix4-2
4028 ## Silicon Graphics machines
4031 machine
=iris4d opsys
=irix6-5
4032 # Without defining _LANGUAGE_C, things get masked out in the headers
4033 # so that, for instance, grepping for `free' in stdlib.h fails and
4034 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4035 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4036 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4041 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4042 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4043 case "${canonical}" in
4044 i
[3456]86-*-* ) machine
=intel386
;;
4045 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4046 sparc
* ) machine
=sparc
;;
4049 case "${canonical}" in
4050 *-sunos5.6
* |
*-solaris2.6
* )
4052 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4055 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4057 emacs_check_sunpro_c
=yes
4058 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4060 *-sunos5* |
*-solaris* )
4062 emacs_check_sunpro_c
=yes
4063 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4066 ## Watch out for a compiler that we know will not work.
4067 case "${canonical}" in
4068 *-solaris* |
*-sunos5* )
4069 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4070 ## /usr/ucb/cc doesn't work;
4071 ## we should find some other compiler that does work.
4079 ## Intel 386 machines where we don't care about the manufacturer.
4082 case "${canonical}" in
4083 *-cygwin ) opsys
=cygwin
;;
4084 *-darwin* ) opsys
=darwin
4085 CPP
="${CC-cc} -E -no-cpp-precomp"
4087 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4088 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4089 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4090 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4099 ### If the code above didn't choose an operating system, just choose
4100 ### an operating system based on the configuration name. You really
4101 ### only want to use this when you have no idea what the right
4102 ### operating system is; if you know what operating systems a machine
4103 ### runs, it's cleaner to make it explicit in the case statement
4105 if test x
"${opsys}" = x
; then
4106 case "${canonical}" in
4107 *-gnu* ) opsys
=gnu
;;
4116 if test $unported = yes; then
4117 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4118 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4121 if test -n "$machine"; then
4122 machfile
="m/${machine}.h"
4126 opsysfile
="s/${opsys}.h"
4129 #### Choose a compiler.
4130 test -n "$CC" && cc_specified
=yes
4132 # Save the value of CFLAGS that the user specified.
4133 SPECIFIED_CFLAGS
="$CFLAGS"
4136 ac_cpp
='$CPP $CPPFLAGS'
4137 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC
="$CC" # Let the user override the test.
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_exec_ext
in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$ac_cv_prog_CC"; then
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc
; ac_word
=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir
=.
4196 for ac_exec_ext
in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_ac_ct_CC
="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4217 if test "x$ac_ct_CC" = x
; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned
=yes ;;
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC
="$CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc
; ac_word
=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_CC+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC
="$CC" # Let the user override the test.
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 for ac_exec_ext
in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected
=yes
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy
$ac_cv_prog_CC
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4313 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog
in cl.exe
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_CC+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC
="$CC" # Let the user override the test.
4343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir
=.
4348 for ac_exec_ext
in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$CC" && break
4373 if test -z "$CC"; then
4375 for ac_prog
in cl.exe
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy
$ac_prog; ac_word
=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir
=.
4392 for ac_exec_ext
in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_ac_ct_CC
="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$ac_ct_CC" && break
4417 if test "x$ac_ct_CC" = x
; then
4420 case $cross_compiling:$ac_tool_warned in
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned
=yes ;;
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $?
"no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5 ; }
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4442 for ac_option
in --version -v -V -qversion; do
4443 { { ac_try
="$ac_compiler $ac_option >&5"
4445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4452 if test -s conftest.err; then
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4487 for ac_file in $ac_files
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4496 if { { ac_try="$ac_link_default"
4498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4499 *) ac_try_echo
=$ac_try;;
4501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4512 for ac_file
in $ac_files ''
4514 test -f "$ac_file" ||
continue
4516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4519 # We found the default executable, but exeext='' is most
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4525 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4537 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.
$ac_ext >&5
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error
77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5 ; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext
=$ac_cv_exeext
4562 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4563 ac_clean_files
=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try
="$ac_link"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4578 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4581 for ac_file
in conftest.exe conftest conftest.
*; do
4582 test -f "$ac_file" ||
continue
4584 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4585 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5 ; }
4596 rm -f conftest conftest
$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4600 rm -f conftest.
$ac_ext
4601 EXEEXT
=$ac_cv_exeext
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4616 ac_clean_files
="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try
="$ac_link"
4624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4636 *) ac_try_echo
=$ac_try;;
4638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4646 if test "$cross_compiling" = maybe
; then
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $?
"cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5 ; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4660 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4661 ac_clean_files
=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if test "${ac_cv_objext+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try
="$ac_compile"
4681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4705 See \
`config.log' for more details" "$LINENO" 5 ; }
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if test "${ac_cv_prog_cc_g+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4785 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4801 if ac_fn_c_try_compile "$LINENO"; then :
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4822 if test "$GCC" = yes; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 ac_cv_prog_cc_c89=no
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4839 #include <sys/types.h>
4840 #include <sys/stat.h>
4841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4842 struct buf { int x; };
4843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4844 static char *e (p, i)
4850 static char *f (char * (*g) (char **, int), char **p, ...)
4855 s = g (p, va_arg (v,int));
4860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4861 function prototypes and stuff, but not '\xHH' hex character constants.
4862 These don't provoke an error unfortunately, instead are silently treated
4863 as 'x'. The following induces an error, until -std is added to get
4864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4865 array size at least. It's necessary to write '\x00'==0 to get something
4866 that's true only with -std. */
4867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4870 inside strings and character constants. */
4872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4874 int test (int i, double x);
4875 struct s1 {int (*f) (int a);};
4876 struct s2 {int (*f) (double a);};
4877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4891 CC="$ac_save_CC $ac_arg"
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 ac_cv_prog_cc_c89=$ac_arg
4895 rm -f core conftest.err conftest.$ac_objext
4896 test "x$ac_cv_prog_cc_c89" != "xno" && break
4898 rm -f conftest.$ac_ext
4903 case "x$ac_cv_prog_cc_c89" in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 $as_echo "none needed" >&6; } ;;
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4909 $as_echo "unsupported" >&6; } ;;
4911 CC="$CC $ac_cv_prog_cc_c89"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4915 if test "x$ac_cv_prog_cc_c89" != xno; then :
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 DEPDIR="${am__leading_dot}deps"
4926 ac_config_commands="$ac_config_commands depfiles"
4929 am_make=${MAKE-make}
4930 cat > confinc << 'END'
4932 @echo this is the am__doit target
4935 # If we don't find an include directive, just comment out the code.
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4937 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4941 # First try GNU make style include.
4942 echo "include confinc" > confmf
4943 # Ignore all kinds of additional output from `make'.
4944 case `$am_make -s -f confmf 2> /dev/null` in #(
4945 *the\ am__doit\ target*)
4951 # Now try BSD make style include.
4952 if test "$am__include" = "#"; then
4953 echo '.include
"confinc"' > confmf
4954 case `$am_make -s -f confmf 2> /dev/null` in #(
4955 *the\ am__doit\ target*)
4956 am__include=.include
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4965 $as_echo "$_am_result" >&6; }
4966 rm -f confinc confmf
4968 # Check whether --enable-dependency-tracking was given.
4969 if test "${enable_dependency_tracking+set}" = set; then :
4970 enableval=$enable_dependency_tracking;
4973 if test "x$enable_dependency_tracking" != xno; then
4974 am_depcomp="$ac_aux_dir/depcomp"
4977 if test "x$enable_dependency_tracking" != xno
; then
4987 depcc
="$CC" am_compiler_list
=
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4990 $as_echo_n "checking dependency style of $depcc... " >&6; }
4991 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named `D' -- because `-MD' means `put the output
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5013 am_cv_CC_dependencies_compiler_type
=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5018 case " $depcc " in #(
5019 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5022 for depmode
in $am_compiler_list; do
5023 # Setup a source with many dependencies, because some compilers
5024 # like to wrap large dependency lists on column 80 (with \), and
5025 # we should not choose a depcomp mode which is confused by this.
5027 # We need to recreate these files for each test, as the compiler may
5028 # overwrite some of them when testing with obscure command lines.
5029 # This happens at least with the AIX C compiler.
5031 for i
in 1 2 3 4 5 6; do
5032 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5034 # Solaris 8's {/usr,}/bin/sh.
5035 touch sub
/conftst
$i.h
5037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5040 # mode. It turns out that the SunPro C++ compiler does not properly
5041 # handle `-M -o', and we need to detect this. Also, some Intel
5042 # versions had trouble with output in subdirs
5043 am__obj
=sub
/conftest.
${OBJEXT-o}
5044 am__minus_obj
="-o $am__obj"
5047 # This depmode causes a compiler race in universal mode.
5048 test "$am__universal" = false ||
continue
5051 # after this tag, mechanisms are not by side-effect, so they'll
5052 # only be used when explicitly requested
5053 if test "x$enable_dependency_tracking" = xyes
; then
5059 msvisualcpp | msvcmsys
)
5060 # This compiler won't grok `-c -o', but also, the minuso test has
5061 # not run yet. These depmodes are late enough in the game, and
5062 # so weak that their functioning should not be impacted.
5063 am__obj
=conftest.
${OBJEXT-o}
5068 if depmode
=$depmode \
5069 source=sub
/conftest.c object
=$am__obj \
5070 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5071 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5072 >/dev
/null
2>conftest.err
&&
5073 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5074 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5075 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5076 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5077 # icc doesn't choke on unknown options, it will just issue warnings
5078 # or remarks (even with -Werror). So we grep stderr for any message
5079 # that says an option was ignored or not supported.
5080 # When given -MP, icc 7.0 and 7.1 complain thusly:
5081 # icc: Command line warning: ignoring option '-M'; no argument required
5082 # The diagnosis changed in icc 8.0:
5083 # icc: Command line remark: option '-MP' not supported
5084 if (grep 'ignoring option' conftest.err ||
5085 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5086 am_cv_CC_dependencies_compiler_type
=$depmode
5095 am_cv_CC_dependencies_compiler_type
=none
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5100 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5101 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5104 test "x$enable_dependency_tracking" != xno \
5105 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5107 am__fastdepCC_FALSE
='#'
5109 am__fastdepCC_TRUE
='#'
5110 am__fastdepCC_FALSE
=
5114 if test "x$CC" != xcc
; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5116 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5119 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5121 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5122 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5123 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5124 $as_echo_n "(cached) " >&6
5126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5137 # Make sure it works both with $CC and with simple cc.
5138 # We do the test twice because some compilers refuse to overwrite an
5139 # existing .o file with -o, though they will create one.
5140 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5142 if { { case "(($ac_try" in
5143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_try") 2>&5
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; } &&
5152 test -f conftest2.$ac_objext && { { 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; };
5163 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5164 if test "x$CC" != xcc
; then
5165 # Test first that cc exists at all.
5166 if { ac_try
='cc -c conftest.$ac_ext >&5'
5167 { { case "(($ac_try" in
5168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_try") 2>&5
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; }; then
5177 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5179 if { { case "(($ac_try" in
5180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5181 *) ac_try_echo
=$ac_try;;
5183 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184 $as_echo "$ac_try_echo"; } >&5
5185 (eval "$ac_try") 2>&5
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; } &&
5189 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194 $as_echo "$ac_try_echo"; } >&5
5195 (eval "$ac_try") 2>&5
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; };
5203 # cc exists but doesn't like -o.
5204 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5209 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5211 rm -f core conftest*
5214 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5221 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5225 # FIXME: we rely on the cache variable name because
5226 # there is no other way.
5228 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5229 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5230 if test "$am_t" != yes; then
5231 # Losing compiler, so override with the script.
5232 # FIXME: It is wrong to rewrite CC.
5233 # But if we don't then we get into trouble of one sort or another.
5234 # A longer-term fix would be to have automake use am__CC in this case,
5235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5236 CC="$am_aux_dir/compile $CC"
5241 # Initialize gnulib right after verifying that the C compiler works.
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$RANLIB"; then
5251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 RANLIB=$ac_cv_prog_RANLIB
5271 if test -n "$RANLIB"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5273 $as_echo "$RANLIB" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5281 if test -z "$ac_cv_prog_RANLIB"; then
5282 ac_ct_RANLIB=$RANLIB
5283 # Extract the first word of "ranlib", so it can be a program name with args.
5284 set dummy ranlib; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$ac_ct_RANLIB"; then
5291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_RANLIB="ranlib"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5311 if test -n "$ac_ct_RANLIB"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5313 $as_echo "$ac_ct_RANLIB" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5319 if test "x$ac_ct_RANLIB" = x; then
5322 case $cross_compiling:$ac_tool_warned in
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5328 RANLIB=$ac_ct_RANLIB
5331 RANLIB="$ac_cv_prog_RANLIB"
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5341 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5342 # On Suns, sometimes $CPP names a directory.
5343 if test -n "$CPP" && test -d "$CPP"; then
5346 if test -z "$CPP"; then
5347 if test "${ac_cv_prog_CPP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 # Double quotes because CPP needs to be expanded
5351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5354 for ac_c_preproc_warn_flag in '' yes
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5365 # include <limits.h>
5367 # include <assert.h>
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5374 # Broken: fails on valid input.
5377 rm -f conftest.err conftest.i conftest.$ac_ext
5379 # OK, works on sane cases. Now check whether nonexistent headers
5380 # can be detected and how.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <ac_nonexistent.h>
5385 if ac_fn_c_try_cpp "$LINENO"; then :
5386 # Broken: success on invalid input.
5389 # Passes both tests.
5393 rm -f conftest.err conftest.i conftest.$ac_ext
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.i conftest.err conftest.
$ac_ext
5398 if $ac_preproc_ok; then :
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5411 $as_echo "$CPP" >&6; }
5413 for ac_c_preproc_warn_flag
in '' yes
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 # <limits.h> exists even on freestanding compilers.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5424 # include <limits.h>
5426 # include <assert.h>
5430 if ac_fn_c_try_cpp
"$LINENO"; then :
5433 # Broken: fails on valid input.
5436 rm -f conftest.err conftest.i conftest.
$ac_ext
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5444 if ac_fn_c_try_cpp
"$LINENO"; then :
5445 # Broken: success on invalid input.
5448 # Passes both tests.
5452 rm -f conftest.err conftest.i conftest.
$ac_ext
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.i conftest.err conftest.
$ac_ext
5457 if $ac_preproc_ok; then :
5460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5462 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details" "$LINENO" 5 ; }
5467 ac_cpp
='$CPP $CPPFLAGS'
5468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5474 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5475 if test "${ac_cv_path_GREP+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -z "$GREP"; then
5479 ac_path_GREP_found
=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5482 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5485 test -z "$as_dir" && as_dir
=.
5486 for ac_prog
in grep ggrep
; do
5487 for ac_exec_ext
in '' $ac_executable_extensions; do
5488 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5489 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5490 # Check for GNU ac_path_GREP and select it if it is found.
5491 # Check for GNU $ac_path_GREP
5492 case `"$ac_path_GREP" --version 2>&1` in
5494 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5497 $as_echo_n 0123456789 >"conftest.in"
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'GREP' >> "conftest.nl"
5504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5505 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5506 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_GREP
="$ac_path_GREP"
5510 ac_path_GREP_max
=$ac_count
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5515 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5518 $ac_path_GREP_found && break 3
5523 if test -z "$ac_cv_path_GREP"; then
5524 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5527 ac_cv_path_GREP
=$GREP
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5532 $as_echo "$ac_cv_path_GREP" >&6; }
5533 GREP
="$ac_cv_path_GREP"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5537 $as_echo_n "checking for egrep... " >&6; }
5538 if test "${ac_cv_path_EGREP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5542 then ac_cv_path_EGREP
="$GREP -E"
5544 if test -z "$EGREP"; then
5545 ac_path_EGREP_found
=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5548 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5551 test -z "$as_dir" && as_dir
=.
5552 for ac_prog
in egrep; do
5553 for ac_exec_ext
in '' $ac_executable_extensions; do
5554 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5556 # Check for GNU ac_path_EGREP and select it if it is found.
5557 # Check for GNU $ac_path_EGREP
5558 case `"$ac_path_EGREP" --version 2>&1` in
5560 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5563 $as_echo_n 0123456789 >"conftest.in"
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo 'EGREP' >> "conftest.nl"
5570 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5571 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5572 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5573 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_EGREP
="$ac_path_EGREP"
5576 ac_path_EGREP_max
=$ac_count
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5581 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5584 $ac_path_EGREP_found && break 3
5589 if test -z "$ac_cv_path_EGREP"; then
5590 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5593 ac_cv_path_EGREP
=$EGREP
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5599 $as_echo "$ac_cv_path_EGREP" >&6; }
5600 EGREP
="$ac_cv_path_EGREP"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5604 $as_echo_n "checking for ANSI C header files... " >&6; }
5605 if test "${ac_cv_header_stdc+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5623 if ac_fn_c_try_compile
"$LINENO"; then :
5624 ac_cv_header_stdc
=yes
5626 ac_cv_header_stdc
=no
5628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 if test $ac_cv_header_stdc = yes; then
5631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev
/null
2>&1; then :
5641 ac_cv_header_stdc
=no
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev
/null
2>&1; then :
5658 ac_cv_header_stdc
=no
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then :
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5673 #if ((' ' & 0x0FF) == 0x020)
5674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5677 # define ISLOWER(c) \
5678 (('a' <= (c) && (c) <= 'i') \
5679 || ('j' <= (c) && (c) <= 'r') \
5680 || ('s' <= (c) && (c) <= 'z'))
5681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5689 for (i = 0; i < 256; i++)
5690 if (XOR (islower (i), ISLOWER (i))
5691 || toupper (i) != TOUPPER (i))
5696 if ac_fn_c_try_run
"$LINENO"; then :
5699 ac_cv_header_stdc
=no
5701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5708 $as_echo "$ac_cv_header_stdc" >&6; }
5709 if test $ac_cv_header_stdc = yes; then
5711 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5716 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5717 inttypes.h stdint.h unistd.h
5719 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5722 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5723 cat >>confdefs.h
<<_ACEOF
5724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5736 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5743 if test "$MINIX" = yes; then
5745 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5748 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5751 $as_echo "#define _MINIX 1" >>confdefs.h
5758 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5765 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5766 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5772 # define __EXTENSIONS__ 1
5773 $ac_includes_default
5782 if ac_fn_c_try_compile
"$LINENO"; then :
5783 ac_cv_safe_to_define___extensions__
=yes
5785 ac_cv_safe_to_define___extensions__
=no
5787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5790 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5791 test $ac_cv_safe_to_define___extensions__ = yes &&
5792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5811 # Code from module arg-nonnull:
5812 # Code from module c++defs:
5813 # Code from module dtoastr:
5814 # Code from module extensions:
5816 # Code from module getopt-gnu:
5817 # Code from module getopt-posix:
5818 # Code from module gettext-h:
5819 # Code from module ignore-value:
5820 # Code from module include_next:
5821 # Code from module intprops:
5822 # Code from module mktime:
5823 # Code from module multiarch:
5824 # Code from module stdbool:
5825 # Code from module stddef:
5826 # Code from module strftime:
5827 # Code from module time:
5828 # Code from module time_r:
5829 # Code from module unistd:
5830 # Code from module warn-on-use:
5833 # On Suns, sometimes $CPP names a directory.
5834 if test -n "$CPP" && test -d "$CPP"; then
5838 ## If not using gcc, and on Solaris, and no CPP specified, see if
5839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5840 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
5841 test x
"$CPP" = x
; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5843 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5844 if test "${emacs_cv_sunpro_c+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5861 if ac_fn_c_try_link
"$LINENO"; then :
5862 emacs_cv_sunpro_c
=yes
5864 emacs_cv_sunpro_c
=no
5866 rm -f core conftest.err conftest.
$ac_objext \
5867 conftest
$ac_exeext conftest.
$ac_ext
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5871 $as_echo "$emacs_cv_sunpro_c" >&6; }
5873 if test x
"$emacs_cv_sunpro_c" = xyes
; then
5874 NON_GNU_CPP
="$CC -E -Xs"
5878 #### Some systems specify a CPP to use unless we are using GCC.
5879 #### Now that we know whether we are using GCC, we can decide whether
5880 #### to use that one.
5881 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
5886 #### Some systems specify a CC to use unless we are using GCC.
5887 #### Now that we know whether we are using GCC, we can decide whether
5888 #### to use that one.
5889 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
5890 test x
$cc_specified != xyes
5895 if test x
$GCC = xyes
; then
5896 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
5898 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
5901 ### Use -Wno-pointer-sign if the compiler supports it
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5903 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5904 SAVE_CFLAGS
="$CFLAGS"
5905 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5917 if ac_fn_c_try_compile
"$LINENO"; then :
5922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5923 if test $has_option = yes; then
5924 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5927 $as_echo "$has_option" >&6; }
5928 CFLAGS
="$SAVE_CFLAGS"
5932 ### Use -Wdeclaration-after-statement if the compiler supports it
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5934 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5935 SAVE_CFLAGS
="$CFLAGS"
5936 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
5937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5948 if ac_fn_c_try_compile
"$LINENO"; then :
5953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 if test $has_option = yes; then
5955 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5958 $as_echo "$has_option" >&6; }
5959 CFLAGS
="$SAVE_CFLAGS"
5963 ### Use -Wold-style-definition if the compiler supports it
5964 # This can be removed when conversion to standard C is finished.
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5966 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5967 SAVE_CFLAGS
="$CFLAGS"
5968 CFLAGS
="$CFLAGS -Wold-style-definition"
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5980 if ac_fn_c_try_compile
"$LINENO"; then :
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 if test $has_option = yes; then
5987 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5990 $as_echo "$has_option" >&6; }
5991 CFLAGS
="$SAVE_CFLAGS"
5995 ### Use -Wimplicit-function-declaration if the compiler supports it
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5997 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5998 SAVE_CFLAGS
="$CFLAGS"
5999 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6011 if ac_fn_c_try_compile
"$LINENO"; then :
6016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 if test $has_option = yes; then
6018 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6021 $as_echo "$has_option" >&6; }
6022 CFLAGS
="$SAVE_CFLAGS"
6029 #### Some other nice autoconf tests.
6032 ac_cpp
='$CPP $CPPFLAGS'
6033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6038 # On Suns, sometimes $CPP names a directory.
6039 if test -n "$CPP" && test -d "$CPP"; then
6042 if test -z "$CPP"; then
6043 if test "${ac_cv_prog_CPP+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6046 # Double quotes because CPP needs to be expanded
6047 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6050 for ac_c_preproc_warn_flag
in '' yes
6052 # Use a header file that comes with gcc, so configuring glibc
6053 # with a fresh cross-compiler works.
6054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055 # <limits.h> exists even on freestanding compilers.
6056 # On the NeXT, cc -E runs the code through the compiler's parser,
6057 # not just through cpp. "Syntax error" is here to catch this case.
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6061 # include <limits.h>
6063 # include <assert.h>
6067 if ac_fn_c_try_cpp
"$LINENO"; then :
6070 # Broken: fails on valid input.
6073 rm -f conftest.err conftest.i conftest.
$ac_ext
6075 # OK, works on sane cases. Now check whether nonexistent headers
6076 # can be detected and how.
6077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <ac_nonexistent.h>
6081 if ac_fn_c_try_cpp
"$LINENO"; then :
6082 # Broken: success on invalid input.
6085 # Passes both tests.
6089 rm -f conftest.err conftest.i conftest.
$ac_ext
6092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6093 rm -f conftest.i conftest.err conftest.
$ac_ext
6094 if $ac_preproc_ok; then :
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6107 $as_echo "$CPP" >&6; }
6109 for ac_c_preproc_warn_flag
in '' yes
6111 # Use a header file that comes with gcc, so configuring glibc
6112 # with a fresh cross-compiler works.
6113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6114 # <limits.h> exists even on freestanding compilers.
6115 # On the NeXT, cc -E runs the code through the compiler's parser,
6116 # not just through cpp. "Syntax error" is here to catch this case.
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6120 # include <limits.h>
6122 # include <assert.h>
6126 if ac_fn_c_try_cpp
"$LINENO"; then :
6129 # Broken: fails on valid input.
6132 rm -f conftest.err conftest.i conftest.
$ac_ext
6134 # OK, works on sane cases. Now check whether nonexistent headers
6135 # can be detected and how.
6136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <ac_nonexistent.h>
6140 if ac_fn_c_try_cpp
"$LINENO"; then :
6141 # Broken: success on invalid input.
6144 # Passes both tests.
6148 rm -f conftest.err conftest.i conftest.
$ac_ext
6151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152 rm -f conftest.i conftest.err conftest.
$ac_ext
6153 if $ac_preproc_ok; then :
6156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6158 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6159 See \`config.log' for more details" "$LINENO" 5 ; }
6163 ac_cpp
='$CPP $CPPFLAGS'
6164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6169 if test "x$RANLIB" = x
; then
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6178 if test -n "$RANLIB"; then
6179 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir
=.
6186 for ac_exec_ext
in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 RANLIB
=$ac_cv_prog_RANLIB
6199 if test -n "$RANLIB"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6201 $as_echo "$RANLIB" >&6; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6209 if test -z "$ac_cv_prog_RANLIB"; then
6210 ac_ct_RANLIB
=$RANLIB
6211 # Extract the first word of "ranlib", so it can be a program name with args.
6212 set dummy ranlib
; ac_word
=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6218 if test -n "$ac_ct_RANLIB"; then
6219 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir
=.
6226 for ac_exec_ext
in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6239 if test -n "$ac_ct_RANLIB"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6241 $as_echo "$ac_ct_RANLIB" >&6; }
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6247 if test "x$ac_ct_RANLIB" = x
; then
6250 case $cross_compiling:$ac_tool_warned in
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned
=yes ;;
6256 RANLIB
=$ac_ct_RANLIB
6259 RANLIB
="$ac_cv_prog_RANLIB"
6264 ## Although we're running on an amd64 kernel, we're actually compiling for
6265 ## the x86 architecture. The user should probably have provided an
6266 ## explicit --build to `configure', but if everything else than the kernel
6267 ## is running in i386 mode, we can help them out.
6268 if test "$machine" = "amdx86-64"; then
6269 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6270 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6274 if test "$ac_cv_have_decl_i386" = "yes"; then
6275 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6277 machfile
="m/${machine}.h"
6281 # Extract the first word of "install-info", so it can be a program name with args.
6282 set dummy install-info
; ac_word
=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6288 case $INSTALL_INFO in
6290 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir
=.
6298 for ac_exec_ext
in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6312 if test -n "$INSTALL_INFO"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6314 $as_echo "$INSTALL_INFO" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6321 # Extract the first word of "install-info", so it can be a program name with args.
6322 set dummy install-info
; ac_word
=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6328 case $INSTALL_INFO in
6330 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6334 for as_dir
in /usr
/sbin
6337 test -z "$as_dir" && as_dir
=.
6338 for ac_exec_ext
in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6352 if test -n "$INSTALL_INFO"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6354 $as_echo "$INSTALL_INFO" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6361 # Extract the first word of "install-info", so it can be a program name with args.
6362 set dummy install-info
; ac_word
=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6368 case $INSTALL_INFO in
6370 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir
=.
6378 for ac_exec_ext
in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6392 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6393 if test -n "$INSTALL_INFO"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6395 $as_echo "$INSTALL_INFO" >&6; }
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6402 # Extract the first word of "gzip", so it can be a program name with args.
6403 set dummy
gzip; ac_word
=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6411 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir
=.
6419 for ac_exec_ext
in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6433 if test -n "$GZIP_PROG"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6435 $as_echo "$GZIP_PROG" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6444 ## Need makeinfo >= 4.6 (?) to build the manuals.
6445 # Extract the first word of "makeinfo", so it can be a program name with args.
6446 set dummy makeinfo
; ac_word
=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6454 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir
=.
6462 for ac_exec_ext
in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6476 MAKEINFO
=$ac_cv_path_MAKEINFO
6477 if test -n "$MAKEINFO"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6479 $as_echo "$MAKEINFO" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6486 if test "$MAKEINFO" != "no" && \
6487 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
6491 ## Makeinfo is unusual. For a released Emacs, the manuals are
6492 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6493 ## therefore in the category of "special tools" not normally required, which
6494 ## configure does not have to check for (eg autoconf itself).
6495 ## In a Bazaar checkout on the other hand, the manuals are not included.
6496 ## So makeinfo is a requirement to build from Bazaar, and configure
6497 ## should test for it as it does for any other build requirement.
6498 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6499 ## with pre-built manuals, from a Bazaar checkout.
6502 if test "$MAKEINFO" = "no"; then
6504 if test "x${with_makeinfo}" = "xno"; then
6506 elif test ! -e $srcdir/info
/emacs
; then
6507 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6508 source tree does not seem to have pre-built manuals in the \`info' directory.
6509 Either install a suitable version of makeinfo, or re-run configure
6510 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6516 if test x
$GCC = xyes
; then
6517 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6518 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6520 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6521 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6525 late_LDFLAGS
=$LDFLAGS
6526 if test x
$GCC = xyes
; then
6527 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6529 LDFLAGS
="$LDFLAGS -znocombreloc"
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6533 $as_echo_n "checking for -znocombreloc... " >&6; }
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6545 if ac_fn_c_try_link
"$LINENO"; then :
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6547 $as_echo "yes" >&6; }
6549 LDFLAGS
=$late_LDFLAGS
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6553 rm -f core conftest.err conftest.
$ac_objext \
6554 conftest
$ac_exeext conftest.
$ac_ext
6557 # The value of CPP is a quoted variable reference, so we need to do this
6558 # to get its actual value...
6559 CPP
=`eval "echo $CPP"`
6562 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6564 your-opsys-here
) CANNOT_DUMP
=yes ;;
6567 test "$CANNOT_DUMP" = "yes" && \
6569 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6575 UNEXEC_OBJ
=unexelf.o
6577 # MSDOS uses unexcoff.o
6578 # MSWindows uses unexw32.o
6580 UNEXEC_OBJ
=unexaix.o
6586 UNEXEC_OBJ
=unexmacosx.o
6589 UNEXEC_OBJ
=unexhp9k800.o
6592 # Use the Solaris dldump() function, called from unexsol.c, to dump
6593 # emacs, instead of the generic ELF dump code found in unexelf.c.
6594 # The resulting binary has a complete symbol table, and is better
6595 # for debugging and other observability tools (debuggers, pstack, etc).
6597 # If you encounter a problem using dldump(), please consider sending
6598 # a message to the OpenSolaris tools-linking mailing list:
6599 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6601 # It is likely that dldump() works with older Solaris too, but this has
6602 # not been tested, so for now this change is for Solaris 10 or newer.
6603 UNEXEC_OBJ
=unexsol.o
6610 ## Let `ld' find image libs and similar things in /usr/local/lib.
6611 ## The system compiler, GCC, has apparently been modified to not
6612 ## look there, contrary to what a stock GCC would do.
6613 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6617 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6618 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6622 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6626 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6627 ## otherwise Emacs dumps core on elf systems.
6628 LD_SWITCH_SYSTEM
="-Z"
6633 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6635 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6636 ## which has not been defined yet. When this was handled with cpp,
6637 ## it was expanded to null when configure sourced the s/*.h file.
6638 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6639 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6640 ## (or somesuch), but because it is supposed to go at the _front_
6641 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6642 ## Compare with the gnu-linux case below, which added to the end
6643 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6644 ## LD_SWITCH_SYSTEM_TEMACS.
6647 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6648 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6653 if test "$machine" = "alpha"; then
6654 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6655 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
6659 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6660 ## With ELF, make sure that all common symbols get allocated to in the
6661 ## data section. Otherwise, the dump of temacs may miss variables in
6662 ## the shared library that have been initialized. For example, with
6663 ## GNU libc, __malloc_initialized would normally be resolved to the
6664 ## shared library's .bss section, which is fatal.
6665 if test "x$GCC" = "xyes"; then
6666 C_SWITCH_MACHINE
="-fno-common"
6668 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6671 UNEXEC_OBJ
=unexalpha.o
6679 ## Some programs in src produce warnings saying certain subprograms
6680 ## are too complex and need a MAXMEM value greater than 2000 for
6681 ## additional optimization. --nils@exp-math.uni-essen.de
6682 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6683 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6684 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6685 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6691 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6692 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6694 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6696 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6698 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
6700 ## Motif needs -lgen.
6701 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6706 ### Make sure subsequent tests use flags consistent with the build flags.
6708 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6709 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6711 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6716 # Check whether --enable-largefile was given.
6717 if test "${enable_largefile+set}" = set; then :
6718 enableval
=$enable_largefile;
6721 if test "$enable_largefile" != no
; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6724 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6725 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6728 ac_cv_sys_largefile_CC
=no
6729 if test "$GCC" != yes; then
6732 # IRIX 6.2 and later do not support large files by default,
6733 # so use the C compiler's -n32 option if that helps.
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <sys/types.h>
6737 /* Check that off_t can represent 2**63 - 1 correctly.
6738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6739 since some C++ compilers masquerading as C compilers
6740 incorrectly reject 9223372036854775807. */
6741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6743 && LARGE_OFF_T % 2147483647 == 1)
6753 if ac_fn_c_try_compile
"$LINENO"; then :
6756 rm -f core conftest.err conftest.
$ac_objext
6758 if ac_fn_c_try_compile
"$LINENO"; then :
6759 ac_cv_sys_largefile_CC
=' -n32'; break
6761 rm -f core conftest.err conftest.
$ac_objext
6765 rm -f conftest.
$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6769 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6770 if test "$ac_cv_sys_largefile_CC" != no
; then
6771 CC
=$CC$ac_cv_sys_largefile_CC
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6775 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6776 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 /* Check that off_t can represent 2**63 - 1 correctly.
6784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6785 since some C++ compilers masquerading as C compilers
6786 incorrectly reject 9223372036854775807. */
6787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6789 && LARGE_OFF_T % 2147483647 == 1)
6799 if ac_fn_c_try_compile
"$LINENO"; then :
6800 ac_cv_sys_file_offset_bits
=no
; break
6802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 #define _FILE_OFFSET_BITS 64
6806 #include <sys/types.h>
6807 /* Check that off_t can represent 2**63 - 1 correctly.
6808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6809 since some C++ compilers masquerading as C compilers
6810 incorrectly reject 9223372036854775807. */
6811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6813 && LARGE_OFF_T % 2147483647 == 1)
6823 if ac_fn_c_try_compile
"$LINENO"; then :
6824 ac_cv_sys_file_offset_bits
=64; break
6826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6827 ac_cv_sys_file_offset_bits
=unknown
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6832 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6833 case $ac_cv_sys_file_offset_bits in #(
6836 cat >>confdefs.h
<<_ACEOF
6837 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6842 if test $ac_cv_sys_file_offset_bits = unknown
; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6844 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6845 if test "${ac_cv_sys_large_files+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <sys/types.h>
6852 /* Check that off_t can represent 2**63 - 1 correctly.
6853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6854 since some C++ compilers masquerading as C compilers
6855 incorrectly reject 9223372036854775807. */
6856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6858 && LARGE_OFF_T % 2147483647 == 1)
6868 if ac_fn_c_try_compile
"$LINENO"; then :
6869 ac_cv_sys_large_files
=no
; break
6871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #define _LARGE_FILES 1
6875 #include <sys/types.h>
6876 /* Check that off_t can represent 2**63 - 1 correctly.
6877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6878 since some C++ compilers masquerading as C compilers
6879 incorrectly reject 9223372036854775807. */
6880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6882 && LARGE_OFF_T % 2147483647 == 1)
6892 if ac_fn_c_try_compile
"$LINENO"; then :
6893 ac_cv_sys_large_files
=1; break
6895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6896 ac_cv_sys_large_files
=unknown
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6901 $as_echo "$ac_cv_sys_large_files" >&6; }
6902 case $ac_cv_sys_large_files in #(
6905 cat >>confdefs.h
<<_ACEOF
6906 #define _LARGE_FILES $ac_cv_sys_large_files
6916 ## If user specified a crt-dir, use that unconditionally.
6917 if test "X$CRT_DIR" = "X"; then
6919 case "$canonical" in
6920 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6921 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6922 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6923 ## For anything else (eg /usr/lib32), it is up the user to specify
6924 ## the location (bug#5655).
6925 ## Test for crtn.o, not just the directory, because sometimes the
6926 ## directory exists but does not have the relevant files (bug#1287).
6927 ## FIXME better to test for binary compatibility somehow.
6928 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6931 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6935 hpux10-20
) CRT_DIR
=/lib
;;
6938 ## Default is /usr/lib.
6939 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6943 ## Some platforms don't use any of these files, so it is not
6944 ## appropriate to put this test outside the if block.
6945 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6946 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
6959 START_FILES
='pre-crt0.o'
6962 ## Adding -lm confuses the dynamic linker, so omit it.
6964 START_FILES
='pre-crt0.o'
6967 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6968 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6970 gnu-linux | gnu-kfreebsd
)
6971 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6972 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6974 hpux10-20 | hpux11
)
6976 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
6979 if test -f $CRT_DIR/crti.o
; then
6980 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6981 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6983 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6984 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6995 if test "${with_sound}" != "no"; then
6996 # Sound support for GNU/Linux and the free BSDs.
6997 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6999 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7002 cat >>confdefs.h
<<_ACEOF
7003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7005 have_sound_header
=yes
7010 # Emulation library used on NetBSD.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7012 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7013 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7016 ac_check_lib_save_LIBS
=$LIBS
7017 LIBS
="-lossaudio $LIBS"
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 /* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
7031 return _oss_ioctl ();
7036 if ac_fn_c_try_link
"$LINENO"; then :
7037 ac_cv_lib_ossaudio__oss_ioctl
=yes
7039 ac_cv_lib_ossaudio__oss_ioctl
=no
7041 rm -f core conftest.err conftest.
$ac_objext \
7042 conftest
$ac_exeext conftest.
$ac_ext
7043 LIBS
=$ac_check_lib_save_LIBS
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7046 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7047 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7056 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7060 # Extract the first word of "pkg-config", so it can be a program name with args.
7061 set dummy pkg-config
; ac_word
=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7069 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir
=.
7077 for ac_exec_ext
in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7091 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7092 if test -n "$PKG_CONFIG"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7094 $as_echo "$PKG_CONFIG" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7102 if test "$PKG_CONFIG" = "no" ; then
7105 PKG_CONFIG_MIN_VERSION
=0.9.0
7106 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7108 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7110 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 $as_echo "yes" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7116 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7117 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7119 $as_echo "$ALSA_CFLAGS" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7122 $as_echo_n "checking ALSA_LIBS... " >&6; }
7123 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7125 $as_echo "$ALSA_LIBS" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7131 ## If we have a custom action on failure, don't print errors, but
7132 ## do set a variable so people can do so.
7133 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7145 if test $succeeded = yes; then
7151 if test $HAVE_ALSA = yes; then
7152 SAVE_CFLAGS
="$CFLAGS"
7153 SAVE_LDFLAGS
="$LDFLAGS"
7154 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7155 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <asoundlib.h>
7162 snd_lib_error_set_handler (0);
7167 if ac_fn_c_try_compile
"$LINENO"; then :
7168 emacs_alsa_normal
=yes
7170 emacs_alsa_normal
=no
7172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7173 if test "$emacs_alsa_normal" != yes; then
7174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #include <alsa/asoundlib.h>
7180 snd_lib_error_set_handler (0);
7185 if ac_fn_c_try_compile
"$LINENO"; then :
7186 emacs_alsa_subdir
=yes
7188 emacs_alsa_subdir
=no
7190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7191 if test "$emacs_alsa_subdir" != yes; then
7192 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7194 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7197 CFLAGS
="$SAVE_CFLAGS"
7198 LDFLAGS
="$SAVE_LDFLAGS"
7199 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7200 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7202 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7206 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7208 gnu-linux|freebsd|netbsd
)
7210 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7219 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7220 linux
/version.h sys
/systeminfo.h limits.h \
7221 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7222 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7223 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7225 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7227 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7228 cat >>confdefs.h
<<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7238 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <sys/personality.h>
7245 personality (PER_LINUX32)
7250 if ac_fn_c_try_compile
"$LINENO"; then :
7251 emacs_cv_personality_linux32
=yes
7253 emacs_cv_personality_linux32
=no
7255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7257 $as_echo "$emacs_cv_personality_linux32" >&6; }
7259 if test $emacs_cv_personality_linux32 = yes; then
7261 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7265 for ac_header
in term.h
7267 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7268 if test "x$ac_cv_header_term_h" = x
""yes; then :
7269 cat >>confdefs.h
<<_ACEOF
7270 #define HAVE_TERM_H 1
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7278 $as_echo_n "checking for ANSI C header files... " >&6; }
7279 if test "${ac_cv_header_stdc+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7297 if ac_fn_c_try_compile
"$LINENO"; then :
7298 ac_cv_header_stdc
=yes
7300 ac_cv_header_stdc
=no
7302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 if test $ac_cv_header_stdc = yes; then
7305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 $EGREP "memchr" >/dev
/null
2>&1; then :
7315 ac_cv_header_stdc
=no
7321 if test $ac_cv_header_stdc = yes; then
7322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7329 $EGREP "free" >/dev
/null
2>&1; then :
7332 ac_cv_header_stdc
=no
7338 if test $ac_cv_header_stdc = yes; then
7339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7340 if test "$cross_compiling" = yes; then :
7343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7347 #if ((' ' & 0x0FF) == 0x020)
7348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7351 # define ISLOWER(c) \
7352 (('a' <= (c) && (c) <= 'i') \
7353 || ('j' <= (c) && (c) <= 'r') \
7354 || ('s' <= (c) && (c) <= 'z'))
7355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7363 for (i = 0; i < 256; i++)
7364 if (XOR (islower (i), ISLOWER (i))
7365 || toupper (i) != TOUPPER (i))
7370 if ac_fn_c_try_run
"$LINENO"; then :
7373 ac_cv_header_stdc
=no
7375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7382 $as_echo "$ac_cv_header_stdc" >&6; }
7383 if test $ac_cv_header_stdc = yes; then
7385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7390 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7391 if test "${ac_cv_header_time+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7397 #include <sys/time.h>
7403 if ((struct tm *) 0)
7409 if ac_fn_c_try_compile
"$LINENO"; then :
7410 ac_cv_header_time
=yes
7412 ac_cv_header_time
=no
7414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7417 $as_echo "$ac_cv_header_time" >&6; }
7418 if test $ac_cv_header_time = yes; then
7420 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7424 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7425 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7431 cat >>confdefs.h
<<_ACEOF
7432 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7435 if test $ac_cv_have_decl_sys_siglist != yes; then
7436 # For Tru64, at least:
7437 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7438 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7444 cat >>confdefs.h
<<_ACEOF
7445 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7448 if test $ac_cv_have_decl___sys_siglist = yes; then
7450 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7455 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7456 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <sys/types.h>
7462 #include <sys/wait.h>
7464 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7480 if ac_fn_c_try_compile
"$LINENO"; then :
7481 ac_cv_header_sys_wait_h
=yes
7483 ac_cv_header_sys_wait_h
=no
7485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7488 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7489 if test $ac_cv_header_sys_wait_h = yes; then
7491 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7497 $as_echo_n "checking for struct utimbuf... " >&6; }
7498 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #ifdef TIME_WITH_SYS_TIME
7504 #include <sys/time.h>
7507 #ifdef HAVE_SYS_TIME_H
7508 #include <sys/time.h>
7519 static struct utimbuf x; x.actime = x.modtime;
7524 if ac_fn_c_try_compile
"$LINENO"; then :
7525 emacs_cv_struct_utimbuf
=yes
7527 emacs_cv_struct_utimbuf
=no
7529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7532 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7533 if test $emacs_cv_struct_utimbuf = yes; then
7535 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7540 $as_echo_n "checking return type of signal handlers... " >&6; }
7541 if test "${ac_cv_type_signal+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <sys/types.h>
7552 return *(signal (0, 0)) (0) == 1;
7557 if ac_fn_c_try_compile
"$LINENO"; then :
7558 ac_cv_type_signal
=int
7560 ac_cv_type_signal
=void
7562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7565 $as_echo "$ac_cv_type_signal" >&6; }
7567 cat >>confdefs.h
<<_ACEOF
7568 #define RETSIGTYPE $ac_cv_type_signal
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7574 $as_echo_n "checking for speed_t... " >&6; }
7575 if test "${emacs_cv_speed_t+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <termios.h>
7589 if ac_fn_c_try_compile
"$LINENO"; then :
7590 emacs_cv_speed_t
=yes
7594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7597 $as_echo "$emacs_cv_speed_t" >&6; }
7598 if test $emacs_cv_speed_t = yes; then
7600 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7605 $as_echo_n "checking for struct timeval... " >&6; }
7606 if test "${emacs_cv_struct_timeval+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #ifdef TIME_WITH_SYS_TIME
7612 #include <sys/time.h>
7615 #ifdef HAVE_SYS_TIME_H
7616 #include <sys/time.h>
7624 static struct timeval x; x.tv_sec = x.tv_usec;
7629 if ac_fn_c_try_compile
"$LINENO"; then :
7630 emacs_cv_struct_timeval
=yes
7632 emacs_cv_struct_timeval
=no
7634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7637 $as_echo "$emacs_cv_struct_timeval" >&6; }
7638 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7639 if test $emacs_cv_struct_timeval = yes; then
7641 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7646 $as_echo_n "checking for struct exception... " >&6; }
7647 if test "${emacs_cv_struct_exception+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7656 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7661 if ac_fn_c_try_compile
"$LINENO"; then :
7662 emacs_cv_struct_exception
=yes
7664 emacs_cv_struct_exception
=no
7666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7669 $as_echo "$emacs_cv_struct_exception" >&6; }
7670 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7671 if test $emacs_cv_struct_exception != yes; then
7673 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7677 for ac_header
in sys
/socket.h
7679 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7680 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
7681 cat >>confdefs.h
<<_ACEOF
7682 #define HAVE_SYS_SOCKET_H 1
7689 for ac_header
in net
/if.h
7691 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7692 #if HAVE_SYS_SOCKET_H
7693 #include <sys/socket.h>
7696 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
7697 cat >>confdefs.h
<<_ACEOF
7698 #define HAVE_NET_IF_H 1
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7707 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7708 if test "${ac_cv_struct_tm+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7720 int *p = &tm.tm_sec;
7726 if ac_fn_c_try_compile
"$LINENO"; then :
7727 ac_cv_struct_tm
=time.h
7729 ac_cv_struct_tm
=sys
/time.h
7731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7734 $as_echo "$ac_cv_struct_tm" >&6; }
7735 if test $ac_cv_struct_tm = sys
/time.h
; then
7737 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7741 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7742 #include <$ac_cv_struct_tm>
7745 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
7747 cat >>confdefs.h
<<_ACEOF
7748 #define HAVE_STRUCT_TM_TM_ZONE 1
7754 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7756 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7759 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7761 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
7767 cat >>confdefs.h
<<_ACEOF
7768 #define HAVE_DECL_TZNAME $ac_have_decl
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7772 $as_echo_n "checking for tzname... " >&6; }
7773 if test "${ac_cv_var_tzname+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7779 #if !HAVE_DECL_TZNAME
7780 extern char *tzname[];
7786 return tzname[0][0];
7791 if ac_fn_c_try_link
"$LINENO"; then :
7792 ac_cv_var_tzname
=yes
7796 rm -f core conftest.err conftest.
$ac_objext \
7797 conftest
$ac_exeext conftest.
$ac_ext
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7800 $as_echo "$ac_cv_var_tzname" >&6; }
7801 if test $ac_cv_var_tzname = yes; then
7803 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7808 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7810 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
7812 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7816 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7817 #if HAVE_SYS_SOCKET_H
7818 #include <sys/socket.h>
7824 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
7826 cat >>confdefs.h
<<_ACEOF
7827 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7832 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7833 #if HAVE_SYS_SOCKET_H
7834 #include <sys/socket.h>
7840 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
7842 cat >>confdefs.h
<<_ACEOF
7843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7848 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7849 #if HAVE_SYS_SOCKET_H
7850 #include <sys/socket.h>
7856 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
7858 cat >>confdefs.h
<<_ACEOF
7859 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7864 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7865 #if HAVE_SYS_SOCKET_H
7866 #include <sys/socket.h>
7872 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
7874 cat >>confdefs.h
<<_ACEOF
7875 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7880 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7881 #if HAVE_SYS_SOCKET_H
7882 #include <sys/socket.h>
7888 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
7890 cat >>confdefs.h
<<_ACEOF
7891 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7900 $as_echo_n "checking for function prototypes... " >&6; }
7901 if test "$ac_cv_prog_cc_c89" != no
; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7903 $as_echo "yes" >&6; }
7905 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7908 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7916 $as_echo_n "checking for working volatile... " >&6; }
7917 if test "${ac_cv_c_volatile+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7928 int * volatile y = (int *) 0;
7934 if ac_fn_c_try_compile
"$LINENO"; then :
7935 ac_cv_c_volatile
=yes
7939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7942 $as_echo "$ac_cv_c_volatile" >&6; }
7943 if test $ac_cv_c_volatile = no
; then
7945 $as_echo "#define volatile /**/" >>confdefs.h
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7950 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7960 /* FIXME: Include the comments suggested by Paul. */
7962 /* Ultrix mips cc rejects this. */
7963 typedef int charset[2];
7965 /* SunOS 4.1.1 cc rejects this. */
7966 char const *const *pcpcc;
7968 /* NEC SVR4.0.2 mips cc rejects this. */
7969 struct point {int x, y;};
7970 static struct point const zero = {0,0};
7971 /* AIX XL C 1.02.0.0 rejects this.
7972 It does not let you subtract one const X* pointer from another in
7973 an arm of an if-expression whose if-part is not a constant
7975 const char *g = "string";
7976 pcpcc = &g + (g ? g-g : 0);
7977 /* HPUX 7.0 cc rejects these. */
7979 ppc = (char**) pcpcc;
7980 pcpcc = (char const *const *) ppc;
7981 { /* SCO 3.2v4 cc rejects this. */
7983 char const *s = 0 ? (char *) 0 : (char const *) 0;
7988 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7990 const int *foo = &x[0];
7993 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7994 typedef const int *iptr;
7998 { /* AIX XL C 1.02.0.0 rejects this saying
7999 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8000 struct s { int j; const int *ap[3]; };
8001 struct s *b; b->j = 5;
8003 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8007 return !cs[0] && !zero.x;
8014 if ac_fn_c_try_compile
"$LINENO"; then :
8019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8022 $as_echo "$ac_cv_c_const" >&6; }
8023 if test $ac_cv_c_const = no
; then
8025 $as_echo "#define const /**/" >>confdefs.h
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8030 $as_echo_n "checking for void * support... " >&6; }
8031 if test "${emacs_cv_void_star+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8045 if ac_fn_c_try_compile
"$LINENO"; then :
8046 emacs_cv_void_star
=yes
8048 emacs_cv_void_star
=no
8050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8053 $as_echo "$emacs_cv_void_star" >&6; }
8054 if test $emacs_cv_void_star = yes; then
8055 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8058 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8063 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8064 if test "${ac_cv_c_bigendian+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8067 ac_cv_c_bigendian
=unknown
8068 # See if we're dealing with a universal compiler.
8069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #ifndef __APPLE_CC__
8072 not a universal capable compiler
8077 if ac_fn_c_try_compile
"$LINENO"; then :
8079 # Check for potential -arch flags. It is not universal unless
8080 # there are at least two -arch flags with different values.
8083 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8084 if test -n "$ac_prev"; then
8086 i?
86 | x86_64 | ppc | ppc64
)
8087 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8090 ac_cv_c_bigendian
=universal
8096 elif test "x$ac_word" = "x-arch"; then
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8102 if test $ac_cv_c_bigendian = unknown
; then
8103 # See if sys/param.h defines the BYTE_ORDER macro.
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <sys/types.h>
8107 #include <sys/param.h>
8112 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8113 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8122 if ac_fn_c_try_compile
"$LINENO"; then :
8123 # It does; now see whether it defined to BIG_ENDIAN or not.
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <sys/param.h>
8132 #if BYTE_ORDER != BIG_ENDIAN
8140 if ac_fn_c_try_compile
"$LINENO"; then :
8141 ac_cv_c_bigendian
=yes
8143 ac_cv_c_bigendian
=no
8145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8149 if test $ac_cv_c_bigendian = unknown
; then
8150 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8158 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8166 if ac_fn_c_try_compile
"$LINENO"; then :
8167 # It does; now see whether it defined to _BIG_ENDIAN or not.
8168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8183 if ac_fn_c_try_compile
"$LINENO"; then :
8184 ac_cv_c_bigendian
=yes
8186 ac_cv_c_bigendian
=no
8188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8192 if test $ac_cv_c_bigendian = unknown
; then
8193 # Compile a test program.
8194 if test "$cross_compiling" = yes; then :
8195 # Try to guess by grepping values from an object file.
8196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 short int ascii_mm[] =
8199 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8200 short int ascii_ii[] =
8201 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8202 int use_ascii (int i) {
8203 return ascii_mm[i] + ascii_ii[i];
8205 short int ebcdic_ii[] =
8206 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8207 short int ebcdic_mm[] =
8208 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8209 int use_ebcdic (int i) {
8210 return ebcdic_mm[i] + ebcdic_ii[i];
8217 return use_ascii (foo) == use_ebcdic (foo);
8222 if ac_fn_c_try_compile
"$LINENO"; then :
8223 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8224 ac_cv_c_bigendian
=yes
8226 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8227 if test "$ac_cv_c_bigendian" = unknown
; then
8228 ac_cv_c_bigendian
=no
8230 # finding both strings is unlikely to happen, but who knows?
8231 ac_cv_c_bigendian
=unknown
8235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 $ac_includes_default
8244 /* Are we little or big endian? From Harbison&Steele. */
8248 char c[sizeof (long int)];
8251 return u.c[sizeof (long int) - 1] == 1;
8257 if ac_fn_c_try_run
"$LINENO"; then :
8258 ac_cv_c_bigendian
=no
8260 ac_cv_c_bigendian
=yes
8262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8269 $as_echo "$ac_cv_c_bigendian" >&6; }
8270 case $ac_cv_c_bigendian in #(
8272 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8278 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8282 as_fn_error $?
"unknown endianness
8283 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8288 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8289 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 char __attribute__ ((__aligned__ (1 << 3))) c;
8303 if ac_fn_c_try_compile
"$LINENO"; then :
8304 emacs_cv_attribute_aligned
=yes
8306 emacs_cv_attribute_aligned
=no
8308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8311 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8312 if test $emacs_cv_attribute_aligned = yes; then
8314 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8321 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8323 $as_echo_n "(cached) " >&6
8325 cat >conftest.
make <<\_ACEOF
8328 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8333 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8335 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8339 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8341 $as_echo "yes" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 SET_MAKE
="MAKE=${MAKE-make}"
8353 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8355 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8357 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8358 if test "x$testval" != x
; then
8361 ac_enable_autodepend
=no
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8364 $as_echo "$HAVE_GNU_MAKE" >&6; }
8365 if test $HAVE_GNU_MAKE = yes; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8367 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8368 SAVE_CFLAGS
="$CFLAGS"
8369 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8381 if ac_fn_c_try_compile
"$LINENO"; then :
8384 ac_enable_autodepend
=no
8386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8387 CFLAGS
="$SAVE_CFLAGS"
8388 test -f deps.d || ac_enable_autodepend
=no
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8391 $as_echo "$ac_enable_autodepend" >&6; }
8393 if test $ac_enable_autodepend = yes; then
8394 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8395 ## In parallel builds, another make might create depdir between
8396 ## the first test and mkdir, so stick another test on the end.
8397 ## Or use mkinstalldirs? mkdir -p is not portable.
8398 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8399 deps_frag
=autodeps.mk
8402 deps_frag
=$srcdir/src
/$deps_frag
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8409 $as_echo_n "checking for long file names... " >&6; }
8410 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8413 ac_cv_sys_long_file_names
=yes
8414 # Test for long file names in all the places we know might matter:
8415 # . the current directory, where building will happen
8416 # $prefix/lib where we will be installing things
8417 # $exec_prefix/lib likewise
8418 # $TMPDIR if set, where it might want to write temporary files
8419 # /tmp where it might want to write temporary files
8422 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8423 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8424 # in the usual case where exec_prefix is '${prefix}'.
8426 . |
/* | ?
:[\\/]*) ;; #(
8429 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8430 ac_xdir
=$ac_dir/cf$$
8431 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8432 ac_tf1
=$ac_xdir/conftest9012345
8433 ac_tf2
=$ac_xdir/conftest9012346
8434 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8435 ac_cv_sys_long_file_names
=no
8436 rm -f -r "$ac_xdir" 2>/dev
/null
8437 test $ac_cv_sys_long_file_names = no
&& break
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8441 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8442 if test $ac_cv_sys_long_file_names = yes; then
8444 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8449 #### Choose a window system.
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8452 $as_echo_n "checking for X... " >&6; }
8455 # Check whether --with-x was given.
8456 if test "${with_x+set}" = set; then :
8460 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8461 if test "x$with_x" = xno
; then
8462 # The user explicitly disabled X.
8465 case $x_includes,$x_libraries in #(
8466 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
8467 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8470 # One or both of the vars are not set, and there is no cached value.
8471 ac_x_includes
=no ac_x_libraries
=no
8472 rm -f -r conftest.dir
8473 if mkdir conftest.dir
; then
8475 cat >Imakefile
<<'_ACEOF'
8477 @echo incroot='${INCROOT}'
8479 @echo usrlibdir='${USRLIBDIR}'
8481 @echo libdir='${LIBDIR}'
8483 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8484 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8485 for ac_var
in incroot usrlibdir libdir
; do
8486 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8488 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8489 for ac_extension
in a so sl dylib la dll
; do
8490 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8491 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8492 ac_im_usrlibdir
=$ac_im_libdir; break
8495 # Screen out bogus values from the imake configuration. They are
8496 # bogus both because they are the default anyway, and because
8497 # using them would break gcc on systems where it needs fixed includes.
8498 case $ac_im_incroot in
8499 /usr
/include
) ac_x_includes
= ;;
8500 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8502 case $ac_im_usrlibdir in
8503 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8504 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8508 rm -f -r conftest.dir
8511 # Standard set of common directories for X headers.
8512 # Check X11 before X11Rn because it is often a symlink to the current release.
8526 /usr/local/X11/include
8527 /usr/local/X11R7/include
8528 /usr/local/X11R6/include
8529 /usr/local/X11R5/include
8530 /usr/local/X11R4/include
8532 /usr/local/include/X11
8533 /usr/local/include/X11R7
8534 /usr/local/include/X11R6
8535 /usr/local/include/X11R5
8536 /usr/local/include/X11R4
8540 /usr/XFree86/include/X11
8544 /usr/unsupported/include
8546 /usr/local/x11r5/include
8547 /usr/lpp/Xamples/include
8549 /usr/openwin/include
8550 /usr/openwin/share/include'
8552 if test "$ac_x_includes" = no
; then
8553 # Guess where to find include files, by looking for Xlib.h.
8554 # First, try using that file with no special directory specified.
8555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <X11/Xlib.h>
8559 if ac_fn_c_try_cpp
"$LINENO"; then :
8560 # We can compile using X headers with no special include directory.
8563 for ac_dir
in $ac_x_header_dirs; do
8564 if test -r "$ac_dir/X11/Xlib.h"; then
8565 ac_x_includes
=$ac_dir
8570 rm -f conftest.err conftest.i conftest.
$ac_ext
8571 fi # $ac_x_includes = no
8573 if test "$ac_x_libraries" = no
; then
8574 # Check for the libraries.
8575 # See if we find them without any special options.
8576 # Don't add to $LIBS permanently.
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <X11/Xlib.h>
8590 if ac_fn_c_try_link
"$LINENO"; then :
8592 # We can link X programs with no special library path.
8596 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8598 # Don't even attempt the hair of trying to link an X program!
8599 for ac_extension
in a so sl dylib la dll
; do
8600 if test -r "$ac_dir/libX11.$ac_extension"; then
8601 ac_x_libraries
=$ac_dir
8607 rm -f core conftest.err conftest.
$ac_objext \
8608 conftest
$ac_exeext conftest.
$ac_ext
8609 fi # $ac_x_libraries = no
8611 case $ac_x_includes,$ac_x_libraries in #(
8613 # Didn't find X, or a directory has "'" in its name.
8614 ac_cv_have_x
="have_x=no";; #(
8616 # Record where we found X for the cache.
8617 ac_cv_have_x
="have_x=yes\
8618 ac_x_includes='$ac_x_includes'\
8619 ac_x_libraries='$ac_x_libraries'"
8625 eval "$ac_cv_have_x"
8628 if test "$have_x" != yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8630 $as_echo "$have_x" >&6; }
8633 # If each of the values was on the command line, it overrides each guess.
8634 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8635 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8636 # Update the cache value to reflect the command line values.
8637 ac_cv_have_x
="have_x=yes\
8638 ac_x_includes='$x_includes'\
8639 ac_x_libraries='$x_libraries'"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8641 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8644 if test "$no_x" = yes; then
8650 ## Workaround for bug in autoconf <= 2.62.
8651 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8652 ## No need to do anything special for these standard directories.
8653 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8655 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8659 LD_SWITCH_X_SITE_AUX
=
8660 LD_SWITCH_X_SITE_AUX_RPATH
=
8661 if test "${x_libraries}" != NONE
; then
8662 if test -n "${x_libraries}"; then
8663 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8664 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8665 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8667 x_default_search_path
=""
8668 x_search_path
=${x_libraries}
8669 if test -z "${x_search_path}"; then
8670 x_search_path
=/usr
/lib
8672 for x_library
in `echo ${x_search_path}: | \
8673 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8675 ${x_library}/X11/%L/%T/%N%C%S:\
8676 ${x_library}/X11/%l/%T/%N%C%S:\
8677 ${x_library}/X11/%T/%N%C%S:\
8678 ${x_library}/X11/%L/%T/%N%S:\
8679 ${x_library}/X11/%l/%T/%N%S:\
8680 ${x_library}/X11/%T/%N%S"
8681 if test x
"${x_default_search_path}" = x
; then
8682 x_default_search_path
=${x_search_path}
8684 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8691 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8692 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8695 if test x
"${x_includes}" = x
; then
8696 bitmapdir
=/usr
/include
/X11
/bitmaps
8698 # accumulate include directories that have X11 bitmap subdirectories
8700 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8701 if test -d "${bmd}/X11/bitmaps"; then
8702 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8704 if test -d "${bmd}/bitmaps"; then
8705 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8708 if test ${bmd_acc} != "dummyval"; then
8709 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8716 tmp_CPPFLAGS
="$CPPFLAGS"
8717 tmp_CFLAGS
="$CFLAGS"
8718 CPPFLAGS
="$CPPFLAGS -x objective-c"
8719 CFLAGS
="$CFLAGS -x objective-c"
8720 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8721 if test "${with_ns}" != no
; then
8722 if test "${opsys}" = darwin
; then
8724 ns_appdir
=`pwd`/nextstep
/Emacs.app
8725 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8726 ns_appresdir
=${ns_appdir}/Contents
/Resources
8727 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8728 elif test -f $GNUSTEP_CONFIG_FILE; then
8730 ns_appdir
=`pwd`/nextstep
/Emacs.app
8731 ns_appbindir
=${ns_appdir}/
8732 ns_appresdir
=${ns_appdir}/Resources
8733 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8734 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8735 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8736 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8737 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8738 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8739 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8740 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8741 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8742 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8743 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8744 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8749 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8750 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
8753 as_fn_error $?
"\`--with-ns' was specified, but the include
8754 files are missing or cannot be compiled." "$LINENO" 5
8758 NS_HAVE_NSINTEGER
=yes
8759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <Foundation/NSObjCRuntime.h>
8770 if ac_fn_c_try_compile
"$LINENO"; then :
8771 ns_have_nsinteger
=yes
8773 ns_have_nsinteger
=no
8775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8776 if test $ns_have_nsinteger = no
; then
8777 NS_HAVE_NSINTEGER
=no
8786 if test "${HAVE_NS}" = yes; then
8787 window_system
=nextstep
8789 # set up packaging dirs
8790 exec_prefix
=${ns_appbindir}
8791 libexecdir
=${ns_appbindir}/libexec
8792 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8793 prefix
=${ns_appresdir}
8795 ns_frag
=$srcdir/src
/ns.mk
8796 NS_OBJ
="fontset.o fringe.o image.o"
8797 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
8798 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8800 CFLAGS
="$tmp_CFLAGS"
8801 CPPFLAGS
="$tmp_CPPFLAGS"
8808 case "${window_system}" in
8812 case "${with_x_toolkit}" in
8813 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8814 motif
) USE_X_TOOLKIT
=MOTIF
;;
8816 USE_X_TOOLKIT
=none
;;
8817 gtk3
) with_gtk3
=yes
8818 USE_X_TOOLKIT
=none
;;
8819 no
) USE_X_TOOLKIT
=none
;;
8820 * ) USE_X_TOOLKIT
=maybe
;;
8830 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8831 # Extract the first word of "X", so it can be a program name with args.
8832 set dummy X
; ac_word
=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8838 if test -n "$HAVE_XSERVER"; then
8839 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir
=.
8846 for ac_exec_ext
in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_HAVE_XSERVER
="true"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8859 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8860 if test -n "$HAVE_XSERVER"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8862 $as_echo "$HAVE_XSERVER" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8869 if test "$HAVE_XSERVER" = true ||
8870 test -n "$DISPLAY" ||
8871 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8872 as_fn_error $?
"You seem to be running X, but no X development libraries
8873 were found. You should install the relevant development files for X
8874 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8875 sure you have development files for image handling, i.e.
8876 tiff, gif, jpeg, png and xpm.
8877 If you are sure you want Emacs compiled without X window support, pass
8879 to configure." "$LINENO" 5
8883 ### If we're using X11, we should use the X menu package.
8886 yes ) HAVE_MENUS
=yes ;;
8889 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8890 # Assume not, until told otherwise.
8893 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8894 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
8900 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8901 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8908 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8909 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 extern void (* __after_morecore_hook)();
8918 __after_morecore_hook = 0
8923 if ac_fn_c_try_link
"$LINENO"; then :
8924 emacs_cv_var___after_morecore_hook
=yes
8926 emacs_cv_var___after_morecore_hook
=no
8928 rm -f core conftest.err conftest.
$ac_objext \
8929 conftest
$ac_exeext conftest.
$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8932 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8933 if test $emacs_cv_var___after_morecore_hook = no
; then
8940 ## darwin ld insists on the use of malloc routines in the System framework.
8941 darwin|sol2-10
) system_malloc
=yes ;;
8944 if test "${system_malloc}" = "yes"; then
8946 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8950 (The GNU allocators don't work with this system configuration.)"
8954 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
8955 VMLIMIT_OBJ
=vm-limit.o
8960 if test "$doug_lea_malloc" = "yes" ; then
8961 if test "$GNU_MALLOC" = yes ; then
8963 (Using Doug Lea's new malloc from the GNU C Library.)"
8966 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8969 ## Use mmap directly for allocating larger buffers.
8970 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8971 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8972 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8974 gnu
*) REL_ALLOC
=no
;;
8978 if test x
"${REL_ALLOC}" = x
; then
8979 REL_ALLOC
=${GNU_MALLOC}
8982 use_mmap_for_buffers
=no
8984 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
8990 for ac_header
in $ac_header_list
8992 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8993 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8995 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8996 cat >>confdefs.h
<<_ACEOF
8997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9011 for ac_func
in getpagesize
9013 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9014 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_GETPAGESIZE 1
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9023 $as_echo_n "checking for working mmap... " >&6; }
9024 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 if test "$cross_compiling" = yes; then :
9028 ac_cv_func_mmap_fixed_mapped
=no
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 $ac_includes_default
9033 /* malloc might have been renamed as rpl_malloc. */
9036 /* Thanks to Mike Haertel and Jim Avera for this test.
9037 Here is a matrix of mmap possibilities:
9038 mmap private not fixed
9039 mmap private fixed at somewhere currently unmapped
9040 mmap private fixed at somewhere already mapped
9041 mmap shared not fixed
9042 mmap shared fixed at somewhere currently unmapped
9043 mmap shared fixed at somewhere already mapped
9044 For private mappings, we should verify that changes cannot be read()
9045 back from the file, nor mmap's back from the file at a different
9046 address. (There have been systems where private was not correctly
9047 implemented like the infamous i386 svr4.0, and systems where the
9048 VM page cache was not coherent with the file system buffer cache
9049 like early versions of FreeBSD and possibly contemporary NetBSD.)
9050 For shared mappings, we should conversely verify that changes get
9051 propagated back to all the places they're supposed to be.
9053 Grep wants private fixed already mapped.
9054 The main things grep needs to know about mmap are:
9055 * does it exist and is it safe to write into the mmap'd area
9056 * how to use it (BSD variants) */
9059 #include <sys/mman.h>
9061 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9065 /* This mess was copied from the GNU getpagesize.h. */
9066 #ifndef HAVE_GETPAGESIZE
9067 # ifdef _SC_PAGESIZE
9068 # define getpagesize() sysconf(_SC_PAGESIZE)
9069 # else /* no _SC_PAGESIZE */
9070 # ifdef HAVE_SYS_PARAM_H
9071 # include <sys/param.h>
9072 # ifdef EXEC_PAGESIZE
9073 # define getpagesize() EXEC_PAGESIZE
9074 # else /* no EXEC_PAGESIZE */
9076 # define getpagesize() NBPG * CLSIZE
9079 # endif /* no CLSIZE */
9080 # else /* no NBPG */
9082 # define getpagesize() NBPC
9083 # else /* no NBPC */
9085 # define getpagesize() PAGESIZE
9086 # endif /* PAGESIZE */
9087 # endif /* no NBPC */
9088 # endif /* no NBPG */
9089 # endif /* no EXEC_PAGESIZE */
9090 # else /* no HAVE_SYS_PARAM_H */
9091 # define getpagesize() 8192 /* punt totally */
9092 # endif /* no HAVE_SYS_PARAM_H */
9093 # endif /* no _SC_PAGESIZE */
9095 #endif /* no HAVE_GETPAGESIZE */
9100 char *data, *data2, *data3;
9105 pagesize = getpagesize ();
9107 /* First, make a file with some known garbage in it. */
9108 data = (char *) malloc (pagesize);
9111 for (i = 0; i < pagesize; ++i)
9112 *(data + i) = rand ();
9114 fd = creat ("conftest.mmap", 0600);
9117 if (write (fd, data, pagesize) != pagesize)
9121 /* Next, check that the tail of a page is zero-filled. File must have
9122 non-zero length, otherwise we risk SIGBUS for entire page. */
9123 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9127 if (write (fd2, cdata2, 1) != 1)
9129 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9130 if (data2 == MAP_FAILED)
9132 for (i = 0; i < pagesize; ++i)
9136 if (munmap (data2, pagesize))
9139 /* Next, try to mmap the file at a fixed address which already has
9140 something else allocated at it. If we can, also make sure that
9141 we see the same garbage. */
9142 fd = open ("conftest.mmap", O_RDWR);
9145 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9146 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9148 for (i = 0; i < pagesize; ++i)
9149 if (*(data + i) != *(data2 + i))
9152 /* Finally, make sure that changes to the mapped area do not
9153 percolate back to the file as seen by read(). (This is a bug on
9154 some variants of i386 svr4.0.) */
9155 for (i = 0; i < pagesize; ++i)
9156 *(data2 + i) = *(data2 + i) + 1;
9157 data3 = (char *) malloc (pagesize);
9160 if (read (fd, data3, pagesize) != pagesize)
9162 for (i = 0; i < pagesize; ++i)
9163 if (*(data + i) != *(data3 + i))
9169 if ac_fn_c_try_run
"$LINENO"; then :
9170 ac_cv_func_mmap_fixed_mapped
=yes
9172 ac_cv_func_mmap_fixed_mapped
=no
9174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9180 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9183 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9186 rm -f conftest.mmap conftest.txt
9188 if test $use_mmap_for_buffers = yes; then
9190 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9195 LIBS
="$LIBS_SYSTEM $LIBS"
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9198 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9199 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9202 ac_check_lib_save_LIBS
=$LIBS
9204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9207 /* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
9217 return dnet_ntoa ();
9222 if ac_fn_c_try_link
"$LINENO"; then :
9223 ac_cv_lib_dnet_dnet_ntoa
=yes
9225 ac_cv_lib_dnet_dnet_ntoa
=no
9227 rm -f core conftest.err conftest.
$ac_objext \
9228 conftest
$ac_exeext conftest.
$ac_ext
9229 LIBS
=$ac_check_lib_save_LIBS
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9232 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9233 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9234 cat >>confdefs.h
<<_ACEOF
9235 #define HAVE_LIBDNET 1
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9244 $as_echo_n "checking for main in -lXbsd... " >&6; }
9245 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9248 ac_check_lib_save_LIBS
=$LIBS
9250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9262 if ac_fn_c_try_link
"$LINENO"; then :
9263 ac_cv_lib_Xbsd_main
=yes
9265 ac_cv_lib_Xbsd_main
=no
9267 rm -f core conftest.err conftest.
$ac_objext \
9268 conftest
$ac_exeext conftest.
$ac_ext
9269 LIBS
=$ac_check_lib_save_LIBS
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9272 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9273 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9274 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9279 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9280 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9283 ac_check_lib_save_LIBS
=$LIBS
9284 LIBS
="-lpthreads $LIBS"
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9303 if ac_fn_c_try_link
"$LINENO"; then :
9304 ac_cv_lib_pthreads_cma_open
=yes
9306 ac_cv_lib_pthreads_cma_open
=no
9308 rm -f core conftest.err conftest.
$ac_objext \
9309 conftest
$ac_exeext conftest.
$ac_ext
9310 LIBS
=$ac_check_lib_save_LIBS
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9313 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9314 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9315 cat >>confdefs.h
<<_ACEOF
9316 #define HAVE_LIBPTHREADS 1
9319 LIBS
="-lpthreads $LIBS"
9324 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9325 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9326 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9327 ## added to LIBS in configure would never contain the pthreads part,
9328 ## but the value used in Makefiles might. FIXME?
9330 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9331 ## be harmless on older versions of X where it happens to exist.
9332 test "$opsys" = "aix4-2" && \
9333 test $ac_cv_lib_pthreads_cma_open = yes && \
9334 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9340 $as_echo_n "checking for -bbigtoc option... " >&6; }
9341 if test "${gdb_cv_bigtoc+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9346 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9347 *) gdb_cv_bigtoc
=-bbigtoc ;;
9350 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9362 if ac_fn_c_try_link
"$LINENO"; then :
9367 rm -f core conftest.err conftest.
$ac_objext \
9368 conftest
$ac_exeext conftest.
$ac_ext
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9372 $as_echo "$gdb_cv_bigtoc" >&6; }
9376 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9377 # used for the tests that follow. We set them back to REAL_CFLAGS and
9378 # REAL_CPPFLAGS later on.
9380 REAL_CFLAGS
="$CFLAGS"
9381 REAL_CPPFLAGS
="$CPPFLAGS"
9383 if test "${HAVE_X11}" = "yes"; then
9384 DEFS
="$C_SWITCH_X_SITE $DEFS"
9385 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9387 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9388 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9390 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9391 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9392 # but it's more convenient here to set LD_RUN_PATH
9393 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9394 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9395 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9399 if test "${opsys}" = "gnu-linux"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9401 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9408 XOpenDisplay ("foo");
9413 if ac_fn_c_try_link
"$LINENO"; then :
9414 xlinux_first_failure
=no
9416 xlinux_first_failure
=yes
9418 rm -f core conftest.err conftest.
$ac_objext \
9419 conftest
$ac_exeext conftest.
$ac_ext
9420 if test "${xlinux_first_failure}" = "yes"; then
9421 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9422 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9423 OLD_CPPFLAGS
="$CPPFLAGS"
9425 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9426 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9427 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9428 LIBS
="$LIBS -b i486-linuxaout"
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9435 XOpenDisplay ("foo");
9440 if ac_fn_c_try_link
"$LINENO"; then :
9441 xlinux_second_failure
=no
9443 xlinux_second_failure
=yes
9445 rm -f core conftest.err conftest.
$ac_objext \
9446 conftest
$ac_exeext conftest.
$ac_ext
9447 if test "${xlinux_second_failure}" = "yes"; then
9448 # If we get the same failure with -b, there is no use adding -b.
9449 # So take it out. This plays safe.
9450 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9451 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9452 CPPFLAGS
="$OLD_CPPFLAGS"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9458 $as_echo "yes" >&6; }
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9466 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9467 # header files included from there.
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9469 $as_echo_n "checking for Xkb... " >&6; }
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <X11/Xlib.h>
9473 #include <X11/XKBlib.h>
9477 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9482 if ac_fn_c_try_link
"$LINENO"; then :
9487 rm -f core conftest.err conftest.
$ac_objext \
9488 conftest
$ac_exeext conftest.
$ac_ext
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9490 $as_echo "$emacs_xkb" >&6; }
9491 if test $emacs_xkb = yes; then
9493 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9497 for ac_func
in XrmSetDatabase XScreenResourceString \
9498 XScreenNumberOfScreen XSetWMProtocols
9500 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9501 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9502 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9503 cat >>confdefs.h
<<_ACEOF
9504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512 if test "${window_system}" = "x11"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9514 $as_echo_n "checking X11 version 6... " >&6; }
9515 if test "${emacs_cv_x11_version_6+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <X11/Xlib.h>
9524 #if XlibSpecificationRelease < 6
9532 if ac_fn_c_try_link
"$LINENO"; then :
9533 emacs_cv_x11_version_6
=yes
9535 emacs_cv_x11_version_6
=no
9537 rm -f core conftest.err conftest.
$ac_objext \
9538 conftest
$ac_exeext conftest.
$ac_ext
9541 if test $emacs_cv_x11_version_6 = yes; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9543 $as_echo "6 or newer" >&6; }
9545 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9548 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9550 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9555 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9561 $as_echo "before 6" >&6; }
9566 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9568 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9569 if test "${with_rsvg}" != "no"; then
9570 RSVG_REQUIRED
=2.11.0
9571 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9576 # Extract the first word of "pkg-config", so it can be a program name with args.
9577 set dummy pkg-config
; ac_word
=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9585 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9592 test -z "$as_dir" && as_dir
=.
9593 for ac_exec_ext
in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9607 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9608 if test -n "$PKG_CONFIG"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9610 $as_echo "$PKG_CONFIG" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9618 if test "$PKG_CONFIG" = "no" ; then
9621 PKG_CONFIG_MIN_VERSION
=0.9.0
9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9624 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9626 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9632 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9633 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9635 $as_echo "$RSVG_CFLAGS" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9638 $as_echo_n "checking RSVG_LIBS... " >&6; }
9639 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9641 $as_echo "$RSVG_LIBS" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9647 ## If we have a custom action on failure, don't print errors, but
9648 ## do set a variable so people can do so.
9649 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9661 if test $succeeded = yes; then
9670 if test $HAVE_RSVG = yes; then
9672 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9674 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9675 LIBS
="$RSVG_LIBS $LIBS"
9681 if test "${HAVE_X11}" = "yes"; then
9682 if test "${with_imagemagick}" != "no"; then
9683 IMAGEMAGICK_MODULE
="Wand"
9687 # Extract the first word of "pkg-config", so it can be a program name with args.
9688 set dummy pkg-config
; ac_word
=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9696 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir
=.
9704 for ac_exec_ext
in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9718 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9719 if test -n "$PKG_CONFIG"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9721 $as_echo "$PKG_CONFIG" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9729 if test "$PKG_CONFIG" = "no" ; then
9732 PKG_CONFIG_MIN_VERSION
=0.9.0
9733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9735 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9737 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9739 $as_echo "yes" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9743 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9744 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9746 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9749 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9750 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9752 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9756 IMAGEMAGICK_CFLAGS
=""
9758 ## If we have a custom action on failure, don't print errors, but
9759 ## do set a variable so people can do so.
9760 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9772 if test $succeeded = yes; then
9773 HAVE_IMAGEMAGICK
=yes
9781 if test $HAVE_IMAGEMAGICK = yes; then
9783 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9785 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9786 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9787 for ac_func
in MagickExportImagePixels
9789 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9790 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
9791 cat >>confdefs.h
<<_ACEOF
9792 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9804 if test "${with_gtk3}" = "yes"; then
9807 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9812 # Extract the first word of "pkg-config", so it can be a program name with args.
9813 set dummy pkg-config
; ac_word
=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9821 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9828 test -z "$as_dir" && as_dir
=.
9829 for ac_exec_ext
in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9843 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9844 if test -n "$PKG_CONFIG"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9846 $as_echo "$PKG_CONFIG" >&6; }
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9854 if test "$PKG_CONFIG" = "no" ; then
9857 PKG_CONFIG_MIN_VERSION
=0.9.0
9858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9860 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9862 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9864 $as_echo "yes" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9868 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9869 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9871 $as_echo "$GTK_CFLAGS" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9874 $as_echo_n "checking GTK_LIBS... " >&6; }
9875 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9877 $as_echo "$GTK_LIBS" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9883 ## If we have a custom action on failure, don't print errors, but
9884 ## do set a variable so people can do so.
9885 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9897 if test $succeeded = yes; then
9903 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9908 if test "$pkg_check_gtk" != "yes"; then
9910 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9913 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9918 # Extract the first word of "pkg-config", so it can be a program name with args.
9919 set dummy pkg-config
; ac_word
=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9927 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9934 test -z "$as_dir" && as_dir
=.
9935 for ac_exec_ext
in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9949 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9950 if test -n "$PKG_CONFIG"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9952 $as_echo "$PKG_CONFIG" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9960 if test "$PKG_CONFIG" = "no" ; then
9963 PKG_CONFIG_MIN_VERSION
=0.9.0
9964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9966 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9968 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9970 $as_echo "yes" >&6; }
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9974 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9975 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9977 $as_echo "$GTK_CFLAGS" >&6; }
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9980 $as_echo_n "checking GTK_LIBS... " >&6; }
9981 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9983 $as_echo "$GTK_LIBS" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9989 ## If we have a custom action on failure, don't print errors, but
9990 ## do set a variable so people can do so.
9991 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10003 if test $succeeded = yes; then
10009 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10010 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10016 if test x
"$pkg_check_gtk" = xyes
; then
10020 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10021 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10022 LIBS
="$GTK_LIBS $LIBS"
10024 for ac_func
in gtk_main
10026 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10027 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10028 cat >>confdefs.h
<<_ACEOF
10029 #define HAVE_GTK_MAIN 1
10035 if test "${GTK_COMPILES}" != "yes"; then
10036 if test "$USE_X_TOOLKIT" != "maybe"; then
10037 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10042 $as_echo "#define USE_GTK 1" >>confdefs.h
10046 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10050 closing open displays. This is no problem if you just use
10051 one display, but if you use more than one and close one of them
10052 Emacs may crash." >&5
10053 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10054 closing open displays. This is no problem if you just use
10055 one display, but if you use more than one and close one of them
10056 Emacs may crash." >&2;}
10065 if test "${HAVE_GTK}" = "yes"; then
10067 if test "$with_toolkit_scroll_bars" != no
; then
10068 with_toolkit_scroll_bars
=yes
10071 HAVE_GTK_FILE_SELECTION
=no
10072 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10073 #include <gtk/gtk.h>
10075 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10076 HAVE_GTK_FILE_SELECTION
=yes
10078 HAVE_GTK_FILE_SELECTION
=no
10081 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10082 for ac_func
in gtk_file_selection_new
10084 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10085 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10086 cat >>confdefs.h
<<_ACEOF
10087 #define HAVE_GTK_FILE_SELECTION_NEW 1
10095 HAVE_GTK_AND_PTHREAD
=no
10096 for ac_header
in pthread.h
10098 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10099 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10100 cat >>confdefs.h
<<_ACEOF
10101 #define HAVE_PTHREAD_H 1
10108 if test "$ac_cv_header_pthread_h"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10110 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10111 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10114 ac_check_lib_save_LIBS
=$LIBS
10115 LIBS
="-lpthread $LIBS"
10116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10125 char pthread_self ();
10129 return pthread_self ();
10134 if ac_fn_c_try_link
"$LINENO"; then :
10135 ac_cv_lib_pthread_pthread_self
=yes
10137 ac_cv_lib_pthread_pthread_self
=no
10139 rm -f core conftest.err conftest.
$ac_objext \
10140 conftest
$ac_exeext conftest.
$ac_ext
10141 LIBS
=$ac_check_lib_save_LIBS
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10144 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10145 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10146 HAVE_GTK_AND_PTHREAD
=yes
10150 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10151 case "${canonical}" in
10153 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10156 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10160 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10161 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10162 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10163 gtk_orientable_set_orientation
10165 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10167 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10168 cat >>confdefs.h
<<_ACEOF
10169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 if test "${with_dbus}" = "yes"; then
10184 # Extract the first word of "pkg-config", so it can be a program name with args.
10185 set dummy pkg-config
; ac_word
=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10191 case $PKG_CONFIG in
10193 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10197 for as_dir
in $PATH
10200 test -z "$as_dir" && as_dir
=.
10201 for ac_exec_ext
in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10215 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10216 if test -n "$PKG_CONFIG"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10218 $as_echo "$PKG_CONFIG" >&6; }
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10226 if test "$PKG_CONFIG" = "no" ; then
10229 PKG_CONFIG_MIN_VERSION
=0.9.0
10230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10232 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10234 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10240 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10241 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10243 $as_echo "$DBUS_CFLAGS" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10246 $as_echo_n "checking DBUS_LIBS... " >&6; }
10247 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10249 $as_echo "$DBUS_LIBS" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10255 ## If we have a custom action on failure, don't print errors, but
10256 ## do set a variable so people can do so.
10257 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10269 if test $succeeded = yes; then
10275 if test "$HAVE_DBUS" = yes; then
10276 LIBS
="$LIBS $DBUS_LIBS"
10278 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10280 for ac_func
in dbus_watch_get_unix_fd
10282 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10283 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10284 cat >>confdefs.h
<<_ACEOF
10285 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10291 DBUS_OBJ
=dbusbind.o
10297 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10301 # Extract the first word of "pkg-config", so it can be a program name with args.
10302 set dummy pkg-config
; ac_word
=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10308 case $PKG_CONFIG in
10310 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10314 for as_dir
in $PATH
10317 test -z "$as_dir" && as_dir
=.
10318 for ac_exec_ext
in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10332 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10333 if test -n "$PKG_CONFIG"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10335 $as_echo "$PKG_CONFIG" >&6; }
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10343 if test "$PKG_CONFIG" = "no" ; then
10346 PKG_CONFIG_MIN_VERSION
=0.9.0
10347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10349 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10351 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10353 $as_echo "yes" >&6; }
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10357 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10358 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10360 $as_echo "$GCONF_CFLAGS" >&6; }
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10363 $as_echo_n "checking GCONF_LIBS... " >&6; }
10364 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10366 $as_echo "$GCONF_LIBS" >&6; }
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10372 ## If we have a custom action on failure, don't print errors, but
10373 ## do set a variable so people can do so.
10374 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10386 if test $succeeded = yes; then
10392 if test "$HAVE_GCONF" = yes; then
10394 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10396 for ac_func
in g_type_init
10398 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10399 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10400 cat >>confdefs.h
<<_ACEOF
10401 #define HAVE_G_TYPE_INIT 1
10412 if test "${with_selinux}" = "yes"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10414 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10415 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10418 ac_check_lib_save_LIBS
=$LIBS
10419 LIBS
="-lselinux $LIBS"
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10429 char lgetfilecon ();
10433 return lgetfilecon ();
10438 if ac_fn_c_try_link
"$LINENO"; then :
10439 ac_cv_lib_selinux_lgetfilecon
=yes
10441 ac_cv_lib_selinux_lgetfilecon
=no
10443 rm -f core conftest.err conftest.
$ac_objext \
10444 conftest
$ac_exeext conftest.
$ac_ext
10445 LIBS
=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10448 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10449 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10450 HAVE_LIBSELINUX
=yes
10455 if test "$HAVE_LIBSELINUX" = yes; then
10457 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10459 LIBSELINUX_LIBS
=-lselinux
10465 if test "${with_gnutls}" = "yes" ; then
10469 # Extract the first word of "pkg-config", so it can be a program name with args.
10470 set dummy pkg-config
; ac_word
=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10476 case $PKG_CONFIG in
10478 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10482 for as_dir
in $PATH
10485 test -z "$as_dir" && as_dir
=.
10486 for ac_exec_ext
in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10500 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10501 if test -n "$PKG_CONFIG"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10503 $as_echo "$PKG_CONFIG" >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10511 if test "$PKG_CONFIG" = "no" ; then
10514 PKG_CONFIG_MIN_VERSION
=0.9.0
10515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10517 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10519 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10525 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10526 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10528 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10531 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10532 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10534 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 LIBGNUTLS_CFLAGS
=""
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so.
10542 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10554 if test $succeeded = yes; then
10560 if test "${HAVE_GNUTLS}" = "yes"; then
10562 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10571 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10572 if test "$with_xaw3d" != no
; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10574 $as_echo_n "checking for xaw3d... " >&6; }
10575 if test "${emacs_cv_xaw3d+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 #include <X11/Intrinsic.h>
10582 #include <X11/Xaw3d/Simple.h>
10591 if ac_fn_c_try_link
"$LINENO"; then :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10593 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10594 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10597 ac_check_lib_save_LIBS
=$LIBS
10598 LIBS
="-lXaw3d $LIBS"
10599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10608 char XawScrollbarSetThumb ();
10612 return XawScrollbarSetThumb ();
10617 if ac_fn_c_try_link
"$LINENO"; then :
10618 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10620 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10622 rm -f core conftest.err conftest.
$ac_objext \
10623 conftest
$ac_exeext conftest.
$ac_ext
10624 LIBS
=$ac_check_lib_save_LIBS
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10627 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10628 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10637 rm -f core conftest.err conftest.
$ac_objext \
10638 conftest
$ac_exeext conftest.
$ac_ext
10644 if test $emacs_cv_xaw3d = yes; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10646 $as_echo "yes; using Lucid toolkit" >&6; }
10647 USE_X_TOOLKIT
=LUCID
10651 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10657 $as_echo_n "checking for libXaw... " >&6; }
10658 if test "${emacs_cv_xaw+set}" = set; then :
10659 $as_echo_n "(cached) " >&6
10661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10664 #include <X11/Intrinsic.h>
10665 #include <X11/Xaw/Simple.h>
10674 if ac_fn_c_try_link
"$LINENO"; then :
10679 rm -f core conftest.err conftest.
$ac_objext \
10680 conftest
$ac_exeext conftest.
$ac_ext
10683 if test $emacs_cv_xaw = yes; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10685 $as_echo "yes; using Lucid toolkit" >&6; }
10686 USE_X_TOOLKIT
=LUCID
10688 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10689 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10692 $as_echo "no; do not use toolkit by default" >&6; }
10698 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10701 if test "${USE_X_TOOLKIT}" != "none"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10703 $as_echo_n "checking X11 toolkit version... " >&6; }
10704 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <X11/Intrinsic.h>
10713 #if XtSpecificationRelease < 6
10721 if ac_fn_c_try_link
"$LINENO"; then :
10722 emacs_cv_x11_toolkit_version_6
=yes
10724 emacs_cv_x11_toolkit_version_6
=no
10726 rm -f core conftest.err conftest.
$ac_objext \
10727 conftest
$ac_exeext conftest.
$ac_ext
10730 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10731 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10733 $as_echo "6 or newer" >&6; }
10735 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10737 LIBXTR6
="-lSM -lICE"
10739 ## Use libw.a along with X11R6 Xt.
10740 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10744 $as_echo "before 6" >&6; }
10748 if test x
$HAVE_X11XTR6 = xyes
; then
10749 LIBS
="-lXt -lSM -lICE $LIBS"
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10754 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10755 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS
=$LIBS
10760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10769 char XmuConvertStandardSelection ();
10773 return XmuConvertStandardSelection ();
10778 if ac_fn_c_try_link
"$LINENO"; then :
10779 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10781 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10783 rm -f core conftest.err conftest.
$ac_objext \
10784 conftest
$ac_exeext conftest.
$ac_ext
10785 LIBS
=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10788 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10789 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
10790 cat >>confdefs.h
<<_ACEOF
10791 #define HAVE_LIBXMU 1
10798 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10804 ## These systems don't supply Xmu.
10806 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10811 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10812 if test "${HAVE_X11}" = "yes"; then
10813 if test "${USE_X_TOOLKIT}" != "none"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10815 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10816 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10819 ac_check_lib_save_LIBS
=$LIBS
10820 LIBS
="-lXext $LIBS"
10821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10830 char XShapeQueryExtension ();
10834 return XShapeQueryExtension ();
10839 if ac_fn_c_try_link
"$LINENO"; then :
10840 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10842 ac_cv_lib_Xext_XShapeQueryExtension
=no
10844 rm -f core conftest.err conftest.
$ac_objext \
10845 conftest
$ac_exeext conftest.
$ac_ext
10846 LIBS
=$ac_check_lib_save_LIBS
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10849 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10850 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
10851 cat >>confdefs.h
<<_ACEOF
10852 #define HAVE_LIBXEXT 1
10855 LIBS
="-lXext $LIBS"
10863 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10865 $as_echo_n "checking for Motif version 2.1... " >&6; }
10866 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10875 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10878 Motif version prior to 2.1.
10884 if ac_fn_c_try_compile
"$LINENO"; then :
10885 emacs_cv_motif_version_2_1
=yes
10887 emacs_cv_motif_version_2_1
=no
10889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10892 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10893 if test $emacs_cv_motif_version_2_1 = yes; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10895 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10896 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10899 ac_check_lib_save_LIBS
=$LIBS
10901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10910 char XpCreateContext ();
10914 return XpCreateContext ();
10919 if ac_fn_c_try_link
"$LINENO"; then :
10920 ac_cv_lib_Xp_XpCreateContext
=yes
10922 ac_cv_lib_Xp_XpCreateContext
=no
10924 rm -f core conftest.err conftest.
$ac_objext \
10925 conftest
$ac_exeext conftest.
$ac_ext
10926 LIBS
=$ac_check_lib_save_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10929 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10930 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10936 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10937 if test "${emacs_cv_lesstif+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 # We put this in CFLAGS temporarily to precede other -I options
10941 # that might be in CFLAGS temporarily.
10942 # We put this in CPPFLAGS where it precedes the other -I options.
10943 OLD_CPPFLAGS
=$CPPFLAGS
10945 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10946 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10958 if ac_fn_c_try_compile
"$LINENO"; then :
10959 emacs_cv_lesstif
=yes
10961 emacs_cv_lesstif
=no
10963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10966 $as_echo "$emacs_cv_lesstif" >&6; }
10967 if test $emacs_cv_lesstif = yes; then
10968 # Make sure this -I option remains in CPPFLAGS after it is set
10969 # back to REAL_CPPFLAGS.
10970 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10971 # have those other -I options anyway. Ultimately, having this
10972 # directory ultimately in CPPFLAGS will be enough.
10973 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10974 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10977 CPPFLAGS
=$OLD_CPPFLAGS
10983 USE_TOOLKIT_SCROLL_BARS
=no
10984 if test "${with_toolkit_scroll_bars}" != "no"; then
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10987 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10990 USE_TOOLKIT_SCROLL_BARS
=yes
10991 elif test "${HAVE_XAW3D}" = "yes"; then
10992 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10994 USE_TOOLKIT_SCROLL_BARS
=yes
10996 elif test "${HAVE_GTK}" = "yes"; then
10997 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10999 USE_TOOLKIT_SCROLL_BARS
=yes
11000 elif test "${HAVE_NS}" = "yes"; then
11001 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11003 USE_TOOLKIT_SCROLL_BARS
=yes
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 #include <X11/Xlib.h>
11011 #include <X11/Xresource.h>
11020 if ac_fn_c_try_compile
"$LINENO"; then :
11023 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11031 if test "${with_xim}" != "no"; then
11033 $as_echo "#define USE_XIM 1" >>confdefs.h
11038 if test "${HAVE_XIM}" != "no"; then
11039 late_CFLAGS
=$CFLAGS
11040 if test "$GCC" = yes; then
11041 CFLAGS
="$CFLAGS --pedantic-errors"
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 #include <X11/Xlib.h>
11047 #include <X11/Xresource.h>
11056 XPointer *client_data;
11058 /* If we're not using GCC, it's probably not XFree86, and this is
11059 probably right, but we can't use something like --pedantic-errors. */
11060 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11061 char*, XIMProc, XPointer*);
11063 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11069 if ac_fn_c_try_compile
"$LINENO"; then :
11070 emacs_cv_arg6_star
=yes
11072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11073 if test "$emacs_cv_arg6_star" = yes; then
11074 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11077 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11080 CFLAGS
=$late_CFLAGS
11083 ### Start of font-backend (under any platform) section.
11084 # (nothing here yet -- this is a placeholder)
11085 ### End of font-backend (under any platform) section.
11087 ### Start of font-backend (under X11) section.
11088 if test "${HAVE_X11}" = "yes"; then
11092 # Extract the first word of "pkg-config", so it can be a program name with args.
11093 set dummy pkg-config
; ac_word
=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11099 case $PKG_CONFIG in
11101 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11105 for as_dir
in $PATH
11108 test -z "$as_dir" && as_dir
=.
11109 for ac_exec_ext
in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11123 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11124 if test -n "$PKG_CONFIG"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11126 $as_echo "$PKG_CONFIG" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11134 if test "$PKG_CONFIG" = "no" ; then
11137 PKG_CONFIG_MIN_VERSION
=0.9.0
11138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11140 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11142 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11148 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11149 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11151 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11154 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11155 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11157 $as_echo "$FONTCONFIG_LIBS" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161 FONTCONFIG_CFLAGS
=""
11163 ## If we have a custom action on failure, don't print errors, but
11164 ## do set a variable so people can do so.
11165 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11177 if test $succeeded = yes; then
11184 ## Use -lXft if available, unless `--with-xft=no'.
11186 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11189 if test "x${with_xft}" != "xno"; then
11194 # Extract the first word of "pkg-config", so it can be a program name with args.
11195 set dummy pkg-config
; ac_word
=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 case $PKG_CONFIG in
11203 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11207 for as_dir
in $PATH
11210 test -z "$as_dir" && as_dir
=.
11211 for ac_exec_ext
in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11213 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11225 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11226 if test -n "$PKG_CONFIG"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11228 $as_echo "$PKG_CONFIG" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11236 if test "$PKG_CONFIG" = "no" ; then
11239 PKG_CONFIG_MIN_VERSION
=0.9.0
11240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11242 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11244 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11250 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11251 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11253 $as_echo "$XFT_CFLAGS" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11256 $as_echo_n "checking XFT_LIBS... " >&6; }
11257 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11259 $as_echo "$XFT_LIBS" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11265 ## If we have a custom action on failure, don't print errors, but
11266 ## do set a variable so people can do so.
11267 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11279 if test $succeeded = yes; then
11285 ## Because xftfont.c uses XRenderQueryExtension, we also
11286 ## need to link to -lXrender.
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11289 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11290 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11291 $as_echo_n "(cached) " >&6
11293 ac_check_lib_save_LIBS
=$LIBS
11294 LIBS
="-lXrender $LIBS"
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11304 char XRenderQueryExtension ();
11308 return XRenderQueryExtension ();
11313 if ac_fn_c_try_link
"$LINENO"; then :
11314 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11316 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 LIBS
=$ac_check_lib_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11323 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11324 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11328 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11329 OLD_CPPFLAGS
="$CPPFLAGS"
11330 OLD_CFLAGS
="$CFLAGS"
11332 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11333 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11334 XFT_LIBS
="-lXrender $XFT_LIBS"
11335 LIBS
="$XFT_LIBS $LIBS"
11336 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11337 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11339 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11340 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11343 ac_check_lib_save_LIBS
=$LIBS
11344 LIBS
="-lXft $XFT_LIBS $LIBS"
11345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11354 char XftFontOpen ();
11358 return XftFontOpen ();
11363 if ac_fn_c_try_link
"$LINENO"; then :
11364 ac_cv_lib_Xft_XftFontOpen
=yes
11366 ac_cv_lib_Xft_XftFontOpen
=no
11368 rm -f core conftest.err conftest.
$ac_objext \
11369 conftest
$ac_exeext conftest.
$ac_ext
11370 LIBS
=$ac_check_lib_save_LIBS
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11373 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11374 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11382 if test "${HAVE_XFT}" = "yes"; then
11384 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11387 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11389 CPPFLAGS
="$OLD_CPPFLAGS"
11390 CFLAGS
="$OLD_CFLAGS"
11392 fi # "${HAVE_XFT}" = "yes"
11393 fi # "$HAVE_XFT" != no
11394 fi # "x${with_xft}" != "xno"
11396 if test "$HAVE_XFT" != "yes"; then
11400 ## We used to allow building with FreeType and without Xft.
11401 ## However, the ftx font backend driver is not in good shape.
11402 HAVE_FREETYPE
=$HAVE_XFT
11405 if test "${HAVE_FREETYPE}" = "yes"; then
11407 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11409 if test "${with_libotf}" != "no"; then
11413 # Extract the first word of "pkg-config", so it can be a program name with args.
11414 set dummy pkg-config
; ac_word
=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11418 $as_echo_n "(cached) " >&6
11420 case $PKG_CONFIG in
11422 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11426 for as_dir
in $PATH
11429 test -z "$as_dir" && as_dir
=.
11430 for ac_exec_ext
in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11444 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11445 if test -n "$PKG_CONFIG"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11447 $as_echo "$PKG_CONFIG" >&6; }
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11455 if test "$PKG_CONFIG" = "no" ; then
11458 PKG_CONFIG_MIN_VERSION
=0.9.0
11459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11461 $as_echo_n "checking for libotf... " >&6; }
11463 if $PKG_CONFIG --exists "libotf" 2>&5; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465 $as_echo "yes" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11469 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11470 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11472 $as_echo "$LIBOTF_CFLAGS" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11475 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11476 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11478 $as_echo "$LIBOTF_LIBS" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11484 ## If we have a custom action on failure, don't print errors, but
11485 ## do set a variable so people can do so.
11486 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11498 if test $succeeded = yes; then
11504 if test "$HAVE_LIBOTF" = "yes"; then
11506 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11509 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11510 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11513 ac_check_lib_save_LIBS
=$LIBS
11515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11524 char OTF_get_variation_glyphs ();
11528 return OTF_get_variation_glyphs ();
11533 if ac_fn_c_try_link
"$LINENO"; then :
11534 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11536 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11538 rm -f core conftest.err conftest.
$ac_objext \
11539 conftest
$ac_exeext conftest.
$ac_ext
11540 LIBS
=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11543 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11544 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11545 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11547 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11550 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11552 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11560 if test "${HAVE_LIBOTF}" = yes; then
11561 if test "${with_m17n_flt}" != "no"; then
11565 # Extract the first word of "pkg-config", so it can be a program name with args.
11566 set dummy pkg-config
; ac_word
=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11572 case $PKG_CONFIG in
11574 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11578 for as_dir
in $PATH
11581 test -z "$as_dir" && as_dir
=.
11582 for ac_exec_ext
in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11584 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11596 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11597 if test -n "$PKG_CONFIG"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11599 $as_echo "$PKG_CONFIG" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11607 if test "$PKG_CONFIG" = "no" ; then
11610 PKG_CONFIG_MIN_VERSION
=0.9.0
11611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11613 $as_echo_n "checking for m17n-flt... " >&6; }
11615 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11621 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11622 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11624 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11627 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11628 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11630 $as_echo "$M17N_FLT_LIBS" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11636 ## If we have a custom action on failure, don't print errors, but
11637 ## do set a variable so people can do so.
11638 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11650 if test $succeeded = yes; then
11656 if test "$HAVE_M17N_FLT" = "yes"; then
11658 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11670 ### End of font-backend (under X11) section.
11681 ### Use -lXpm if available, unless `--with-xpm=no'.
11684 if test "${HAVE_X11}" = "yes"; then
11685 if test "${with_xpm}" != "no"; then
11686 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11687 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11689 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11690 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11693 ac_check_lib_save_LIBS
=$LIBS
11694 LIBS
="-lXpm -lX11 $LIBS"
11695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11704 char XpmReadFileToPixmap ();
11708 return XpmReadFileToPixmap ();
11713 if ac_fn_c_try_link
"$LINENO"; then :
11714 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11716 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11718 rm -f core conftest.err conftest.
$ac_objext \
11719 conftest
$ac_exeext conftest.
$ac_ext
11720 LIBS
=$ac_check_lib_save_LIBS
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11723 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11724 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
11731 if test "${HAVE_XPM}" = "yes"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11733 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #include "X11/xpm.h"
11737 #ifndef XpmReturnAllocPixels
11738 no_return_alloc_pixels
11742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11751 if test "${HAVE_XPM}" = "yes"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11761 if test "${HAVE_XPM}" = "yes"; then
11763 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11770 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11773 if test "${HAVE_X11}" = "yes"; then
11774 if test "${with_jpeg}" != "no"; then
11775 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11778 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11779 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11782 ac_check_lib_save_LIBS
=$LIBS
11783 LIBS
="-ljpeg $LIBS"
11784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11793 char jpeg_destroy_compress ();
11797 return jpeg_destroy_compress ();
11802 if ac_fn_c_try_link
"$LINENO"; then :
11803 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11805 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11807 rm -f core conftest.err conftest.
$ac_objext \
11808 conftest
$ac_exeext conftest.
$ac_ext
11809 LIBS
=$ac_check_lib_save_LIBS
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11812 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11813 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
11822 if test "${HAVE_JPEG}" = "yes"; then
11823 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 #include <jpeglib.h>
11828 version=JPEG_LIB_VERSION
11831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11832 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11833 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11837 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11843 if test "${HAVE_JPEG}" = "yes"; then
11849 ### Use -lpng if available, unless `--with-png=no'.
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_png}" != "no"; then
11854 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11855 # in /usr/include/libpng.
11856 for ac_header
in png.h libpng
/png.h
11858 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11859 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11860 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11861 cat >>confdefs.h
<<_ACEOF
11862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11871 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11872 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11875 ac_check_lib_save_LIBS
=$LIBS
11876 LIBS
="-lpng -lz -lm $LIBS"
11877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11886 char png_get_channels ();
11890 return png_get_channels ();
11895 if ac_fn_c_try_link
"$LINENO"; then :
11896 ac_cv_lib_png_png_get_channels
=yes
11898 ac_cv_lib_png_png_get_channels
=no
11900 rm -f core conftest.err conftest.
$ac_objext \
11901 conftest
$ac_exeext conftest.
$ac_ext
11902 LIBS
=$ac_check_lib_save_LIBS
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11905 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11906 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
11913 if test "${HAVE_PNG}" = "yes"; then
11915 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11917 LIBPNG
="-lpng -lz -lm"
11922 ### Use -ltiff if available, unless `--with-tiff=no'.
11925 if test "${HAVE_X11}" = "yes"; then
11926 if test "${with_tiff}" != "no"; then
11927 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11928 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
11930 # At least one tiff package requires the jpeg library.
11931 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11933 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11934 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS
=$LIBS
11938 LIBS
="-ltiff $tifflibs $LIBS"
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11948 char TIFFGetVersion ();
11952 return TIFFGetVersion ();
11957 if ac_fn_c_try_link
"$LINENO"; then :
11958 ac_cv_lib_tiff_TIFFGetVersion
=yes
11960 ac_cv_lib_tiff_TIFFGetVersion
=no
11962 rm -f core conftest.err conftest.
$ac_objext \
11963 conftest
$ac_exeext conftest.
$ac_ext
11964 LIBS
=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11967 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11968 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
11977 if test "${HAVE_TIFF}" = "yes"; then
11979 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11986 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11989 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11990 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
11992 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11993 # Earlier versions can crash Emacs.
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11995 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11996 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11999 ac_check_lib_save_LIBS
=$LIBS
12001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12010 char EGifPutExtensionLast ();
12014 return EGifPutExtensionLast ();
12019 if ac_fn_c_try_link
"$LINENO"; then :
12020 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12022 ac_cv_lib_gif_EGifPutExtensionLast
=no
12024 rm -f core conftest.err conftest.
$ac_objext \
12025 conftest
$ac_exeext conftest.
$ac_ext
12026 LIBS
=$ac_check_lib_save_LIBS
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12029 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12030 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12040 if test "$HAVE_GIF" = yes; then
12042 elif test "$HAVE_GIF" = maybe
; then
12043 # If gif_lib.h but no libgif, try libungif.
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12045 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12046 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 ac_check_lib_save_LIBS
=$LIBS
12050 LIBS
="-lungif $LIBS"
12051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12060 char EGifPutExtensionLast ();
12064 return EGifPutExtensionLast ();
12069 if ac_fn_c_try_link
"$LINENO"; then :
12070 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12072 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12074 rm -f core conftest.err conftest.
$ac_objext \
12075 conftest
$ac_exeext conftest.
$ac_ext
12076 LIBS
=$ac_check_lib_save_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12079 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12080 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12086 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12089 if test "${HAVE_GIF}" = "yes"; then
12091 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12097 if test "${HAVE_X11}" = "yes"; then
12100 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12101 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12102 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12103 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12104 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12105 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12106 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12107 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12108 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12109 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12111 if test "X${MISSING}" != X
; then
12112 as_fn_error $?
"The following required libraries were not found:
12114 Maybe some development libraries/packages are missing?
12115 If you don't want to link with them give
12117 as options to configure" "$LINENO" 5
12121 ### Use -lgpm if available, unless `--with-gpm=no'.
12125 if test "${with_gpm}" != "no"; then
12126 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12127 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12129 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12130 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12133 ac_check_lib_save_LIBS
=$LIBS
12135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12138 /* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12148 return Gpm_Open ();
12153 if ac_fn_c_try_link
"$LINENO"; then :
12154 ac_cv_lib_gpm_Gpm_Open
=yes
12156 ac_cv_lib_gpm_Gpm_Open
=no
12158 rm -f core conftest.err conftest.
$ac_objext \
12159 conftest
$ac_exeext conftest.
$ac_ext
12160 LIBS
=$ac_check_lib_save_LIBS
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12163 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12164 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12172 if test "${HAVE_GPM}" = "yes"; then
12174 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12177 ## May be reset below.
12178 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12183 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12184 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12186 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12193 ### Use NeXTstep API to implement GUI.
12194 if test "${HAVE_NS}" = "yes"; then
12196 $as_echo "#define HAVE_NS 1" >>confdefs.h
12198 if test "${NS_IMPL_COCOA}" = "yes"; then
12200 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12204 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12206 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12208 # See also .m.o rule in Makefile.in */
12209 # FIXME: are all these flags really needed? Document here why. */
12210 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12211 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12213 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12215 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12218 # We also have mouse menus.
12224 ### Use session management (-lSM -lICE) if available
12227 if test "${HAVE_X11}" = "yes"; then
12228 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12231 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12232 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12235 ac_check_lib_save_LIBS
=$LIBS
12236 LIBS
="-lSM -lICE $LIBS"
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12246 char SmcOpenConnection ();
12250 return SmcOpenConnection ();
12255 if ac_fn_c_try_link
"$LINENO"; then :
12256 ac_cv_lib_SM_SmcOpenConnection
=yes
12258 ac_cv_lib_SM_SmcOpenConnection
=no
12260 rm -f core conftest.err conftest.
$ac_objext \
12261 conftest
$ac_exeext conftest.
$ac_ext
12262 LIBS
=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12265 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12266 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12274 if test "${HAVE_X_SM}" = "yes"; then
12276 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12278 LIBXSM
="-lSM -lICE"
12281 *) LIBS
="$LIBXSM $LIBS" ;;
12287 ### Use libxml (-lxml2) if available
12288 if test "${with_xml2}" != "no"; then
12289 ### I'm not sure what the version number should be, so I just guessed.
12293 # Extract the first word of "pkg-config", so it can be a program name with args.
12294 set dummy pkg-config
; ac_word
=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 case $PKG_CONFIG in
12302 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12306 for as_dir
in $PATH
12309 test -z "$as_dir" && as_dir
=.
12310 for ac_exec_ext
in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12324 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12325 if test -n "$PKG_CONFIG"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12327 $as_echo "$PKG_CONFIG" >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12335 if test "$PKG_CONFIG" = "no" ; then
12338 PKG_CONFIG_MIN_VERSION
=0.9.0
12339 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12341 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12343 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12345 $as_echo "yes" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12349 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12350 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12352 $as_echo "$LIBXML2_CFLAGS" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12355 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12356 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12358 $as_echo "$LIBXML2_LIBS" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12364 ## If we have a custom action on failure, don't print errors, but
12365 ## do set a variable so people can do so.
12366 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12373 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12374 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12378 if test $succeeded = yes; then
12384 if test "${HAVE_LIBXML2}" = "yes"; then
12385 LIBS
="$LIBXML2_LIBS $LIBS"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12387 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12388 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12391 ac_check_lib_save_LIBS
=$LIBS
12392 LIBS
="-lxml2 $LIBS"
12393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12402 char htmlReadMemory ();
12406 return htmlReadMemory ();
12411 if ac_fn_c_try_link
"$LINENO"; then :
12412 ac_cv_lib_xml2_htmlReadMemory
=yes
12414 ac_cv_lib_xml2_htmlReadMemory
=no
12416 rm -f core conftest.err conftest.
$ac_objext \
12417 conftest
$ac_exeext conftest.
$ac_ext
12418 LIBS
=$ac_check_lib_save_LIBS
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12421 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12422 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12428 if test "${HAVE_LIBXML2}" = "yes"; then
12430 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12441 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12443 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12444 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12458 if ac_fn_c_try_link
"$LINENO"; then :
12459 emacs_cv_netdb_declares_h_errno
=yes
12461 emacs_cv_netdb_declares_h_errno
=no
12463 rm -f core conftest.err conftest.
$ac_objext \
12464 conftest
$ac_exeext conftest.
$ac_ext
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12467 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12468 if test $emacs_cv_netdb_declares_h_errno = yes; then
12470 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12475 # for constant arguments. Useless!
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12477 $as_echo_n "checking for working alloca.h... " >&6; }
12478 if test "${ac_cv_working_alloca_h+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 #include <alloca.h>
12487 char *p = (char *) alloca (2 * sizeof (int));
12493 if ac_fn_c_try_link
"$LINENO"; then :
12494 ac_cv_working_alloca_h
=yes
12496 ac_cv_working_alloca_h
=no
12498 rm -f core conftest.err conftest.
$ac_objext \
12499 conftest
$ac_exeext conftest.
$ac_ext
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12502 $as_echo "$ac_cv_working_alloca_h" >&6; }
12503 if test $ac_cv_working_alloca_h = yes; then
12505 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12510 $as_echo_n "checking for alloca... " >&6; }
12511 if test "${ac_cv_func_alloca_works+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 # define alloca __builtin_alloca
12520 # include <malloc.h>
12521 # define alloca _alloca
12523 # ifdef HAVE_ALLOCA_H
12524 # include <alloca.h>
12529 # ifndef alloca /* predefined by HP cc +Olibcalls */
12540 char *p = (char *) alloca (1);
12546 if ac_fn_c_try_link
"$LINENO"; then :
12547 ac_cv_func_alloca_works
=yes
12549 ac_cv_func_alloca_works
=no
12551 rm -f core conftest.err conftest.
$ac_objext \
12552 conftest
$ac_exeext conftest.
$ac_ext
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12555 $as_echo "$ac_cv_func_alloca_works" >&6; }
12557 if test $ac_cv_func_alloca_works = yes; then
12559 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12563 # that cause trouble. Some versions do not even contain alloca or
12564 # contain a buggy version. If you still want to use their alloca,
12565 # use ar to extract alloca.o from them instead of compiling alloca.c.
12567 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12569 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12573 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12574 if test "${ac_cv_os_cray+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #if defined CRAY && ! defined CRAY2
12586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "webecray" >/dev
/null
2>&1; then :
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12596 $as_echo "$ac_cv_os_cray" >&6; }
12597 if test $ac_cv_os_cray = yes; then
12598 for ac_func
in _getb67 GETB67 getb67
; do
12599 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12601 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12603 cat >>confdefs.h
<<_ACEOF
12604 #define CRAY_STACKSEG_END $ac_func
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12614 $as_echo_n "checking stack direction for C alloca... " >&6; }
12615 if test "${ac_cv_c_stack_direction+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12618 if test "$cross_compiling" = yes; then :
12619 ac_cv_c_stack_direction
=0
12621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 $ac_includes_default
12625 find_stack_direction ()
12627 static char *addr = 0;
12632 return find_stack_direction ();
12635 return (&dummy > addr) ? 1 : -1;
12641 return find_stack_direction () < 0;
12644 if ac_fn_c_try_run
"$LINENO"; then :
12645 ac_cv_c_stack_direction
=1
12647 ac_cv_c_stack_direction
=-1
12649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12655 $as_echo "$ac_cv_c_stack_direction" >&6; }
12656 cat >>confdefs.h
<<_ACEOF
12657 #define STACK_DIRECTION $ac_cv_c_stack_direction
12664 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12665 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12668 # fmod, logb, and frexp are found in -lm on most systems.
12669 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12671 $as_echo_n "checking for sqrt in -lm... " >&6; }
12672 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12675 ac_check_lib_save_LIBS
=$LIBS
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12695 if ac_fn_c_try_link
"$LINENO"; then :
12696 ac_cv_lib_m_sqrt
=yes
12698 ac_cv_lib_m_sqrt
=no
12700 rm -f core conftest.err conftest.
$ac_objext \
12701 conftest
$ac_exeext conftest.
$ac_ext
12702 LIBS
=$ac_check_lib_save_LIBS
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12705 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12706 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12707 cat >>confdefs.h
<<_ACEOF
12708 #define HAVE_LIBM 1
12716 # Check for mail-locking functions in a "mail" library. Probably this should
12717 # have the same check as for liblockfile below.
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12719 $as_echo_n "checking for maillock in -lmail... " >&6; }
12720 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12723 ac_check_lib_save_LIBS
=$LIBS
12724 LIBS
="-lmail $LIBS"
12725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12738 return maillock ();
12743 if ac_fn_c_try_link
"$LINENO"; then :
12744 ac_cv_lib_mail_maillock
=yes
12746 ac_cv_lib_mail_maillock
=no
12748 rm -f core conftest.err conftest.
$ac_objext \
12749 conftest
$ac_exeext conftest.
$ac_ext
12750 LIBS
=$ac_check_lib_save_LIBS
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12753 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12754 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12760 if test $have_mail = yes; then
12762 LIBS
="$LIBS_MAIL $LIBS"
12764 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12770 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12771 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12774 ac_check_lib_save_LIBS
=$LIBS
12775 LIBS
="-llockfile $LIBS"
12776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12789 return maillock ();
12794 if ac_fn_c_try_link
"$LINENO"; then :
12795 ac_cv_lib_lockfile_maillock
=yes
12797 ac_cv_lib_lockfile_maillock
=no
12799 rm -f core conftest.err conftest.
$ac_objext \
12800 conftest
$ac_exeext conftest.
$ac_ext
12801 LIBS
=$ac_check_lib_save_LIBS
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12804 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12805 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12811 if test $have_lockfile = yes; then
12812 LIBS_MAIL
=-llockfile
12813 LIBS
="$LIBS_MAIL $LIBS"
12815 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12818 # If we have the shared liblockfile, assume we must use it for mail
12819 # locking (e.g. Debian). If we couldn't link against liblockfile
12820 # (no liblockfile.a installed), ensure that we don't need to.
12821 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12822 set dummy liblockfile.so
; ac_word
=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12828 if test -n "$liblockfile"; then
12829 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12832 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12833 for as_dir
in $as_dummy
12836 test -z "$as_dir" && as_dir
=.
12837 for ac_exec_ext
in '' $ac_executable_extensions; do
12838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12839 ac_cv_prog_liblockfile
="yes"
12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12850 liblockfile
=$ac_cv_prog_liblockfile
12851 if test -n "$liblockfile"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12853 $as_echo "$liblockfile" >&6; }
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12860 if test $ac_cv_prog_liblockfile = yes; then
12861 as_fn_error $?
"Shared liblockfile found but can't link against it.
12862 This probably means that movemail could lose mail.
12863 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12866 for ac_func
in touchlock
12868 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12869 if test "x$ac_cv_func_touchlock" = x
""yes; then :
12870 cat >>confdefs.h
<<_ACEOF
12871 #define HAVE_TOUCHLOCK 1
12877 for ac_header
in maillock.h
12879 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12880 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
12881 cat >>confdefs.h
<<_ACEOF
12882 #define HAVE_MAILLOCK_H 1
12891 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12892 ## interlock access to the mail spool. The alternative is a lock file named
12893 ## /usr/spool/mail/$USER.lock.
12896 aix4-2
) mail_lock
="lockf" ;;
12898 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12900 ## On GNU/Linux systems, both methods are used by various mail programs.
12901 ## I assume most people are using newer mailers that have heard of flock.
12902 ## Change this if you need to.
12903 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12904 ## configure gets the right answers, and that means *NOT* using flock.
12905 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12906 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12907 ## Debian maintainer hasn't provided a clean fix for Emacs.
12908 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12909 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12910 ## correct logic. -- fx
12911 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12912 ## liblockfile is a Free Software replacement for libmail, used on
12913 ## Debian systems and elsewhere. -rfr.
12916 if test $have_mail = yes ||
test $have_lockfile = yes; then
12917 test $ac_cv_header_maillock_h = yes && mail_lock
=no
12923 case "$mail_lock" in
12925 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12929 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12932 *) BLESSMAIL_TARGET
="need-blessmail" ;;
12937 for ac_func
in gethostname getdomainname dup2 \
12938 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
12939 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12940 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
12941 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12942 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12943 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12944 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12945 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12946 cfmakeraw cfsetspeed isnan copysign __executable_start
12948 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12950 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12951 cat >>confdefs.h
<<_ACEOF
12952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12960 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12961 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12970 __builtin_unwind_init ();
12975 if ac_fn_c_try_link
"$LINENO"; then :
12976 emacs_cv_func___builtin_unwind_init
=yes
12978 emacs_cv_func___builtin_unwind_init
=no
12980 rm -f core conftest.err conftest.
$ac_objext \
12981 conftest
$ac_exeext conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12984 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12985 if test $emacs_cv_func___builtin_unwind_init = yes; then
12987 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12991 for ac_header
in sys
/un.h
12993 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
12995 cat >>confdefs.h
<<_ACEOF
12996 #define HAVE_SYS_UN_H 1
13004 ac_have_func
=no
# yes means we've found a way to get the load average.
13006 # Make sure getloadavg.c is where it belongs, at configure-time.
13007 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13008 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13012 # Check for getloadavg, but be sure not to touch the cache variable.
13013 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13014 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
13019 ) && ac_have_func
=yes
13021 # On HPUX9, an unprivileged user can get load averages through this function.
13022 for ac_func
in pstat_getdynamic
13024 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13025 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
13026 cat >>confdefs.h
<<_ACEOF
13027 #define HAVE_PSTAT_GETDYNAMIC 1
13034 # Solaris has libkstat which does not require root.
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13036 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13037 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13040 ac_check_lib_save_LIBS
=$LIBS
13041 LIBS
="-lkstat $LIBS"
13042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13051 char kstat_open ();
13055 return kstat_open ();
13060 if ac_fn_c_try_link
"$LINENO"; then :
13061 ac_cv_lib_kstat_kstat_open
=yes
13063 ac_cv_lib_kstat_kstat_open
=no
13065 rm -f core conftest.err conftest.
$ac_objext \
13066 conftest
$ac_exeext conftest.
$ac_ext
13067 LIBS
=$ac_check_lib_save_LIBS
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13070 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13071 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
13072 cat >>confdefs.h
<<_ACEOF
13073 #define HAVE_LIBKSTAT 1
13076 LIBS
="-lkstat $LIBS"
13080 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13082 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13083 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13084 # to get the right answer into the cache.
13085 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13086 if test $ac_have_func = no
; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13088 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13092 ac_check_lib_save_LIBS
=$LIBS
13094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13107 return elf_begin ();
13112 if ac_fn_c_try_link
"$LINENO"; then :
13113 ac_cv_lib_elf_elf_begin
=yes
13115 ac_cv_lib_elf_elf_begin
=no
13117 rm -f core conftest.err conftest.
$ac_objext \
13118 conftest
$ac_exeext conftest.
$ac_ext
13119 LIBS
=$ac_check_lib_save_LIBS
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13122 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13123 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
13128 if test $ac_have_func = no
; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13130 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13131 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13134 ac_check_lib_save_LIBS
=$LIBS
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13149 return kvm_open ();
13154 if ac_fn_c_try_link
"$LINENO"; then :
13155 ac_cv_lib_kvm_kvm_open
=yes
13157 ac_cv_lib_kvm_kvm_open
=no
13159 rm -f core conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13161 LIBS
=$ac_check_lib_save_LIBS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13164 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13165 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
13169 # Check for the 4.4BSD definition of getloadavg.
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13171 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13172 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13175 ac_check_lib_save_LIBS
=$LIBS
13176 LIBS
="-lutil $LIBS"
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13186 char getloadavg ();
13190 return getloadavg ();
13195 if ac_fn_c_try_link
"$LINENO"; then :
13196 ac_cv_lib_util_getloadavg
=yes
13198 ac_cv_lib_util_getloadavg
=no
13200 rm -f core conftest.err conftest.
$ac_objext \
13201 conftest
$ac_exeext conftest.
$ac_ext
13202 LIBS
=$ac_check_lib_save_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13205 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13206 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
13207 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13212 if test $ac_have_func = no
; then
13213 # There is a commonly available library for RS/6000 AIX.
13214 # Since it is not a standard part of AIX, it might be installed locally.
13215 ac_getloadavg_LIBS
=$LIBS
13216 LIBS
="-L/usr/local/lib $LIBS"
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13218 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13219 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13222 ac_check_lib_save_LIBS
=$LIBS
13223 LIBS
="-lgetloadavg $LIBS"
13224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13233 char getloadavg ();
13237 return getloadavg ();
13242 if ac_fn_c_try_link
"$LINENO"; then :
13243 ac_cv_lib_getloadavg_getloadavg
=yes
13245 ac_cv_lib_getloadavg_getloadavg
=no
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13249 LIBS
=$ac_check_lib_save_LIBS
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13252 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13253 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
13254 LIBS
="-lgetloadavg $LIBS"
13256 LIBS
=$ac_getloadavg_LIBS
13261 # Make sure it is really in the library, if we think we found it,
13262 # otherwise set up the replacement function.
13263 for ac_func
in getloadavg
13265 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13266 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_GETLOADAVG 1
13272 case " $LIBOBJS " in
13273 *" getloadavg.$ac_objext "* ) ;;
13274 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13279 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13281 # Figure out what our getloadavg.c needs.
13283 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13284 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
13287 $as_echo "#define DGUX 1" >>confdefs.h
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13290 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13291 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
13294 ac_check_lib_save_LIBS
=$LIBS
13296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13305 char dg_sys_info ();
13309 return dg_sys_info ();
13314 if ac_fn_c_try_link
"$LINENO"; then :
13315 ac_cv_lib_dgc_dg_sys_info
=yes
13317 ac_cv_lib_dgc_dg_sys_info
=no
13319 rm -f core conftest.err conftest.
$ac_objext \
13320 conftest
$ac_exeext conftest.
$ac_ext
13321 LIBS
=$ac_check_lib_save_LIBS
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13324 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13325 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
13326 cat >>confdefs.h
<<_ACEOF
13327 #define HAVE_LIBDGC 1
13338 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13339 if test "x$ac_cv_header_locale_h" = x
""yes; then :
13344 for ac_func
in setlocale
13346 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13347 if test "x$ac_cv_func_setlocale" = x
""yes; then :
13348 cat >>confdefs.h
<<_ACEOF
13349 #define HAVE_SETLOCALE 1
13356 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13357 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13358 # Irix 4.0.5F has the header but not the library.
13359 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13362 $as_echo "#define SVR4 1" >>confdefs.h
13366 if test $ac_have_func = no
; then
13367 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
13371 $as_echo "#define UMAX 1" >>confdefs.h
13374 $as_echo "#define UMAX4_3 1" >>confdefs.h
13381 if test $ac_have_func = no
; then
13382 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13383 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
13384 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13391 if test $ac_have_func = no
; then
13392 for ac_header
in mach
/mach.h
13394 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13395 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
13396 cat >>confdefs.h
<<_ACEOF
13397 #define HAVE_MACH_MACH_H 1
13406 for ac_header
in nlist.h
13408 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13409 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
13410 cat >>confdefs.h
<<_ACEOF
13411 #define HAVE_NLIST_H 1
13413 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13415 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
13417 cat >>confdefs.h
<<_ACEOF
13418 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13422 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13435 # Some definitions of getloadavg require that the program be installed setgid.
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13437 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13438 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13444 #ifdef LDAV_PRIVILEGED
13445 Yowza Am I SETGID yet
13448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13449 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
13450 ac_cv_func_getloadavg_setgid
=yes
13452 ac_cv_func_getloadavg_setgid
=no
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13458 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13459 if test $ac_cv_func_getloadavg_setgid = yes; then
13462 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13468 if test $ac_cv_func_getloadavg_setgid = yes; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13470 $as_echo_n "checking group of /dev/kmem... " >&6; }
13471 if test "${ac_cv_group_kmem+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13474 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13475 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13476 # If we got an error (system does not support symlinks), try without -L.
13477 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13478 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
13479 | sed -ne 's/[ ][ ]*/ /g;
13480 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13485 $as_echo "$ac_cv_group_kmem" >&6; }
13486 KMEM_GROUP
=$ac_cv_group_kmem
13488 if test "x$ac_save_LIBS" = x
; then
13489 GETLOADAVG_LIBS
=$LIBS
13491 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13498 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13499 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <sys/types.h> /* for off_t */
13510 int (*fp) (FILE *, off_t, int) = fseeko;
13511 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13516 if ac_fn_c_try_link
"$LINENO"; then :
13517 ac_cv_sys_largefile_source
=no
; break
13519 rm -f core conftest.err conftest.
$ac_objext \
13520 conftest
$ac_exeext conftest.
$ac_ext
13521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 #define _LARGEFILE_SOURCE 1
13524 #include <sys/types.h> /* for off_t */
13529 int (*fp) (FILE *, off_t, int) = fseeko;
13530 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13535 if ac_fn_c_try_link
"$LINENO"; then :
13536 ac_cv_sys_largefile_source
=1; break
13538 rm -f core conftest.err conftest.
$ac_objext \
13539 conftest
$ac_exeext conftest.
$ac_ext
13540 ac_cv_sys_largefile_source
=unknown
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13545 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13546 case $ac_cv_sys_largefile_source in #(
13549 cat >>confdefs.h
<<_ACEOF
13550 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13556 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13557 # in glibc 2.1.3, but that breaks too many other things.
13558 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13559 if test $ac_cv_sys_largefile_source != unknown
; then
13561 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13567 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13568 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13571 # Use it with a single arg.
13572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 $ac_includes_default
13583 if ac_fn_c_try_compile
"$LINENO"; then :
13584 ac_cv_func_getpgrp_void
=no
13586 ac_cv_func_getpgrp_void
=yes
13588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13592 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13593 if test $ac_cv_func_getpgrp_void = yes; then
13595 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13600 # Configure gnulib.
13611 LIBC_FATAL_STDERR_
=1
13612 export LIBC_FATAL_STDERR_
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13616 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13617 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 /* On HP-UX before 11.23, strtold returns a struct instead of
13623 long double. Reject implementations like that, by requiring
13624 compatibility with the C99 prototype. */
13625 #include <stdlib.h>
13626 static long double (*p) (char const *, char **) = strtold;
13628 test (char const *nptr, char **endptr)
13631 r = strtold (nptr, endptr);
13637 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13642 if ac_fn_c_try_link
"$LINENO"; then :
13643 gl_cv_func_c99_strtold
=yes
13645 gl_cv_func_c99_strtold
=no
13647 rm -f core conftest.err conftest.
$ac_objext \
13648 conftest
$ac_exeext conftest.
$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13651 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13652 if test $gl_cv_func_c99_strtold = yes; then
13654 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13664 GNULIB_EUIDACCESS
=0;
13665 GNULIB_FACCESSAT
=0;
13669 GNULIB_FTRUNCATE
=0;
13671 GNULIB_GETDOMAINNAME
=0;
13672 GNULIB_GETDTABLESIZE
=0;
13673 GNULIB_GETGROUPS
=0;
13674 GNULIB_GETHOSTNAME
=0;
13676 GNULIB_GETLOGIN_R
=0;
13677 GNULIB_GETPAGESIZE
=0;
13678 GNULIB_GETUSERSHELL
=0;
13688 GNULIB_READLINKAT
=0;
13692 GNULIB_SYMLINKAT
=0;
13693 GNULIB_TTYNAME_R
=0;
13694 GNULIB_UNISTD_H_GETOPT
=0;
13695 GNULIB_UNISTD_H_SIGPIPE
=0;
13709 HAVE_GETDTABLESIZE
=1;
13711 HAVE_GETHOSTNAME
=1;
13713 HAVE_GETPAGESIZE
=1;
13728 HAVE_DECL_ENVIRON
=1;
13729 HAVE_DECL_FCHDIR
=1;
13730 HAVE_DECL_GETDOMAINNAME
=1;
13731 HAVE_DECL_GETLOGIN_R
=1;
13732 HAVE_DECL_GETPAGESIZE
=1;
13733 HAVE_DECL_GETUSERSHELL
=1;
13734 HAVE_DECL_TTYNAME_R
=1;
13736 HAVE_SYS_PARAM_H
=0;
13741 REPLACE_FCHOWNAT
=0;
13743 REPLACE_GETDOMAINNAME
=0;
13744 REPLACE_GETLOGIN_R
=0;
13745 REPLACE_GETGROUPS
=0;
13746 REPLACE_GETPAGESIZE
=0;
13753 REPLACE_READLINK
=0;
13757 REPLACE_TTYNAME_R
=0;
13759 REPLACE_UNLINKAT
=0;
13762 UNISTD_H_HAVE_WINSOCK2_H
=0;
13763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13769 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13770 if test "${gl_cv_have_include_next+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13773 rm -rf conftestd1a conftestd1b conftestd2
13774 mkdir conftestd1a conftestd1b conftestd2
13775 cat <<EOF > conftestd1a/conftest.h
13776 #define DEFINED_IN_CONFTESTD1
13777 #include_next <conftest.h>
13778 #ifdef DEFINED_IN_CONFTESTD2
13781 #error "include_next doesn't work"
13784 cat <<EOF > conftestd1b/conftest.h
13785 #define DEFINED_IN_CONFTESTD1
13787 #include_next <conftest.h>
13788 #ifdef DEFINED_IN_CONFTESTD2
13791 #error "include_next doesn't work"
13794 cat <<EOF > conftestd2/conftest.h
13795 #ifndef DEFINED_IN_CONFTESTD1
13796 #error "include_next test doesn't work"
13798 #define DEFINED_IN_CONFTESTD2
13800 gl_save_CPPFLAGS
="$CPPFLAGS"
13801 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <conftest.h>
13806 if ac_fn_c_try_compile
"$LINENO"; then :
13807 gl_cv_have_include_next
=yes
13809 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 #include <conftest.h>
13814 if ac_fn_c_try_compile
"$LINENO"; then :
13815 gl_cv_have_include_next
=buggy
13817 gl_cv_have_include_next
=no
13819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13823 CPPFLAGS
="$gl_save_CPPFLAGS"
13824 rm -rf conftestd1a conftestd1b conftestd2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13828 $as_echo "$gl_cv_have_include_next" >&6; }
13829 PRAGMA_SYSTEM_HEADER
=
13830 if test $gl_cv_have_include_next = yes; then
13831 INCLUDE_NEXT
=include_next
13832 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13833 if test -n "$GCC"; then
13834 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13837 if test $gl_cv_have_include_next = buggy
; then
13838 INCLUDE_NEXT
=include
13839 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13841 INCLUDE_NEXT
=include
13842 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13849 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13850 if test "${gl_cv_pragma_columns+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862 $EGREP "choke me" >/dev
/null
2>&1; then :
13863 gl_cv_pragma_columns
=yes
13865 gl_cv_pragma_columns
=no
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13872 $as_echo "$gl_cv_pragma_columns" >&6; }
13873 if test $gl_cv_pragma_columns = yes; then
13874 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13895 if test $gl_cv_have_include_next = yes; then
13896 gl_cv_next_getopt_h
='<'getopt.h
'>'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13899 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13900 if test "${gl_cv_next_getopt_h+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13904 if test $ac_cv_header_getopt_h = yes; then
13907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #include <getopt.h>
13913 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13914 *) gl_absname_cpp
="$ac_cpp" ;;
13916 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13917 sed -n '\#/getopt.h#{
13918 s#.*"\(.*/getopt.h\)".*#\1#
13924 gl_cv_next_getopt_h
='<'getopt.h
'>'
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13930 $as_echo "$gl_cv_next_getopt_h" >&6; }
13932 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
13934 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13936 gl_next_as_first_directive
='<'getopt.h
'>'
13938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13939 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13941 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13946 if test $ac_cv_header_getopt_h = yes; then
13955 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13956 for ac_header
in getopt.h
13958 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13959 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
13960 cat >>confdefs.h
<<_ACEOF
13961 #define HAVE_GETOPT_H 1
13965 gl_replace_getopt
=yes
13972 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13973 for ac_func
in getopt_long_only
13975 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13976 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
13977 cat >>confdefs.h
<<_ACEOF
13978 #define HAVE_GETOPT_LONG_ONLY 1
13982 gl_replace_getopt
=yes
13988 if test -z "$gl_replace_getopt"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13990 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13991 if test "${gl_cv_func_getopt_posix+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <unistd.h>
14001 int *p = &optreset; return optreset;
14006 if ac_fn_c_try_compile
"$LINENO"; then :
14009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <getopt.h>
14015 return !getopt_clip;
14020 if ac_fn_c_try_compile
"$LINENO"; then :
14025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14029 gl_save_CPPFLAGS
=$CPPFLAGS
14030 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14031 if test "$cross_compiling" = yes; then :
14033 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14034 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14035 *) gl_cv_func_getopt_posix
="guessing yes";;
14039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 #include <unistd.h>
14043 #include <stdlib.h>
14044 #include <string.h>
14054 argv[argc++] = "program";
14055 argv[argc++] = "-a";
14056 argv[argc++] = "foo";
14057 argv[argc++] = "bar";
14059 optind = OPTIND_MIN;
14062 c = getopt (argc, argv, "ab");
14065 c = getopt (argc, argv, "ab");
14068 if (!(optind == 2))
14071 /* Some internal state exists at this point. */
14077 argv[argc++] = "program";
14078 argv[argc++] = "donald";
14079 argv[argc++] = "-p";
14080 argv[argc++] = "billy";
14081 argv[argc++] = "duck";
14082 argv[argc++] = "-a";
14083 argv[argc++] = "bar";
14085 optind = OPTIND_MIN;
14088 c = getopt (argc, argv, "+abp:q:");
14091 if (!(strcmp (argv[0], "program") == 0))
14093 if (!(strcmp (argv[1], "donald") == 0))
14095 if (!(strcmp (argv[2], "-p") == 0))
14097 if (!(strcmp (argv[3], "billy") == 0))
14099 if (!(strcmp (argv[4], "duck") == 0))
14101 if (!(strcmp (argv[5], "-a") == 0))
14103 if (!(strcmp (argv[6], "bar") == 0))
14105 if (!(optind == 1))
14108 /* Detect MacOS 10.5, AIX 7.1 bug. */
14110 char *argv[3] = { "program", "-ab", NULL };
14111 optind = OPTIND_MIN;
14113 if (getopt (2, argv, "ab:") != 'a')
14115 if (getopt (2, argv, "ab:") != '?')
14127 if ac_fn_c_try_run
"$LINENO"; then :
14128 gl_cv_func_getopt_posix
=yes
14130 gl_cv_func_getopt_posix
=no
14132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14136 CPPFLAGS
=$gl_save_CPPFLAGS
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14140 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14141 case "$gl_cv_func_getopt_posix" in
14142 *no
) gl_replace_getopt
=yes ;;
14146 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14148 $as_echo_n "checking for working GNU getopt function... " >&6; }
14149 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14152 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14153 # optstring is necessary for programs like m4 that have POSIX-mandated
14154 # semantics for supporting options interspersed with files.
14155 # Also, since getopt_long is a GNU extension, we require optind=0.
14156 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14157 # so take care to revert to the correct (non-)export state.
14158 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14159 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14160 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14161 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14162 *) gl_had_POSIXLY_CORRECT
= ;;
14165 export POSIXLY_CORRECT
14166 if test "$cross_compiling" = yes; then :
14167 case $host_os:$ac_cv_have_decl_optreset in
14168 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14169 *:yes) gl_cv_func_getopt_gnu
=no
;;
14170 *) gl_cv_func_getopt_gnu
=yes;;
14174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #include <getopt.h>
14177 #include <stddef.h>
14178 #include <string.h>
14185 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14186 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14187 OSF/1 5.1, Solaris 10. */
14190 myargv[0] = "conftest";
14194 if (getopt (2, myargv, "+a") != '?')
14197 /* This code succeeds on glibc 2.8, mingw,
14198 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14199 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14201 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14204 if (getopt (4, argv, "p::") != 'p')
14206 else if (optarg != NULL)
14208 else if (getopt (4, argv, "p::") != -1)
14210 else if (optind != 2)
14213 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14215 char *argv[] = { "program", "foo", "-p", NULL };
14217 if (getopt (3, argv, "-p") != 1)
14219 else if (getopt (3, argv, "-p") != 'p')
14222 /* This code fails on glibc 2.11. */
14224 char *argv[] = { "program", "-b", "-a", NULL };
14225 optind = opterr = 0;
14226 if (getopt (3, argv, "+:a:b") != 'b')
14228 else if (getopt (3, argv, "+:a:b") != ':')
14237 if ac_fn_c_try_run
"$LINENO"; then :
14238 gl_cv_func_getopt_gnu
=yes
14240 gl_cv_func_getopt_gnu
=no
14242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14246 case $gl_had_POSIXLY_CORRECT in
14248 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14249 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14254 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14255 if test "$gl_cv_func_getopt_gnu" = "no"; then
14256 gl_replace_getopt
=yes
14260 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14261 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14267 cat >>confdefs.h
<<_ACEOF
14268 #define HAVE_DECL_GETENV $ac_have_decl
14276 if test -n "$gl_replace_getopt"; then :
14282 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14286 GNULIB_UNISTD_H_GETOPT
=1
14295 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14305 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14316 $as_echo_n "checking for inline... " >&6; }
14317 if test "${ac_cv_c_inline+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14321 for ac_kw
in inline __inline__ __inline
; do
14322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 #ifndef __cplusplus
14326 static $ac_kw foo_t static_foo () {return 0; }
14327 $ac_kw foo_t foo () {return 0; }
14331 if ac_fn_c_try_compile
"$LINENO"; then :
14332 ac_cv_c_inline
=$ac_kw
14334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14335 test "$ac_cv_c_inline" != no
&& break
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14340 $as_echo "$ac_cv_c_inline" >&6; }
14342 case $ac_cv_c_inline in
14345 case $ac_cv_c_inline in
14347 *) ac_val
=$ac_cv_c_inline;;
14349 cat >>confdefs.h
<<_ACEOF
14350 #ifndef __cplusplus
14351 #define inline $ac_val
14359 GNULIB_NANOSLEEP
=0;
14363 HAVE_DECL_LOCALTIME_R
=1;
14367 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14368 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14369 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14370 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14375 for ac_func
in $ac_func_list
14377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14379 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14380 cat >>confdefs.h
<<_ACEOF
14381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14390 gl_cv_c_multiarch
=no
14391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 #ifndef __APPLE_CC__
14394 not a universal capable compiler
14399 if ac_fn_c_try_compile
"$LINENO"; then :
14403 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14404 if test -n "$prev"; then
14406 i?
86 | x86_64 | ppc | ppc64
)
14407 if test -z "$arch" ||
test "$arch" = "$word"; then
14410 gl_cv_c_multiarch
=yes
14416 if test "x$word" = "x-arch"; then
14423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14424 if test $gl_cv_c_multiarch = yes; then
14425 APPLE_UNIVERSAL_BUILD
=1
14427 APPLE_UNIVERSAL_BUILD
=0
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14432 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14433 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14439 #include <stdbool.h>
14441 "error: bool is not defined"
14444 "error: false is not defined"
14447 "error: false is not 0"
14450 "error: true is not defined"
14453 "error: true is not 1"
14455 #ifndef __bool_true_false_are_defined
14456 "error: __bool_true_false_are_defined is not defined"
14459 struct s { _Bool s: 1; _Bool t; } s;
14461 char a[true == 1 ? 1 : -1];
14462 char b[false == 0 ? 1 : -1];
14463 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14464 char d[(bool) 0.5 == true ? 1 : -1];
14465 /* See body of main program for 'e'. */
14466 char f[(_Bool) 0.0 == false ? 1 : -1];
14468 char h[sizeof (_Bool)];
14469 char i[sizeof s.t];
14470 enum { j = false, k = true, l = false * true, m = true * 256 };
14471 /* The following fails for
14472 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14474 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14475 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14476 /* Catch a bug in an HP-UX C compiler. See
14477 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14478 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14490 /* Refer to every declared value, to avoid compiler optimizations. */
14491 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14492 + !m + !n + !o + !p + !q + !pq);
14498 if ac_fn_c_try_compile
"$LINENO"; then :
14499 ac_cv_header_stdbool_h
=yes
14501 ac_cv_header_stdbool_h
=no
14503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14506 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14507 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14508 if test "x$ac_cv_type__Bool" = x
""yes; then :
14510 cat >>confdefs.h
<<_ACEOF
14511 #define HAVE__BOOL 1
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14525 $as_echo_n "checking for wchar_t... " >&6; }
14526 if test "${gt_cv_c_wchar_t+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <stddef.h>
14532 wchar_t foo = (wchar_t)'\0';
14541 if ac_fn_c_try_compile
"$LINENO"; then :
14542 gt_cv_c_wchar_t
=yes
14546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14549 $as_echo "$gt_cv_c_wchar_t" >&6; }
14550 if test $gt_cv_c_wchar_t = yes; then
14552 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14557 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14559 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
14561 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14569 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14570 if test "${ac_cv_c_restrict+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14573 ac_cv_c_restrict
=no
14574 # The order here caters to the fact that C++ does not require restrict.
14575 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 typedef int * int_ptr;
14579 int foo (int_ptr $ac_kw ip) {
14586 int * $ac_kw t = s;
14593 if ac_fn_c_try_compile
"$LINENO"; then :
14594 ac_cv_c_restrict
=$ac_kw
14596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14597 test "$ac_cv_c_restrict" != no
&& break
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14602 $as_echo "$ac_cv_c_restrict" >&6; }
14604 case $ac_cv_c_restrict in
14606 no
) $as_echo "#define restrict /**/" >>confdefs.h
14608 *) cat >>confdefs.h
<<_ACEOF
14609 #define restrict $ac_cv_c_restrict
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14619 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14620 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14630 static struct timespec x; x.tv_sec = x.tv_nsec;
14635 if ac_fn_c_try_compile
"$LINENO"; then :
14636 gl_cv_sys_struct_timespec_in_time_h
=yes
14638 gl_cv_sys_struct_timespec_in_time_h
=no
14640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14643 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14645 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14646 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14647 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14648 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14649 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14652 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14653 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 #include <sys/time.h>
14663 static struct timespec x; x.tv_sec = x.tv_nsec;
14668 if ac_fn_c_try_compile
"$LINENO"; then :
14669 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14671 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14676 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14677 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14681 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14682 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 #include <pthread.h>
14692 static struct timespec x; x.tv_sec = x.tv_nsec;
14697 if ac_fn_c_try_compile
"$LINENO"; then :
14698 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14700 gl_cv_sys_struct_timespec_in_pthread_h
=no
14702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14705 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14706 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14707 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14726 if test $gl_cv_have_include_next = yes; then
14727 gl_cv_next_time_h
='<'time.h
'>'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14730 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14731 if test "${gl_cv_next_time_h+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14741 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14742 *) gl_absname_cpp
="$ac_cpp" ;;
14744 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14745 sed -n '\#/time.h#{
14746 s#.*"\(.*/time.h\)".*#\1#
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14755 $as_echo "$gl_cv_next_time_h" >&6; }
14757 NEXT_TIME_H
=$gl_cv_next_time_h
14759 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14761 gl_next_as_first_directive
='<'time.h
'>'
14763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14764 gl_next_as_first_directive
=$gl_cv_next_time_h
14766 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14773 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14774 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
14780 cat >>confdefs.h
<<_ACEOF
14781 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14788 GL_COND_LIBTOOL_TRUE
=
14789 GL_COND_LIBTOOL_FALSE
='#'
14791 GL_COND_LIBTOOL_TRUE
='#'
14792 GL_COND_LIBTOOL_FALSE
=
14795 gl_cond_libtool
=false
14808 gl_source_base
='lib'
14809 # Code from module arg-nonnull:
14810 # Code from module c++defs:
14811 # Code from module dtoastr:
14813 # Code from module extensions:
14814 # Code from module getopt-gnu:
14821 # Code from module getopt-posix:
14827 if test -n "$gl_replace_getopt"; then :
14833 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14837 GNULIB_UNISTD_H_GETOPT
=1
14846 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14856 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14866 # Code from module gettext-h:
14869 # Code from module ignore-value:
14871 # Code from module include_next:
14872 # Code from module intprops:
14873 # Code from module mktime:
14879 if test $APPLE_UNIVERSAL_BUILD = 1; then
14880 # A universal build on Apple MacOS X platforms.
14881 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14882 # But we need a configuration result that is valid in both modes.
14883 ac_cv_func_working_mktime
=no
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14886 $as_echo_n "checking for working mktime... " >&6; }
14887 if test "${ac_cv_func_working_mktime+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14890 if test "$cross_compiling" = yes; then :
14891 ac_cv_func_working_mktime
=no
14893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895 /* Test program from Paul Eggert and Tony Leneis. */
14896 #include <limits.h>
14897 #include <stdlib.h>
14900 #ifdef HAVE_UNISTD_H
14901 # include <unistd.h>
14905 # define alarm(X) /* empty */
14908 /* Work around redefinition to rpl_putenv by other config tests. */
14911 static time_t time_t_max;
14912 static time_t time_t_min;
14914 /* Values we'll use to set the TZ environment variable. */
14915 static char *tz_strings[] = {
14916 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14917 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14919 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14921 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14922 Based on a problem report from Andreas Jaeger. */
14924 spring_forward_gap ()
14926 /* glibc (up to about 1998-10-07) failed this test. */
14929 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14930 instead of "TZ=America/Vancouver" in order to detect the bug even
14931 on systems that don't support the Olson extension, or don't have the
14932 full zoneinfo tables installed. */
14933 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14942 return mktime (&tm) != (time_t) -1;
14946 mktime_test1 (time_t now)
14949 return ! (lt = localtime (&now)) || mktime (lt) == now;
14953 mktime_test (time_t now)
14955 return (mktime_test1 (now)
14956 && mktime_test1 ((time_t) (time_t_max - now))
14957 && mktime_test1 ((time_t) (time_t_min + now)));
14963 /* Based on code from Ariel Faigon. */
14973 return tm.tm_mon == 2 && tm.tm_mday == 31;
14977 bigtime_test (int j)
14981 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14982 now = mktime (&tm);
14983 if (now != (time_t) -1)
14985 struct tm *lt = localtime (&now);
14987 && lt->tm_year == tm.tm_year
14988 && lt->tm_mon == tm.tm_mon
14989 && lt->tm_mday == tm.tm_mday
14990 && lt->tm_hour == tm.tm_hour
14991 && lt->tm_min == tm.tm_min
14992 && lt->tm_sec == tm.tm_sec
14993 && lt->tm_yday == tm.tm_yday
14994 && lt->tm_wday == tm.tm_wday
14995 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14996 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15005 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15006 ignoring leap seconds. */
15007 unsigned long int answer = 2527315200UL;
15011 tm.tm_year = 2050 - 1900;
15014 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15017 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15018 instead of "TZ=America/Vancouver" in order to detect the bug even
15019 on systems that don't support the Olson extension, or don't have the
15020 full zoneinfo tables installed. */
15021 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15025 /* Check that the result is either a failure, or close enough
15026 to the correct answer that we can assume the discrepancy is
15027 due to leap seconds. */
15028 return (t == (time_t) -1
15029 || (0 < t && answer - 120 <= t && t <= answer + 120));
15038 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15039 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15041 /* This test makes some buggy mktime implementations loop.
15042 Give up after 60 seconds; a mktime slower than that
15043 isn't worth using anyway. */
15046 time_t_max = (! time_t_signed
15048 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15050 time_t_min = (! time_t_signed
15052 : time_t_signed_magnitude
15056 delta = time_t_max / 997; /* a suitable prime number */
15057 for (i = 0; i < N_STRINGS; i++)
15060 putenv (tz_strings[i]);
15062 for (t = 0; t <= time_t_max - delta; t += delta)
15063 if (! mktime_test (t))
15065 if (! (mktime_test ((time_t) 1)
15066 && mktime_test ((time_t) (60 * 60))
15067 && mktime_test ((time_t) (60 * 60 * 24))))
15070 for (j = 1; ; j <<= 1)
15071 if (! bigtime_test (j))
15073 else if (INT_MAX / 2 < j)
15075 if (! bigtime_test (INT_MAX))
15078 if (! irix_6_4_bug ())
15080 if (! spring_forward_gap ())
15082 if (! year_2050_test ())
15087 if ac_fn_c_try_run
"$LINENO"; then :
15088 ac_cv_func_working_mktime
=yes
15090 ac_cv_func_working_mktime
=no
15092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15098 $as_echo "$ac_cv_func_working_mktime" >&6; }
15099 if test $ac_cv_func_working_mktime = no
; then
15108 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15112 if test $ac_cv_func_working_mktime = no
; then
15128 # Code from module multiarch:
15130 # Code from module stdbool:
15134 # Define two additional variables used in the Makefile substitution.
15136 if test "$ac_cv_header_stdbool_h" = yes; then
15139 STDBOOL_H
='stdbool.h'
15143 if test "$ac_cv_type__Bool" = yes; then
15150 # Code from module stddef:
15154 if test $gt_cv_c_wchar_t = no
; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15159 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15160 if test "${gl_cv_decl_null_works+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #include <stddef.h>
15166 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15176 if ac_fn_c_try_compile
"$LINENO"; then :
15177 gl_cv_decl_null_works
=yes
15179 gl_cv_decl_null_works
=no
15181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15184 $as_echo "$gl_cv_decl_null_works" >&6; }
15185 if test $gl_cv_decl_null_works = no
; then
15189 if test -n "$STDDEF_H"; then
15198 if test $gl_cv_have_include_next = yes; then
15199 gl_cv_next_stddef_h
='<'stddef.h
'>'
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15202 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15203 if test "${gl_cv_next_stddef_h+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 #include <stddef.h>
15213 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15214 *) gl_absname_cpp
="$ac_cpp" ;;
15216 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15217 sed -n '\#/stddef.h#{
15218 s#.*"\(.*/stddef.h\)".*#\1#
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15227 $as_echo "$gl_cv_next_stddef_h" >&6; }
15229 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15231 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15233 gl_next_as_first_directive
='<'stddef.h
'>'
15235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15236 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15238 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15245 # Code from module strftime:
15256 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
15259 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15267 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15271 # Code from module time:
15275 # Code from module time_r:
15283 if test $ac_cv_have_decl_localtime_r = no
; then
15284 HAVE_DECL_LOCALTIME_R
=0
15288 if test $ac_cv_func_localtime_r = yes; then
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15291 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15292 if test "${gl_cv_time_r_posix+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15301 /* We don't need to append 'restrict's to the argument types,
15302 even though the POSIX signature has the 'restrict's,
15303 since C99 says they can't affect type compatibility. */
15304 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15306 /* Check the return type is a pointer.
15307 On HP-UX 10 it is 'int'. */
15308 *localtime_r (0, 0);
15314 if ac_fn_c_try_compile
"$LINENO"; then :
15315 gl_cv_time_r_posix
=yes
15317 gl_cv_time_r_posix
=no
15319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15323 $as_echo "$gl_cv_time_r_posix" >&6; }
15324 if test $gl_cv_time_r_posix = yes; then
15325 REPLACE_LOCALTIME_R
=0
15327 REPLACE_LOCALTIME_R
=1
15332 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15341 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15355 # Code from module unistd:
15369 if test $gl_cv_have_include_next = yes; then
15370 gl_cv_next_unistd_h
='<'unistd.h
'>'
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15373 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15374 if test "${gl_cv_next_unistd_h+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15378 if test $ac_cv_header_unistd_h = yes; then
15381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15383 #include <unistd.h>
15387 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15388 *) gl_absname_cpp
="$ac_cpp" ;;
15390 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15391 sed -n '\#/unistd.h#{
15392 s#.*"\(.*/unistd.h\)".*#\1#
15398 gl_cv_next_unistd_h
='<'unistd.h
'>'
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15404 $as_echo "$gl_cv_next_unistd_h" >&6; }
15406 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15408 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15410 gl_next_as_first_directive
='<'unistd.h
'>'
15412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15413 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15415 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15420 if test $ac_cv_header_unistd_h = yes; then
15429 # Code from module warn-on-use:
15430 # End of code from modules
15451 gl_source_base
='tests'
15452 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
15454 gl_module_indicator_condition
=$gltests_WITNESS
15464 LIBGNU_LIBDEPS
="$gl_libdeps"
15466 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
15471 for ac_func
in grantpt
15473 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15474 if test "x$ac_cv_func_grantpt" = x
""yes; then :
15475 cat >>confdefs.h
<<_ACEOF
15476 #define HAVE_GRANTPT 1
15483 # PTY-related GNU extensions.
15484 for ac_func
in getpt
15486 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
15487 if test "x$ac_cv_func_getpt" = x
""yes; then :
15488 cat >>confdefs.h
<<_ACEOF
15489 #define HAVE_GETPT 1
15496 # Check this now, so that we will NOT find the above functions in ncurses.
15497 # That is because we have not set up to link ncurses in lib-src.
15498 # It's better to believe a function is not available
15499 # than to expect to find it in ncurses.
15500 # Also we need tputs and friends to be able to build at all.
15501 have_tputs_et_al
=true
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15503 $as_echo_n "checking for library containing tputs... " >&6; }
15504 if test "${ac_cv_search_tputs+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15507 ac_func_search_save_LIBS
=$LIBS
15508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15526 for ac_lib
in '' ncurses terminfo termcap
; do
15527 if test -z "$ac_lib"; then
15528 ac_res
="none required"
15531 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15533 if ac_fn_c_try_link
"$LINENO"; then :
15534 ac_cv_search_tputs
=$ac_res
15536 rm -f core conftest.err conftest.
$ac_objext \
15538 if test "${ac_cv_search_tputs+set}" = set; then :
15542 if test "${ac_cv_search_tputs+set}" = set; then :
15545 ac_cv_search_tputs
=no
15547 rm conftest.
$ac_ext
15548 LIBS
=$ac_func_search_save_LIBS
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15551 $as_echo "$ac_cv_search_tputs" >&6; }
15552 ac_res
=$ac_cv_search_tputs
15553 if test "$ac_res" != no
; then :
15554 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15557 have_tputs_et_al
=false
15560 if test "$have_tputs_et_al" != true
; then
15561 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
15562 Maybe some development libraries/packages are missing? Try installing
15563 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15565 # Must define this when any termcap library is found.
15567 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15569 ## FIXME This was the cpp logic, but I am not sure it is right.
15570 ## The above test has not necessarily found libncurses.
15571 HAVE_LIBNCURSES
=yes
15573 ## Use terminfo instead of termcap?
15574 ## Note only system files NOT using terminfo are:
15575 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15576 ## darwin|gnu without ncurses.
15580 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15581 ## hpux10-20: Use the system provided termcap(3) library.
15582 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15583 ## is necessary. Otherwise Emacs dumps core when run -nw.
15584 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
15586 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15587 ## The ncurses library has been moved out of the System framework in
15588 ## Mac OS X 10.2. So if configure detects it, set the command-line
15589 ## option to use it.
15591 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15592 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15594 LIBS_TERMCAP
="-lncurses"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15600 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15601 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15602 $as_echo_n "(cached) " >&6
15604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <osreldate.h>
15610 #if __FreeBSD_version < 400000
15618 if ac_fn_c_try_link
"$LINENO"; then :
15619 emacs_cv_freebsd_terminfo
=yes
15621 emacs_cv_freebsd_terminfo
=no
15623 rm -f core conftest.err conftest.
$ac_objext \
15624 conftest
$ac_exeext conftest.
$ac_ext
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15629 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15631 if test $emacs_cv_freebsd_terminfo = yes; then
15633 LIBS_TERMCAP
="-lncurses"
15635 LIBS_TERMCAP
="-ltermcap"
15640 if test $ac_cv_search_tputs = -lterminfo; then
15642 LIBS_TERMCAP
="-lterminfo"
15644 LIBS_TERMCAP
="-ltermcap"
15651 ## hpux: Make sure we get select from libc rather than from libcurses
15652 ## because libcurses on HPUX 10.10 has a broken version of select.
15653 ## We used to use -lc -lcurses, but this may be cleaner.
15654 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15656 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
15658 ## Must use system termcap, if we use any termcap. It does special things.
15659 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
15662 TERMCAP_OBJ
=tparam.o
15663 if test $TERMINFO = yes; then
15665 $as_echo "#define TERMINFO 1" >>confdefs.h
15668 ## Default used to be -ltermcap. Add a case above if need something else.
15669 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
15671 TERMCAP_OBJ
=terminfo.o
15677 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 #include <netinet/in.h>
15682 #include <arpa/nameser.h>
15683 #include <resolv.h>
15692 if ac_fn_c_try_link
"$LINENO"; then :
15697 rm -f core conftest.err conftest.
$ac_objext \
15698 conftest
$ac_exeext conftest.
$ac_ext
15699 if test "$have_res_init" = no
; then
15701 LIBS
="$LIBS -lresolv"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15703 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #include <netinet/in.h>
15707 #include <arpa/nameser.h>
15708 #include <resolv.h>
15717 if ac_fn_c_try_link
"$LINENO"; then :
15722 rm -f core conftest.err conftest.
$ac_objext \
15723 conftest
$ac_exeext conftest.
$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15725 $as_echo "$have_res_init" >&6; }
15726 if test "$have_res_init" = yes ; then
15732 if test "$have_res_init" = yes; then
15734 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15738 # Do we need the Hesiod library to provide the support routines?
15740 if test "$with_hesiod" != no
; then
15741 # Don't set $LIBS here -- see comments above. FIXME which comments?
15742 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15743 if test "x$ac_cv_func_res_send" = x
""yes; then :
15746 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15747 if test "x$ac_cv_func___res_send" = x
""yes; then :
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15751 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15752 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15755 ac_check_lib_save_LIBS
=$LIBS
15756 LIBS
="-lresolv $LIBS"
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15770 return res_send ();
15775 if ac_fn_c_try_link
"$LINENO"; then :
15776 ac_cv_lib_resolv_res_send
=yes
15778 ac_cv_lib_resolv_res_send
=no
15780 rm -f core conftest.err conftest.
$ac_objext \
15781 conftest
$ac_exeext conftest.
$ac_ext
15782 LIBS
=$ac_check_lib_save_LIBS
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15785 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15786 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15790 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15791 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15794 ac_check_lib_save_LIBS
=$LIBS
15795 LIBS
="-lresolv $LIBS"
15796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15805 char __res_send ();
15809 return __res_send ();
15814 if ac_fn_c_try_link
"$LINENO"; then :
15815 ac_cv_lib_resolv___res_send
=yes
15817 ac_cv_lib_resolv___res_send
=no
15819 rm -f core conftest.err conftest.
$ac_objext \
15820 conftest
$ac_exeext conftest.
$ac_ext
15821 LIBS
=$ac_check_lib_save_LIBS
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15824 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15825 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15835 if test "$resolv" = yes ; then
15840 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15841 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15845 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15846 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15847 $as_echo_n "(cached) " >&6
15849 ac_check_lib_save_LIBS
=$LIBS
15850 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15854 /* Override any GCC internal prototype to avoid an error.
15855 Use char because int might match the return type of a GCC
15856 builtin and then its argument prototype would still apply. */
15860 char hes_getmailhost ();
15864 return hes_getmailhost ();
15869 if ac_fn_c_try_link
"$LINENO"; then :
15870 ac_cv_lib_hesiod_hes_getmailhost
=yes
15872 ac_cv_lib_hesiod_hes_getmailhost
=no
15874 rm -f core conftest.err conftest.
$ac_objext \
15875 conftest
$ac_exeext conftest.
$ac_ext
15876 LIBS
=$ac_check_lib_save_LIBS
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15879 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15880 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15889 if test x
"$hesiod" = xyes
; then
15891 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15898 # Do we need libresolv (due to res_init or Hesiod)?
15899 if test "$resolv" = yes ; then
15901 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15909 # These tell us which Kerberos-related libraries to use.
15916 if test "${with_kerberos}" != no
; then
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15918 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15919 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15920 $as_echo_n "(cached) " >&6
15922 ac_check_lib_save_LIBS
=$LIBS
15923 LIBS
="-lcom_err $LIBS"
15924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15927 /* Override any GCC internal prototype to avoid an error.
15928 Use char because int might match the return type of a GCC
15929 builtin and then its argument prototype would still apply. */
15942 if ac_fn_c_try_link
"$LINENO"; then :
15943 ac_cv_lib_com_err_com_err
=yes
15945 ac_cv_lib_com_err_com_err
=no
15947 rm -f core conftest.err conftest.
$ac_objext \
15948 conftest
$ac_exeext conftest.
$ac_ext
15949 LIBS
=$ac_check_lib_save_LIBS
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15952 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15953 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15959 if test $have_com_err = yes; then
15960 COM_ERRLIB
=-lcom_err
15961 LIBS
="$COM_ERRLIB $LIBS"
15963 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15967 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15968 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 ac_check_lib_save_LIBS
=$LIBS
15972 LIBS
="-lcrypto $LIBS"
15973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15982 char mit_des_cbc_encrypt ();
15986 return mit_des_cbc_encrypt ();
15991 if ac_fn_c_try_link
"$LINENO"; then :
15992 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15994 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15996 rm -f core conftest.err conftest.
$ac_objext \
15997 conftest
$ac_exeext conftest.
$ac_ext
15998 LIBS
=$ac_check_lib_save_LIBS
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16001 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16002 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
16008 if test $have_crypto = yes; then
16010 LIBS
="$CRYPTOLIB $LIBS"
16012 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16016 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16017 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
16018 $as_echo_n "(cached) " >&6
16020 ac_check_lib_save_LIBS
=$LIBS
16021 LIBS
="-lk5crypto $LIBS"
16022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply. */
16031 char mit_des_cbc_encrypt ();
16035 return mit_des_cbc_encrypt ();
16040 if ac_fn_c_try_link
"$LINENO"; then :
16041 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
16043 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
16045 rm -f core conftest.err conftest.
$ac_objext \
16046 conftest
$ac_exeext conftest.
$ac_ext
16047 LIBS
=$ac_check_lib_save_LIBS
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16050 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16051 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
16057 if test $have_k5crypto = yes; then
16058 CRYPTOLIB
=-lk5crypto
16059 LIBS
="$CRYPTOLIB $LIBS"
16061 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16065 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16066 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16069 ac_check_lib_save_LIBS
=$LIBS
16070 LIBS
="-lkrb5 $LIBS"
16071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16074 /* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16080 char krb5_init_context ();
16084 return krb5_init_context ();
16089 if ac_fn_c_try_link
"$LINENO"; then :
16090 ac_cv_lib_krb5_krb5_init_context
=yes
16092 ac_cv_lib_krb5_krb5_init_context
=no
16094 rm -f core conftest.err conftest.
$ac_objext \
16095 conftest
$ac_exeext conftest.
$ac_ext
16096 LIBS
=$ac_check_lib_save_LIBS
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16099 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16100 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
16106 if test $have_krb5=yes; then
16108 LIBS
="$KRB5LIB $LIBS"
16110 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16113 if test "${with_kerberos5}" = no
; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16115 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16116 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16119 ac_check_lib_save_LIBS
=$LIBS
16120 LIBS
="-ldes425 $LIBS"
16121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16130 char des_cbc_encrypt ();
16134 return des_cbc_encrypt ();
16139 if ac_fn_c_try_link
"$LINENO"; then :
16140 ac_cv_lib_des425_des_cbc_encrypt
=yes
16142 ac_cv_lib_des425_des_cbc_encrypt
=no
16144 rm -f core conftest.err conftest.
$ac_objext \
16145 conftest
$ac_exeext conftest.
$ac_ext
16146 LIBS
=$ac_check_lib_save_LIBS
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16149 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16150 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
16156 if test $have_des425 = yes; then
16158 LIBS
="$DESLIB $LIBS"
16160 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16164 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16165 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16168 ac_check_lib_save_LIBS
=$LIBS
16170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16173 /* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16179 char des_cbc_encrypt ();
16183 return des_cbc_encrypt ();
16188 if ac_fn_c_try_link
"$LINENO"; then :
16189 ac_cv_lib_des_des_cbc_encrypt
=yes
16191 ac_cv_lib_des_des_cbc_encrypt
=no
16193 rm -f core conftest.err conftest.
$ac_objext \
16194 conftest
$ac_exeext conftest.
$ac_ext
16195 LIBS
=$ac_check_lib_save_LIBS
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16198 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16199 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
16205 if test $have_des = yes; then
16207 LIBS
="$DESLIB $LIBS"
16209 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16214 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16215 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
16218 ac_check_lib_save_LIBS
=$LIBS
16219 LIBS
="-lkrb4 $LIBS"
16220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16229 char krb_get_cred ();
16233 return krb_get_cred ();
16238 if ac_fn_c_try_link
"$LINENO"; then :
16239 ac_cv_lib_krb4_krb_get_cred
=yes
16241 ac_cv_lib_krb4_krb_get_cred
=no
16243 rm -f core conftest.err conftest.
$ac_objext \
16244 conftest
$ac_exeext conftest.
$ac_ext
16245 LIBS
=$ac_check_lib_save_LIBS
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16248 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16249 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
16255 if test $have_krb4 = yes; then
16257 LIBS
="$KRB4LIB $LIBS"
16259 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16263 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16264 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16265 $as_echo_n "(cached) " >&6
16267 ac_check_lib_save_LIBS
=$LIBS
16269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16272 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */
16278 char krb_get_cred ();
16282 return krb_get_cred ();
16287 if ac_fn_c_try_link
"$LINENO"; then :
16288 ac_cv_lib_krb_krb_get_cred
=yes
16290 ac_cv_lib_krb_krb_get_cred
=no
16292 rm -f core conftest.err conftest.
$ac_objext \
16293 conftest
$ac_exeext conftest.
$ac_ext
16294 LIBS
=$ac_check_lib_save_LIBS
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16297 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16298 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
16304 if test $have_krb = yes; then
16306 LIBS
="$KRB4LIB $LIBS"
16308 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16314 if test "${with_kerberos5}" != no
; then
16315 for ac_header
in krb5.h
16317 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16318 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
16319 cat >>confdefs.h
<<_ACEOF
16320 #define HAVE_KRB5_H 1
16322 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16324 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
16326 cat >>confdefs.h
<<_ACEOF
16327 #define HAVE_KRB5_ERROR_TEXT 1
16332 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16334 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
16336 cat >>confdefs.h
<<_ACEOF
16337 #define HAVE_KRB5_ERROR_E_TEXT 1
16348 for ac_header
in des.h
16350 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16351 if test "x$ac_cv_header_des_h" = x
""yes; then :
16352 cat >>confdefs.h
<<_ACEOF
16353 #define HAVE_DES_H 1
16357 for ac_header
in kerberosIV
/des.h
16359 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16360 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
16361 cat >>confdefs.h
<<_ACEOF
16362 #define HAVE_KERBEROSIV_DES_H 1
16366 for ac_header
in kerberos
/des.h
16368 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16369 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
16370 cat >>confdefs.h
<<_ACEOF
16371 #define HAVE_KERBEROS_DES_H 1
16386 for ac_header
in krb.h
16388 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16389 if test "x$ac_cv_header_krb_h" = x
""yes; then :
16390 cat >>confdefs.h
<<_ACEOF
16391 #define HAVE_KRB_H 1
16395 for ac_header
in kerberosIV
/krb.h
16397 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
16399 cat >>confdefs.h
<<_ACEOF
16400 #define HAVE_KERBEROSIV_KRB_H 1
16404 for ac_header
in kerberos
/krb.h
16406 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16407 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
16408 cat >>confdefs.h
<<_ACEOF
16409 #define HAVE_KERBEROS_KRB_H 1
16425 for ac_header
in com_err.h
16427 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16428 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
16429 cat >>confdefs.h
<<_ACEOF
16430 #define HAVE_COM_ERR_H 1
16445 # Solaris requires -lintl if you want strerror (which calls dgettext)
16446 # to return localized messages.
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16448 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16449 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16450 $as_echo_n "(cached) " >&6
16452 ac_check_lib_save_LIBS
=$LIBS
16453 LIBS
="-lintl $LIBS"
16454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16467 return dgettext ();
16472 if ac_fn_c_try_link
"$LINENO"; then :
16473 ac_cv_lib_intl_dgettext
=yes
16475 ac_cv_lib_intl_dgettext
=no
16477 rm -f core conftest.err conftest.
$ac_objext \
16478 conftest
$ac_exeext conftest.
$ac_ext
16479 LIBS
=$ac_check_lib_save_LIBS
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16482 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16483 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
16484 cat >>confdefs.h
<<_ACEOF
16485 #define HAVE_LIBINTL 1
16488 LIBS
="-lintl $LIBS"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16494 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16495 if test "${emacs_cv_localtime_cache+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16498 if test x
$ac_cv_func_tzset = xyes
; then
16499 if test "$cross_compiling" = yes; then :
16500 # If we have tzset, assume the worst when cross-compiling.
16501 emacs_cv_localtime_cache
=yes
16503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16506 char TZ_GMT0[] = "TZ=GMT0";
16507 char TZ_PST8[] = "TZ=PST8";
16510 time_t now = time ((time_t *) 0);
16511 int hour_GMT0, hour_unset;
16512 if (putenv (TZ_GMT0) != 0)
16514 hour_GMT0 = localtime (&now)->tm_hour;
16516 hour_unset = localtime (&now)->tm_hour;
16517 if (putenv (TZ_PST8) != 0)
16519 if (localtime (&now)->tm_hour == hour_GMT0)
16522 if (localtime (&now)->tm_hour != hour_unset)
16527 if ac_fn_c_try_run
"$LINENO"; then :
16528 emacs_cv_localtime_cache
=no
16530 emacs_cv_localtime_cache
=yes
16532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16537 # If we lack tzset, report that localtime does not cache TZ,
16538 # since we can't invalidate the cache if we don't have tzset.
16539 emacs_cv_localtime_cache
=no
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16543 $as_echo "$emacs_cv_localtime_cache" >&6; }
16544 if test $emacs_cv_localtime_cache = yes; then
16546 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16550 if test "x$HAVE_TIMEVAL" = xyes
; then
16551 for ac_func
in gettimeofday
16553 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16554 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
16555 cat >>confdefs.h
<<_ACEOF
16556 #define HAVE_GETTIMEOFDAY 1
16562 if test $ac_cv_func_gettimeofday = yes; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16564 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16565 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 #ifdef TIME_WITH_SYS_TIME
16572 #include <sys/time.h>
16575 #ifdef HAVE_SYS_TIME_H
16576 #include <sys/time.h>
16584 struct timeval time;
16585 gettimeofday (&time, 0);
16590 if ac_fn_c_try_compile
"$LINENO"; then :
16591 emacs_cv_gettimeofday_two_arguments
=yes
16593 emacs_cv_gettimeofday_two_arguments
=no
16595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16598 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16599 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16601 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16608 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16609 if test "x$ac_cv_func_socket" = x
""yes; then :
16615 if test $ok_so_far = yes; then
16616 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16617 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
16625 if test $ok_so_far = yes; then
16626 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16627 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
16635 if test $ok_so_far = yes; then
16637 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16641 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16643 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16648 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16649 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651 $as_echo "yes" >&6; }
16653 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16660 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16661 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16665 cat >>confdefs.h
<<_ACEOF
16671 for ac_header
in vfork.h
16673 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16674 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16675 cat >>confdefs.h
<<_ACEOF
16676 #define HAVE_VFORK_H 1
16683 for ac_func
in fork vfork
16685 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16686 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16687 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16688 cat >>confdefs.h
<<_ACEOF
16689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16695 if test "x$ac_cv_func_fork" = xyes
; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16697 $as_echo_n "checking for working fork... " >&6; }
16698 if test "${ac_cv_func_fork_works+set}" = set; then :
16699 $as_echo_n "(cached) " >&6
16701 if test "$cross_compiling" = yes; then :
16702 ac_cv_func_fork_works
=cross
16704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 $ac_includes_default
16711 /* By Ruediger Kuhlmann. */
16712 return fork () < 0;
16718 if ac_fn_c_try_run
"$LINENO"; then :
16719 ac_cv_func_fork_works
=yes
16721 ac_cv_func_fork_works
=no
16723 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16724 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16729 $as_echo "$ac_cv_func_fork_works" >&6; }
16732 ac_cv_func_fork_works
=$ac_cv_func_fork
16734 if test "x$ac_cv_func_fork_works" = xcross
; then
16736 *-*-amigaos* |
*-*-msdosdjgpp*)
16737 # Override, as these systems have only a dummy fork() stub
16738 ac_cv_func_fork_works
=no
16741 ac_cv_func_fork_works
=yes
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16745 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16747 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16748 if test "x$ac_cv_func_vfork" = xyes
; then
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16750 $as_echo_n "checking for working vfork... " >&6; }
16751 if test "${ac_cv_func_vfork_works+set}" = set; then :
16752 $as_echo_n "(cached) " >&6
16754 if test "$cross_compiling" = yes; then :
16755 ac_cv_func_vfork_works
=cross
16757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759 /* Thanks to Paul Eggert for this test. */
16760 $ac_includes_default
16761 #include <sys/wait.h>
16762 #ifdef HAVE_VFORK_H
16763 # include <vfork.h>
16765 /* On some sparc systems, changes by the child to local and incoming
16766 argument registers are propagated back to the parent. The compiler
16767 is told about this with #include <vfork.h>, but some compilers
16768 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16769 static variable whose address is put into a register that is
16770 clobbered by the vfork. */
16773 sparc_address_test (int arg)
16775 sparc_address_test (arg) int arg;
16778 static pid_t child;
16796 pid_t parent = getpid ();
16799 sparc_address_test (0);
16804 /* Here is another test for sparc vfork register problems. This
16805 test uses lots of local variables, at least as many local
16806 variables as main has allocated so far including compiler
16807 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16808 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16809 reuse the register of parent for one of the local variables,
16810 since it will think that parent can't possibly be used any more
16811 in this routine. Assigning to the local variable will thus
16812 munge parent in the parent process. */
16814 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16815 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16816 /* Convince the compiler that p..p7 are live; otherwise, it might
16817 use the same hardware register for all 8 local variables. */
16818 if (p != p1 || p != p2 || p != p3 || p != p4
16819 || p != p5 || p != p6 || p != p7)
16822 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16823 from child file descriptors. If the child closes a descriptor
16824 before it execs or exits, this munges the parent's descriptor
16825 as well. Test for this by closing stdout in the child. */
16826 _exit(close(fileno(stdout)) != 0);
16831 while (wait(&status) != child)
16834 /* Was there some problem with vforking? */
16837 /* Did the child fail? (This shouldn't happen.) */
16840 /* Did the vfork/compiler bug occur? */
16841 || parent != getpid()
16843 /* Did the file descriptor bug occur? */
16844 || fstat(fileno(stdout), &st) != 0
16849 if ac_fn_c_try_run
"$LINENO"; then :
16850 ac_cv_func_vfork_works
=yes
16852 ac_cv_func_vfork_works
=no
16854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16860 $as_echo "$ac_cv_func_vfork_works" >&6; }
16863 if test "x$ac_cv_func_fork_works" = xcross
; then
16864 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16866 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16869 if test "x$ac_cv_func_vfork_works" = xyes
; then
16871 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16875 $as_echo "#define vfork fork" >>confdefs.h
16878 if test "x$ac_cv_func_fork_works" = xyes
; then
16880 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16886 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16887 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16888 $as_echo_n "(cached) " >&6
16890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 #include <langinfo.h>
16896 char* cs = nl_langinfo(CODESET);
16901 if ac_fn_c_try_link
"$LINENO"; then :
16902 emacs_cv_langinfo_codeset
=yes
16904 emacs_cv_langinfo_codeset
=no
16906 rm -f core conftest.err conftest.
$ac_objext \
16907 conftest
$ac_exeext conftest.
$ac_ext
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16911 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16912 if test $emacs_cv_langinfo_codeset = yes; then
16914 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16918 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16919 if test "x$ac_cv_type_size_t" = x
""yes; then :
16921 cat >>confdefs.h
<<_ACEOF
16922 #define HAVE_SIZE_T 1
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16930 $as_echo_n "checking for mbstate_t... " >&6; }
16931 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16935 /* end confdefs.h. */
16936 $ac_includes_default
16937 # include <wchar.h>
16941 mbstate_t x; return sizeof x;
16946 if ac_fn_c_try_compile
"$LINENO"; then :
16947 ac_cv_type_mbstate_t
=yes
16949 ac_cv_type_mbstate_t
=no
16951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16954 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16955 if test $ac_cv_type_mbstate_t = yes; then
16957 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16961 $as_echo "#define mbstate_t int" >>confdefs.h
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16966 $as_echo_n "checking for C restricted array declarations... " >&6; }
16967 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 void fred (int x[__restrict]);
16981 if ac_fn_c_try_compile
"$LINENO"; then :
16982 emacs_cv_c_restrict_arr
=yes
16984 emacs_cv_c_restrict_arr
=no
16986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16989 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16990 if test "$emacs_cv_c_restrict_arr" = yes; then
16992 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16998 # Set up the CFLAGS for real compilation, so we can substitute it.
16999 CFLAGS
="$REAL_CFLAGS"
17000 CPPFLAGS
="$REAL_CPPFLAGS"
17002 ## Hack to detect a buggy GCC version.
17003 if test "x$GCC" = xyes \
17004 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17005 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17006 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17007 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17010 version
=$PACKAGE_VERSION
17012 ### Specify what sort of things we'll be editing into Makefile and config.h.
17013 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17037 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17038 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17039 ## end of LIBX_BASE, but nothing ever set it.
17044 ## Used in lwlib/Makefile.in.
17046 if test -n "${machfile}"; then
17047 M_FILE
="\$(srcdir)/${machfile}"
17051 S_FILE
="\$(srcdir)/${opsysfile}"
17063 cat >>confdefs.h
<<_ACEOF
17064 #define EMACS_CONFIGURATION "${canonical}"
17068 cat >>confdefs.h
<<_ACEOF
17069 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17072 if test -n "$machfile"; then
17074 cat >>confdefs.h
<<_ACEOF
17075 #define config_machfile "${machfile}"
17080 cat >>confdefs.h
<<_ACEOF
17081 #define config_opsysfile "${opsysfile}"
17088 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17090 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17093 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17095 if test "$HAVE_XFT" = "yes"; then
17096 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17097 elif test "$HAVE_FREETYPE" = "yes"; then
17098 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17108 if test "${USE_X_TOOLKIT}" != "none" ; then
17109 WIDGET_OBJ
=widget.o
17111 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17113 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17115 $as_echo "#define USE_LUCID 1" >>confdefs.h
17117 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17119 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17124 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17125 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17129 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17130 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17131 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17135 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17136 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17139 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17145 case "$USE_X_TOOLKIT" in
17146 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17147 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17148 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17152 if test "$USE_X_TOOLKIT" = "none"; then
17153 LIBXT_OTHER
="\$(LIBXSM)"
17154 OLDXMENU_TARGET
="really-oldXMenu"
17156 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17157 OLDXMENU_TARGET
="really-lwlib"
17161 ## The X Menu stuff is present in the X10 distribution, but missing
17162 ## from X11. If we have X10, just use the installed library;
17163 ## otherwise, use our own copy.
17164 if test "${HAVE_X11}" = "yes" ; then
17166 $as_echo "#define HAVE_X11 1" >>confdefs.h
17169 if test "$USE_X_TOOLKIT" = "none"; then
17170 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17172 OLDXMENU
="\${lwlibdir}/liblw.a"
17174 LIBXMENU
="\$(OLDXMENU)"
17175 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17176 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17178 ## For a syntactically valid Makefile; not actually used for anything.
17179 ## See comments in src/Makefile.in.
17181 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17182 if test "${HAVE_X_WINDOWS}" = "yes"; then
17191 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17204 if test "${HAVE_MENUS}" = "yes" ; then
17206 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17210 if test "${GNU_MALLOC}" = "yes" ; then
17212 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17217 if test "${REL_ALLOC}" = "yes" ; then
17219 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17222 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17226 if test "$opsys" = "cygwin"; then
17227 CYGWIN_OBJ
="sheap.o"
17228 ## Cygwin differs because of its unexec().
17230 POST_ALLOC_OBJ
=lastfile.o
17233 PRE_ALLOC_OBJ
=lastfile.o
17242 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
17245 ## The -headerpad option tells ld (see man page) to leave room at the
17246 ## end of the header for adding load commands. Needed for dumping.
17247 ## 0x690 is the total size of 30 segment load commands (at 56
17248 ## each); under Cocoa 31 commands are required.
17249 if test "$HAVE_NS" = "yes"; then
17250 libs_nsgui
="-framework AppKit"
17251 headerpad_extra
=6C8
17254 headerpad_extra
=690
17256 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17258 ## This is here because src/Makefile.in did some extra fiddling around
17259 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17260 ## #ifndef LD_SWITCH_SYSTEM
17261 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17262 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17263 ## not using gcc, darwin system not on an alpha (ie darwin, since
17264 ## darwin + alpha does not occur).
17265 ## Because this was done in src/Makefile.in, the resulting part of
17266 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17267 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17268 ## rather than LD_SWITCH_SYSTEM.
17269 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17270 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
17273 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17274 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17275 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17276 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17277 ## had different values in configure (in ac_link) and src/Makefile.in.
17278 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17279 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
17281 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
17284 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17285 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17294 ## gnu: GNU needs its own crt0.
17295 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
17297 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17298 ## library search parth, i.e. it won't search /usr/lib for libc and
17299 ## friends. Using -nostartfiles instead avoids this problem, and
17300 ## will also work on earlier NetBSD releases.
17301 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
17303 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17304 ## MkLinux/LinuxPPC needs this.
17305 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17308 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
17314 if test "x$ORDINARY_LINK" = "xyes"; then
17318 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17321 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17322 ## freebsd, gnu-* not on macppc|ibms390x.
17323 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17325 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17326 ## places that are difficult to figure out at make time. Fortunately,
17327 ## these same versions allow you to pass arbitrary flags on to the
17328 ## linker, so there is no reason not to use it as a linker.
17330 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17331 ## searching for libraries in its internal directories, so we have to
17332 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17333 LD_FIRSTFLAG
="-nostdlib"
17336 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17337 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
17342 ## FIXME? The logic here is not precisely the same as that above.
17343 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17344 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17346 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17349 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
17352 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17353 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17359 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17360 ## immediately undefine it again and redefine it to empty.
17361 ## Was the C_SWITCH_X_SITE part really necessary?
17362 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17368 ## Ask GCC where to find libgcc.a.
17369 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17376 ## If we're using X11/GNUstep, define some consequences.
17377 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
17379 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17382 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17384 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
17385 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
17387 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
17388 test "$HAVE_X_WINDOWS" = "yes" && \
17389 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17399 #### Report on what we decided to do.
17400 #### Report GTK as a toolkit, even if it doesn't use Xt.
17401 #### It makes printing result more understandable as using GTK sets
17402 #### toolkit_scroll_bars to yes by default.
17403 if test "${HAVE_GTK}" = "yes"; then
17408 if test -n "$machfile"; then
17409 and_machfile
=" and \`${machfile}'"
17413 Configured for \`${canonical}'.
17415 Where should the build process find the source code? ${srcdir}
17416 What operating system and machine description files should Emacs use?
17417 \`${opsysfile}'${and_machfile}
17418 What compiler should emacs be built with? ${CC} ${CFLAGS}
17419 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17420 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17421 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17422 What window system should Emacs use? ${window_system}
17423 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17425 if test -n "${x_includes}"; then
17426 echo " Where do we find X Windows header files? ${x_includes}"
17428 echo " Where do we find X Windows header files? Standard dirs"
17430 if test -n "${x_libraries}"; then
17431 echo " Where do we find X Windows libraries? ${x_libraries}"
17433 echo " Where do we find X Windows libraries? Standard dirs"
17436 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17437 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17438 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17439 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17440 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17441 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17442 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17443 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17445 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17446 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17447 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17448 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17449 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17450 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17452 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17453 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17454 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17455 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17457 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17460 if test $USE_XASSERTS = yes; then
17461 echo " Compiling with asserts turned on."
17462 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
17467 if test "$HAVE_NS" = "yes"; then
17469 echo "You must run \"make install\" in order to test the built application.
17470 The installed application will go to nextstep/Emacs.app and can be
17471 run or moved from there."
17472 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17473 echo "The application will be fully self-contained."
17475 echo "The lisp resources for the application will be installed under ${prefix}.
17476 You may need to run \"make install\" with sudo. The application will fail
17477 to run if these resources are not installed."
17483 # Remove any trailing slashes in these variables.
17484 test "${prefix}" != NONE
&&
17485 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17486 test "${exec_prefix}" != NONE
&&
17487 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17489 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"
17491 ac_config_commands
="$ac_config_commands default"
17493 cat >confcache
<<\_ACEOF
17494 # This file is a shell script that caches the results of configure
17495 # tests run on this system so they can be shared between configure
17496 # scripts and configure runs, see configure's option --config-cache.
17497 # It is not useful on other systems. If it contains results you don't
17498 # want to keep, you may remove or edit it.
17500 # config.status only pays attention to the cache file if you give it
17501 # the --recheck option to rerun configure.
17503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17505 # following values.
17509 # The following way of writing the cache mishandles newlines in values,
17510 # but we know of no workaround that is simple, portable, and efficient.
17511 # So, we kill variables containing newlines.
17512 # Ultrix sh set writes to stderr and can't be redirected directly,
17513 # and sets the high bit in the cache file unless we assign to the vars.
17515 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17516 eval ac_val
=\$
$ac_var
17520 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17524 _ | IFS | as_nl
) ;; #(
17525 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17526 *) { eval $ac_var=; unset $ac_var;} ;;
17532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17533 *${as_nl}ac_space
=\
*)
17534 # `set' does not quote correctly, so add quotes: double-quote
17535 # substitution turns \\\\ into \\, and sed turns \\ into \.
17538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17541 # `set' quotes correctly as required by POSIX, so do not add quotes.
17542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17555 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17556 if test -w "$cache_file"; then
17557 test "x$cache_file" != "x/dev/null" &&
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17559 $as_echo "$as_me: updating cache $cache_file" >&6;}
17560 cat confcache
>$cache_file
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17568 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17569 # Let make expand exec_prefix.
17570 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17572 DEFS
=-DHAVE_CONFIG_H
17577 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17578 # 1. Remove the extension, and $U if already installed.
17579 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17580 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17582 # will be set to the directory where LIBOBJS objects are built.
17583 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17584 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17586 LIBOBJS
=$ac_libobjs
17588 LTLIBOBJS
=$ac_ltlibobjs
17591 if test -n "$EXEEXT"; then
17593 am__EXEEXT_FALSE
='#'
17595 am__EXEEXT_TRUE
='#'
17599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17600 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17604 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17608 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17609 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
17610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17615 if test -n "$gl_LIBOBJS"; then
17616 # Remove the extension.
17617 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17618 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17619 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17620 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17623 gl_LIBOBJS
=$gl_libobjs
17625 gl_LTLIBOBJS
=$gl_ltlibobjs
17631 if test -n "$gltests_LIBOBJS"; then
17632 # Remove the extension.
17633 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17634 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17635 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17636 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17639 gltests_LIBOBJS
=$gltests_libobjs
17641 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17645 : ${CONFIG_STATUS=./config.status}
17647 ac_clean_files_save
=$ac_clean_files
17648 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17650 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17652 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17654 # Generated by $as_me.
17655 # Run this file to recreate the current configuration.
17656 # Compiler output produced by configure, useful for debugging
17657 # configure, is in config.log if it exists.
17660 ac_cs_recheck=false
17663 SHELL=\${CONFIG_SHELL-$SHELL}
17666 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17667 ## -------------------- ##
17668 ## M4sh Initialization. ##
17669 ## -------------------- ##
17671 # Be more Bourne compatible
17672 DUALCASE
=1; export DUALCASE
# for MKS sh
17673 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17676 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17677 # is contrary to our usage. Disable this feature.
17678 alias -g '${1+"$@"}'='"$@"'
17679 setopt NO_GLOB_SUBST
17681 case `(set -o) 2>/dev/null` in #(
17693 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17694 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17697 # Prefer a ksh shell builtin over an external printf program on Solaris,
17698 # but without wasting forks for bash or zsh.
17699 if test -z "$BASH_VERSION$ZSH_VERSION" \
17700 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17701 as_echo='print
-r --'
17702 as_echo_n='print
-rn --'
17703 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17704 as_echo='printf %s
\n'
17705 as_echo_n='printf %s
'
17707 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17708 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17709 as_echo_n='/usr
/ucb
/echo -n'
17711 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17712 as_echo_n_body='eval
17716 expr "X$arg" : "X\\(.*\\)$as_nl";
17717 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17719 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17721 export as_echo_n_body
17722 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17724 export as_echo_body
17725 as_echo='sh
-c $as_echo_body as_echo
'
17728 # The user is always right.
17729 if test "${PATH_SEPARATOR+set}" != set; then
17731 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17732 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17739 # We need space, tab and new line, in precisely that order. Quoting is
17740 # there to prevent editors from complaining about space-tab.
17741 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17742 # splitting by setting IFS to empty value.)
17745 # Find who we are. Look in the path if we contain no directory separator.
17747 *[\\/]* ) as_myself=$0 ;;
17748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17752 test -z "$as_dir" && as_dir=.
17753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17759 # We did not find ourselves, most probably we were run as `sh COMMAND'
17760 # in which case we are not to be found in the path.
17761 if test "x$as_myself" = x
; then
17764 if test ! -f "$as_myself"; then
17765 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17769 # Unset variables that we do not need and which cause bugs (e.g. in
17770 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17771 # suppresses any "Segmentation fault" message there. '((' could
17772 # trigger a bug in pdksh 5.2.14.
17773 for as_var
in BASH_ENV ENV MAIL MAILPATH
17774 do eval test x\
${$as_var+set} = xset \
17775 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17788 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17791 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17792 # ----------------------------------------
17793 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17794 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17795 # script with STATUS, using 1 if that was 0.
17798 as_status
=$1; test $as_status -eq 0 && as_status
=1
17800 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17801 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17803 $as_echo "$as_me: error: $2" >&2
17804 as_fn_exit
$as_status
17808 # as_fn_set_status STATUS
17809 # -----------------------
17810 # Set $? to STATUS, without forking.
17811 as_fn_set_status
()
17814 } # as_fn_set_status
17816 # as_fn_exit STATUS
17817 # -----------------
17818 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17822 as_fn_set_status
$1
17828 # Portably unset VAR.
17831 { eval $1=; unset $1;}
17833 as_unset
=as_fn_unset
17834 # as_fn_append VAR VALUE
17835 # ----------------------
17836 # Append the text in VALUE to the end of the definition contained in VAR. Take
17837 # advantage of any shell optimizations that allow amortized linear growth over
17838 # repeated appends, instead of the typical quadratic growth present in naive
17840 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17841 eval 'as_fn_append ()
17852 # as_fn_arith ARG...
17853 # ------------------
17854 # Perform arithmetic evaluation on the ARGs, and store the result in the
17855 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17856 # must be portable across $(()) and expr.
17857 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17858 eval 'as_fn_arith ()
17865 as_val
=`expr "$@" || test $? -eq 1`
17870 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17871 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17877 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17878 as_basename
=basename
17883 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17889 as_me
=`$as_basename -- "$0" ||
17890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17891 X"$0" : 'X\(//\)$' \| \
17892 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17894 sed '/^.*\/\([^/][^/]*\)\/*$/{
17908 # Avoid depending upon Character Ranges.
17909 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17910 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17911 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17912 as_cr_digits
='0123456789'
17913 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17915 ECHO_C
= ECHO_N
= ECHO_T
=
17916 case `echo -n x` in #(((((
17918 case `echo 'xy\c'` in
17919 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17921 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17928 rm -f conf$$ conf$$.exe conf$$.
file
17929 if test -d conf$$.dir
; then
17930 rm -f conf$$.dir
/conf$$.
file
17933 mkdir conf$$.dir
2>/dev
/null
17935 if (echo >conf$$.
file) 2>/dev
/null
; then
17936 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17938 # ... but there are two gotchas:
17939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17941 # In both cases, we have to default to `cp -p'.
17942 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17944 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17952 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17953 rmdir conf$$.dir
2>/dev
/null
17958 # Create "$as_dir" as a directory, including parents if necessary.
17963 -*) as_dir
=.
/$as_dir;;
17965 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17969 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17970 *) as_qdir
=$as_dir;;
17972 as_dirs
="'$as_qdir' $as_dirs"
17973 as_dir
=`$as_dirname -- "$as_dir" ||
17974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17975 X"$as_dir" : 'X\(//\)[^/]' \| \
17976 X"$as_dir" : 'X\(//\)$' \| \
17977 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17978 $as_echo X"$as_dir" |
17979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17983 /^X\(\/\/\)[^/].*/{
17996 test -d "$as_dir" && break
17998 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17999 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18003 if mkdir
-p .
2>/dev
/null
; then
18004 as_mkdir_p
='mkdir -p "$as_dir"'
18006 test -d .
/-p && rmdir .
/-p
18010 if test -x / >/dev
/null
2>&1; then
18011 as_test_x
='test -x'
18013 if ls -dL / >/dev
/null
2>&1; then
18020 if test -d "$1"; then
18026 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18027 ???[sx]*):;;*)false;;esac;fi
18031 as_executable_p
=$as_test_x
18033 # Sed expression to map a string onto a valid CPP name.
18034 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18036 # Sed expression to map a string onto a valid variable name.
18037 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18041 ## ----------------------------------- ##
18042 ## Main body of $CONFIG_STATUS script. ##
18043 ## ----------------------------------- ##
18045 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18048 # Save the log message, to keep $0 and so on meaningful, and to
18049 # report actual input values of CONFIG_FILES etc. instead of their
18050 # values after options handling.
18052 This file was extended by emacs $as_me 24.0.50, which was
18053 generated by GNU Autoconf 2.67. Invocation command line was
18055 CONFIG_FILES = $CONFIG_FILES
18056 CONFIG_HEADERS = $CONFIG_HEADERS
18057 CONFIG_LINKS = $CONFIG_LINKS
18058 CONFIG_COMMANDS = $CONFIG_COMMANDS
18061 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18066 case $ac_config_files in *"
18067 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18070 case $ac_config_headers in *"
18071 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076 # Files that config.status was made for.
18077 config_files="$ac_config_files"
18078 config_headers="$ac_config_headers"
18079 config_commands="$ac_config_commands"
18083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18085 \`$as_me' instantiates files and other configuration actions
18086 from templates according to the current configuration. Unless the files
18087 and actions are specified as TAGs, all are instantiated by default.
18089 Usage: $0 [OPTION]... [TAG]...
18091 -h, --help print this help, then exit
18092 -V, --version print version number and configuration settings, then exit
18093 --config print configuration, then exit
18094 -q, --quiet, --silent
18095 do not print progress messages
18096 -d, --debug don't remove temporary files
18097 --recheck update $as_me by reconfiguring in the same conditions
18098 --file=FILE[:TEMPLATE]
18099 instantiate the configuration file FILE
18100 --header=FILE[:TEMPLATE]
18101 instantiate the configuration header FILE
18103 Configuration files:
18106 Configuration headers:
18109 Configuration commands:
18112 Report bugs to the package provider."
18115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18118 emacs config.status 24.0.50
18119 configured by $0, generated by GNU Autoconf 2.67,
18120 with options \\"\$ac_cs_config\\"
18122 Copyright (C) 2010 Free Software Foundation, Inc.
18123 This config.status script is free software; the Free Software Foundation
18124 gives unlimited permission to copy, distribute and modify it."
18131 test -n "\$AWK" || AWK=awk
18134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18135 # The default lists apply if the user does not specify any file.
18141 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18142 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18146 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18158 # Handling of the options.
18159 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18161 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18162 $as_echo "$ac_cs_version"; exit ;;
18163 --config |
--confi |
--conf |
--con |
--co |
--c )
18164 $as_echo "$ac_cs_config"; exit ;;
18165 --debug |
--debu |
--deb |
--de |
--d |
-d )
18167 --file |
--fil |
--fi |
--f )
18170 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18171 '') as_fn_error $?
"missing file argument" ;;
18173 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18174 ac_need_defaults
=false
;;
18175 --header |
--heade |
--head |
--hea )
18178 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18180 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18181 ac_need_defaults
=false
;;
18183 # Conflict between --help and --header
18184 as_fn_error $?
"ambiguous option: \`$1'
18185 Try \`$0 --help' for more information.";;
18186 --help |
--hel |
-h )
18187 $as_echo "$ac_cs_usage"; exit ;;
18188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18189 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18192 # This is an error.
18193 -*) as_fn_error $?
"unrecognized option: \`$1'
18194 Try \`$0 --help' for more information." ;;
18196 *) as_fn_append ac_config_targets
" $1"
18197 ac_need_defaults
=false
;;
18203 ac_configure_extra_args
=
18205 if $ac_cs_silent; then
18207 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18212 if \$ac_cs_recheck; then
18213 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18216 CONFIG_SHELL='$SHELL'
18217 export CONFIG_SHELL
18222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18227 ## Running $as_me. ##
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18237 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18238 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18244 # Handling of arguments.
18245 for ac_config_target
in $ac_config_targets
18247 case $ac_config_target in
18248 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18249 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18250 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18251 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18252 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
18253 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18254 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
18255 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
18256 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
18257 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
18258 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18259 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18260 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18261 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18262 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
18263 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18265 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
18270 # If the user did not use the arguments to specify the items to instantiate,
18271 # then the envvar interface is used. Set only those that are not.
18272 # We use the long form for the default assignment because of an extremely
18273 # bizarre bug on SunOS 4.1.3.
18274 if $ac_need_defaults; then
18275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18280 # Have a temporary directory for convenience. Make it in the build tree
18281 # simply because there is no reason against having it here, and in addition,
18282 # creating and moving files from /tmp can sometimes cause problems.
18283 # Hook for its removal unless debugging.
18284 # Note that there is a small window in which the directory will not be cleaned:
18285 # after its creation but before its name has been assigned to `$tmp'.
18289 trap 'exit_status=$?
18290 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18292 trap 'as_fn_exit 1' 1 2 13 15
18294 # Create a (secure) tmp directory for tmp files.
18297 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18298 test -n "$tmp" && test -d "$tmp"
18301 tmp
=.
/conf$$
-$RANDOM
18302 (umask 077 && mkdir
"$tmp")
18303 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18305 # Set up the scripts for CONFIG_FILES section.
18306 # No need to generate them if there are no CONFIG_FILES.
18307 # This happens for instance with `./config.status config.h'.
18308 if test -n "$CONFIG_FILES"; then
18310 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18311 ac_cs_awk_getline
=:
18312 ac_cs_awk_pipe_init
=
18313 ac_cs_awk_read_file
='
18314 while ((getline aline < (F[key])) > 0)
18317 ac_cs_awk_pipe_fini
=
18319 ac_cs_awk_getline
=false
18320 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18321 ac_cs_awk_read_file
='
18323 print "cat " F[key] " &&"
18324 '$ac_cs_awk_pipe_init
18325 # The final `:' finishes the AND list.
18326 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18328 ac_cr
=`echo X | tr X '\015'`
18329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18330 # But we know of no other shell where ac_cr would be empty at this
18331 # point, so we can use a bashism as a fallback.
18332 if test "x$ac_cr" = x
; then
18333 eval ac_cr
=\$
\'\\r
\'
18335 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18339 ac_cs_awk_cr
=$ac_cr
18342 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18345 # Create commands to substitute file output variables.
18347 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18348 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18349 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18352 } >conf$
$files.sh
&&
18353 . .
/conf$
$files.sh ||
18354 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18355 rm -f conf$
$files.sh
18358 echo "cat >conf$$subs.awk <<_ACEOF" &&
18359 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18361 } >conf$$subs.sh ||
18362 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18363 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18365 for ac_last_try in false false false false false :; do
18366 . ./conf$$subs.sh ||
18367 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18369 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18370 if test $ac_delim_n = $ac_delim_num; then
18372 elif $ac_last_try; then
18373 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18375 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18378 rm -f conf$$subs.sh
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18385 s/^/S["/; s
/!.
*/"]=/
18395 s/\(.\{148\}\)..*/\1/
18397 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18402 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18409 s/\(.\{148\}\)..*/\1/
18411 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18415 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18420 ' <conf$$subs.awk | sed '
18425 ' >>$CONFIG_STATUS || ac_write_fail=1
18426 rm -f conf$$subs.awk
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18429 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18430 for (key in S) S_is_set[key] = 1
18432 \$ac_cs_awk_pipe_init
18436 nfields = split(line, field, "@
")
18438 len = length(field[1])
18439 for (i = 2; i < nfields; i++) {
18441 keylen = length(key)
18442 if (S_is_set[key]) {
18444 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18445 len += length(value) + length(field[++i])
18450 if (nfields == 3 && !substed) {
18452 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18453 \$ac_cs_awk_read_file
18459 \$ac_cs_awk_pipe_fini
18462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18464 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18467 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18468 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18471 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18472 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18473 # trailing colons and then remove the whole line if VPATH becomes empty
18474 # (actually we leave an empty line to preserve line numbers).
18475 if test "x
$srcdir" = x.; then
18476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18495 fi # test -n "$CONFIG_FILES"
18497 # Set up the scripts for CONFIG_HEADERS section.
18498 # No need to generate them if there are no CONFIG_HEADERS.
18499 # This happens for instance with `./config.status Makefile'.
18500 if test -n "$CONFIG_HEADERS"; then
18501 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18505 # Transform confdefs.h into an awk script `defines.awk', embedded as
18506 # here-document in config.status, that substitutes the proper values into
18507 # config.h.in to produce config.h.
18509 # Create a delimiter string that does not exist in confdefs.h, to ease
18510 # handling of long lines.
18512 for ac_last_try in false false :; do
18513 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18514 if test -z "$ac_t"; then
18516 elif $ac_last_try; then
18517 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18519 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18523 # For the awk script, D is an array of macro values keyed by name,
18524 # likewise P contains macro parameters if any. Preserve backslash
18525 # newline sequences.
18527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18529 s/.\{148\}/&'"$ac_delim"'/g
18532 s/^[ ]*#[ ]*define[ ][ ]*/ /
18539 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18541 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18546 D["\
1"]=" \
3\\\\\\n
"\\/p
18548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18553 s/.\{148\}/&'"$ac_delim"'/g
18558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18561 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18563 ' <confdefs.h | sed '
18564 s/'"$ac_delim"'/"\\\
18565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 for (key in D) D_is_set[key] = 1
18571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18573 split(line, arg, " ")
18574 if (arg[1] == "#") {
18578 defundef
= substr
(arg
[1], 2)
18581 split(mac1
, mac2
, "(") #)
18583 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18584 if (D_is_set
[macro
]) {
18585 # Preserve the white space surrounding the "#".
18586 print prefix
"define", macro P
[macro
] D
[macro
]
18589 # Replace #undef with comments. This is necessary, for example,
18590 # in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 if (defundef
== "undef") {
18593 print
"/*", prefix defundef
, macro
, "*/"
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18602 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18603 fi # test -n "$CONFIG_HEADERS"
18606 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18611 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18613 case $ac_mode$ac_tag in
18615 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18616 :[FH
]-) ac_tag
=-:-;;
18617 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18634 -) ac_f
="$tmp/stdin";;
18635 *) # Look for the file first in the build tree, then in the source tree
18636 # (if the path is not absolute). The absolute path cannot be DOS-style,
18637 # because $ac_f cannot contain `:'.
18641 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18643 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18645 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18646 as_fn_append ac_file_inputs
" '$ac_f'"
18649 # Let's still pretend it is `configure' which instantiates (i.e., don't
18650 # use $as_me), people would be surprised to read:
18651 # /* config.h. Generated by config.status. */
18652 configure_input
='Generated from '`
18653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18655 if test x
"$ac_file" != x-
; then
18656 configure_input
="$ac_file. $configure_input"
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18658 $as_echo "$as_me: creating $ac_file" >&6;}
18660 # Neutralize special characters interpreted by sed in replacement strings.
18661 case $configure_input in #(
18662 *\
&* |
*\|
* |
*\\* )
18663 ac_sed_conf_input
=`$as_echo "$configure_input" |
18664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18665 *) ac_sed_conf_input
=$configure_input;;
18669 *:-:* |
*:-) cat >"$tmp/stdin" \
18670 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18675 ac_dir
=`$as_dirname -- "$ac_file" ||
18676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$ac_file" : 'X\(//\)[^/]' \| \
18678 X"$ac_file" : 'X\(//\)$' \| \
18679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18680 $as_echo X"$ac_file" |
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18685 /^X\(\/\/\)[^/].*/{
18698 as_dir
="$ac_dir"; as_fn_mkdir_p
18702 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18704 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18705 # A ".." for each directory in $ac_dir_suffix.
18706 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18707 case $ac_top_builddir_sub in
18708 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18709 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18712 ac_abs_top_builddir
=$ac_pwd
18713 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18714 # for backward compatibility:
18715 ac_top_builddir
=$ac_top_build_prefix
18718 .
) # We are building in place.
18720 ac_top_srcdir
=$ac_top_builddir_sub
18721 ac_abs_top_srcdir
=$ac_pwd ;;
18722 [\\/]* | ?
:[\\/]* ) # Absolute name.
18723 ac_srcdir
=$srcdir$ac_dir_suffix;
18724 ac_top_srcdir
=$srcdir
18725 ac_abs_top_srcdir
=$srcdir ;;
18726 *) # Relative name.
18727 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18728 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18729 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18731 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18741 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18742 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18744 ac_MKDIR_P
=$MKDIR_P
18746 [\\/$
]* | ?
:[\\/]* ) ;;
18747 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18752 # If the template does not know about datarootdir, expand it.
18753 # FIXME: This hack should be removed a few years after 2.60.
18754 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18766 *datarootdir
*) ac_datarootdir_seen
=yes;;
18767 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18772 ac_datarootdir_hack='
18773 s&@datadir@&$datadir&g
18774 s&@docdir@&$docdir&g
18775 s&@infodir@&$infodir&g
18776 s&@localedir@&$localedir&g
18777 s&@mandir@&$mandir&g
18778 s&\\\${datarootdir}&$datarootdir&g' ;;
18782 # Neutralize VPATH when `$srcdir' = `.'.
18783 # Shell code in configure.ac might set extrasub.
18784 # FIXME: do we really want to maintain this feature?
18785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18786 ac_sed_extra="$ac_vpsub
18789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18791 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18792 s|@configure_input@|
$ac_sed_conf_input|
;t t
18793 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18794 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18795 s
&@srcdir@
&$ac_srcdir&;t t
18796 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18797 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18798 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18799 s
&@builddir@
&$ac_builddir&;t t
18800 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18801 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18802 s
&@INSTALL@
&$ac_INSTALL&;t t
18803 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18804 $ac_datarootdir_hack
18806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18807 if $ac_cs_awk_getline; then
18808 $AWK -f "$tmp/subs.
awk"
18810 $AWK -f "$tmp/subs.
awk" | $SHELL
18812 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18818 which seems to be undefined. Please make sure it is defined" >&5
18819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18820 which seems to be undefined. Please make sure it is defined" >&2;}
18824 -) cat "$tmp/out" && rm -f "$tmp/out";;
18825 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18833 if test x"$ac_file" != x-; then
18835 $as_echo "/* $configure_input */" \
18836 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18837 } >"$tmp/config.h" \
18838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18839 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18841 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18844 mv "$tmp/config.h" "$ac_file" \
18845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18848 $as_echo "/* $configure_input */" \
18849 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18850 || as_fn_error $? "could not create -" "$LINENO" 5
18852 # Compute "$ac_file"'s index
in $config_headers.
18855 for _am_header
in $config_headers :; do
18856 case $_am_header in
18857 $_am_arg |
$_am_arg:* )
18860 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18863 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18864 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18865 X"$_am_arg" : 'X\(//\)[^/]' \| \
18866 X"$_am_arg" : 'X\(//\)$' \| \
18867 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18868 $as_echo X"$_am_arg" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18873 /^X\(\/\/\)[^/].*/{
18885 s/.*/./; q'`/stamp-h
$_am_stamp_count
18888 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18889 $as_echo "$as_me: executing $ac_file commands" >&6;}
18894 case $ac_file$ac_mode in
18895 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18896 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18897 # are listed without --file. Let's play safe and only enable the eval
18898 # if we detect the quoting.
18899 case $CONFIG_FILES in
18900 *\'*) eval set x
"$CONFIG_FILES" ;;
18901 *) set x
$CONFIG_FILES ;;
18906 # Strip MF so we end up with the name of the file.
18907 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18908 # Check whether this is an Automake generated Makefile or not.
18909 # We used to match only the files named `Makefile.in', but
18910 # some people rename them; so instead we look at the file content.
18911 # Grep'ing the first line is not enough: some people post-process
18912 # each Makefile.in and add a new line on top of each file to say so.
18913 # Grep'ing the whole file is not good either: AIX grep has a line
18914 # limit of 2048, but all sed's we know have understand at least 4000.
18915 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18916 dirpart
=`$as_dirname -- "$mf" ||
18917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18918 X"$mf" : 'X\(//\)[^/]' \| \
18919 X"$mf" : 'X\(//\)$' \| \
18920 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18926 /^X\(\/\/\)[^/].*/{
18942 # Extract the definition of DEPDIR, am__include, and am__quote
18943 # from the Makefile without running `make'.
18944 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18945 test -z "$DEPDIR" && continue
18946 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18947 test -z "am__include" && continue
18948 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18949 # When using ansi2knr, U may be empty or an underscore; expand it
18950 U
=`sed -n 's/^U = //p' < "$mf"`
18951 # Find all dependency output files, they are included files with
18952 # $(DEPDIR) in their names. We invoke sed twice because it is the
18953 # simplest approach to changing $(DEPDIR) to its actual value in the
18955 for file in `sed -n "
18956 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18957 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18958 # Make sure the directory exists.
18959 test -f "$dirpart/$file" && continue
18960 fdir
=`$as_dirname -- "$file" ||
18961 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18962 X"$file" : 'X\(//\)[^/]' \| \
18963 X"$file" : 'X\(//\)$' \| \
18964 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18965 $as_echo X"$file" |
18966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18970 /^X\(\/\/\)[^/].*/{
18983 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18984 # echo "creating $dirpart/$file"
18985 echo '# dummy' > "$dirpart/$file"
18992 ### Make the necessary directories, if they don't exist.
18993 for dir
in etc lisp
; do
18994 test -d ${dir} || mkdir
${dir}
18997 echo creating src
/epaths.h
18998 ${MAKE-make} epaths-force
19000 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19001 echo creating src
/.gdbinit
19002 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19013 ac_clean_files
=$ac_clean_files_save
19015 test $ac_write_fail = 0 ||
19016 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19019 # configure is writing to config.log, and then calls config.status.
19020 # config.status does its own redirection, appending to config.log.
19021 # Unfortunately, on DOS this fails, as config.log is still kept open
19022 # by configure, so config.status won't be able to write to it; its
19023 # output is simply discarded. So we exec the FD to /dev/null,
19024 # effectively closing config.log, so it can be properly (re)opened and
19025 # appended to by config.status. When coming back to configure, we
19026 # need to make the FD available again.
19027 if test "$no_create" != yes; then
19029 ac_config_status_args
=
19030 test "$silent" = yes &&
19031 ac_config_status_args
="$ac_config_status_args --quiet"
19033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19036 # would make configure fail if this is the last instruction.
19037 $ac_cs_success || as_fn_exit
1
19039 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19041 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}