2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
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 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
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&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, 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
597 ac_subst_vars
='LTLIBOBJS
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
706 LD_SWITCH_X_SITE_AUX_RPATH
783 program_transform_name
794 ac_subst_files
='deps_frag
797 enable_option_checking
819 with_toolkit_scroll_bars
834 enable_ns_self_contained
836 enable_maintainer_mode
839 enable_use_lisp_union_type
845 ac_precious_vars
='build_alias
857 # Initialize some variables set by options.
859 ac_init_version
=false
860 ac_unrecognized_opts
=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name
=s
,x
,x
,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir
='${exec_prefix}/bin'
886 sbindir
='${exec_prefix}/sbin'
887 libexecdir
='${exec_prefix}/libexec'
888 datarootdir
='${prefix}/share'
889 datadir
='${datarootdir}'
890 sysconfdir
='${prefix}/etc'
891 sharedstatedir
='${prefix}/com'
892 localstatedir
='${prefix}/var'
893 includedir
='${prefix}/include'
894 oldincludedir
='/usr/include'
895 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir
='${datarootdir}/info'
901 libdir
='${exec_prefix}/lib'
902 localedir
='${datarootdir}/locale'
903 mandir
='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\
$ac_option
917 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
929 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
932 -build |
--build |
--buil |
--bui |
--bu)
933 ac_prev
=build_alias
;;
934 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
935 build_alias
=$ac_optarg ;;
937 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
938 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
939 ac_prev
=cache_file
;;
940 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
941 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
942 cache_file
=$ac_optarg ;;
945 cache_file
=config.cache
;;
947 -datadir |
--datadir |
--datadi |
--datad)
949 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
950 datadir
=$ac_optarg ;;
952 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
953 |
--dataroo |
--dataro |
--datar)
954 ac_prev
=datarootdir
;;
955 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
956 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
957 datarootdir
=$ac_optarg ;;
959 -disable-* |
--disable-*)
960 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
963 as_fn_error
"invalid feature name: $ac_useropt"
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=no
;;
975 -docdir |
--docdir |
--docdi |
--doc |
--do)
977 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
980 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
982 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
985 -enable-* |
--enable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 as_fn_error
"invalid feature name: $ac_useropt"
990 ac_useropt_orig
=$ac_useropt
991 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep
=', ';;
999 eval enable_
$ac_useropt=\
$ac_optarg ;;
1001 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1002 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1003 |
--exec |
--exe |
--ex)
1004 ac_prev
=exec_prefix
;;
1005 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1006 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1007 |
--exec=* |
--exe=* |
--ex=*)
1008 exec_prefix
=$ac_optarg ;;
1010 -gas |
--gas |
--ga |
--g)
1011 # Obsolete; use --with-gas.
1014 -help |
--help |
--hel |
--he |
-h)
1015 ac_init_help
=long
;;
1016 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1017 ac_init_help
=recursive
;;
1018 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1019 ac_init_help
=short
;;
1021 -host |
--host |
--hos |
--ho)
1022 ac_prev
=host_alias
;;
1023 -host=* |
--host=* |
--hos=* |
--ho=*)
1024 host_alias
=$ac_optarg ;;
1026 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1028 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1030 htmldir
=$ac_optarg ;;
1032 -includedir |
--includedir |
--includedi |
--included |
--include \
1033 |
--includ |
--inclu |
--incl |
--inc)
1034 ac_prev
=includedir
;;
1035 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1036 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1037 includedir
=$ac_optarg ;;
1039 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1041 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1042 infodir
=$ac_optarg ;;
1044 -libdir |
--libdir |
--libdi |
--libd)
1046 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1047 libdir
=$ac_optarg ;;
1049 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1050 |
--libexe |
--libex |
--libe)
1051 ac_prev
=libexecdir
;;
1052 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1053 |
--libexe=* |
--libex=* |
--libe=*)
1054 libexecdir
=$ac_optarg ;;
1056 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1057 ac_prev
=localedir
;;
1058 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1059 localedir
=$ac_optarg ;;
1061 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1062 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1063 ac_prev
=localstatedir
;;
1064 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1065 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1066 localstatedir
=$ac_optarg ;;
1068 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1070 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1071 mandir
=$ac_optarg ;;
1073 -nfp |
--nfp |
--nf)
1074 # Obsolete; use --without-fp.
1077 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1078 |
--no-cr |
--no-c |
-n)
1081 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1082 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1085 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1086 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1087 |
--oldin |
--oldi |
--old |
--ol |
--o)
1088 ac_prev
=oldincludedir
;;
1089 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1090 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1091 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1092 oldincludedir
=$ac_optarg ;;
1094 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1096 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1097 prefix
=$ac_optarg ;;
1099 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1100 |
--program-pre |
--program-pr |
--program-p)
1101 ac_prev
=program_prefix
;;
1102 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1103 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1104 program_prefix
=$ac_optarg ;;
1106 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1107 |
--program-suf |
--program-su |
--program-s)
1108 ac_prev
=program_suffix
;;
1109 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1110 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1111 program_suffix
=$ac_optarg ;;
1113 -program-transform-name |
--program-transform-name \
1114 |
--program-transform-nam |
--program-transform-na \
1115 |
--program-transform-n |
--program-transform- \
1116 |
--program-transform |
--program-transfor \
1117 |
--program-transfo |
--program-transf \
1118 |
--program-trans |
--program-tran \
1119 |
--progr-tra |
--program-tr |
--program-t)
1120 ac_prev
=program_transform_name
;;
1121 -program-transform-name=* |
--program-transform-name=* \
1122 |
--program-transform-nam=* |
--program-transform-na=* \
1123 |
--program-transform-n=* |
--program-transform-=* \
1124 |
--program-transform=* |
--program-transfor=* \
1125 |
--program-transfo=* |
--program-transf=* \
1126 |
--program-trans=* |
--program-tran=* \
1127 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1128 program_transform_name
=$ac_optarg ;;
1130 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1132 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1133 pdfdir
=$ac_optarg ;;
1135 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1137 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1140 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1141 |
-silent |
--silent |
--silen |
--sile |
--sil)
1144 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1146 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1148 sbindir
=$ac_optarg ;;
1150 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1151 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1152 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1154 ac_prev
=sharedstatedir
;;
1155 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1156 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1157 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1159 sharedstatedir
=$ac_optarg ;;
1161 -site |
--site |
--sit)
1163 -site=* |
--site=* |
--sit=*)
1166 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1168 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1169 srcdir
=$ac_optarg ;;
1171 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1172 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1173 ac_prev
=sysconfdir
;;
1174 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1175 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1176 sysconfdir
=$ac_optarg ;;
1178 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1179 ac_prev
=target_alias
;;
1180 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1181 target_alias
=$ac_optarg ;;
1183 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1186 -version |
--version |
--versio |
--versi |
--vers |
-V)
1187 ac_init_version
=: ;;
1190 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1193 as_fn_error
"invalid package name: $ac_useropt"
1194 ac_useropt_orig
=$ac_useropt
1195 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep
=', ';;
1203 eval with_
$ac_useropt=\
$ac_optarg ;;
1205 -without-* |
--without-*)
1206 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1209 as_fn_error
"invalid package name: $ac_useropt"
1210 ac_useropt_orig
=$ac_useropt
1211 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep
=', ';;
1219 eval with_
$ac_useropt=no
;;
1222 # Obsolete; use --with-x.
1225 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1226 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1227 ac_prev
=x_includes
;;
1228 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1229 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1230 x_includes
=$ac_optarg ;;
1232 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1233 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1234 ac_prev
=x_libraries
;;
1235 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1236 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1237 x_libraries
=$ac_optarg ;;
1239 -*) as_fn_error
"unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information."
1244 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1248 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\
$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 if test -n "$ac_prev"; then
1265 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error
"missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val
=\$
$ac_var
1284 # Remove trailing slashes.
1287 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\
$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$
]* | ?
:[\\/]* ) continue;;
1293 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1295 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target
=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x
; then
1307 if test "x$build_alias" = x
; then
1308 cross_compiling
=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --x-includes=DIR X include files are
in DIR
1460 --x-libraries=DIR X library files are
in DIR
1463 --build=BUILD configure
for building on BUILD
[guessed
]
1464 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1475 --disable-option-checking ignore unrecognized
--enable/--with options
1476 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1477 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1478 --disable-ns-self-contained
1479 disable self contained build under NeXTstep
1480 --enable-asserts compile code with asserts enabled
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful
(and
1483 sometimes confusing
) to the casual installer
1484 --enable-locallisppath=PATH
1485 directories Emacs should search
for lisp files
1486 specific to this site
1487 --enable-checking[=LIST
]
1488 enable expensive run-time checks. With LIST
, enable
1489 only specific categories of checks. Categories are
:
1490 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1491 stringfreelist
, xmallocoverrun
, conslist
1492 --enable-use-lisp-union-type
1493 use a union
for the Lisp_Object data
type. This is
1494 only useful
for development
for catching certain
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled
if GNU Make and
1501 --disable-largefile omit support
for large files
1504 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1505 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1506 --without-pop don
't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1517 lucid or athena
, motif
, no
)
1518 --without-xpm don
't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don
't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don
't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xml2 don
't compile with XML parsing support
1525 --without-imagemagick don't compile with ImageMagick image support
1526 --without-xft don
't use XFT for anti aliased fonts
1527 --without-libotf don't use libotf
for OpenType font support
1528 --without-m17n-flt don
't use m17n-flt for text shaping
1529 --without-toolkit-scroll-bars
1530 don't use Motif or Xaw3d scroll bars
1531 --without-xaw3d don
't use Xaw3d
1532 --without-xim don't use X11 XIM
1533 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1534 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1536 --without-dbus don't compile with D-Bus support
1537 --without-gconf don
't compile with GConf support
1538 --without-selinux don't compile with SELinux support
1539 --without-gnutls don
't use -lgnutls for SSL/TLS support
1540 --without-makeinfo don't require makeinfo
for building manuals
1541 --without-compress-info don
't compress the installed Info pages
1542 --with-pkg-config-prog=PATH
1543 path to pkg-config for finding GTK and librsvg
1544 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1545 /usr/lib, or /usr/lib64 on some platforms.
1546 --with-gameuser=USER user for shared game score files
1547 --with-gnustep-conf=PATH
1548 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1549 or /etc/GNUstep/GNUstep.conf
1550 --with-x use the X Window System
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1563 Use these variables to override the choices made by `configure' or to
help
1564 it to
find libraries and programs with nonstandard names
/locations.
1566 Report bugs to the package provider.
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1580 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1582 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1587 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1590 ac_abs_top_builddir
=$ac_pwd
1591 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir
=$ac_top_build_prefix
1596 .
) # We are building in place.
1598 ac_top_srcdir
=$ac_top_builddir_sub
1599 ac_abs_top_srcdir
=$ac_pwd ;;
1600 [\\/]* | ?
:[\\/]* ) # Absolute name.
1601 ac_srcdir
=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir
=$srcdir
1603 ac_abs_top_srcdir
=$srcdir ;;
1605 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1609 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1629 emacs configure
24.0.50
1630 generated by GNU Autoconf
2.65
1632 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1633 This configure
script is free software
; the Free Software Foundation
1634 gives unlimited permission to copy
, distribute and modify it.
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile
()
1648 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1649 rm -f conftest.
$ac_objext
1650 if { { ac_try
="$ac_compile"
1652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1691 *) ac_try_echo
=$ac_try;;
1693 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1697 if test -s conftest.err
; then
1698 grep -v '^ *+' conftest.err
>conftest.er1
1699 cat conftest.er1
>&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest
$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest
$ac_exeext
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.
$ac_ext >&5
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1723 as_fn_set_status
$ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } >/dev/null && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 eval "$3=\$ac_header_compiler"
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1910 if ac_fn_c_try_compile "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_check_decl LINENO SYMBOL VAR
1925 # ------------------------------------
1926 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1927 ac_fn_c_check_decl ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1931 $as_echo_n "checking whether $2 is declared... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1949 if ac_fn_c_try_compile "$LINENO"; then :
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 } # ac_fn_c_check_decl
1963 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1964 # ----------------------------------------------
1965 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1966 ac_fn_c_check_header_preproc ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1983 rm -f conftest.err conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $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_preproc
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2017 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2027 if (sizeof ac_aggr.$3)
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_member
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2154 if ac_fn_c_try_compile "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 } # ac_fn_c_check_type
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2173 It was created by emacs $as_me 24.0.50, which was
2174 generated by GNU Autoconf 2.65. Invocation command line was
2186 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2187 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2188 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2189 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2190 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2192 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2193 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2195 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2196 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2197 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2199 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2200 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2201 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2234 ac_must_keep_next=false
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2245 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 -* ) ac_must_keep_next=true ;;
2266 as_fn_append ac_configure_args " '$ac_arg'"
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2285 ## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2293 eval ac_val=\$$ac_var
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2308 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323 ## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##
2328 for ac_var in $ac_subst_vars
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -n "$ac_subst_files"; then
2340 ## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2349 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 $as_echo "$ac_var='\''$ac_val'\''"
2356 if test -s confdefs.h; then
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2382 $as_echo "/* confdefs.h */" > confdefs.h
2384 # Predefined preprocessor variables.
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2415 if test -n "$CONFIG_SITE"; then
2416 ac_site_file1=$CONFIG_SITE
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 test "x$ac_site_file" = xNONE && continue
2427 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 as_fn_append ac_header_list " stdlib.h"
2453 as_fn_append ac_header_list " unistd.h"
2454 as_fn_append ac_header_list " sys/param.h"
2455 as_fn_append ac_header_list " sys/time.h"
2456 as_fn_append ac_func_list " alarm"
2457 # Check that the precious variables saved in the cache have kept the same
2459 ac_cache_corrupted=false
2460 for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2468 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2472 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x
$ac_old_val`
2479 ac_new_val_w=`echo x
$ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2483 ac_cache_corrupted=:
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2529 test "$program_prefix" != NONE &&
2530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE &&
2533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $.
2535 # By default was `s
,x
,x
', remove it if useless.
2536 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2537 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540 lispdir='${datadir}/emacs
/${version}/lisp
'
2541 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2542 '${datadir}/emacs
/site-lisp
'
2543 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2544 etcdir='${datadir}/emacs
/${version}/etc
'
2545 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2546 docdir='${datadir}/emacs
/${version}/etc
'
2547 gamedir='${localstatedir}/games
/emacs
'
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2604 if test "$with_hesiod" != no; then
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2618 if test "$with_mmdf" != no; then
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2632 if test "$with_mail_unlink" != no; then
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2666 if test "$with_sync_input" = yes; then
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2685 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2686 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2755 with_imagemagick=yes
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2789 with_toolkit_scroll_bars=yes
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2876 with_compress_info=yes
2879 if test $with_compress_info = yes; then
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2905 CRT_DIR="${with_crt_dir}"
2908 # Check whether --with-gameuser was given.
2909 if test "${with_gameuser+set}" = set; then :
2910 withval=$with_gameuser;
2913 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2914 && gameuser="${with_gameuser}"
2915 test "X$gameuser" = X && gameuser=games
2918 # Check whether --with-gnustep-conf was given.
2919 if test "${with_gnustep_conf+set}" = set; then :
2920 withval=$with_gnustep_conf;
2923 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2924 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2925 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2926 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2928 # Check whether --enable-ns-self-contained was given.
2929 if test "${enable_ns_self_contained+set}" = set; then :
2930 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2932 EN_NS_SELF_CONTAINED=yes
2936 # Check whether --enable-asserts was given.
2937 if test "${enable_asserts+set}" = set; then :
2938 enableval=$enable_asserts; USE_XASSERTS=$enableval
2944 # Check whether --enable-maintainer-mode was given.
2945 if test "${enable_maintainer_mode+set}" = set; then :
2946 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2948 USE_MAINTAINER_MODE=no
2951 if test $USE_MAINTAINER_MODE = yes; then
2958 # Check whether --enable-locallisppath was given.
2959 if test "${enable_locallisppath+set}" = set; then :
2960 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2962 elif test "${enableval}" != "yes"; then
2963 locallisppath=${enableval}
2968 # Check whether --enable-checking was given.
2969 if test "${enable_checking+set}" = set; then :
2970 enableval=$enable_checking; ac_checking_flags="${enableval}"
2973 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2974 for check in $ac_checking_flags
2977 # these set all the flags to specific states
2978 yes) ac_enable_checking=1 ;;
2979 no) ac_enable_checking= ;
2980 ac_gc_check_stringbytes= ;
2981 ac_gc_check_string_overrun= ;
2982 ac_gc_check_string_free_list= ;
2983 ac_xmalloc_overrun= ;
2984 ac_gc_check_cons_list= ;;
2985 all) ac_enable_checking=1 ;
2986 ac_gc_check_stringbytes=1 ;
2987 ac_gc_check_string_overrun=1 ;
2988 ac_gc_check_string_free_list=1 ;
2989 ac_xmalloc_overrun=1 ;
2990 ac_gc_check_cons_list=1 ;;
2991 # these enable particular checks
2992 stringbytes) ac_gc_check_stringbytes=1 ;;
2993 stringoverrun) ac_gc_check_string_overrun=1 ;;
2994 stringfreelist) ac_gc_check_string_free_list=1 ;;
2995 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2996 conslist) ac_gc_check_cons_list=1 ;;
2997 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
3002 if test x$ac_enable_checking != x ; then
3004 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3007 if test x$ac_gc_check_stringbytes != x ; then
3009 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3012 if test x$ac_gc_check_stringoverrun != x ; then
3014 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3017 if test x$ac_gc_check_string_free_list != x ; then
3019 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3022 if test x$ac_xmalloc_overrun != x ; then
3024 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3027 if test x$ac_gc_check_cons_list != x ; then
3029 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3033 # Check whether --enable-use-lisp-union-type was given.
3034 if test "${enable_use_lisp_union_type+set}" = set; then :
3035 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3037 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3044 # Check whether --enable-profiling was given.
3045 if test "${enable_profiling+set}" = set; then :
3046 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3049 if test x$ac_enable_profiling != x ; then
3050 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3056 # Check whether --enable-autodepend was given.
3057 if test "${enable_autodepend+set}" = set; then :
3058 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3060 ac_enable_autodepend=yes
3064 #### Make srcdir absolute, if it isn't already. It's important to
3065 #### avoid running the path through pwd unnecessarily, since pwd can
3066 #### give you automounter prefixes, which can go away. We do all this
3067 #### so Emacs can find its files when run uninstalled.
3068 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3073 ## We may be able to use the $PWD environment variable to make this
3074 ## absolute. But sometimes PWD is inaccurate.
3075 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3076 ## but that tested only for a well-formed and valid PWD,
3077 ## it did not object when PWD was well-formed and valid but just wrong.
3078 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3082 srcdir="`(cd ${srcdir}; pwd)`"
3085 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3088 #### Check if the source directory already has a configured system in it.
3089 if test `pwd` != `(cd ${srcdir} && pwd)` \
3090 && test -f "${srcdir}/src/config.h" ; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3092 as a build directory right now; it has been configured in its own
3093 right. To configure in another directory as well, you MUST
3094 use GNU make. If you do not have GNU make, then you must
3095 now do \`make distclean' in ${srcdir},
3096 and
then run
$0 again.
" >&5
3097 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3098 as a build directory right now; it has been configured in its own
3099 right. To configure in another directory as well, you MUST
3100 use GNU make. If you do not have GNU make, then you must
3101 now do \`make distclean
' in ${srcdir},
3102 and then run $0 again." >&2;}
3105 #### Given the configuration name, set machfile and opsysfile to the
3106 #### names of the m/*.h and s/*.h files we should use.
3108 ### Canonicalize the configuration name.
3111 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3112 for ac_t in install-sh install.sh shtool; do
3113 if test -f "$ac_dir/$ac_t"; then
3115 ac_install_sh="$ac_aux_dir/$ac_t -c"
3120 if test -z "$ac_aux_dir"; then
3121 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3124 # These three variables are undocumented and unsupported,
3125 # and are intended to be withdrawn in a future Autoconf release.
3126 # They can cause serious problems if a builder's
source tree is
in a directory
3127 # whose full name contains unusual characters.
3128 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3129 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3130 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3133 # Make sure we can run config.sub.
3134 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3135 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3138 $as_echo_n "checking build system type... " >&6; }
3139 if test "${ac_cv_build+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3142 ac_build_alias
=$build_alias
3143 test "x$ac_build_alias" = x
&&
3144 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3145 test "x$ac_build_alias" = x
&&
3146 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3147 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3148 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3152 $as_echo "$ac_cv_build" >&6; }
3153 case $ac_cv_build in
3155 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3158 ac_save_IFS
=$IFS; IFS
='-'
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3168 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3172 $as_echo_n "checking host system type... " >&6; }
3173 if test "${ac_cv_host+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3176 if test "x$host_alias" = x
; then
3177 ac_cv_host
=$ac_cv_build
3179 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3180 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3185 $as_echo "$ac_cv_host" >&6; }
3188 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3191 ac_save_IFS
=$IFS; IFS
='-'
3197 # Remember, the first character of IFS is used to create $*,
3198 # except with old shells:
3201 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3205 configuration
=${host_alias-${build_alias-$host}}
3209 ### If you add support for a new configuration, add code to this
3210 ### switch statement to recognize your configuration name and select
3211 ### the appropriate operating system and machine description files.
3213 ### You would hope that you could choose an m/*.h file pretty much
3214 ### based on the machine portion of the configuration name, and an s/*.h
3215 ### file based on the operating system portion. However, it turns out
3216 ### that each m/*.h file is pretty manufacturer-specific - for
3217 ### example mips.h is MIPS
3218 ### So we basically have to have a special case for each
3219 ### configuration name.
3221 ### As far as handling version numbers on operating systems is
3222 ### concerned, make sure things will fail in a fixable way. If
3223 ### /etc/MACHINES doesn't say anything about version numbers, be
3224 ### prepared to handle anything reasonably. If version numbers
3225 ### matter, be sure /etc/MACHINES says something about it.
3227 machine
='' opsys
='' unported
=no
3228 case "${canonical}" in
3233 case ${canonical} in
3234 alpha
*) machine
=alpha
;;
3235 s390-
*) machine
=ibms390
;;
3236 s390x-
*) machine
=ibms390x
;;
3237 powerpc
*) machine
=macppc
;;
3238 sparc
*) machine
=sparc
;;
3239 ia64
*) machine
=ia64
;;
3240 m68k
*) machine
=m68k
;;
3241 x86_64
*) machine
=amdx86-64
;;
3248 case "${canonical}" in
3249 alpha
*) machine
=alpha
;;
3250 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3251 ia64-
*) machine
=ia64
;;
3252 i
[3456]86-*) machine
=intel386
;;
3253 powerpc-
*) machine
=macppc
;;
3254 sparc-
*) machine
=sparc
;;
3255 sparc64-
*) machine
=sparc
;;
3259 ## FreeBSD kernel + glibc based userland
3262 case "${canonical}" in
3263 alpha
*) machine
=alpha
;;
3264 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3265 ia64-
*) machine
=ia64
;;
3266 i
[3456]86-*) machine
=intel386
;;
3267 powerpc-
*) machine
=macppc
;;
3268 sparc-
*) machine
=sparc
;;
3269 sparc64-
*) machine
=sparc
;;
3276 case "${canonical}" in
3277 alpha
*) machine
=alpha
;;
3278 x86_64-
*) machine
=amdx86-64
;;
3279 i
[3456]86-*) machine
=intel386
;;
3280 m68k-
*) machine
=m68k
;;
3281 powerpc-
*) machine
=macppc
;;
3282 sparc
*-) machine
=sparc
;;
3283 vax-
*) machine
=vax
;;
3290 case "${canonical}" in
3291 alpha
*) machine
=alpha
;;
3292 x86_64-
*) machine
=amdx86-64
;;
3293 i386-
*) machine
=intel386
;;
3294 powerpc-
*) machine
=macppc
;;
3295 sparc
*) machine
=sparc
;;
3296 vax-
*) machine
=vax
;;
3300 ## Apple Darwin / Mac OS X
3302 case "${canonical}" in
3303 i
[3456]86-* ) machine
=intel386
;;
3304 powerpc-
* ) machine
=macppc
;;
3305 x86_64-
* ) machine
=amdx86-64
;;
3309 # Define CPP as follows to make autoconf work correctly.
3310 CPP
="${CC-cc} -E -no-cpp-precomp"
3311 # Use fink packages if available.
3312 if test -d /sw
/include
&& test -d /sw
/lib
; then
3313 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3314 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3315 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3319 ## HP 9000 series 700 and 800, running HP/UX
3320 hppa
*-hp-hpux10.2
* )
3323 hppa
*-hp-hpux1[1-9]* )
3325 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3329 rs6000-ibm-aix4.
[23]* )
3330 machine
=ibmrs6000 opsys
=aix4-2
3332 powerpc-ibm-aix4.
[23]* )
3333 machine
=ibmrs6000 opsys
=aix4-2
3335 rs6000-ibm-aix
[56]* )
3336 machine
=ibmrs6000 opsys
=aix4-2
3338 powerpc-ibm-aix
[56]* )
3339 machine
=ibmrs6000 opsys
=aix4-2
3342 ## Silicon Graphics machines
3345 machine
=iris4d opsys
=irix6-5
3346 # Without defining _LANGUAGE_C, things get masked out in the headers
3347 # so that, for instance, grepping for `free' in stdlib.h fails and
3348 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3349 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3350 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3355 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3356 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3357 case "${canonical}" in
3358 i
[3456]86-*-* ) machine
=intel386
;;
3359 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3360 sparc
* ) machine
=sparc
;;
3363 case "${canonical}" in
3364 *-sunos5.6
* |
*-solaris2.6
* )
3366 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3369 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3371 emacs_check_sunpro_c
=yes
3372 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3374 *-sunos5* |
*-solaris* )
3376 emacs_check_sunpro_c
=yes
3377 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3380 ## Watch out for a compiler that we know will not work.
3381 case "${canonical}" in
3382 *-solaris* |
*-sunos5* )
3383 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3384 ## /usr/ucb/cc doesn't work;
3385 ## we should find some other compiler that does work.
3393 ## Intel 386 machines where we don't care about the manufacturer.
3396 case "${canonical}" in
3397 *-cygwin ) opsys
=cygwin
;;
3398 *-darwin* ) opsys
=darwin
3399 CPP
="${CC-cc} -E -no-cpp-precomp"
3401 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3402 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3403 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3404 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3413 ### If the code above didn't choose an operating system, just choose
3414 ### an operating system based on the configuration name. You really
3415 ### only want to use this when you have no idea what the right
3416 ### operating system is; if you know what operating systems a machine
3417 ### runs, it's cleaner to make it explicit in the case statement
3419 if test x
"${opsys}" = x
; then
3420 case "${canonical}" in
3421 *-gnu* ) opsys
=gnu
;;
3430 if test $unported = yes; then
3431 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3432 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3435 if test -n "$machine"; then
3436 machfile
="m/${machine}.h"
3440 opsysfile
="s/${opsys}.h"
3443 #### Choose a compiler.
3444 test -n "$CC" && cc_specified
=yes
3446 # Save the value of CFLAGS that the user specified.
3447 SPECIFIED_CFLAGS
="$CFLAGS"
3450 ac_cpp
='$CPP $CPPFLAGS'
3451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3456 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC
="$CC" # Let the user override the test.
3465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir
=.
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3493 if test -z "$ac_cv_prog_CC"; then
3495 # Extract the first word of "gcc", so it can be a program name with args.
3496 set dummy gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC
="gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3531 if test "x$ac_ct_CC" = x
; then
3534 case $cross_compiling:$ac_tool_warned in
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned
=yes ;;
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3549 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC
="$CC" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3587 if test -z "$CC"; then
3588 # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir
=.
3604 for ac_exec_ext
in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3607 ac_prog_rejected
=yes
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 if test $ac_prog_rejected = yes; then
3619 # We found a bogon in the path, so make sure we never use it.
3620 set dummy
$ac_cv_prog_CC
3622 if test $# != 0; then
3623 # We chose a different compiler from the bogus one.
3624 # However, it has the same basename, so the bogon will be chosen
3625 # first if we set CC to just the basename; use the full file name.
3627 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 for ac_prog
in cl.exe
3647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3648 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC
="$CC" # Let the user override the test.
3657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir
=.
3662 for ac_exec_ext
in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3684 test -n "$CC" && break
3687 if test -z "$CC"; then
3689 for ac_prog
in cl.exe
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy
$ac_prog; ac_word
=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_ac_ct_CC
="$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 $as_echo "$ac_ct_CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$ac_ct_CC" && break
3731 if test "x$ac_ct_CC" = x
; then
3734 case $cross_compiling:$ac_tool_warned in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned
=yes ;;
3747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error
"no acceptable C compiler found in \$PATH
3750 See \`config.log' for more details." "$LINENO" 5; }
3752 # Provide some information about the compiler.
3753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3756 for ac_option
in --version -v -V -qversion; do
3757 { { ac_try
="$ac_compiler $ac_option >&5"
3759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766 if test -s conftest.err; then
3768 ... rest of stderr output deleted ...
3769 10q' conftest.err >conftest.er1
3770 cat conftest.er1 >&5
3772 rm -f conftest.er1 conftest.err
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3788 ac_clean_files_save=$ac_clean_files
3789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3790 # Try to create an executable without -o first, disregard a.out.
3791 # It will help us diagnose broken compilers, and finding out an intuition
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3794 $as_echo_n "checking whether the C compiler works... " >&6; }
3795 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3797 # The possible output files:
3798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3801 for ac_file in $ac_files
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 if { { ac_try="$ac_link_default"
3812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3813 *) ac_try_echo
=$ac_try;;
3815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link_default") 2>&5
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3824 # so that the user can short-circuit this test for compilers unknown to
3826 for ac_file
in $ac_files ''
3828 test -f "$ac_file" ||
continue
3830 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3833 # We found the default executable, but exeext='' is most
3837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3839 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 # We set ac_cv_exeext here because the later test for it is not
3842 # safe: cross compilers may not add the suffix if given an `-o'
3843 # argument, so we may need to know it at that point already.
3844 # Even if this section looks crufty: it has the advantage of
3851 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3856 if test -z "$ac_file"; then :
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.
$ac_ext >&5
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 { as_fn_set_status
77
3865 as_fn_error
"C compiler cannot create executables
3866 See \`config.log' for more details." "$LINENO" 5; }; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3874 $as_echo "$ac_file" >&6; }
3875 ac_exeext
=$ac_cv_exeext
3877 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3878 ac_clean_files
=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3880 $as_echo_n "checking for suffix of executables... " >&6; }
3881 if { { ac_try
="$ac_link"
3883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3893 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3896 for ac_file
in conftest.exe conftest conftest.
*; do
3897 test -f "$ac_file" ||
continue
3899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3900 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details." "$LINENO" 5; }
3911 rm -f conftest conftest
$ac_cv_exeext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 $as_echo "$ac_cv_exeext" >&6; }
3915 rm -f conftest.
$ac_ext
3916 EXEEXT
=$ac_cv_exeext
3918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3924 FILE *f = fopen ("conftest.out", "w");
3925 return ferror (f) || fclose (f) != 0;
3931 ac_clean_files
="$ac_clean_files conftest.out"
3932 # Check that the compiler produces executables we can run. If not, either
3933 # the compiler is broken, or we cross compile.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3935 $as_echo_n "checking whether we are cross compiling... " >&6; }
3936 if test "$cross_compiling" != yes; then
3937 { { ac_try
="$ac_link"
3939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 if { ac_try='./conftest$ac_cv_exeext'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3951 *) ac_try_echo
=$ac_try;;
3953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3961 if test "$cross_compiling" = maybe
; then
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error
"cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details." "$LINENO" 5; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3976 ac_clean_files
=$ac_clean_files_save
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3978 $as_echo_n "checking for suffix of object files... " >&6; }
3979 if test "${ac_cv_objext+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 rm -f conftest.o conftest.obj
3994 if { { ac_try
="$ac_compile"
3996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_compile") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 for ac_file in conftest.o conftest.obj conftest.*; do
4006 test -f "$ac_file" || continue;
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot compute suffix of object files
: cannot compile
4020 See \
`config.log' for more details." "$LINENO" 5; }
4022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4025 $as_echo "$ac_cv_objext" >&6; }
4026 OBJEXT=$ac_cv_objext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4030 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4047 if ac_fn_c_try_compile "$LINENO"; then :
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if test "${ac_cv_prog_cc_g+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4100 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_c_werror_flag=$ac_save_c_werror_flag
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 if ac_fn_c_try_compile "$LINENO"; then :
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4137 if test "$GCC" = yes; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4148 ac_cv_prog_cc_c89=no
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4154 #include <sys/types.h>
4155 #include <sys/stat.h>
4156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4157 struct buf { int x; };
4158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159 static char *e (p, i)
4165 static char *f (char * (*g) (char **, int), char **p, ...)
4170 s = g (p, va_arg (v,int));
4175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4176 function prototypes and stuff, but not '\xHH' hex character constants.
4177 These don't provoke an error unfortunately, instead are silently treated
4178 as 'x'. The following induces an error, until -std is added to get
4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4180 array size at least. It's necessary to write '\x00'==0 to get something
4181 that's true only with -std. */
4182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185 inside strings and character constants. */
4187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4189 int test (int i, double x);
4190 struct s1 {int (*f) (int a);};
4191 struct s2 {int (*f) (double a);};
4192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c89=$ac_arg
4210 rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4213 rm -f conftest.$ac_ext
4218 case "x$ac_cv_prog_cc_c89" in
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4226 CC="$CC $ac_cv_prog_cc_c89"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4230 if test "x$ac_cv_prog_cc_c89" != xno; then :
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4246 ## If not using gcc, and on Solaris, and no CPP specified, see if
4247 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4248 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4249 test x"$CPP" = x; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4251 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4253 if test "${emacs_cv_sunpro_c+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4270 if ac_fn_c_try_link "$LINENO"; then :
4271 emacs_cv_sunpro_c=yes
4273 emacs_cv_sunpro_c=no
4275 rm -f core conftest.err conftest.$ac_objext \
4276 conftest$ac_exeext conftest.$ac_ext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4280 $as_echo "$emacs_cv_sunpro_c" >&6; }
4282 if test x"$emacs_cv_sunpro_c" = xyes; then
4283 NON_GNU_CPP="$CC -E -Xs"
4287 #### Some systems specify a CPP to use unless we are using GCC.
4288 #### Now that we know whether we are using GCC, we can decide whether
4289 #### to use that one.
4290 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4295 #### Some systems specify a CC to use unless we are using GCC.
4296 #### Now that we know whether we are using GCC, we can decide whether
4297 #### to use that one.
4298 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4299 test x$cc_specified != xyes
4304 if test x$GCC = xyes; then
4305 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4307 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4317 # On Suns, sometimes $CPP names a directory.
4318 if test -n "$CPP" && test -d "$CPP"; then
4321 if test -z "$CPP"; then
4322 if test "${ac_cv_prog_CPP+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 # Double quotes because CPP needs to be expanded
4326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 for ac_c_preproc_warn_flag in '' yes
4331 # Use a header file that comes with gcc, so configuring glibc
4332 # with a fresh cross-compiler works.
4333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334 # <limits.h> exists even on freestanding compilers.
4335 # On the NeXT, cc -E runs the code through the compiler's parser,
4336 # not just through cpp. "Syntax error" is here to catch this case.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4340 # include <limits.h>
4342 # include <assert.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4349 # Broken: fails on valid input.
4352 rm -f conftest.err conftest.$ac_ext
4354 # OK, works on sane cases. Now check whether nonexistent headers
4355 # can be detected and how.
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <ac_nonexistent.h>
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361 # Broken: success on invalid input.
4364 # Passes both tests.
4368 rm -f conftest.err conftest.$ac_ext
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.
$ac_ext
4373 if $ac_preproc_ok; then :
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4386 $as_echo "$CPP" >&6; }
4388 for ac_c_preproc_warn_flag
in '' yes
4390 # Use a header file that comes with gcc, so configuring glibc
4391 # with a fresh cross-compiler works.
4392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4393 # <limits.h> exists even on freestanding compilers.
4394 # On the NeXT, cc -E runs the code through the compiler's parser,
4395 # not just through cpp. "Syntax error" is here to catch this case.
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4399 # include <limits.h>
4401 # include <assert.h>
4405 if ac_fn_c_try_cpp
"$LINENO"; then :
4408 # Broken: fails on valid input.
4411 rm -f conftest.err conftest.
$ac_ext
4413 # OK, works on sane cases. Now check whether nonexistent headers
4414 # can be detected and how.
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4419 if ac_fn_c_try_cpp
"$LINENO"; then :
4420 # Broken: success on invalid input.
4423 # Passes both tests.
4427 rm -f conftest.err conftest.
$ac_ext
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.
$ac_ext
4432 if $ac_preproc_ok; then :
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details." "$LINENO" 5; }
4442 ac_cpp
='$CPP $CPPFLAGS'
4443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4449 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4450 if test "${ac_cv_path_GREP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 if test -z "$GREP"; then
4454 ac_path_GREP_found
=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4457 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4460 test -z "$as_dir" && as_dir
=.
4461 for ac_prog
in grep ggrep
; do
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4464 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4465 # Check for GNU ac_path_GREP and select it if it is found.
4466 # Check for GNU $ac_path_GREP
4467 case `"$ac_path_GREP" --version 2>&1` in
4469 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4472 $as_echo_n 0123456789 >"conftest.in"
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'GREP' >> "conftest.nl"
4479 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4480 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4481 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4482 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_GREP
="$ac_path_GREP"
4485 ac_path_GREP_max
=$ac_count
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4490 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4493 $ac_path_GREP_found && break 3
4498 if test -z "$ac_cv_path_GREP"; then
4499 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 ac_cv_path_GREP
=$GREP
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4507 $as_echo "$ac_cv_path_GREP" >&6; }
4508 GREP
="$ac_cv_path_GREP"
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4512 $as_echo_n "checking for egrep... " >&6; }
4513 if test "${ac_cv_path_EGREP+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4517 then ac_cv_path_EGREP
="$GREP -E"
4519 if test -z "$EGREP"; then
4520 ac_path_EGREP_found
=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4526 test -z "$as_dir" && as_dir
=.
4527 for ac_prog
in egrep; do
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4531 # Check for GNU ac_path_EGREP and select it if it is found.
4532 # Check for GNU $ac_path_EGREP
4533 case `"$ac_path_EGREP" --version 2>&1` in
4535 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4538 $as_echo_n 0123456789 >"conftest.in"
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 $as_echo 'EGREP' >> "conftest.nl"
4545 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4546 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4547 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4548 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_EGREP
="$ac_path_EGREP"
4551 ac_path_EGREP_max
=$ac_count
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4556 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4559 $ac_path_EGREP_found && break 3
4564 if test -z "$ac_cv_path_EGREP"; then
4565 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568 ac_cv_path_EGREP
=$EGREP
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4574 $as_echo "$ac_cv_path_EGREP" >&6; }
4575 EGREP
="$ac_cv_path_EGREP"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4579 $as_echo_n "checking for ANSI C header files... " >&6; }
4580 if test "${ac_cv_header_stdc+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4598 if ac_fn_c_try_compile
"$LINENO"; then :
4599 ac_cv_header_stdc
=yes
4601 ac_cv_header_stdc
=no
4603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4605 if test $ac_cv_header_stdc = yes; then
4606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev
/null
2>&1; then :
4616 ac_cv_header_stdc
=no
4622 if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "free" >/dev
/null
2>&1; then :
4633 ac_cv_header_stdc
=no
4639 if test $ac_cv_header_stdc = yes; then
4640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641 if test "$cross_compiling" = yes; then :
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4648 #if ((' ' & 0x0FF) == 0x020)
4649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652 # define ISLOWER(c) \
4653 (('a' <= (c) && (c) <= 'i') \
4654 || ('j' <= (c) && (c) <= 'r') \
4655 || ('s' <= (c) && (c) <= 'z'))
4656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 for (i = 0; i < 256; i++)
4665 if (XOR (islower (i), ISLOWER (i))
4666 || toupper (i) != TOUPPER (i))
4671 if ac_fn_c_try_run
"$LINENO"; then :
4674 ac_cv_header_stdc
=no
4676 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4677 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4683 $as_echo "$ac_cv_header_stdc" >&6; }
4684 if test $ac_cv_header_stdc = yes; then
4686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4691 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4692 inttypes.h stdint.h unistd.h
4694 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697 eval as_val
=\$
$as_ac_Header
4698 if test "x$as_val" = x
""yes; then :
4699 cat >>confdefs.h
<<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4717 if test "$MINIX" = yes; then
4719 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4722 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4725 $as_echo "#define _MINIX 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4738 # define __EXTENSIONS__ 1
4739 $ac_includes_default
4748 if ac_fn_c_try_compile
"$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__
=yes
4751 ac_cv_safe_to_define___extensions__
=no
4753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4770 ### Use -Wno-pointer-sign if the compiler supports it
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4772 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4773 SAVE_CFLAGS
="$CFLAGS"
4774 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4786 if ac_fn_c_try_compile
"$LINENO"; then :
4791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4792 if test $has_option = yes; then
4793 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4796 $as_echo "$has_option" >&6; }
4797 CFLAGS
="$SAVE_CFLAGS"
4801 ### Use -Wdeclaration-after-statement if the compiler supports it
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4803 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4804 SAVE_CFLAGS
="$CFLAGS"
4805 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_c_try_compile
"$LINENO"; then :
4822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4823 if test $has_option = yes; then
4824 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4827 $as_echo "$has_option" >&6; }
4828 CFLAGS
="$SAVE_CFLAGS"
4832 ### Use -Wold-style-definition if the compiler supports it
4833 # This can be removed when conversion to standard C is finished.
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4835 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4836 SAVE_CFLAGS
="$CFLAGS"
4837 CFLAGS
="$CFLAGS -Wold-style-definition"
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4849 if ac_fn_c_try_compile
"$LINENO"; then :
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 if test $has_option = yes; then
4856 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4859 $as_echo "$has_option" >&6; }
4860 CFLAGS
="$SAVE_CFLAGS"
4864 ### Use -Wimplicit-function-declaration if the compiler supports it
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4866 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4867 SAVE_CFLAGS
="$CFLAGS"
4868 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4880 if ac_fn_c_try_compile
"$LINENO"; then :
4885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 if test $has_option = yes; then
4887 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4890 $as_echo "$has_option" >&6; }
4891 CFLAGS
="$SAVE_CFLAGS"
4898 #### Some other nice autoconf tests.
4901 ac_cpp
='$CPP $CPPFLAGS'
4902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4906 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4907 # On Suns, sometimes $CPP names a directory.
4908 if test -n "$CPP" && test -d "$CPP"; then
4911 if test -z "$CPP"; then
4912 if test "${ac_cv_prog_CPP+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4915 # Double quotes because CPP needs to be expanded
4916 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4919 for ac_c_preproc_warn_flag
in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if ac_fn_c_try_cpp
"$LINENO"; then :
4939 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.
$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4950 if ac_fn_c_try_cpp
"$LINENO"; then :
4951 # Broken: success on invalid input.
4954 # Passes both tests.
4958 rm -f conftest.err conftest.
$ac_ext
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.
$ac_ext
4963 if $ac_preproc_ok; then :
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4976 $as_echo "$CPP" >&6; }
4978 for ac_c_preproc_warn_flag
in '' yes
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4989 # include <limits.h>
4991 # include <assert.h>
4995 if ac_fn_c_try_cpp
"$LINENO"; then :
4998 # Broken: fails on valid input.
5001 rm -f conftest.err conftest.
$ac_ext
5003 # OK, works on sane cases. Now check whether nonexistent headers
5004 # can be detected and how.
5005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5009 if ac_fn_c_try_cpp
"$LINENO"; then :
5010 # Broken: success on invalid input.
5013 # Passes both tests.
5017 rm -f conftest.err conftest.
$ac_ext
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.
$ac_ext
5022 if $ac_preproc_ok; then :
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." "$LINENO" 5; }
5032 ac_cpp
='$CPP $CPPFLAGS'
5033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5037 # Find a good install program. We prefer a C program (faster),
5038 # so one script is as good as another. But avoid the broken or
5039 # incompatible versions:
5040 # SysV /etc/install, /usr/sbin/install
5041 # SunOS /usr/etc/install
5042 # IRIX /sbin/install
5044 # AmigaOS /C/install, which installs bootblocks on floppy discs
5045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5048 # OS/2's system install, which has a completely different semantic
5049 # ./install, which can be erroneously created by make from ./install.sh.
5050 # Reject install programs that cannot install multiple files.
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5053 if test -z "$INSTALL"; then
5054 if test "${ac_cv_path_install+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir
=.
5062 # Account for people who put trailing slashes in PATH elements.
5063 case $as_dir/ in #((
5064 .
/ | .
// |
/[cC
]/* | \
5065 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5066 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5069 # OSF1 and SCO ODT 3.0 have their own names for install.
5070 # Don't use installbsd from OSF since it installs stuff as root
5072 for ac_prog
in ginstall scoinst
install; do
5073 for ac_exec_ext
in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5075 if test $ac_prog = install &&
5076 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5077 # AIX install. It has an incompatible calling convention.
5079 elif test $ac_prog = install &&
5080 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5081 # program-specific install script used by HP pwplus--don't use.
5084 rm -rf conftest.one conftest.two conftest.dir
5085 echo one
> conftest.one
5086 echo two
> conftest.two
5088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5089 test -s conftest.one
&& test -s conftest.two
&&
5090 test -s conftest.dir
/conftest.one
&&
5091 test -s conftest.dir
/conftest.two
5093 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5106 rm -rf conftest.one conftest.two conftest.dir
5109 if test "${ac_cv_path_install+set}" = set; then
5110 INSTALL
=$ac_cv_path_install
5112 # As a last resort, use the slow shell script. Don't cache a
5113 # value for INSTALL within a source directory, because that will
5114 # break other packages using the cache if that directory is
5115 # removed, or if the value is a relative name.
5116 INSTALL
=$ac_install_sh
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5120 $as_echo "$INSTALL" >&6; }
5122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5123 # It thinks the first close brace ends the variable substitution.
5124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5128 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5130 if test "x$RANLIB" = x
; then
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5133 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 if test -n "$RANLIB"; then
5140 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir
=.
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 RANLIB
=$ac_cv_prog_RANLIB
5160 if test -n "$RANLIB"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5162 $as_echo "$RANLIB" >&6; }
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB
=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173 set dummy ranlib
; ac_word
=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5200 if test -n "$ac_ct_RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5202 $as_echo "$ac_ct_RANLIB" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5208 if test "x$ac_ct_RANLIB" = x
; then
5211 case $cross_compiling:$ac_tool_warned in
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned
=yes ;;
5217 RANLIB
=$ac_ct_RANLIB
5220 RANLIB
="$ac_cv_prog_RANLIB"
5225 ## Although we're running on an amd64 kernel, we're actually compiling for
5226 ## the x86 architecture. The user should probably have provided an
5227 ## explicit --build to `configure', but if everything else than the kernel
5228 ## is running in i386 mode, we can help them out.
5229 if test "$machine" = "amdx86-64"; then
5230 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5231 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5235 if test "$ac_cv_have_decl_i386" = "yes"; then
5236 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5238 machfile
="m/${machine}.h"
5242 # Extract the first word of "install-info", so it can be a program name with args.
5243 set dummy install-info
; ac_word
=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 case $INSTALL_INFO in
5251 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir
=.
5259 for ac_exec_ext
in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5273 if test -n "$INSTALL_INFO"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5275 $as_echo "$INSTALL_INFO" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info
; ac_word
=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 case $INSTALL_INFO in
5291 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 for as_dir
in /usr
/sbin
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_exec_ext
in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info
; ac_word
=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 case $INSTALL_INFO in
5331 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir
=.
5339 for ac_exec_ext
in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5353 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5354 if test -n "$INSTALL_INFO"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5356 $as_echo "$INSTALL_INFO" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 # Extract the first word of "gzip", so it can be a program name with args.
5364 set dummy
gzip; ac_word
=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5372 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir
=.
5380 for ac_exec_ext
in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5394 if test -n "$GZIP_PROG"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5396 $as_echo "$GZIP_PROG" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5405 ## Need makeinfo >= 4.6 (?) to build the manuals.
5406 # Extract the first word of "makeinfo", so it can be a program name with args.
5407 set dummy makeinfo
; ac_word
=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5415 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir
=.
5423 for ac_exec_ext
in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5437 MAKEINFO
=$ac_cv_path_MAKEINFO
5438 if test -n "$MAKEINFO"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5440 $as_echo "$MAKEINFO" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 if test "$MAKEINFO" != "no" && \
5448 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
5452 ## Makeinfo is unusual. For a released Emacs, the manuals are
5453 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5454 ## therefore in the category of "special tools" not normally required, which
5455 ## configure does not have to check for (eg autoconf itself).
5456 ## In a Bazaar checkout on the other hand, the manuals are not included.
5457 ## So makeinfo is a requirement to build from Bazaar, and configure
5458 ## should test for it as it does for any other build requirement.
5459 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5460 ## with pre-built manuals, from a Bazaar checkout.
5463 if test "$MAKEINFO" = "no"; then
5465 if test "x${with_makeinfo}" = "xno"; then
5467 elif test ! -e $srcdir/info
/emacs
; then
5468 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5469 source tree does not seem to have pre-built manuals in the \`info' directory.
5470 Either install a suitable version of makeinfo, or re-run configure
5471 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5477 if test x
$GCC = xyes
; then
5478 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
5479 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5481 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
5482 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5486 late_LDFLAGS
=$LDFLAGS
5487 if test x
$GCC = xyes
; then
5488 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5490 LDFLAGS
="$LDFLAGS -znocombreloc"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5494 $as_echo_n "checking for -znocombreloc... " >&6; }
5495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5506 if ac_fn_c_try_link
"$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508 $as_echo "yes" >&6; }
5510 LDFLAGS
=$late_LDFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5514 rm -f core conftest.err conftest.
$ac_objext \
5515 conftest
$ac_exeext conftest.
$ac_ext
5518 # The value of CPP is a quoted variable reference, so we need to do this
5519 # to get its actual value...
5520 CPP
=`eval "echo $CPP"`
5528 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5535 UNEXEC_OBJ
=unexelf.o
5537 # MSDOS uses unexcoff.o
5538 # MSWindows uses unexw32.o
5540 UNEXEC_OBJ
=unexaix.o
5546 UNEXEC_OBJ
=unexmacosx.o
5549 UNEXEC_OBJ
=unexhp9k800.o
5552 # Use the Solaris dldump() function, called from unexsol.c, to dump
5553 # emacs, instead of the generic ELF dump code found in unexelf.c.
5554 # The resulting binary has a complete symbol table, and is better
5555 # for debugging and other observability tools (debuggers, pstack, etc).
5557 # If you encounter a problem using dldump(), please consider sending
5558 # a message to the OpenSolaris tools-linking mailing list:
5559 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5561 # It is likely that dldump() works with older Solaris too, but this has
5562 # not been tested, so for now this change is for Solaris 10 or newer.
5563 UNEXEC_OBJ
=unexsol.o
5570 ## Let `ld' find image libs and similar things in /usr/local/lib.
5571 ## The system compiler, GCC, has apparently been modified to not
5572 ## look there, contrary to what a stock GCC would do.
5573 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5577 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5578 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
5582 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5586 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5587 ## otherwise Emacs dumps core on elf systems.
5588 LD_SWITCH_SYSTEM
="-Z"
5593 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5595 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5596 ## which has not been defined yet. When this was handled with cpp,
5597 ## it was expanded to null when configure sourced the s/*.h file.
5598 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5599 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5600 ## (or somesuch), but because it is supposed to go at the _front_
5601 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5602 ## Compare with the gnu-linux case below, which added to the end
5603 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5604 ## LD_SWITCH_SYSTEM_TEMACS.
5607 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5608 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5613 if test "$machine" = "alpha"; then
5614 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5615 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5619 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5620 ## With ELF, make sure that all common symbols get allocated to in the
5621 ## data section. Otherwise, the dump of temacs may miss variables in
5622 ## the shared library that have been initialized. For example, with
5623 ## GNU libc, __malloc_initialized would normally be resolved to the
5624 ## shared library's .bss section, which is fatal.
5625 if test "x$GCC" = "xyes"; then
5626 C_SWITCH_MACHINE
="-fno-common"
5628 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5631 UNEXEC_OBJ
=unexalpha.o
5639 ## Some programs in src produce warnings saying certain subprograms
5640 ## are too complex and need a MAXMEM value greater than 2000 for
5641 ## additional optimization. --nils@exp-math.uni-essen.de
5642 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5643 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5644 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5645 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5651 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5652 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5654 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5656 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5658 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5660 ## Motif needs -lgen.
5661 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5666 ### Make sure subsequent tests use flags consistent with the build flags.
5668 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5669 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5671 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5676 # Check whether --enable-largefile was given.
5677 if test "${enable_largefile+set}" = set; then :
5678 enableval
=$enable_largefile;
5681 if test "$enable_largefile" != no
; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5684 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5685 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 ac_cv_sys_largefile_CC
=no
5689 if test "$GCC" != yes; then
5692 # IRIX 6.2 and later do not support large files by default,
5693 # so use the C compiler's -n32 option if that helps.
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5713 if ac_fn_c_try_compile
"$LINENO"; then :
5716 rm -f core conftest.err conftest.
$ac_objext
5718 if ac_fn_c_try_compile
"$LINENO"; then :
5719 ac_cv_sys_largefile_CC
=' -n32'; break
5721 rm -f core conftest.err conftest.
$ac_objext
5725 rm -f conftest.
$ac_ext
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5729 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5730 if test "$ac_cv_sys_largefile_CC" != no
; then
5731 CC
=$CC$ac_cv_sys_largefile_CC
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5735 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5759 if ac_fn_c_try_compile
"$LINENO"; then :
5760 ac_cv_sys_file_offset_bits
=no
; break
5762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _FILE_OFFSET_BITS 64
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5783 if ac_fn_c_try_compile
"$LINENO"; then :
5784 ac_cv_sys_file_offset_bits
=64; break
5786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 ac_cv_sys_file_offset_bits
=unknown
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5792 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5793 case $ac_cv_sys_file_offset_bits in #(
5796 cat >>confdefs.h
<<_ACEOF
5797 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5802 if test $ac_cv_sys_file_offset_bits = unknown
; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5804 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5805 if test "${ac_cv_sys_large_files+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5828 if ac_fn_c_try_compile
"$LINENO"; then :
5829 ac_cv_sys_large_files
=no
; break
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #define _LARGE_FILES 1
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5852 if ac_fn_c_try_compile
"$LINENO"; then :
5853 ac_cv_sys_large_files
=1; break
5855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 ac_cv_sys_large_files
=unknown
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5861 $as_echo "$ac_cv_sys_large_files" >&6; }
5862 case $ac_cv_sys_large_files in #(
5865 cat >>confdefs.h
<<_ACEOF
5866 #define _LARGE_FILES $ac_cv_sys_large_files
5876 ## If user specified a crt-dir, use that unconditionally.
5877 if test "X$CRT_DIR" = "X"; then
5879 case "$canonical" in
5880 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5881 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5882 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5883 ## For anything else (eg /usr/lib32), it is up the user to specify
5884 ## the location (bug#5655).
5885 ## Test for crtn.o, not just the directory, because sometimes the
5886 ## directory exists but does not have the relevant files (bug#1287).
5887 ## FIXME better to test for binary compatibility somehow.
5888 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5891 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5895 hpux10-20
) CRT_DIR
=/lib
;;
5898 ## Default is /usr/lib.
5899 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5903 ## Some platforms don't use any of these files, so it is not
5904 ## appropriate to put this test outside the if block.
5905 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5906 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5919 START_FILES
='pre-crt0.o'
5922 ## Adding -lm confuses the dynamic linker, so omit it.
5924 START_FILES
='pre-crt0.o'
5927 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5928 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5930 gnu-linux | gnu-kfreebsd
)
5931 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5932 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5934 hpux10-20 | hpux11
)
5936 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5939 if test -f $CRT_DIR/crti.o
; then
5940 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5941 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5943 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5944 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5955 if test "${with_sound}" != "no"; then
5956 # Sound support for GNU/Linux and the free BSDs.
5957 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5959 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5960 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5961 eval as_val
=\$
$as_ac_Header
5962 if test "x$as_val" = x
""yes; then :
5963 cat >>confdefs.h
<<_ACEOF
5964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5966 have_sound_header
=yes
5971 # Emulation library used on NetBSD.
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5973 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5974 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 ac_check_lib_save_LIBS
=$LIBS
5978 LIBS
="-lossaudio $LIBS"
5979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5992 return _oss_ioctl ();
5997 if ac_fn_c_try_link
"$LINENO"; then :
5998 ac_cv_lib_ossaudio__oss_ioctl
=yes
6000 ac_cv_lib_ossaudio__oss_ioctl
=no
6002 rm -f core conftest.err conftest.
$ac_objext \
6003 conftest
$ac_exeext conftest.
$ac_ext
6004 LIBS
=$ac_check_lib_save_LIBS
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6007 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6008 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6017 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6021 # Extract the first word of "pkg-config", so it can be a program name with args.
6022 set dummy pkg-config
; ac_word
=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6030 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir
=.
6038 for ac_exec_ext
in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6052 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6053 if test -n "$PKG_CONFIG"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6055 $as_echo "$PKG_CONFIG" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test "$PKG_CONFIG" = "no" ; then
6066 PKG_CONFIG_MIN_VERSION
=0.9.0
6067 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6069 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6071 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6077 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6078 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6080 $as_echo "$ALSA_CFLAGS" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6083 $as_echo_n "checking ALSA_LIBS... " >&6; }
6084 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6086 $as_echo "$ALSA_LIBS" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6092 ## If we have a custom action on failure, don't print errors, but
6093 ## do set a variable so people can do so.
6094 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6106 if test $succeeded = yes; then
6112 if test $HAVE_ALSA = yes; then
6113 SAVE_CFLAGS
="$CFLAGS"
6114 SAVE_LDFLAGS
="$LDFLAGS"
6115 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6116 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <asoundlib.h>
6123 snd_lib_error_set_handler (0);
6128 if ac_fn_c_try_compile
"$LINENO"; then :
6129 emacs_alsa_normal
=yes
6131 emacs_alsa_normal
=no
6133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6134 if test "$emacs_alsa_normal" != yes; then
6135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <alsa/asoundlib.h>
6141 snd_lib_error_set_handler (0);
6146 if ac_fn_c_try_compile
"$LINENO"; then :
6147 emacs_alsa_subdir
=yes
6149 emacs_alsa_subdir
=no
6151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 if test "$emacs_alsa_subdir" != yes; then
6153 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6155 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6158 CFLAGS
="$SAVE_CFLAGS"
6159 LDFLAGS
="$SAVE_LDFLAGS"
6160 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6161 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6163 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6167 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6169 gnu-linux|freebsd|netbsd
)
6171 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6180 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
6181 linux
/version.h sys
/systeminfo.h limits.h \
6182 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
6183 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6184 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6186 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6187 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6188 eval as_val
=\$
$as_ac_Header
6189 if test "x$as_val" = x
""yes; then :
6190 cat >>confdefs.h
<<_ACEOF
6191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6200 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #include <sys/personality.h>
6207 personality (PER_LINUX32)
6212 if ac_fn_c_try_compile
"$LINENO"; then :
6213 emacs_cv_personality_linux32
=yes
6215 emacs_cv_personality_linux32
=no
6217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6219 $as_echo "$emacs_cv_personality_linux32" >&6; }
6221 if test $emacs_cv_personality_linux32 = yes; then
6223 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6227 for ac_header
in term.h
6229 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6230 if test "x$ac_cv_header_term_h" = x
""yes; then :
6231 cat >>confdefs.h
<<_ACEOF
6232 #define HAVE_TERM_H 1
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if test "${ac_cv_header_stdc+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6260 ac_cv_header_stdc
=yes
6262 ac_cv_header_stdc
=no
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev
/null
2>&1; then :
6277 ac_cv_header_stdc
=no
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev
/null
2>&1; then :
6294 ac_cv_header_stdc
=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6332 if ac_fn_c_try_run
"$LINENO"; then :
6335 ac_cv_header_stdc
=no
6337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6352 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6353 if test "${ac_cv_header_time+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <sys/types.h>
6359 #include <sys/time.h>
6365 if ((struct tm *) 0)
6371 if ac_fn_c_try_compile
"$LINENO"; then :
6372 ac_cv_header_time
=yes
6374 ac_cv_header_time
=no
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6379 $as_echo "$ac_cv_header_time" >&6; }
6380 if test $ac_cv_header_time = yes; then
6382 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6386 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6387 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6393 cat >>confdefs.h
<<_ACEOF
6394 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6397 if test $ac_cv_have_decl_sys_siglist != yes; then
6398 # For Tru64, at least:
6399 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6400 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6406 cat >>confdefs.h
<<_ACEOF
6407 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6410 if test $ac_cv_have_decl___sys_siglist = yes; then
6412 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6417 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6418 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <sys/types.h>
6424 #include <sys/wait.h>
6426 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6429 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6442 if ac_fn_c_try_compile
"$LINENO"; then :
6443 ac_cv_header_sys_wait_h
=yes
6445 ac_cv_header_sys_wait_h
=no
6447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6450 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6451 if test $ac_cv_header_sys_wait_h = yes; then
6453 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6459 $as_echo_n "checking for struct utimbuf... " >&6; }
6460 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #ifdef TIME_WITH_SYS_TIME
6466 #include <sys/time.h>
6469 #ifdef HAVE_SYS_TIME_H
6470 #include <sys/time.h>
6481 static struct utimbuf x; x.actime = x.modtime;
6486 if ac_fn_c_try_compile
"$LINENO"; then :
6487 emacs_cv_struct_utimbuf
=yes
6489 emacs_cv_struct_utimbuf
=no
6491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6494 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6495 if test $emacs_cv_struct_utimbuf = yes; then
6497 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6502 $as_echo_n "checking return type of signal handlers... " >&6; }
6503 if test "${ac_cv_type_signal+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6514 return *(signal (0, 0)) (0) == 1;
6519 if ac_fn_c_try_compile
"$LINENO"; then :
6520 ac_cv_type_signal
=int
6522 ac_cv_type_signal
=void
6524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6527 $as_echo "$ac_cv_type_signal" >&6; }
6529 cat >>confdefs.h
<<_ACEOF
6530 #define RETSIGTYPE $ac_cv_type_signal
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6536 $as_echo_n "checking for speed_t... " >&6; }
6537 if test "${emacs_cv_speed_t+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 #include <termios.h>
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 emacs_cv_speed_t
=yes
6556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6559 $as_echo "$emacs_cv_speed_t" >&6; }
6560 if test $emacs_cv_speed_t = yes; then
6562 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6567 $as_echo_n "checking for struct timeval... " >&6; }
6568 if test "${emacs_cv_struct_timeval+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #ifdef TIME_WITH_SYS_TIME
6574 #include <sys/time.h>
6577 #ifdef HAVE_SYS_TIME_H
6578 #include <sys/time.h>
6586 static struct timeval x; x.tv_sec = x.tv_usec;
6591 if ac_fn_c_try_compile
"$LINENO"; then :
6592 emacs_cv_struct_timeval
=yes
6594 emacs_cv_struct_timeval
=no
6596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6599 $as_echo "$emacs_cv_struct_timeval" >&6; }
6600 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6601 if test $emacs_cv_struct_timeval = yes; then
6603 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6608 $as_echo_n "checking for struct exception... " >&6; }
6609 if test "${emacs_cv_struct_exception+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6618 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6623 if ac_fn_c_try_compile
"$LINENO"; then :
6624 emacs_cv_struct_exception
=yes
6626 emacs_cv_struct_exception
=no
6628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6631 $as_echo "$emacs_cv_struct_exception" >&6; }
6632 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6633 if test $emacs_cv_struct_exception != yes; then
6635 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6639 for ac_header
in sys
/socket.h
6641 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6642 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6643 cat >>confdefs.h
<<_ACEOF
6644 #define HAVE_SYS_SOCKET_H 1
6651 for ac_header
in net
/if.h
6653 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6654 #if HAVE_SYS_SOCKET_H
6655 #include <sys/socket.h>
6658 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6659 cat >>confdefs.h
<<_ACEOF
6660 #define HAVE_NET_IF_H 1
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6669 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6670 if test "${ac_cv_struct_tm+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 #include <sys/types.h>
6682 int *p = &tm.tm_sec;
6688 if ac_fn_c_try_compile
"$LINENO"; then :
6689 ac_cv_struct_tm
=time.h
6691 ac_cv_struct_tm
=sys
/time.h
6693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6696 $as_echo "$ac_cv_struct_tm" >&6; }
6697 if test $ac_cv_struct_tm = sys
/time.h
; then
6699 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6703 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6704 #include <$ac_cv_struct_tm>
6707 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6709 cat >>confdefs.h
<<_ACEOF
6710 #define HAVE_STRUCT_TM_TM_ZONE 1
6716 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6718 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6721 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6723 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6729 cat >>confdefs.h
<<_ACEOF
6730 #define HAVE_DECL_TZNAME $ac_have_decl
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6734 $as_echo_n "checking for tzname... " >&6; }
6735 if test "${ac_cv_var_tzname+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6741 #if !HAVE_DECL_TZNAME
6742 extern char *tzname[];
6748 return tzname[0][0];
6753 if ac_fn_c_try_link
"$LINENO"; then :
6754 ac_cv_var_tzname
=yes
6758 rm -f core conftest.err conftest.
$ac_objext \
6759 conftest
$ac_exeext conftest.
$ac_ext
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6762 $as_echo "$ac_cv_var_tzname" >&6; }
6763 if test $ac_cv_var_tzname = yes; then
6765 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6770 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6772 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6774 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6778 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6779 #if HAVE_SYS_SOCKET_H
6780 #include <sys/socket.h>
6786 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6788 cat >>confdefs.h
<<_ACEOF
6789 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6794 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6795 #if HAVE_SYS_SOCKET_H
6796 #include <sys/socket.h>
6802 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6804 cat >>confdefs.h
<<_ACEOF
6805 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6810 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6811 #if HAVE_SYS_SOCKET_H
6812 #include <sys/socket.h>
6818 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6820 cat >>confdefs.h
<<_ACEOF
6821 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6826 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6827 #if HAVE_SYS_SOCKET_H
6828 #include <sys/socket.h>
6834 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6836 cat >>confdefs.h
<<_ACEOF
6837 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6842 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6843 #if HAVE_SYS_SOCKET_H
6844 #include <sys/socket.h>
6850 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6852 cat >>confdefs.h
<<_ACEOF
6853 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6862 $as_echo_n "checking for function prototypes... " >&6; }
6863 if test "$ac_cv_prog_cc_c89" != no
; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6865 $as_echo "yes" >&6; }
6867 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6870 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6878 $as_echo_n "checking for working volatile... " >&6; }
6879 if test "${ac_cv_c_volatile+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6890 int * volatile y = (int *) 0;
6896 if ac_fn_c_try_compile
"$LINENO"; then :
6897 ac_cv_c_volatile
=yes
6901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6904 $as_echo "$ac_cv_c_volatile" >&6; }
6905 if test $ac_cv_c_volatile = no
; then
6907 $as_echo "#define volatile /**/" >>confdefs.h
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6912 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6913 if test "${ac_cv_c_const+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6922 /* FIXME: Include the comments suggested by Paul. */
6924 /* Ultrix mips cc rejects this. */
6925 typedef int charset[2];
6927 /* SunOS 4.1.1 cc rejects this. */
6928 char const *const *pcpcc;
6930 /* NEC SVR4.0.2 mips cc rejects this. */
6931 struct point {int x, y;};
6932 static struct point const zero = {0,0};
6933 /* AIX XL C 1.02.0.0 rejects this.
6934 It does not let you subtract one const X* pointer from another in
6935 an arm of an if-expression whose if-part is not a constant
6937 const char *g = "string";
6938 pcpcc = &g + (g ? g-g : 0);
6939 /* HPUX 7.0 cc rejects these. */
6941 ppc = (char**) pcpcc;
6942 pcpcc = (char const *const *) ppc;
6943 { /* SCO 3.2v4 cc rejects this. */
6945 char const *s = 0 ? (char *) 0 : (char const *) 0;
6950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6952 const int *foo = &x[0];
6955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6956 typedef const int *iptr;
6960 { /* AIX XL C 1.02.0.0 rejects this saying
6961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6962 struct s { int j; const int *ap[3]; };
6963 struct s *b; b->j = 5;
6965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6969 return !cs[0] && !zero.x;
6976 if ac_fn_c_try_compile
"$LINENO"; then :
6981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6984 $as_echo "$ac_cv_c_const" >&6; }
6985 if test $ac_cv_c_const = no
; then
6987 $as_echo "#define const /**/" >>confdefs.h
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6992 $as_echo_n "checking for void * support... " >&6; }
6993 if test "${emacs_cv_void_star+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7007 if ac_fn_c_try_compile
"$LINENO"; then :
7008 emacs_cv_void_star
=yes
7010 emacs_cv_void_star
=no
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7015 $as_echo "$emacs_cv_void_star" >&6; }
7016 if test $emacs_cv_void_star = yes; then
7017 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7020 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7025 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7026 if test "${ac_cv_c_bigendian+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7029 ac_cv_c_bigendian
=unknown
7030 # See if we're dealing with a universal compiler.
7031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #ifndef __APPLE_CC__
7034 not a universal capable compiler
7039 if ac_fn_c_try_compile
"$LINENO"; then :
7041 # Check for potential -arch flags. It is not universal unless
7042 # there are at least two -arch flags with different values.
7045 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7046 if test -n "$ac_prev"; then
7048 i?
86 | x86_64 | ppc | ppc64
)
7049 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7052 ac_cv_c_bigendian
=universal
7058 elif test "x$ac_word" = "x-arch"; then
7063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 if test $ac_cv_c_bigendian = unknown
; then
7065 # See if sys/param.h defines the BYTE_ORDER macro.
7066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #include <sys/types.h>
7069 #include <sys/param.h>
7074 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7075 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7084 if ac_fn_c_try_compile
"$LINENO"; then :
7085 # It does; now see whether it defined to BIG_ENDIAN or not.
7086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #include <sys/types.h>
7089 #include <sys/param.h>
7094 #if BYTE_ORDER != BIG_ENDIAN
7102 if ac_fn_c_try_compile
"$LINENO"; then :
7103 ac_cv_c_bigendian
=yes
7105 ac_cv_c_bigendian
=no
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 if test $ac_cv_c_bigendian = unknown
; then
7112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7120 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7128 if ac_fn_c_try_compile
"$LINENO"; then :
7129 # It does; now see whether it defined to _BIG_ENDIAN or not.
7130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7145 if ac_fn_c_try_compile
"$LINENO"; then :
7146 ac_cv_c_bigendian
=yes
7148 ac_cv_c_bigendian
=no
7150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 if test $ac_cv_c_bigendian = unknown
; then
7155 # Compile a test program.
7156 if test "$cross_compiling" = yes; then :
7157 # Try to guess by grepping values from an object file.
7158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 short int ascii_mm[] =
7161 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7162 short int ascii_ii[] =
7163 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7164 int use_ascii (int i) {
7165 return ascii_mm[i] + ascii_ii[i];
7167 short int ebcdic_ii[] =
7168 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7169 short int ebcdic_mm[] =
7170 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7171 int use_ebcdic (int i) {
7172 return ebcdic_mm[i] + ebcdic_ii[i];
7179 return use_ascii (foo) == use_ebcdic (foo);
7184 if ac_fn_c_try_compile
"$LINENO"; then :
7185 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7186 ac_cv_c_bigendian
=yes
7188 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7189 if test "$ac_cv_c_bigendian" = unknown
; then
7190 ac_cv_c_bigendian
=no
7192 # finding both strings is unlikely to happen, but who knows?
7193 ac_cv_c_bigendian
=unknown
7197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 $ac_includes_default
7206 /* Are we little or big endian? From Harbison&Steele. */
7210 char c[sizeof (long int)];
7213 return u.c[sizeof (long int) - 1] == 1;
7219 if ac_fn_c_try_run
"$LINENO"; then :
7220 ac_cv_c_bigendian
=no
7222 ac_cv_c_bigendian
=yes
7224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7231 $as_echo "$ac_cv_c_bigendian" >&6; }
7232 case $ac_cv_c_bigendian in #(
7234 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7240 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7244 as_fn_error
"unknown endianness
7245 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7250 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7252 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7253 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7254 $as_echo_n "(cached) " >&6
7256 cat >conftest.
make <<\_ACEOF
7259 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7262 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7264 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7266 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7270 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7272 $as_echo "yes" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 SET_MAKE
="MAKE=${MAKE-make}"
7284 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7286 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7288 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7289 if test "x$testval" != x
; then
7292 ac_enable_autodepend
=no
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7295 $as_echo "$HAVE_GNU_MAKE" >&6; }
7296 if test $HAVE_GNU_MAKE = yes; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7298 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7299 SAVE_CFLAGS
="$CFLAGS"
7300 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7312 if ac_fn_c_try_compile
"$LINENO"; then :
7315 ac_enable_autodepend
=no
7317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7318 CFLAGS
="$SAVE_CFLAGS"
7319 test -f deps.d || ac_enable_autodepend
=no
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7322 $as_echo "$ac_enable_autodepend" >&6; }
7324 if test $ac_enable_autodepend = yes; then
7325 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7326 ## In parallel builds, another make might create depdir between
7327 ## the first test and mkdir, so stick another test on the end.
7328 ## Or use mkinstalldirs? mkdir -p is not portable.
7329 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7330 deps_frag
=autodeps.mk
7333 deps_frag
=$srcdir/src
/$deps_frag
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7340 $as_echo_n "checking for long file names... " >&6; }
7341 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7344 ac_cv_sys_long_file_names
=yes
7345 # Test for long file names in all the places we know might matter:
7346 # . the current directory, where building will happen
7347 # $prefix/lib where we will be installing things
7348 # $exec_prefix/lib likewise
7349 # $TMPDIR if set, where it might want to write temporary files
7350 # /tmp where it might want to write temporary files
7353 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7354 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7355 # in the usual case where exec_prefix is '${prefix}'.
7357 . |
/* | ?
:[\\/]*) ;; #(
7360 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7361 ac_xdir
=$ac_dir/cf$$
7362 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7363 ac_tf1
=$ac_xdir/conftest9012345
7364 ac_tf2
=$ac_xdir/conftest9012346
7365 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7366 ac_cv_sys_long_file_names
=no
7367 rm -f -r "$ac_xdir" 2>/dev
/null
7368 test $ac_cv_sys_long_file_names = no
&& break
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7372 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7373 if test $ac_cv_sys_long_file_names = yes; then
7375 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7380 #### Choose a window system.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7383 $as_echo_n "checking for X... " >&6; }
7386 # Check whether --with-x was given.
7387 if test "${with_x+set}" = set; then :
7391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7392 if test "x$with_x" = xno
; then
7393 # The user explicitly disabled X.
7396 case $x_includes,$x_libraries in #(
7397 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7398 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 # One or both of the vars are not set, and there is no cached value.
7402 ac_x_includes
=no ac_x_libraries
=no
7403 rm -f -r conftest.dir
7404 if mkdir conftest.dir
; then
7406 cat >Imakefile
<<'_ACEOF'
7408 @echo incroot='${INCROOT}'
7410 @echo usrlibdir='${USRLIBDIR}'
7412 @echo libdir='${LIBDIR}'
7414 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7416 for ac_var
in incroot usrlibdir libdir
; do
7417 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7419 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7420 for ac_extension
in a so sl dylib la dll
; do
7421 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7422 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7423 ac_im_usrlibdir
=$ac_im_libdir; break
7426 # Screen out bogus values from the imake configuration. They are
7427 # bogus both because they are the default anyway, and because
7428 # using them would break gcc on systems where it needs fixed includes.
7429 case $ac_im_incroot in
7430 /usr
/include
) ac_x_includes
= ;;
7431 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7433 case $ac_im_usrlibdir in
7434 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7435 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7439 rm -f -r conftest.dir
7442 # Standard set of common directories for X headers.
7443 # Check X11 before X11Rn because it is often a symlink to the current release.
7457 /usr/local/X11/include
7458 /usr/local/X11R7/include
7459 /usr/local/X11R6/include
7460 /usr/local/X11R5/include
7461 /usr/local/X11R4/include
7463 /usr/local/include/X11
7464 /usr/local/include/X11R7
7465 /usr/local/include/X11R6
7466 /usr/local/include/X11R5
7467 /usr/local/include/X11R4
7471 /usr/XFree86/include/X11
7475 /usr/unsupported/include
7477 /usr/local/x11r5/include
7478 /usr/lpp/Xamples/include
7480 /usr/openwin/include
7481 /usr/openwin/share/include'
7483 if test "$ac_x_includes" = no
; then
7484 # Guess where to find include files, by looking for Xlib.h.
7485 # First, try using that file with no special directory specified.
7486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <X11/Xlib.h>
7490 if ac_fn_c_try_cpp
"$LINENO"; then :
7491 # We can compile using X headers with no special include directory.
7494 for ac_dir
in $ac_x_header_dirs; do
7495 if test -r "$ac_dir/X11/Xlib.h"; then
7496 ac_x_includes
=$ac_dir
7501 rm -f conftest.err conftest.
$ac_ext
7502 fi # $ac_x_includes = no
7504 if test "$ac_x_libraries" = no
; then
7505 # Check for the libraries.
7506 # See if we find them without any special options.
7507 # Don't add to $LIBS permanently.
7510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <X11/Xlib.h>
7521 if ac_fn_c_try_link
"$LINENO"; then :
7523 # We can link X programs with no special library path.
7527 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7529 # Don't even attempt the hair of trying to link an X program!
7530 for ac_extension
in a so sl dylib la dll
; do
7531 if test -r "$ac_dir/libX11.$ac_extension"; then
7532 ac_x_libraries
=$ac_dir
7538 rm -f core conftest.err conftest.
$ac_objext \
7539 conftest
$ac_exeext conftest.
$ac_ext
7540 fi # $ac_x_libraries = no
7542 case $ac_x_includes,$ac_x_libraries in #(
7544 # Didn't find X, or a directory has "'" in its name.
7545 ac_cv_have_x
="have_x=no";; #(
7547 # Record where we found X for the cache.
7548 ac_cv_have_x
="have_x=yes\
7549 ac_x_includes='$ac_x_includes'\
7550 ac_x_libraries='$ac_x_libraries'"
7556 eval "$ac_cv_have_x"
7559 if test "$have_x" != yes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7561 $as_echo "$have_x" >&6; }
7564 # If each of the values was on the command line, it overrides each guess.
7565 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7566 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7567 # Update the cache value to reflect the command line values.
7568 ac_cv_have_x
="have_x=yes\
7569 ac_x_includes='$x_includes'\
7570 ac_x_libraries='$x_libraries'"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7572 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7575 if test "$no_x" = yes; then
7581 ## Workaround for bug in autoconf <= 2.62.
7582 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7583 ## No need to do anything special for these standard directories.
7584 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7586 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7590 LD_SWITCH_X_SITE_AUX
=
7591 LD_SWITCH_X_SITE_AUX_RPATH
=
7592 if test "${x_libraries}" != NONE
; then
7593 if test -n "${x_libraries}"; then
7594 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7595 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7596 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7598 x_default_search_path
=""
7599 x_search_path
=${x_libraries}
7600 if test -z "${x_search_path}"; then
7601 x_search_path
=/usr
/lib
7603 for x_library
in `echo ${x_search_path}: | \
7604 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7606 ${x_library}/X11/%L/%T/%N%C%S:\
7607 ${x_library}/X11/%l/%T/%N%C%S:\
7608 ${x_library}/X11/%T/%N%C%S:\
7609 ${x_library}/X11/%L/%T/%N%S:\
7610 ${x_library}/X11/%l/%T/%N%S:\
7611 ${x_library}/X11/%T/%N%S"
7612 if test x
"${x_default_search_path}" = x
; then
7613 x_default_search_path
=${x_search_path}
7615 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7622 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7623 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7626 if test x
"${x_includes}" = x
; then
7627 bitmapdir
=/usr
/include
/X11
/bitmaps
7629 # accumulate include directories that have X11 bitmap subdirectories
7631 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7632 if test -d "${bmd}/X11/bitmaps"; then
7633 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7635 if test -d "${bmd}/bitmaps"; then
7636 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7639 if test ${bmd_acc} != "dummyval"; then
7640 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7647 tmp_CPPFLAGS
="$CPPFLAGS"
7648 tmp_CFLAGS
="$CFLAGS"
7649 CPPFLAGS
="$CPPFLAGS -x objective-c"
7650 CFLAGS
="$CFLAGS -x objective-c"
7651 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7652 if test "${with_ns}" != no
; then
7653 if test "${opsys}" = darwin
; then
7655 ns_appdir
=`pwd`/nextstep
/Emacs.app
7656 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
7657 ns_appresdir
=${ns_appdir}/Contents
/Resources
7658 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7659 elif test -f $GNUSTEP_CONFIG_FILE; then
7661 ns_appdir
=`pwd`/nextstep
/Emacs.app
7662 ns_appbindir
=${ns_appdir}/
7663 ns_appresdir
=${ns_appdir}/Resources
7664 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7665 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7666 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7667 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7668 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7669 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7670 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7671 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7672 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7673 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7674 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7675 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7680 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7681 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7684 as_fn_error
"\`--with-ns' was specified, but the include
7685 files are missing or cannot be compiled." "$LINENO" 5
7689 NS_HAVE_NSINTEGER
=yes
7690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #include <Foundation/NSObjCRuntime.h>
7701 if ac_fn_c_try_compile
"$LINENO"; then :
7702 ns_have_nsinteger
=yes
7704 ns_have_nsinteger
=no
7706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7707 if test $ns_have_nsinteger = no
; then
7708 NS_HAVE_NSINTEGER
=no
7716 if test "${HAVE_NS}" = yes; then
7717 window_system
=nextstep
7719 # set up packaging dirs
7720 exec_prefix
=${ns_appbindir}
7721 libexecdir
=${ns_appbindir}/libexec
7722 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7723 prefix
=${ns_appresdir}
7725 ns_frag
=$srcdir/src
/ns.mk
7726 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7727 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7729 CFLAGS
="$tmp_CFLAGS"
7730 CPPFLAGS
="$tmp_CPPFLAGS"
7736 case "${window_system}" in
7740 case "${with_x_toolkit}" in
7741 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7742 motif
) USE_X_TOOLKIT
=MOTIF
;;
7744 USE_X_TOOLKIT
=none
;;
7745 gtk3
) with_gtk3
=yes
7746 USE_X_TOOLKIT
=none
;;
7747 no
) USE_X_TOOLKIT
=none
;;
7748 * ) USE_X_TOOLKIT
=maybe
;;
7758 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7759 # Extract the first word of "X", so it can be a program name with args.
7760 set dummy X
; ac_word
=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$HAVE_XSERVER"; then
7767 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir
=.
7774 for ac_exec_ext
in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_HAVE_XSERVER
="true"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7787 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7788 if test -n "$HAVE_XSERVER"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7790 $as_echo "$HAVE_XSERVER" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7797 if test "$HAVE_XSERVER" = true ||
7798 test -n "$DISPLAY" ||
7799 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7800 as_fn_error
"You seem to be running X, but no X development libraries
7801 were found. You should install the relevant development files for X
7802 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7803 sure you have development files for image handling, i.e.
7804 tiff, gif, jpeg, png and xpm.
7805 If you are sure you want Emacs compiled without X window support, pass
7807 to configure." "$LINENO" 5
7811 ### If we're using X11, we should use the X menu package.
7814 yes ) HAVE_MENUS
=yes ;;
7817 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7818 # Assume not, until told otherwise.
7821 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7822 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7828 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7829 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7836 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7837 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 extern void (* __after_morecore_hook)();
7846 __after_morecore_hook = 0
7851 if ac_fn_c_try_link
"$LINENO"; then :
7852 emacs_cv_var___after_morecore_hook
=yes
7854 emacs_cv_var___after_morecore_hook
=no
7856 rm -f core conftest.err conftest.
$ac_objext \
7857 conftest
$ac_exeext conftest.
$ac_ext
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7860 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7861 if test $emacs_cv_var___after_morecore_hook = no
; then
7868 ## darwin ld insists on the use of malloc routines in the System framework.
7869 darwin|sol2-10
) system_malloc
=yes ;;
7872 if test "${system_malloc}" = "yes"; then
7874 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7878 (The GNU allocators don't work with this system configuration.)"
7882 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7883 VMLIMIT_OBJ
=vm-limit.o
7888 if test "$doug_lea_malloc" = "yes" ; then
7889 if test "$GNU_MALLOC" = yes ; then
7891 (Using Doug Lea's new malloc from the GNU C Library.)"
7894 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7897 ## Use mmap directly for allocating larger buffers.
7898 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7899 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7900 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7902 gnu
*) REL_ALLOC
=no
;;
7906 if test x
"${REL_ALLOC}" = x
; then
7907 REL_ALLOC
=${GNU_MALLOC}
7910 use_mmap_for_buffers
=no
7912 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7918 for ac_header
in $ac_header_list
7920 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7923 eval as_val
=\$
$as_ac_Header
7924 if test "x$as_val" = x
""yes; then :
7925 cat >>confdefs.h
<<_ACEOF
7926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7940 for ac_func
in getpagesize
7942 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7943 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7944 cat >>confdefs.h
<<_ACEOF
7945 #define HAVE_GETPAGESIZE 1
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7952 $as_echo_n "checking for working mmap... " >&6; }
7953 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7956 if test "$cross_compiling" = yes; then :
7957 ac_cv_func_mmap_fixed_mapped
=no
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 $ac_includes_default
7962 /* malloc might have been renamed as rpl_malloc. */
7965 /* Thanks to Mike Haertel and Jim Avera for this test.
7966 Here is a matrix of mmap possibilities:
7967 mmap private not fixed
7968 mmap private fixed at somewhere currently unmapped
7969 mmap private fixed at somewhere already mapped
7970 mmap shared not fixed
7971 mmap shared fixed at somewhere currently unmapped
7972 mmap shared fixed at somewhere already mapped
7973 For private mappings, we should verify that changes cannot be read()
7974 back from the file, nor mmap's back from the file at a different
7975 address. (There have been systems where private was not correctly
7976 implemented like the infamous i386 svr4.0, and systems where the
7977 VM page cache was not coherent with the file system buffer cache
7978 like early versions of FreeBSD and possibly contemporary NetBSD.)
7979 For shared mappings, we should conversely verify that changes get
7980 propagated back to all the places they're supposed to be.
7982 Grep wants private fixed already mapped.
7983 The main things grep needs to know about mmap are:
7984 * does it exist and is it safe to write into the mmap'd area
7985 * how to use it (BSD variants) */
7988 #include <sys/mman.h>
7990 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7994 /* This mess was copied from the GNU getpagesize.h. */
7995 #ifndef HAVE_GETPAGESIZE
7996 # ifdef _SC_PAGESIZE
7997 # define getpagesize() sysconf(_SC_PAGESIZE)
7998 # else /* no _SC_PAGESIZE */
7999 # ifdef HAVE_SYS_PARAM_H
8000 # include <sys/param.h>
8001 # ifdef EXEC_PAGESIZE
8002 # define getpagesize() EXEC_PAGESIZE
8003 # else /* no EXEC_PAGESIZE */
8005 # define getpagesize() NBPG * CLSIZE
8008 # endif /* no CLSIZE */
8009 # else /* no NBPG */
8011 # define getpagesize() NBPC
8012 # else /* no NBPC */
8014 # define getpagesize() PAGESIZE
8015 # endif /* PAGESIZE */
8016 # endif /* no NBPC */
8017 # endif /* no NBPG */
8018 # endif /* no EXEC_PAGESIZE */
8019 # else /* no HAVE_SYS_PARAM_H */
8020 # define getpagesize() 8192 /* punt totally */
8021 # endif /* no HAVE_SYS_PARAM_H */
8022 # endif /* no _SC_PAGESIZE */
8024 #endif /* no HAVE_GETPAGESIZE */
8029 char *data, *data2, *data3;
8033 pagesize = getpagesize ();
8035 /* First, make a file with some known garbage in it. */
8036 data = (char *) malloc (pagesize);
8039 for (i = 0; i < pagesize; ++i)
8040 *(data + i) = rand ();
8042 fd = creat ("conftest.mmap", 0600);
8045 if (write (fd, data, pagesize) != pagesize)
8049 /* Next, check that the tail of a page is zero-filled. File must have
8050 non-zero length, otherwise we risk SIGBUS for entire page. */
8051 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8055 if (write (fd2, data2, 1) != 1)
8057 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8058 if (data2 == MAP_FAILED)
8060 for (i = 0; i < pagesize; ++i)
8064 if (munmap (data2, pagesize))
8067 /* Next, try to mmap the file at a fixed address which already has
8068 something else allocated at it. If we can, also make sure that
8069 we see the same garbage. */
8070 fd = open ("conftest.mmap", O_RDWR);
8073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8076 for (i = 0; i < pagesize; ++i)
8077 if (*(data + i) != *(data2 + i))
8080 /* Finally, make sure that changes to the mapped area do not
8081 percolate back to the file as seen by read(). (This is a bug on
8082 some variants of i386 svr4.0.) */
8083 for (i = 0; i < pagesize; ++i)
8084 *(data2 + i) = *(data2 + i) + 1;
8085 data3 = (char *) malloc (pagesize);
8088 if (read (fd, data3, pagesize) != pagesize)
8090 for (i = 0; i < pagesize; ++i)
8091 if (*(data + i) != *(data3 + i))
8097 if ac_fn_c_try_run
"$LINENO"; then :
8098 ac_cv_func_mmap_fixed_mapped
=yes
8100 ac_cv_func_mmap_fixed_mapped
=no
8102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8108 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8109 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8111 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8114 rm -f conftest.mmap conftest.txt
8116 if test $use_mmap_for_buffers = yes; then
8118 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8123 LIBS
="$LIBS_SYSTEM $LIBS"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8126 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8127 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8130 ac_check_lib_save_LIBS
=$LIBS
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8135 /* Override any GCC internal prototype to avoid an error.
8136 Use char because int might match the return type of a GCC
8137 builtin and then its argument prototype would still apply. */
8145 return dnet_ntoa ();
8150 if ac_fn_c_try_link
"$LINENO"; then :
8151 ac_cv_lib_dnet_dnet_ntoa
=yes
8153 ac_cv_lib_dnet_dnet_ntoa
=no
8155 rm -f core conftest.err conftest.
$ac_objext \
8156 conftest
$ac_exeext conftest.
$ac_ext
8157 LIBS
=$ac_check_lib_save_LIBS
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8160 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8161 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8162 cat >>confdefs.h
<<_ACEOF
8163 #define HAVE_LIBDNET 1
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8172 $as_echo_n "checking for main in -lXbsd... " >&6; }
8173 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8176 ac_check_lib_save_LIBS
=$LIBS
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8190 if ac_fn_c_try_link
"$LINENO"; then :
8191 ac_cv_lib_Xbsd_main
=yes
8193 ac_cv_lib_Xbsd_main
=no
8195 rm -f core conftest.err conftest.
$ac_objext \
8196 conftest
$ac_exeext conftest.
$ac_ext
8197 LIBS
=$ac_check_lib_save_LIBS
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8200 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8201 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8202 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8207 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8208 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 ac_check_lib_save_LIBS
=$LIBS
8212 LIBS
="-lpthreads $LIBS"
8213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8216 /* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8231 if ac_fn_c_try_link
"$LINENO"; then :
8232 ac_cv_lib_pthreads_cma_open
=yes
8234 ac_cv_lib_pthreads_cma_open
=no
8236 rm -f core conftest.err conftest.
$ac_objext \
8237 conftest
$ac_exeext conftest.
$ac_ext
8238 LIBS
=$ac_check_lib_save_LIBS
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8241 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8242 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8243 cat >>confdefs.h
<<_ACEOF
8244 #define HAVE_LIBPTHREADS 1
8247 LIBS
="-lpthreads $LIBS"
8252 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8253 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8254 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8255 ## added to LIBS in configure would never contain the pthreads part,
8256 ## but the value used in Makefiles might. FIXME?
8258 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8259 ## be harmless on older versions of X where it happens to exist.
8260 test "$opsys" = "aix4-2" && \
8261 test $ac_cv_lib_pthreads_cma_open = yes && \
8262 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8268 $as_echo_n "checking for -bbigtoc option... " >&6; }
8269 if test "${gdb_cv_bigtoc+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8274 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8275 *) gdb_cv_bigtoc
=-bbigtoc ;;
8278 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8290 if ac_fn_c_try_link
"$LINENO"; then :
8295 rm -f core conftest.err conftest.
$ac_objext \
8296 conftest
$ac_exeext conftest.
$ac_ext
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8300 $as_echo "$gdb_cv_bigtoc" >&6; }
8304 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8305 # used for the tests that follow. We set them back to REAL_CFLAGS and
8306 # REAL_CPPFLAGS later on.
8308 REAL_CFLAGS
="$CFLAGS"
8309 REAL_CPPFLAGS
="$CPPFLAGS"
8311 if test "${HAVE_X11}" = "yes"; then
8312 DEFS
="$C_SWITCH_X_SITE $DEFS"
8313 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8315 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8316 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8318 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8319 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8320 # but it's more convenient here to set LD_RUN_PATH
8321 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8322 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8323 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8327 if test "${opsys}" = "gnu-linux"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8329 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8336 XOpenDisplay ("foo");
8341 if ac_fn_c_try_link
"$LINENO"; then :
8342 xlinux_first_failure
=no
8344 xlinux_first_failure
=yes
8346 rm -f core conftest.err conftest.
$ac_objext \
8347 conftest
$ac_exeext conftest.
$ac_ext
8348 if test "${xlinux_first_failure}" = "yes"; then
8349 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8350 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8351 OLD_CPPFLAGS
="$CPPFLAGS"
8353 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8354 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8355 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8356 LIBS
="$LIBS -b i486-linuxaout"
8357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8363 XOpenDisplay ("foo");
8368 if ac_fn_c_try_link
"$LINENO"; then :
8369 xlinux_second_failure
=no
8371 xlinux_second_failure
=yes
8373 rm -f core conftest.err conftest.
$ac_objext \
8374 conftest
$ac_exeext conftest.
$ac_ext
8375 if test "${xlinux_second_failure}" = "yes"; then
8376 # If we get the same failure with -b, there is no use adding -b.
8377 # So take it out. This plays safe.
8378 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8379 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8380 CPPFLAGS
="$OLD_CPPFLAGS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8395 # header files included from there.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8397 $as_echo_n "checking for Xkb... " >&6; }
8398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #include <X11/Xlib.h>
8401 #include <X11/XKBlib.h>
8405 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8410 if ac_fn_c_try_link
"$LINENO"; then :
8415 rm -f core conftest.err conftest.
$ac_objext \
8416 conftest
$ac_exeext conftest.
$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8418 $as_echo "$emacs_xkb" >&6; }
8419 if test $emacs_xkb = yes; then
8421 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8425 for ac_func
in XrmSetDatabase XScreenResourceString \
8426 XScreenNumberOfScreen XSetWMProtocols
8428 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8430 eval as_val
=\$
$as_ac_var
8431 if test "x$as_val" = x
""yes; then :
8432 cat >>confdefs.h
<<_ACEOF
8433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8441 if test "${window_system}" = "x11"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8443 $as_echo_n "checking X11 version 6... " >&6; }
8444 if test "${emacs_cv_x11_version_6+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 #include <X11/Xlib.h>
8453 #if XlibSpecificationRelease < 6
8461 if ac_fn_c_try_link
"$LINENO"; then :
8462 emacs_cv_x11_version_6
=yes
8464 emacs_cv_x11_version_6
=no
8466 rm -f core conftest.err conftest.
$ac_objext \
8467 conftest
$ac_exeext conftest.
$ac_ext
8470 if test $emacs_cv_x11_version_6 = yes; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8472 $as_echo "6 or newer" >&6; }
8474 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8477 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8479 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8484 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8490 $as_echo "before 6" >&6; }
8495 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8497 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8498 if test "${with_rsvg}" != "no"; then
8499 RSVG_REQUIRED
=2.11.0
8500 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8505 # Extract the first word of "pkg-config", so it can be a program name with args.
8506 set dummy pkg-config
; ac_word
=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir
=.
8522 for ac_exec_ext
in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8537 if test -n "$PKG_CONFIG"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8539 $as_echo "$PKG_CONFIG" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8547 if test "$PKG_CONFIG" = "no" ; then
8550 PKG_CONFIG_MIN_VERSION
=0.9.0
8551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8553 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8555 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557 $as_echo "yes" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8561 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8562 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8564 $as_echo "$RSVG_CFLAGS" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8567 $as_echo_n "checking RSVG_LIBS... " >&6; }
8568 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8570 $as_echo "$RSVG_LIBS" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8576 ## If we have a custom action on failure, don't print errors, but
8577 ## do set a variable so people can do so.
8578 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8590 if test $succeeded = yes; then
8599 if test $HAVE_RSVG = yes; then
8601 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8603 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8604 LIBS
="$RSVG_LIBS $LIBS"
8610 if test "${HAVE_X11}" = "yes"; then
8611 if test "${with_imagemagick}" != "no"; then
8612 IMAGEMAGICK_MODULE
="Wand"
8616 # Extract the first word of "pkg-config", so it can be a program name with args.
8617 set dummy pkg-config
; ac_word
=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8625 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8647 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8648 if test -n "$PKG_CONFIG"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8650 $as_echo "$PKG_CONFIG" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8658 if test "$PKG_CONFIG" = "no" ; then
8661 PKG_CONFIG_MIN_VERSION
=0.9.0
8662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8664 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8666 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8668 $as_echo "yes" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8672 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8673 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8675 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8678 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8679 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8681 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 IMAGEMAGICK_CFLAGS
=""
8687 ## If we have a custom action on failure, don't print errors, but
8688 ## do set a variable so people can do so.
8689 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8701 if test $succeeded = yes; then
8702 HAVE_IMAGEMAGICK
=yes
8710 if test $HAVE_IMAGEMAGICK = yes; then
8712 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8714 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8715 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8716 for ac_func
in MagickExportImagePixels
8718 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8719 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8733 if test "${with_gtk3}" = "yes"; then
8736 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8741 # Extract the first word of "pkg-config", so it can be a program name with args.
8742 set dummy pkg-config
; ac_word
=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8757 test -z "$as_dir" && as_dir
=.
8758 for ac_exec_ext
in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8773 if test -n "$PKG_CONFIG"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8775 $as_echo "$PKG_CONFIG" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8783 if test "$PKG_CONFIG" = "no" ; then
8786 PKG_CONFIG_MIN_VERSION
=0.9.0
8787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8789 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8791 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8797 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8798 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8800 $as_echo "$GTK_CFLAGS" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8803 $as_echo_n "checking GTK_LIBS... " >&6; }
8804 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8806 $as_echo "$GTK_LIBS" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8812 ## If we have a custom action on failure, don't print errors, but
8813 ## do set a variable so people can do so.
8814 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8826 if test $succeeded = yes; then
8832 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8833 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8837 if test "$pkg_check_gtk" != "yes"; then
8839 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8842 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8847 # Extract the first word of "pkg-config", so it can be a program name with args.
8848 set dummy pkg-config
; ac_word
=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8856 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8863 test -z "$as_dir" && as_dir
=.
8864 for ac_exec_ext
in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8878 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8879 if test -n "$PKG_CONFIG"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8881 $as_echo "$PKG_CONFIG" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8889 if test "$PKG_CONFIG" = "no" ; then
8892 PKG_CONFIG_MIN_VERSION
=0.9.0
8893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8895 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8903 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8904 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8906 $as_echo "$GTK_CFLAGS" >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8909 $as_echo_n "checking GTK_LIBS... " >&6; }
8910 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8912 $as_echo "$GTK_LIBS" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8918 ## If we have a custom action on failure, don't print errors, but
8919 ## do set a variable so people can do so.
8920 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8932 if test $succeeded = yes; then
8938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8939 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8945 if test x
"$pkg_check_gtk" = xyes
; then
8949 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8950 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8951 LIBS
="$GTK_LIBS $LIBS"
8953 for ac_func
in gtk_main
8955 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8956 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8957 cat >>confdefs.h
<<_ACEOF
8958 #define HAVE_GTK_MAIN 1
8964 if test "${GTK_COMPILES}" != "yes"; then
8965 if test "$USE_X_TOOLKIT" != "maybe"; then
8966 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8971 $as_echo "#define USE_GTK 1" >>confdefs.h
8975 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8979 closing open displays. This is no problem if you just use
8980 one display, but if you use more than one and close one of them
8981 Emacs may crash." >&5
8982 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8983 closing open displays. This is no problem if you just use
8984 one display, but if you use more than one and close one of them
8985 Emacs may crash." >&2;}
8994 if test "${HAVE_GTK}" = "yes"; then
8996 if test "$with_toolkit_scroll_bars" != no
; then
8997 with_toolkit_scroll_bars
=yes
9000 HAVE_GTK_FILE_SELECTION
=no
9001 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9002 #include <gtk/gtk.h>
9004 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9005 HAVE_GTK_FILE_SELECTION
=yes
9007 HAVE_GTK_FILE_SELECTION
=no
9010 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9011 for ac_func
in gtk_file_selection_new
9013 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9014 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_GTK_FILE_SELECTION_NEW 1
9024 HAVE_GTK_AND_PTHREAD
=no
9025 for ac_header
in pthread.h
9027 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9028 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9029 cat >>confdefs.h
<<_ACEOF
9030 #define HAVE_PTHREAD_H 1
9037 if test "$ac_cv_header_pthread_h"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9039 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9040 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9043 ac_check_lib_save_LIBS
=$LIBS
9044 LIBS
="-lpthread $LIBS"
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9048 /* Override any GCC internal prototype to avoid an error.
9049 Use char because int might match the return type of a GCC
9050 builtin and then its argument prototype would still apply. */
9054 char pthread_self ();
9058 return pthread_self ();
9063 if ac_fn_c_try_link
"$LINENO"; then :
9064 ac_cv_lib_pthread_pthread_self
=yes
9066 ac_cv_lib_pthread_pthread_self
=no
9068 rm -f core conftest.err conftest.
$ac_objext \
9069 conftest
$ac_exeext conftest.
$ac_ext
9070 LIBS
=$ac_check_lib_save_LIBS
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9073 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9074 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9075 HAVE_GTK_AND_PTHREAD
=yes
9079 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9080 case "${canonical}" in
9082 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9085 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9089 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9090 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9091 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9092 gtk_orientable_set_orientation
9094 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9096 eval as_val
=\$
$as_ac_var
9097 if test "x$as_val" = x
""yes; then :
9098 cat >>confdefs.h
<<_ACEOF
9099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9110 if test "${with_dbus}" = "yes"; then
9114 # Extract the first word of "pkg-config", so it can be a program name with args.
9115 set dummy pkg-config
; ac_word
=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9123 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9130 test -z "$as_dir" && as_dir
=.
9131 for ac_exec_ext
in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9145 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9146 if test -n "$PKG_CONFIG"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9148 $as_echo "$PKG_CONFIG" >&6; }
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9156 if test "$PKG_CONFIG" = "no" ; then
9159 PKG_CONFIG_MIN_VERSION
=0.9.0
9160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9162 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9164 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9166 $as_echo "yes" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9170 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9171 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9173 $as_echo "$DBUS_CFLAGS" >&6; }
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9176 $as_echo_n "checking DBUS_LIBS... " >&6; }
9177 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9179 $as_echo "$DBUS_LIBS" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9185 ## If we have a custom action on failure, don't print errors, but
9186 ## do set a variable so people can do so.
9187 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9199 if test $succeeded = yes; then
9205 if test "$HAVE_DBUS" = yes; then
9206 LIBS
="$LIBS $DBUS_LIBS"
9208 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9210 for ac_func
in dbus_watch_get_unix_fd
9212 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9213 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9214 cat >>confdefs.h
<<_ACEOF
9215 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9227 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9231 # Extract the first word of "pkg-config", so it can be a program name with args.
9232 set dummy pkg-config
; ac_word
=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9240 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9247 test -z "$as_dir" && as_dir
=.
9248 for ac_exec_ext
in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9262 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9263 if test -n "$PKG_CONFIG"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9265 $as_echo "$PKG_CONFIG" >&6; }
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9273 if test "$PKG_CONFIG" = "no" ; then
9276 PKG_CONFIG_MIN_VERSION
=0.9.0
9277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9279 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9281 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9283 $as_echo "yes" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9287 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9288 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9290 $as_echo "$GCONF_CFLAGS" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9293 $as_echo_n "checking GCONF_LIBS... " >&6; }
9294 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9296 $as_echo "$GCONF_LIBS" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 ## If we have a custom action on failure, don't print errors, but
9303 ## do set a variable so people can do so.
9304 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9316 if test $succeeded = yes; then
9322 if test "$HAVE_GCONF" = yes; then
9324 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9326 for ac_func
in g_type_init
9328 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9329 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
9330 cat >>confdefs.h
<<_ACEOF
9331 #define HAVE_G_TYPE_INIT 1
9342 if test "${with_selinux}" = "yes"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9344 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9345 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9348 ac_check_lib_save_LIBS
=$LIBS
9349 LIBS
="-lselinux $LIBS"
9350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9353 /* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9359 char lgetfilecon ();
9363 return lgetfilecon ();
9368 if ac_fn_c_try_link
"$LINENO"; then :
9369 ac_cv_lib_selinux_lgetfilecon
=yes
9371 ac_cv_lib_selinux_lgetfilecon
=no
9373 rm -f core conftest.err conftest.
$ac_objext \
9374 conftest
$ac_exeext conftest.
$ac_ext
9375 LIBS
=$ac_check_lib_save_LIBS
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9378 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9379 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9385 if test "$HAVE_LIBSELINUX" = yes; then
9387 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9389 LIBSELINUX_LIBS
=-lselinux
9395 if test "${with_gnutls}" = "yes" ; then
9399 # Extract the first word of "pkg-config", so it can be a program name with args.
9400 set dummy pkg-config
; ac_word
=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9408 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9415 test -z "$as_dir" && as_dir
=.
9416 for ac_exec_ext
in '' $ac_executable_extensions; do
9417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9418 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9430 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9431 if test -n "$PKG_CONFIG"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9433 $as_echo "$PKG_CONFIG" >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9441 if test "$PKG_CONFIG" = "no" ; then
9444 PKG_CONFIG_MIN_VERSION
=0.9.0
9445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9447 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9449 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9455 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9456 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9458 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9461 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9462 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9464 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 $as_echo "no" >&6; }
9470 ## If we have a custom action on failure, don't print errors, but
9471 ## do set a variable so people can do so.
9472 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9484 if test $succeeded = yes; then
9490 if test "${HAVE_GNUTLS}" = "yes"; then
9492 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9501 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9502 if test "$with_xaw3d" != no
; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9504 $as_echo_n "checking for xaw3d... " >&6; }
9505 if test "${emacs_cv_xaw3d+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9511 #include <X11/Intrinsic.h>
9512 #include <X11/Xaw3d/Simple.h>
9521 if ac_fn_c_try_link
"$LINENO"; then :
9526 rm -f core conftest.err conftest.
$ac_objext \
9527 conftest
$ac_exeext conftest.
$ac_ext
9533 if test $emacs_cv_xaw3d = yes; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9535 $as_echo "yes; using Lucid toolkit" >&6; }
9540 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9546 $as_echo_n "checking for libXaw... " >&6; }
9547 if test "${emacs_cv_xaw+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9553 #include <X11/Intrinsic.h>
9554 #include <X11/Xaw/Simple.h>
9563 if ac_fn_c_try_link
"$LINENO"; then :
9568 rm -f core conftest.err conftest.
$ac_objext \
9569 conftest
$ac_exeext conftest.
$ac_ext
9572 if test $emacs_cv_xaw = yes; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9574 $as_echo "yes; using Lucid toolkit" >&6; }
9577 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9578 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9581 $as_echo "no; do not use toolkit by default" >&6; }
9587 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9590 if test "${USE_X_TOOLKIT}" != "none"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9592 $as_echo_n "checking X11 toolkit version... " >&6; }
9593 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #include <X11/Intrinsic.h>
9602 #if XtSpecificationRelease < 6
9610 if ac_fn_c_try_link
"$LINENO"; then :
9611 emacs_cv_x11_toolkit_version_6
=yes
9613 emacs_cv_x11_toolkit_version_6
=no
9615 rm -f core conftest.err conftest.
$ac_objext \
9616 conftest
$ac_exeext conftest.
$ac_ext
9619 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9620 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9622 $as_echo "6 or newer" >&6; }
9624 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9626 LIBXTR6
="-lSM -lICE"
9628 ## Use libw.a along with X11R6 Xt.
9629 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9633 $as_echo "before 6" >&6; }
9637 if test x
$HAVE_X11XTR6 = xyes
; then
9638 LIBS
="-lXt -lSM -lICE $LIBS"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9643 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9644 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9647 ac_check_lib_save_LIBS
=$LIBS
9649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9658 char XmuConvertStandardSelection ();
9662 return XmuConvertStandardSelection ();
9667 if ac_fn_c_try_link
"$LINENO"; then :
9668 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9670 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9672 rm -f core conftest.err conftest.
$ac_objext \
9673 conftest
$ac_exeext conftest.
$ac_ext
9674 LIBS
=$ac_check_lib_save_LIBS
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9677 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9678 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9679 cat >>confdefs.h
<<_ACEOF
9680 #define HAVE_LIBXMU 1
9687 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9693 ## These systems don't supply Xmu.
9695 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9700 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9701 if test "${HAVE_X11}" = "yes"; then
9702 if test "${USE_X_TOOLKIT}" != "none"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9704 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9705 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9708 ac_check_lib_save_LIBS
=$LIBS
9710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9719 char XShapeQueryExtension ();
9723 return XShapeQueryExtension ();
9728 if ac_fn_c_try_link
"$LINENO"; then :
9729 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9731 ac_cv_lib_Xext_XShapeQueryExtension
=no
9733 rm -f core conftest.err conftest.
$ac_objext \
9734 conftest
$ac_exeext conftest.
$ac_ext
9735 LIBS
=$ac_check_lib_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9738 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9739 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9740 cat >>confdefs.h
<<_ACEOF
9741 #define HAVE_LIBXEXT 1
9752 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9754 $as_echo_n "checking for Motif version 2.1... " >&6; }
9755 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9764 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9767 Motif version prior to 2.1.
9773 if ac_fn_c_try_compile
"$LINENO"; then :
9774 emacs_cv_motif_version_2_1
=yes
9776 emacs_cv_motif_version_2_1
=no
9778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9781 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9782 if test $emacs_cv_motif_version_2_1 = yes; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9784 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9785 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9788 ac_check_lib_save_LIBS
=$LIBS
9790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9799 char XpCreateContext ();
9803 return XpCreateContext ();
9808 if ac_fn_c_try_link
"$LINENO"; then :
9809 ac_cv_lib_Xp_XpCreateContext
=yes
9811 ac_cv_lib_Xp_XpCreateContext
=no
9813 rm -f core conftest.err conftest.
$ac_objext \
9814 conftest
$ac_exeext conftest.
$ac_ext
9815 LIBS
=$ac_check_lib_save_LIBS
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9818 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9819 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9825 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9826 if test "${emacs_cv_lesstif+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9829 # We put this in CFLAGS temporarily to precede other -I options
9830 # that might be in CFLAGS temporarily.
9831 # We put this in CPPFLAGS where it precedes the other -I options.
9832 OLD_CPPFLAGS
=$CPPFLAGS
9834 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9835 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9847 if ac_fn_c_try_compile
"$LINENO"; then :
9848 emacs_cv_lesstif
=yes
9852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9855 $as_echo "$emacs_cv_lesstif" >&6; }
9856 if test $emacs_cv_lesstif = yes; then
9857 # Make sure this -I option remains in CPPFLAGS after it is set
9858 # back to REAL_CPPFLAGS.
9859 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9860 # have those other -I options anyway. Ultimately, having this
9861 # directory ultimately in CPPFLAGS will be enough.
9862 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9863 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9866 CPPFLAGS
=$OLD_CPPFLAGS
9872 USE_TOOLKIT_SCROLL_BARS
=no
9873 if test "${with_toolkit_scroll_bars}" != "no"; then
9874 if test "${USE_X_TOOLKIT}" != "none"; then
9875 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9876 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9879 USE_TOOLKIT_SCROLL_BARS
=yes
9880 elif test "${HAVE_XAW3D}" = "yes"; then
9881 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9883 USE_TOOLKIT_SCROLL_BARS
=yes
9885 elif test "${HAVE_GTK}" = "yes"; then
9886 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9888 USE_TOOLKIT_SCROLL_BARS
=yes
9889 elif test "${HAVE_NS}" = "yes"; then
9890 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9892 USE_TOOLKIT_SCROLL_BARS
=yes
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 #include <X11/Xlib.h>
9900 #include <X11/Xresource.h>
9909 if ac_fn_c_try_compile
"$LINENO"; then :
9912 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9920 if test "${with_xim}" != "no"; then
9922 $as_echo "#define USE_XIM 1" >>confdefs.h
9927 if test "${HAVE_XIM}" != "no"; then
9929 if test "$GCC" = yes; then
9930 CFLAGS
="$CFLAGS --pedantic-errors"
9932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 #include <X11/Xlib.h>
9936 #include <X11/Xresource.h>
9945 XPointer *client_data;
9947 /* If we're not using GCC, it's probably not XFree86, and this is
9948 probably right, but we can't use something like --pedantic-errors. */
9949 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9950 char*, XIMProc, XPointer*);
9952 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9958 if ac_fn_c_try_compile
"$LINENO"; then :
9959 emacs_cv_arg6_star
=yes
9961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9962 if test "$emacs_cv_arg6_star" = yes; then
9963 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9966 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9972 ### Start of font-backend (under any platform) section.
9973 # (nothing here yet -- this is a placeholder)
9974 ### End of font-backend (under any platform) section.
9976 ### Start of font-backend (under X11) section.
9977 if test "${HAVE_X11}" = "yes"; then
9981 # Extract the first word of "pkg-config", so it can be a program name with args.
9982 set dummy pkg-config
; ac_word
=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9990 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9997 test -z "$as_dir" && as_dir
=.
9998 for ac_exec_ext
in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10012 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10013 if test -n "$PKG_CONFIG"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10015 $as_echo "$PKG_CONFIG" >&6; }
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10023 if test "$PKG_CONFIG" = "no" ; then
10026 PKG_CONFIG_MIN_VERSION
=0.9.0
10027 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10029 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10031 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10037 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10038 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10040 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10043 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10044 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10046 $as_echo "$FONTCONFIG_LIBS" >&6; }
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10050 FONTCONFIG_CFLAGS
=""
10052 ## If we have a custom action on failure, don't print errors, but
10053 ## do set a variable so people can do so.
10054 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10061 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10062 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10066 if test $succeeded = yes; then
10073 ## Use -lXft if available, unless `--with-xft=no'.
10075 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10078 if test "x${with_xft}" != "xno"; then
10083 # Extract the first word of "pkg-config", so it can be a program name with args.
10084 set dummy pkg-config
; ac_word
=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10090 case $PKG_CONFIG in
10092 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10096 for as_dir
in $PATH
10099 test -z "$as_dir" && as_dir
=.
10100 for ac_exec_ext
in '' $ac_executable_extensions; do
10101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10102 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10114 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10115 if test -n "$PKG_CONFIG"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10117 $as_echo "$PKG_CONFIG" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10125 if test "$PKG_CONFIG" = "no" ; then
10128 PKG_CONFIG_MIN_VERSION
=0.9.0
10129 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10131 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10133 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10139 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10140 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10142 $as_echo "$XFT_CFLAGS" >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10145 $as_echo_n "checking XFT_LIBS... " >&6; }
10146 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10148 $as_echo "$XFT_LIBS" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10154 ## If we have a custom action on failure, don't print errors, but
10155 ## do set a variable so people can do so.
10156 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10168 if test $succeeded = yes; then
10174 ## Because xftfont.c uses XRenderQueryExtension, we also
10175 ## need to link to -lXrender.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10178 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10179 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_check_lib_save_LIBS
=$LIBS
10183 LIBS
="-lXrender $LIBS"
10184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10193 char XRenderQueryExtension ();
10197 return XRenderQueryExtension ();
10202 if ac_fn_c_try_link
"$LINENO"; then :
10203 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10205 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10207 rm -f core conftest.err conftest.
$ac_objext \
10208 conftest
$ac_exeext conftest.
$ac_ext
10209 LIBS
=$ac_check_lib_save_LIBS
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10212 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10213 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10217 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10218 OLD_CPPFLAGS
="$CPPFLAGS"
10219 OLD_CFLAGS
="$CFLAGS"
10221 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10222 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10223 XFT_LIBS
="-lXrender $XFT_LIBS"
10224 LIBS
="$XFT_LIBS $LIBS"
10225 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10226 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10228 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10229 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10232 ac_check_lib_save_LIBS
=$LIBS
10233 LIBS
="-lXft $XFT_LIBS $LIBS"
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10243 char XftFontOpen ();
10247 return XftFontOpen ();
10252 if ac_fn_c_try_link
"$LINENO"; then :
10253 ac_cv_lib_Xft_XftFontOpen
=yes
10255 ac_cv_lib_Xft_XftFontOpen
=no
10257 rm -f core conftest.err conftest.
$ac_objext \
10258 conftest
$ac_exeext conftest.
$ac_ext
10259 LIBS
=$ac_check_lib_save_LIBS
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10262 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10263 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10271 if test "${HAVE_XFT}" = "yes"; then
10273 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10276 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10278 CPPFLAGS
="$OLD_CPPFLAGS"
10279 CFLAGS
="$OLD_CFLAGS"
10281 fi # "${HAVE_XFT}" = "yes"
10282 fi # "$HAVE_XFT" != no
10283 fi # "x${with_xft}" != "xno"
10285 if test "$HAVE_XFT" != "yes"; then
10291 ## We used to allow building with FreeType and without Xft.
10292 ## However, the ftx font backend driver is not in good shape.
10293 if test "${HAVE_XFT}" = "yes"; then
10300 if test "${HAVE_FREETYPE}" = "yes"; then
10302 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10304 if test "${with_libotf}" != "no"; then
10308 # Extract the first word of "pkg-config", so it can be a program name with args.
10309 set dummy pkg-config
; ac_word
=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10313 $as_echo_n "(cached) " >&6
10315 case $PKG_CONFIG in
10317 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10321 for as_dir
in $PATH
10324 test -z "$as_dir" && as_dir
=.
10325 for ac_exec_ext
in '' $ac_executable_extensions; do
10326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10339 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10340 if test -n "$PKG_CONFIG"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10342 $as_echo "$PKG_CONFIG" >&6; }
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 if test "$PKG_CONFIG" = "no" ; then
10353 PKG_CONFIG_MIN_VERSION
=0.9.0
10354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10356 $as_echo_n "checking for libotf... " >&6; }
10358 if $PKG_CONFIG --exists "libotf" 2>&5; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10360 $as_echo "yes" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10364 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10365 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10367 $as_echo "$LIBOTF_CFLAGS" >&6; }
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10370 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10371 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10373 $as_echo "$LIBOTF_LIBS" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10379 ## If we have a custom action on failure, don't print errors, but
10380 ## do set a variable so people can do so.
10381 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10393 if test $succeeded = yes; then
10399 if test "$HAVE_LIBOTF" = "yes"; then
10401 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10404 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10405 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_check_lib_save_LIBS
=$LIBS
10410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10419 char OTF_get_variation_glyphs ();
10423 return OTF_get_variation_glyphs ();
10428 if ac_fn_c_try_link
"$LINENO"; then :
10429 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10431 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10438 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10439 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10440 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10442 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10445 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10447 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10455 if test "${HAVE_LIBOTF}" = yes; then
10456 if test "${with_m17n_flt}" != "no"; then
10460 # Extract the first word of "pkg-config", so it can be a program name with args.
10461 set dummy pkg-config
; ac_word
=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10467 case $PKG_CONFIG in
10469 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10473 for as_dir
in $PATH
10476 test -z "$as_dir" && as_dir
=.
10477 for ac_exec_ext
in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10491 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10492 if test -n "$PKG_CONFIG"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10494 $as_echo "$PKG_CONFIG" >&6; }
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10502 if test "$PKG_CONFIG" = "no" ; then
10505 PKG_CONFIG_MIN_VERSION
=0.9.0
10506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10508 $as_echo_n "checking for m17n-flt... " >&6; }
10510 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10516 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10517 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10519 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10522 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10523 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10525 $as_echo "$M17N_FLT_LIBS" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10531 ## If we have a custom action on failure, don't print errors, but
10532 ## do set a variable so people can do so.
10533 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10540 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10541 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10545 if test $succeeded = yes; then
10551 if test "$HAVE_M17N_FLT" = "yes"; then
10553 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10565 ### End of font-backend (under X11) section.
10576 ### Use -lXpm if available, unless `--with-xpm=no'.
10579 if test "${HAVE_X11}" = "yes"; then
10580 if test "${with_xpm}" != "no"; then
10581 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10582 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10584 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10585 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10588 ac_check_lib_save_LIBS
=$LIBS
10589 LIBS
="-lXpm -lX11 $LIBS"
10590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10599 char XpmReadFileToPixmap ();
10603 return XpmReadFileToPixmap ();
10608 if ac_fn_c_try_link
"$LINENO"; then :
10609 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10611 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10613 rm -f core conftest.err conftest.
$ac_objext \
10614 conftest
$ac_exeext conftest.
$ac_ext
10615 LIBS
=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10618 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10619 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10626 if test "${HAVE_XPM}" = "yes"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10628 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include "X11/xpm.h"
10632 #ifndef XpmReturnAllocPixels
10633 no_return_alloc_pixels
10637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10638 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10646 if test "${HAVE_XPM}" = "yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10656 if test "${HAVE_XPM}" = "yes"; then
10658 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10665 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10668 if test "${HAVE_X11}" = "yes"; then
10669 if test "${with_jpeg}" != "no"; then
10670 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10671 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10673 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10674 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10677 ac_check_lib_save_LIBS
=$LIBS
10678 LIBS
="-ljpeg $LIBS"
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10688 char jpeg_destroy_compress ();
10692 return jpeg_destroy_compress ();
10697 if ac_fn_c_try_link
"$LINENO"; then :
10698 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10700 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10702 rm -f core conftest.err conftest.
$ac_objext \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 LIBS
=$ac_check_lib_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10707 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10708 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10717 if test "${HAVE_JPEG}" = "yes"; then
10718 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <jpeglib.h>
10723 version=JPEG_LIB_VERSION
10726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10727 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10728 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10732 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10738 if test "${HAVE_JPEG}" = "yes"; then
10744 ### Use -lpng if available, unless `--with-png=no'.
10747 if test "${HAVE_X11}" = "yes"; then
10748 if test "${with_png}" != "no"; then
10749 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10750 # in /usr/include/libpng.
10751 for ac_header
in png.h libpng
/png.h
10753 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10755 eval as_val
=\$
$as_ac_Header
10756 if test "x$as_val" = x
""yes; then :
10757 cat >>confdefs.h
<<_ACEOF
10758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10767 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10768 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
10771 ac_check_lib_save_LIBS
=$LIBS
10772 LIBS
="-lpng -lz -lm $LIBS"
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10782 char png_get_channels ();
10786 return png_get_channels ();
10791 if ac_fn_c_try_link
"$LINENO"; then :
10792 ac_cv_lib_png_png_get_channels
=yes
10794 ac_cv_lib_png_png_get_channels
=no
10796 rm -f core conftest.err conftest.
$ac_objext \
10797 conftest
$ac_exeext conftest.
$ac_ext
10798 LIBS
=$ac_check_lib_save_LIBS
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10801 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10802 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10809 if test "${HAVE_PNG}" = "yes"; then
10811 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10813 LIBPNG
="-lpng -lz -lm"
10818 ### Use -ltiff if available, unless `--with-tiff=no'.
10821 if test "${HAVE_X11}" = "yes"; then
10822 if test "${with_tiff}" != "no"; then
10823 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10824 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10826 # At least one tiff package requires the jpeg library.
10827 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10829 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10830 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10833 ac_check_lib_save_LIBS
=$LIBS
10834 LIBS
="-ltiff $tifflibs $LIBS"
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10844 char TIFFGetVersion ();
10848 return TIFFGetVersion ();
10853 if ac_fn_c_try_link
"$LINENO"; then :
10854 ac_cv_lib_tiff_TIFFGetVersion
=yes
10856 ac_cv_lib_tiff_TIFFGetVersion
=no
10858 rm -f core conftest.err conftest.
$ac_objext \
10859 conftest
$ac_exeext conftest.
$ac_ext
10860 LIBS
=$ac_check_lib_save_LIBS
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10863 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10864 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10873 if test "${HAVE_TIFF}" = "yes"; then
10875 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10882 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10885 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10886 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10887 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10888 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10889 # Earlier versions can crash Emacs.
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10891 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10892 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 ac_check_lib_save_LIBS
=$LIBS
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10906 char EGifPutExtensionLast ();
10910 return EGifPutExtensionLast ();
10915 if ac_fn_c_try_link
"$LINENO"; then :
10916 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10918 ac_cv_lib_gif_EGifPutExtensionLast
=no
10920 rm -f core conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10922 LIBS
=$ac_check_lib_save_LIBS
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10925 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10926 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10936 if test "$HAVE_GIF" = yes; then
10938 elif test "$HAVE_GIF" = maybe
; then
10939 # If gif_lib.h but no libgif, try libungif.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10941 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10942 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10945 ac_check_lib_save_LIBS
=$LIBS
10946 LIBS
="-lungif $LIBS"
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10956 char EGifPutExtensionLast ();
10960 return EGifPutExtensionLast ();
10965 if ac_fn_c_try_link
"$LINENO"; then :
10966 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10968 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10970 rm -f core conftest.err conftest.
$ac_objext \
10971 conftest
$ac_exeext conftest.
$ac_ext
10972 LIBS
=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10975 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10976 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10982 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10985 if test "${HAVE_GIF}" = "yes"; then
10987 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10993 if test "${HAVE_X11}" = "yes"; then
10996 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10997 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10998 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10999 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11000 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11001 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11002 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11003 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11004 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11005 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11007 if test "X${MISSING}" != X
; then
11008 as_fn_error
"The following required libraries were not found:
11010 Maybe some development libraries/packages are missing?
11011 If you don't want to link with them give
11013 as options to configure" "$LINENO" 5
11017 ### Use -lgpm if available, unless `--with-gpm=no'.
11021 if test "${with_gpm}" != "no"; then
11022 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11023 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11025 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11026 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11029 ac_check_lib_save_LIBS
=$LIBS
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11044 return Gpm_Open ();
11049 if ac_fn_c_try_link
"$LINENO"; then :
11050 ac_cv_lib_gpm_Gpm_Open
=yes
11052 ac_cv_lib_gpm_Gpm_Open
=no
11054 rm -f core conftest.err conftest.
$ac_objext \
11055 conftest
$ac_exeext conftest.
$ac_ext
11056 LIBS
=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11059 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11060 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
11068 if test "${HAVE_GPM}" = "yes"; then
11070 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11073 ## May be reset below.
11074 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11079 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11080 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
11082 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11089 ### Use NeXTstep API to implement GUI.
11090 if test "${HAVE_NS}" = "yes"; then
11092 $as_echo "#define HAVE_NS 1" >>confdefs.h
11094 if test "${NS_IMPL_COCOA}" = "yes"; then
11096 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11100 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11102 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11104 # See also .m.o rule in Makefile.in */
11105 # FIXME: are all these flags really needed? Document here why. */
11106 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11107 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11109 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11111 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11114 # We also have mouse menus.
11120 ### Use session management (-lSM -lICE) if available
11123 if test "${HAVE_X11}" = "yes"; then
11124 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11127 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11128 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11131 ac_check_lib_save_LIBS
=$LIBS
11132 LIBS
="-lSM -lICE $LIBS"
11133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11142 char SmcOpenConnection ();
11146 return SmcOpenConnection ();
11151 if ac_fn_c_try_link
"$LINENO"; then :
11152 ac_cv_lib_SM_SmcOpenConnection
=yes
11154 ac_cv_lib_SM_SmcOpenConnection
=no
11156 rm -f core conftest.err conftest.
$ac_objext \
11157 conftest
$ac_exeext conftest.
$ac_ext
11158 LIBS
=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11161 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11162 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11170 if test "${HAVE_X_SM}" = "yes"; then
11172 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11174 LIBXSM
="-lSM -lICE"
11177 *) LIBS
="$LIBXSM $LIBS" ;;
11183 ### Use libxml (-lxml2) if available
11184 if test "${with_xml2}" != "no"; then
11185 ### I'm not sure what the version number should be, so I just guessed.
11189 # Extract the first word of "pkg-config", so it can be a program name with args.
11190 set dummy pkg-config
; ac_word
=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11196 case $PKG_CONFIG in
11198 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11202 for as_dir
in $PATH
11205 test -z "$as_dir" && as_dir
=.
11206 for ac_exec_ext
in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11220 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11221 if test -n "$PKG_CONFIG"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11223 $as_echo "$PKG_CONFIG" >&6; }
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11231 if test "$PKG_CONFIG" = "no" ; then
11234 PKG_CONFIG_MIN_VERSION
=0.9.0
11235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11237 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11239 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11245 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11246 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11248 $as_echo "$LIBXML2_CFLAGS" >&6; }
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11251 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11252 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11254 $as_echo "$LIBXML2_LIBS" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so.
11262 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11274 if test $succeeded = yes; then
11280 if test "${HAVE_LIBXML2}" = "yes"; then
11281 LIBS
="$LIBXML2_LIBS $LIBS"
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11283 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11284 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11287 ac_check_lib_save_LIBS
=$LIBS
11288 LIBS
="-lxml2 $LIBS"
11289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11298 char htmlReadMemory ();
11302 return htmlReadMemory ();
11307 if ac_fn_c_try_link
"$LINENO"; then :
11308 ac_cv_lib_xml2_htmlReadMemory
=yes
11310 ac_cv_lib_xml2_htmlReadMemory
=no
11312 rm -f core conftest.err conftest.
$ac_objext \
11313 conftest
$ac_exeext conftest.
$ac_ext
11314 LIBS
=$ac_check_lib_save_LIBS
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11317 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11318 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
11324 if test "${HAVE_LIBXML2}" = "yes"; then
11326 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11337 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11339 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11340 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11354 if ac_fn_c_try_link
"$LINENO"; then :
11355 emacs_cv_netdb_declares_h_errno
=yes
11357 emacs_cv_netdb_declares_h_errno
=no
11359 rm -f core conftest.err conftest.
$ac_objext \
11360 conftest
$ac_exeext conftest.
$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11363 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11364 if test $emacs_cv_netdb_declares_h_errno = yes; then
11366 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11371 # for constant arguments. Useless!
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11373 $as_echo_n "checking for working alloca.h... " >&6; }
11374 if test "${ac_cv_working_alloca_h+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
11377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 #include <alloca.h>
11383 char *p = (char *) alloca (2 * sizeof (int));
11389 if ac_fn_c_try_link
"$LINENO"; then :
11390 ac_cv_working_alloca_h
=yes
11392 ac_cv_working_alloca_h
=no
11394 rm -f core conftest.err conftest.
$ac_objext \
11395 conftest
$ac_exeext conftest.
$ac_ext
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11398 $as_echo "$ac_cv_working_alloca_h" >&6; }
11399 if test $ac_cv_working_alloca_h = yes; then
11401 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11406 $as_echo_n "checking for alloca... " >&6; }
11407 if test "${ac_cv_func_alloca_works+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 # define alloca __builtin_alloca
11416 # include <malloc.h>
11417 # define alloca _alloca
11419 # ifdef HAVE_ALLOCA_H
11420 # include <alloca.h>
11425 # ifndef alloca /* predefined by HP cc +Olibcalls */
11436 char *p = (char *) alloca (1);
11442 if ac_fn_c_try_link
"$LINENO"; then :
11443 ac_cv_func_alloca_works
=yes
11445 ac_cv_func_alloca_works
=no
11447 rm -f core conftest.err conftest.
$ac_objext \
11448 conftest
$ac_exeext conftest.
$ac_ext
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11451 $as_echo "$ac_cv_func_alloca_works" >&6; }
11453 if test $ac_cv_func_alloca_works = yes; then
11455 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11458 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11459 # that cause trouble. Some versions do not even contain alloca or
11460 # contain a buggy version. If you still want to use their alloca,
11461 # use ar to extract alloca.o from them instead of compiling alloca.c.
11463 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11465 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11469 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11470 if test "${ac_cv_os_cray+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475 #if defined CRAY && ! defined CRAY2
11482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11483 $EGREP "webecray" >/dev
/null
2>&1; then :
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11492 $as_echo "$ac_cv_os_cray" >&6; }
11493 if test $ac_cv_os_cray = yes; then
11494 for ac_func
in _getb67 GETB67 getb67
; do
11495 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11497 eval as_val
=\$
$as_ac_var
11498 if test "x$as_val" = x
""yes; then :
11500 cat >>confdefs.h
<<_ACEOF
11501 #define CRAY_STACKSEG_END $ac_func
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11511 $as_echo_n "checking stack direction for C alloca... " >&6; }
11512 if test "${ac_cv_c_stack_direction+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11515 if test "$cross_compiling" = yes; then :
11516 ac_cv_c_stack_direction
=0
11518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 $ac_includes_default
11522 find_stack_direction ()
11524 static char *addr = 0;
11529 return find_stack_direction ();
11532 return (&dummy > addr) ? 1 : -1;
11538 return find_stack_direction () < 0;
11541 if ac_fn_c_try_run
"$LINENO"; then :
11542 ac_cv_c_stack_direction
=1
11544 ac_cv_c_stack_direction
=-1
11546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11552 $as_echo "$ac_cv_c_stack_direction" >&6; }
11553 cat >>confdefs.h
<<_ACEOF
11554 #define STACK_DIRECTION $ac_cv_c_stack_direction
11561 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11562 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
11565 # fmod, logb, and frexp are found in -lm on most systems.
11566 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11568 $as_echo_n "checking for sqrt in -lm... " >&6; }
11569 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11572 ac_check_lib_save_LIBS
=$LIBS
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11592 if ac_fn_c_try_link
"$LINENO"; then :
11593 ac_cv_lib_m_sqrt
=yes
11595 ac_cv_lib_m_sqrt
=no
11597 rm -f core conftest.err conftest.
$ac_objext \
11598 conftest
$ac_exeext conftest.
$ac_ext
11599 LIBS
=$ac_check_lib_save_LIBS
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11602 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11603 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11604 cat >>confdefs.h
<<_ACEOF
11605 #define HAVE_LIBM 1
11613 # Check for mail-locking functions in a "mail" library. Probably this should
11614 # have the same check as for liblockfile below.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11616 $as_echo_n "checking for maillock in -lmail... " >&6; }
11617 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11620 ac_check_lib_save_LIBS
=$LIBS
11621 LIBS
="-lmail $LIBS"
11622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11635 return maillock ();
11640 if ac_fn_c_try_link
"$LINENO"; then :
11641 ac_cv_lib_mail_maillock
=yes
11643 ac_cv_lib_mail_maillock
=no
11645 rm -f core conftest.err conftest.
$ac_objext \
11646 conftest
$ac_exeext conftest.
$ac_ext
11647 LIBS
=$ac_check_lib_save_LIBS
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11650 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11651 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11657 if test $have_mail = yes; then
11659 LIBS
="$LIBS_MAIL $LIBS"
11661 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11667 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11668 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11671 ac_check_lib_save_LIBS
=$LIBS
11672 LIBS
="-llockfile $LIBS"
11673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11686 return maillock ();
11691 if ac_fn_c_try_link
"$LINENO"; then :
11692 ac_cv_lib_lockfile_maillock
=yes
11694 ac_cv_lib_lockfile_maillock
=no
11696 rm -f core conftest.err conftest.
$ac_objext \
11697 conftest
$ac_exeext conftest.
$ac_ext
11698 LIBS
=$ac_check_lib_save_LIBS
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11701 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11702 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11708 if test $have_lockfile = yes; then
11709 LIBS_MAIL
=-llockfile
11710 LIBS
="$LIBS_MAIL $LIBS"
11712 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11715 # If we have the shared liblockfile, assume we must use it for mail
11716 # locking (e.g. Debian). If we couldn't link against liblockfile
11717 # (no liblockfile.a installed), ensure that we don't need to.
11718 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11719 set dummy liblockfile.so
; ac_word
=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11725 if test -n "$liblockfile"; then
11726 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11729 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11730 for as_dir
in $as_dummy
11733 test -z "$as_dir" && as_dir
=.
11734 for ac_exec_ext
in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_prog_liblockfile
="yes"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11747 liblockfile
=$ac_cv_prog_liblockfile
11748 if test -n "$liblockfile"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11750 $as_echo "$liblockfile" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 if test $ac_cv_prog_liblockfile = yes; then
11758 as_fn_error
"Shared liblockfile found but can't link against it.
11759 This probably means that movemail could lose mail.
11760 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11763 for ac_func
in touchlock
11765 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11766 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11767 cat >>confdefs.h
<<_ACEOF
11768 #define HAVE_TOUCHLOCK 1
11774 for ac_header
in maillock.h
11776 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11777 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11778 cat >>confdefs.h
<<_ACEOF
11779 #define HAVE_MAILLOCK_H 1
11788 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11789 ## interlock access to the mail spool. The alternative is a lock file named
11790 ## /usr/spool/mail/$USER.lock.
11793 aix4-2
) mail_lock
="lockf" ;;
11795 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11797 ## On GNU/Linux systems, both methods are used by various mail programs.
11798 ## I assume most people are using newer mailers that have heard of flock.
11799 ## Change this if you need to.
11800 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11801 ## configure gets the right answers, and that means *NOT* using flock.
11802 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11803 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11804 ## Debian maintainer hasn't provided a clean fix for Emacs.
11805 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11806 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11807 ## correct logic. -- fx
11808 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11809 ## liblockfile is a Free Software replacement for libmail, used on
11810 ## Debian systems and elsewhere. -rfr.
11813 if test $have_mail = yes ||
test $have_lockfile = yes; then
11814 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11820 case "$mail_lock" in
11822 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11826 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11829 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11834 for ac_func
in gethostname getdomainname dup2 \
11835 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11836 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11837 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11838 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11839 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11840 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11841 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11842 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11843 cfmakeraw cfsetspeed isnan copysign __executable_start
11845 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11847 eval as_val
=\$
$as_ac_var
11848 if test "x$as_val" = x
""yes; then :
11849 cat >>confdefs.h
<<_ACEOF
11850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 for ac_header
in sys
/un.h
11859 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11860 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11861 cat >>confdefs.h
<<_ACEOF
11862 #define HAVE_SYS_UN_H 1
11875 for ac_func
in $ac_func_list
11877 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11878 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11879 eval as_val
=\$
$as_ac_var
11880 if test "x$as_val" = x
""yes; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11893 $as_echo_n "checking for working mktime... " >&6; }
11894 if test "${ac_cv_func_working_mktime+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11897 if test "$cross_compiling" = yes; then :
11898 ac_cv_func_working_mktime
=no
11900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 /* Test program from Paul Eggert and Tony Leneis. */
11903 #ifdef TIME_WITH_SYS_TIME
11904 # include <sys/time.h>
11907 # ifdef HAVE_SYS_TIME_H
11908 # include <sys/time.h>
11914 #include <limits.h>
11915 #include <stdlib.h>
11917 #ifdef HAVE_UNISTD_H
11918 # include <unistd.h>
11922 # define alarm(X) /* empty */
11925 /* Work around redefinition to rpl_putenv by other config tests. */
11928 static time_t time_t_max;
11929 static time_t time_t_min;
11931 /* Values we'll use to set the TZ environment variable. */
11932 static char *tz_strings[] = {
11933 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11934 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11936 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11938 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11939 Based on a problem report from Andreas Jaeger. */
11941 spring_forward_gap ()
11943 /* glibc (up to about 1998-10-07) failed this test. */
11946 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11947 instead of "TZ=America/Vancouver" in order to detect the bug even
11948 on systems that don't support the Olson extension, or don't have the
11949 full zoneinfo tables installed. */
11950 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11959 return mktime (&tm) != (time_t) -1;
11967 return ! (lt = localtime (&now)) || mktime (lt) == now;
11974 return (mktime_test1 (now)
11975 && mktime_test1 ((time_t) (time_t_max - now))
11976 && mktime_test1 ((time_t) (time_t_min + now)));
11982 /* Based on code from Ariel Faigon. */
11992 return tm.tm_mon == 2 && tm.tm_mday == 31;
12001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12002 now = mktime (&tm);
12003 if (now != (time_t) -1)
12005 struct tm *lt = localtime (&now);
12007 && lt->tm_year == tm.tm_year
12008 && lt->tm_mon == tm.tm_mon
12009 && lt->tm_mday == tm.tm_mday
12010 && lt->tm_hour == tm.tm_hour
12011 && lt->tm_min == tm.tm_min
12012 && lt->tm_sec == tm.tm_sec
12013 && lt->tm_yday == tm.tm_yday
12014 && lt->tm_wday == tm.tm_wday
12015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12025 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12026 ignoring leap seconds. */
12027 unsigned long int answer = 2527315200UL;
12031 tm.tm_year = 2050 - 1900;
12034 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12037 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12038 instead of "TZ=America/Vancouver" in order to detect the bug even
12039 on systems that don't support the Olson extension, or don't have the
12040 full zoneinfo tables installed. */
12041 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12045 /* Check that the result is either a failure, or close enough
12046 to the correct answer that we can assume the discrepancy is
12047 due to leap seconds. */
12048 return (t == (time_t) -1
12049 || (0 < t && answer - 120 <= t && t <= answer + 120));
12058 /* This test makes some buggy mktime implementations loop.
12059 Give up after 60 seconds; a mktime slower than that
12060 isn't worth using anyway. */
12065 t = (time_t_max << 1) + 1;
12066 if (t <= time_t_max)
12070 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12072 delta = time_t_max / 997; /* a suitable prime number */
12073 for (i = 0; i < N_STRINGS; i++)
12076 putenv (tz_strings[i]);
12078 for (t = 0; t <= time_t_max - delta; t += delta)
12079 if (! mktime_test (t))
12081 if (! (mktime_test ((time_t) 1)
12082 && mktime_test ((time_t) (60 * 60))
12083 && mktime_test ((time_t) (60 * 60 * 24))))
12086 for (j = 1; ; j <<= 1)
12087 if (! bigtime_test (j))
12089 else if (INT_MAX / 2 < j)
12091 if (! bigtime_test (INT_MAX))
12094 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12097 if ac_fn_c_try_run
"$LINENO"; then :
12098 ac_cv_func_working_mktime
=yes
12100 ac_cv_func_working_mktime
=no
12102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12108 $as_echo "$ac_cv_func_working_mktime" >&6; }
12109 if test $ac_cv_func_working_mktime = no
; then
12110 case " $LIBOBJS " in
12111 *" mktime.$ac_objext "* ) ;;
12112 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12118 if test "$ac_cv_func_working_mktime" = no
; then
12120 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12124 ac_have_func
=no
# yes means we've found a way to get the load average.
12126 # Make sure getloadavg.c is where it belongs, at configure-time.
12127 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12128 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12132 # Check for getloadavg, but be sure not to touch the cache variable.
12133 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12134 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12139 ) && ac_have_func
=yes
12141 # On HPUX9, an unprivileged user can get load averages through this function.
12142 for ac_func
in pstat_getdynamic
12144 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12145 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12146 cat >>confdefs.h
<<_ACEOF
12147 #define HAVE_PSTAT_GETDYNAMIC 1
12154 # Solaris has libkstat which does not require root.
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12156 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12157 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12160 ac_check_lib_save_LIBS
=$LIBS
12161 LIBS
="-lkstat $LIBS"
12162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12171 char kstat_open ();
12175 return kstat_open ();
12180 if ac_fn_c_try_link
"$LINENO"; then :
12181 ac_cv_lib_kstat_kstat_open
=yes
12183 ac_cv_lib_kstat_kstat_open
=no
12185 rm -f core conftest.err conftest.
$ac_objext \
12186 conftest
$ac_exeext conftest.
$ac_ext
12187 LIBS
=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12190 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12191 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12192 cat >>confdefs.h
<<_ACEOF
12193 #define HAVE_LIBKSTAT 1
12196 LIBS
="-lkstat $LIBS"
12200 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12202 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12203 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12204 # to get the right answer into the cache.
12205 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12206 if test $ac_have_func = no
; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12208 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12209 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 ac_check_lib_save_LIBS
=$LIBS
12214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12227 return elf_begin ();
12232 if ac_fn_c_try_link
"$LINENO"; then :
12233 ac_cv_lib_elf_elf_begin
=yes
12235 ac_cv_lib_elf_elf_begin
=no
12237 rm -f core conftest.err conftest.
$ac_objext \
12238 conftest
$ac_exeext conftest.
$ac_ext
12239 LIBS
=$ac_check_lib_save_LIBS
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12242 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12243 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12248 if test $ac_have_func = no
; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12250 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12251 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 ac_check_lib_save_LIBS
=$LIBS
12256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12269 return kvm_open ();
12274 if ac_fn_c_try_link
"$LINENO"; then :
12275 ac_cv_lib_kvm_kvm_open
=yes
12277 ac_cv_lib_kvm_kvm_open
=no
12279 rm -f core conftest.err conftest.
$ac_objext \
12280 conftest
$ac_exeext conftest.
$ac_ext
12281 LIBS
=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12284 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12285 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12289 # Check for the 4.4BSD definition of getloadavg.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12291 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12292 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12295 ac_check_lib_save_LIBS
=$LIBS
12296 LIBS
="-lutil $LIBS"
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char getloadavg ();
12310 return getloadavg ();
12315 if ac_fn_c_try_link
"$LINENO"; then :
12316 ac_cv_lib_util_getloadavg
=yes
12318 ac_cv_lib_util_getloadavg
=no
12320 rm -f core conftest.err conftest.
$ac_objext \
12321 conftest
$ac_exeext conftest.
$ac_ext
12322 LIBS
=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12325 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12326 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12327 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12332 if test $ac_have_func = no
; then
12333 # There is a commonly available library for RS/6000 AIX.
12334 # Since it is not a standard part of AIX, it might be installed locally.
12335 ac_getloadavg_LIBS
=$LIBS
12336 LIBS
="-L/usr/local/lib $LIBS"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12338 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12339 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 ac_check_lib_save_LIBS
=$LIBS
12343 LIBS
="-lgetloadavg $LIBS"
12344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12353 char getloadavg ();
12357 return getloadavg ();
12362 if ac_fn_c_try_link
"$LINENO"; then :
12363 ac_cv_lib_getloadavg_getloadavg
=yes
12365 ac_cv_lib_getloadavg_getloadavg
=no
12367 rm -f core conftest.err conftest.
$ac_objext \
12368 conftest
$ac_exeext conftest.
$ac_ext
12369 LIBS
=$ac_check_lib_save_LIBS
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12372 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12373 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12374 LIBS
="-lgetloadavg $LIBS"
12376 LIBS
=$ac_getloadavg_LIBS
12381 # Make sure it is really in the library, if we think we found it,
12382 # otherwise set up the replacement function.
12383 for ac_func
in getloadavg
12385 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12386 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12387 cat >>confdefs.h
<<_ACEOF
12388 #define HAVE_GETLOADAVG 1
12392 case " $LIBOBJS " in
12393 *" getloadavg.$ac_objext "* ) ;;
12394 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12399 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12401 # Figure out what our getloadavg.c needs.
12403 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12404 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12407 $as_echo "#define DGUX 1" >>confdefs.h
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12410 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12411 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_check_lib_save_LIBS
=$LIBS
12416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12425 char dg_sys_info ();
12429 return dg_sys_info ();
12434 if ac_fn_c_try_link
"$LINENO"; then :
12435 ac_cv_lib_dgc_dg_sys_info
=yes
12437 ac_cv_lib_dgc_dg_sys_info
=no
12439 rm -f core conftest.err conftest.
$ac_objext \
12440 conftest
$ac_exeext conftest.
$ac_ext
12441 LIBS
=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12444 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12445 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12446 cat >>confdefs.h
<<_ACEOF
12447 #define HAVE_LIBDGC 1
12458 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12464 for ac_func
in setlocale
12466 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12467 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_SETLOCALE 1
12476 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12477 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12478 # Irix 4.0.5F has the header but not the library.
12479 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12482 $as_echo "#define SVR4 1" >>confdefs.h
12486 if test $ac_have_func = no
; then
12487 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12488 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12491 $as_echo "#define UMAX 1" >>confdefs.h
12494 $as_echo "#define UMAX4_3 1" >>confdefs.h
12501 if test $ac_have_func = no
; then
12502 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12503 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12504 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12511 if test $ac_have_func = no
; then
12512 for ac_header
in mach
/mach.h
12514 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12515 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define HAVE_MACH_MACH_H 1
12526 for ac_header
in nlist.h
12528 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12529 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12530 cat >>confdefs.h
<<_ACEOF
12531 #define HAVE_NLIST_H 1
12533 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12535 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12537 cat >>confdefs.h
<<_ACEOF
12538 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12542 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12555 # Some definitions of getloadavg require that the program be installed setgid.
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12557 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12564 #ifdef LDAV_PRIVILEGED
12565 Yowza Am I SETGID yet
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12570 ac_cv_func_getloadavg_setgid
=yes
12572 ac_cv_func_getloadavg_setgid
=no
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12578 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12579 if test $ac_cv_func_getloadavg_setgid = yes; then
12582 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12588 if test $ac_cv_func_getloadavg_setgid = yes; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12590 $as_echo_n "checking group of /dev/kmem... " >&6; }
12591 if test "${ac_cv_group_kmem+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12594 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12595 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12596 # If we got an error (system does not support symlinks), try without -L.
12597 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12598 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12599 | sed -ne 's/[ ][ ]*/ /g;
12600 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12605 $as_echo "$ac_cv_group_kmem" >&6; }
12606 KMEM_GROUP
=$ac_cv_group_kmem
12608 if test "x$ac_save_LIBS" = x
; then
12609 GETLOADAVG_LIBS
=$LIBS
12611 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12618 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12619 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #include <sys/types.h> /* for off_t */
12630 int (*fp) (FILE *, off_t, int) = fseeko;
12631 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12636 if ac_fn_c_try_link
"$LINENO"; then :
12637 ac_cv_sys_largefile_source
=no
; break
12639 rm -f core conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #define _LARGEFILE_SOURCE 1
12644 #include <sys/types.h> /* for off_t */
12649 int (*fp) (FILE *, off_t, int) = fseeko;
12650 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12655 if ac_fn_c_try_link
"$LINENO"; then :
12656 ac_cv_sys_largefile_source
=1; break
12658 rm -f core conftest.err conftest.
$ac_objext \
12659 conftest
$ac_exeext conftest.
$ac_ext
12660 ac_cv_sys_largefile_source
=unknown
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12665 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12666 case $ac_cv_sys_largefile_source in #(
12669 cat >>confdefs.h
<<_ACEOF
12670 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12676 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12677 # in glibc 2.1.3, but that breaks too many other things.
12678 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12679 if test $ac_cv_sys_largefile_source != unknown
; then
12681 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12686 # Configure getopt.
12687 # getopt.m4 serial 10
12689 # The getopt module assume you want GNU getopt, with getopt_long etc,
12690 # rather than vanilla POSIX getopt. This means your your code should
12691 # always include <getopt.h> for the getopt prototypes.
12703 # Prerequisites of lib/getopt*.
12709 for ac_header
in getopt.h
12711 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12712 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12713 cat >>confdefs.h
<<_ACEOF
12714 #define HAVE_GETOPT_H 1
12723 if test -z "$GETOPT_H"; then
12724 for ac_func
in getopt_long_only
12726 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12727 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12728 cat >>confdefs.h
<<_ACEOF
12729 #define HAVE_GETOPT_LONG_ONLY 1
12739 if test -z "$GETOPT_H"; then
12740 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12742 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12748 if test -z "$GETOPT_H"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12750 $as_echo_n "checking for working GNU getopt function... " >&6; }
12751 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12754 if test "$cross_compiling" = yes; then :
12755 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12757 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12758 gl_cv_func_gnu_getopt
=no
12760 gl_cv_func_gnu_getopt
=yes
12764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <getopt.h>
12772 myargv[0] = "conftest";
12775 return getopt (2, myargv, "+a") != '?';
12781 if ac_fn_c_try_run
"$LINENO"; then :
12782 gl_cv_func_gnu_getopt
=yes
12784 gl_cv_func_gnu_getopt
=no
12786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12792 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12793 if test "$gl_cv_func_gnu_getopt" = "no"; then
12800 if test -n "$GETOPT_H"; then :
12805 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12810 GETOPTOBJS
='getopt.o getopt1.o'
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12817 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12818 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12821 # Use it with a single arg.
12822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 $ac_includes_default
12833 if ac_fn_c_try_compile
"$LINENO"; then :
12834 ac_cv_func_getpgrp_void
=no
12836 ac_cv_func_getpgrp_void
=yes
12838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12842 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12843 if test $ac_cv_func_getpgrp_void = yes; then
12845 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12850 for ac_func
in strftime
12852 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12853 if test "x$ac_cv_func_strftime" = x
""yes; then :
12854 cat >>confdefs.h
<<_ACEOF
12855 #define HAVE_STRFTIME 1
12859 # strftime is in -lintl on SCO UNIX.
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12861 $as_echo_n "checking for strftime in -lintl... " >&6; }
12862 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12865 ac_check_lib_save_LIBS
=$LIBS
12866 LIBS
="-lintl $LIBS"
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12880 return strftime ();
12885 if ac_fn_c_try_link
"$LINENO"; then :
12886 ac_cv_lib_intl_strftime
=yes
12888 ac_cv_lib_intl_strftime
=no
12890 rm -f core conftest.err conftest.
$ac_objext \
12891 conftest
$ac_exeext conftest.
$ac_ext
12892 LIBS
=$ac_check_lib_save_LIBS
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12895 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12896 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12897 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12899 LIBS
="-lintl $LIBS"
12907 for ac_func
in grantpt
12909 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12910 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12911 cat >>confdefs.h
<<_ACEOF
12912 #define HAVE_GRANTPT 1
12919 # PTY-related GNU extensions.
12920 for ac_func
in getpt
12922 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12923 if test "x$ac_cv_func_getpt" = x
""yes; then :
12924 cat >>confdefs.h
<<_ACEOF
12925 #define HAVE_GETPT 1
12932 # Check this now, so that we will NOT find the above functions in ncurses.
12933 # That is because we have not set up to link ncurses in lib-src.
12934 # It's better to believe a function is not available
12935 # than to expect to find it in ncurses.
12936 # Also we need tputs and friends to be able to build at all.
12937 have_tputs_et_al
=true
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12939 $as_echo_n "checking for library containing tputs... " >&6; }
12940 if test "${ac_cv_search_tputs+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12943 ac_func_search_save_LIBS
=$LIBS
12944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12962 for ac_lib
in '' ncurses terminfo termcap
; do
12963 if test -z "$ac_lib"; then
12964 ac_res
="none required"
12967 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12969 if ac_fn_c_try_link
"$LINENO"; then :
12970 ac_cv_search_tputs
=$ac_res
12972 rm -f core conftest.err conftest.
$ac_objext \
12974 if test "${ac_cv_search_tputs+set}" = set; then :
12978 if test "${ac_cv_search_tputs+set}" = set; then :
12981 ac_cv_search_tputs
=no
12983 rm conftest.
$ac_ext
12984 LIBS
=$ac_func_search_save_LIBS
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12987 $as_echo "$ac_cv_search_tputs" >&6; }
12988 ac_res
=$ac_cv_search_tputs
12989 if test "$ac_res" != no
; then :
12990 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12993 have_tputs_et_al
=false
12996 if test "$have_tputs_et_al" != true
; then
12997 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12998 Maybe some development libraries/packages are missing? Try installing
12999 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13001 # Must define this when any termcap library is found.
13003 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13005 ## FIXME This was the cpp logic, but I am not sure it is right.
13006 ## The above test has not necessarily found libncurses.
13007 HAVE_LIBNCURSES
=yes
13009 ## Use terminfo instead of termcap?
13010 ## Note only system files NOT using terminfo are:
13011 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13012 ## darwin|gnu without ncurses.
13016 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13017 ## hpux10-20: Use the system provided termcap(3) library.
13018 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13019 ## is necessary. Otherwise Emacs dumps core when run -nw.
13020 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13022 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13023 ## The ncurses library has been moved out of the System framework in
13024 ## Mac OS X 10.2. So if configure detects it, set the command-line
13025 ## option to use it.
13027 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13028 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13030 LIBS_TERMCAP
="-lncurses"
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13036 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13037 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #include <osreldate.h>
13046 #if __FreeBSD_version < 400000
13054 if ac_fn_c_try_link
"$LINENO"; then :
13055 emacs_cv_freebsd_terminfo
=yes
13057 emacs_cv_freebsd_terminfo
=no
13059 rm -f core conftest.err conftest.
$ac_objext \
13060 conftest
$ac_exeext conftest.
$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13065 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13067 if test $emacs_cv_freebsd_terminfo = yes; then
13069 LIBS_TERMCAP
="-lncurses"
13071 LIBS_TERMCAP
="-ltermcap"
13076 if test $ac_cv_search_tputs = -lterminfo; then
13078 LIBS_TERMCAP
="-lterminfo"
13080 LIBS_TERMCAP
="-ltermcap"
13087 ## hpux: Make sure we get select from libc rather than from libcurses
13088 ## because libcurses on HPUX 10.10 has a broken version of select.
13089 ## We used to use -lc -lcurses, but this may be cleaner.
13090 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13092 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13094 ## Must use system termcap, if we use any termcap. It does special things.
13095 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13098 TERMCAP_OBJ
=tparam.o
13099 if test $TERMINFO = yes; then
13101 $as_echo "#define TERMINFO 1" >>confdefs.h
13104 ## Default used to be -ltermcap. Add a case above if need something else.
13105 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13107 TERMCAP_OBJ
=terminfo.o
13113 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 #include <netinet/in.h>
13118 #include <arpa/nameser.h>
13119 #include <resolv.h>
13128 if ac_fn_c_try_link
"$LINENO"; then :
13133 rm -f core conftest.err conftest.
$ac_objext \
13134 conftest
$ac_exeext conftest.
$ac_ext
13135 if test "$have_res_init" = no
; then
13137 LIBS
="$LIBS -lresolv"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13139 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142 #include <netinet/in.h>
13143 #include <arpa/nameser.h>
13144 #include <resolv.h>
13153 if ac_fn_c_try_link
"$LINENO"; then :
13158 rm -f core conftest.err conftest.
$ac_objext \
13159 conftest
$ac_exeext conftest.
$ac_ext
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13161 $as_echo "$have_res_init" >&6; }
13162 if test "$have_res_init" = yes ; then
13168 if test "$have_res_init" = yes; then
13170 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13174 # Do we need the Hesiod library to provide the support routines?
13176 if test "$with_hesiod" != no
; then
13177 # Don't set $LIBS here -- see comments above. FIXME which comments?
13178 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13179 if test "x$ac_cv_func_res_send" = x
""yes; then :
13182 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13183 if test "x$ac_cv_func___res_send" = x
""yes; then :
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13187 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13188 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13191 ac_check_lib_save_LIBS
=$LIBS
13192 LIBS
="-lresolv $LIBS"
13193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13206 return res_send ();
13211 if ac_fn_c_try_link
"$LINENO"; then :
13212 ac_cv_lib_resolv_res_send
=yes
13214 ac_cv_lib_resolv_res_send
=no
13216 rm -f core conftest.err conftest.
$ac_objext \
13217 conftest
$ac_exeext conftest.
$ac_ext
13218 LIBS
=$ac_check_lib_save_LIBS
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13221 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13222 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13226 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13227 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13230 ac_check_lib_save_LIBS
=$LIBS
13231 LIBS
="-lresolv $LIBS"
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13241 char __res_send ();
13245 return __res_send ();
13250 if ac_fn_c_try_link
"$LINENO"; then :
13251 ac_cv_lib_resolv___res_send
=yes
13253 ac_cv_lib_resolv___res_send
=no
13255 rm -f core conftest.err conftest.
$ac_objext \
13256 conftest
$ac_exeext conftest.
$ac_ext
13257 LIBS
=$ac_check_lib_save_LIBS
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13260 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13261 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13271 if test "$resolv" = yes ; then
13276 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13277 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13281 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13282 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13285 ac_check_lib_save_LIBS
=$LIBS
13286 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13296 char hes_getmailhost ();
13300 return hes_getmailhost ();
13305 if ac_fn_c_try_link
"$LINENO"; then :
13306 ac_cv_lib_hesiod_hes_getmailhost
=yes
13308 ac_cv_lib_hesiod_hes_getmailhost
=no
13310 rm -f core conftest.err conftest.
$ac_objext \
13311 conftest
$ac_exeext conftest.
$ac_ext
13312 LIBS
=$ac_check_lib_save_LIBS
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13315 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13316 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13325 if test x
"$hesiod" = xyes
; then
13327 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13334 # Do we need libresolv (due to res_init or Hesiod)?
13335 if test "$resolv" = yes ; then
13337 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13345 # These tell us which Kerberos-related libraries to use.
13352 if test "${with_kerberos}" != no
; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13354 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13355 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13358 ac_check_lib_save_LIBS
=$LIBS
13359 LIBS
="-lcom_err $LIBS"
13360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13378 if ac_fn_c_try_link
"$LINENO"; then :
13379 ac_cv_lib_com_err_com_err
=yes
13381 ac_cv_lib_com_err_com_err
=no
13383 rm -f core conftest.err conftest.
$ac_objext \
13384 conftest
$ac_exeext conftest.
$ac_ext
13385 LIBS
=$ac_check_lib_save_LIBS
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13388 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13389 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13395 if test $have_com_err = yes; then
13396 COM_ERRLIB
=-lcom_err
13397 LIBS
="$COM_ERRLIB $LIBS"
13399 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13403 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13404 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13407 ac_check_lib_save_LIBS
=$LIBS
13408 LIBS
="-lcrypto $LIBS"
13409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13412 /* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13418 char mit_des_cbc_encrypt ();
13422 return mit_des_cbc_encrypt ();
13427 if ac_fn_c_try_link
"$LINENO"; then :
13428 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13430 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13432 rm -f core conftest.err conftest.
$ac_objext \
13433 conftest
$ac_exeext conftest.
$ac_ext
13434 LIBS
=$ac_check_lib_save_LIBS
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13437 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13438 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13444 if test $have_crypto = yes; then
13446 LIBS
="$CRYPTOLIB $LIBS"
13448 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13452 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13453 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13456 ac_check_lib_save_LIBS
=$LIBS
13457 LIBS
="-lk5crypto $LIBS"
13458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13467 char mit_des_cbc_encrypt ();
13471 return mit_des_cbc_encrypt ();
13476 if ac_fn_c_try_link
"$LINENO"; then :
13477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13479 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13481 rm -f core conftest.err conftest.
$ac_objext \
13482 conftest
$ac_exeext conftest.
$ac_ext
13483 LIBS
=$ac_check_lib_save_LIBS
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13486 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13487 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13493 if test $have_k5crypto = yes; then
13494 CRYPTOLIB
=-lk5crypto
13495 LIBS
="$CRYPTOLIB $LIBS"
13497 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13501 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13502 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13505 ac_check_lib_save_LIBS
=$LIBS
13506 LIBS
="-lkrb5 $LIBS"
13507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13516 char krb5_init_context ();
13520 return krb5_init_context ();
13525 if ac_fn_c_try_link
"$LINENO"; then :
13526 ac_cv_lib_krb5_krb5_init_context
=yes
13528 ac_cv_lib_krb5_krb5_init_context
=no
13530 rm -f core conftest.err conftest.
$ac_objext \
13531 conftest
$ac_exeext conftest.
$ac_ext
13532 LIBS
=$ac_check_lib_save_LIBS
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13535 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13536 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13542 if test $have_krb5=yes; then
13544 LIBS
="$KRB5LIB $LIBS"
13546 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13549 if test "${with_kerberos5}" = no
; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13551 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13552 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13555 ac_check_lib_save_LIBS
=$LIBS
13556 LIBS
="-ldes425 $LIBS"
13557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13566 char des_cbc_encrypt ();
13570 return des_cbc_encrypt ();
13575 if ac_fn_c_try_link
"$LINENO"; then :
13576 ac_cv_lib_des425_des_cbc_encrypt
=yes
13578 ac_cv_lib_des425_des_cbc_encrypt
=no
13580 rm -f core conftest.err conftest.
$ac_objext \
13581 conftest
$ac_exeext conftest.
$ac_ext
13582 LIBS
=$ac_check_lib_save_LIBS
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13585 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13586 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13592 if test $have_des425 = yes; then
13594 LIBS
="$DESLIB $LIBS"
13596 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13600 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13601 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13604 ac_check_lib_save_LIBS
=$LIBS
13606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13609 /* Override any GCC internal prototype to avoid an error.
13610 Use char because int might match the return type of a GCC
13611 builtin and then its argument prototype would still apply. */
13615 char des_cbc_encrypt ();
13619 return des_cbc_encrypt ();
13624 if ac_fn_c_try_link
"$LINENO"; then :
13625 ac_cv_lib_des_des_cbc_encrypt
=yes
13627 ac_cv_lib_des_des_cbc_encrypt
=no
13629 rm -f core conftest.err conftest.
$ac_objext \
13630 conftest
$ac_exeext conftest.
$ac_ext
13631 LIBS
=$ac_check_lib_save_LIBS
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13634 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13635 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13641 if test $have_des = yes; then
13643 LIBS
="$DESLIB $LIBS"
13645 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13650 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13651 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13654 ac_check_lib_save_LIBS
=$LIBS
13655 LIBS
="-lkrb4 $LIBS"
13656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13665 char krb_get_cred ();
13669 return krb_get_cred ();
13674 if ac_fn_c_try_link
"$LINENO"; then :
13675 ac_cv_lib_krb4_krb_get_cred
=yes
13677 ac_cv_lib_krb4_krb_get_cred
=no
13679 rm -f core conftest.err conftest.
$ac_objext \
13680 conftest
$ac_exeext conftest.
$ac_ext
13681 LIBS
=$ac_check_lib_save_LIBS
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13684 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13685 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13691 if test $have_krb4 = yes; then
13693 LIBS
="$KRB4LIB $LIBS"
13695 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13699 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13700 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13703 ac_check_lib_save_LIBS
=$LIBS
13705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13714 char krb_get_cred ();
13718 return krb_get_cred ();
13723 if ac_fn_c_try_link
"$LINENO"; then :
13724 ac_cv_lib_krb_krb_get_cred
=yes
13726 ac_cv_lib_krb_krb_get_cred
=no
13728 rm -f core conftest.err conftest.
$ac_objext \
13729 conftest
$ac_exeext conftest.
$ac_ext
13730 LIBS
=$ac_check_lib_save_LIBS
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13733 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13734 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13740 if test $have_krb = yes; then
13742 LIBS
="$KRB4LIB $LIBS"
13744 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13750 if test "${with_kerberos5}" != no
; then
13751 for ac_header
in krb5.h
13753 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13754 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13755 cat >>confdefs.h
<<_ACEOF
13756 #define HAVE_KRB5_H 1
13758 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13760 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13762 cat >>confdefs.h
<<_ACEOF
13763 #define HAVE_KRB5_ERROR_TEXT 1
13768 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13770 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13772 cat >>confdefs.h
<<_ACEOF
13773 #define HAVE_KRB5_ERROR_E_TEXT 1
13784 for ac_header
in des.h
13786 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13787 if test "x$ac_cv_header_des_h" = x
""yes; then :
13788 cat >>confdefs.h
<<_ACEOF
13789 #define HAVE_DES_H 1
13793 for ac_header
in kerberosIV
/des.h
13795 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13796 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13797 cat >>confdefs.h
<<_ACEOF
13798 #define HAVE_KERBEROSIV_DES_H 1
13802 for ac_header
in kerberos
/des.h
13804 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13806 cat >>confdefs.h
<<_ACEOF
13807 #define HAVE_KERBEROS_DES_H 1
13822 for ac_header
in krb.h
13824 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13825 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13826 cat >>confdefs.h
<<_ACEOF
13827 #define HAVE_KRB_H 1
13831 for ac_header
in kerberosIV
/krb.h
13833 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13834 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13835 cat >>confdefs.h
<<_ACEOF
13836 #define HAVE_KERBEROSIV_KRB_H 1
13840 for ac_header
in kerberos
/krb.h
13842 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13844 cat >>confdefs.h
<<_ACEOF
13845 #define HAVE_KERBEROS_KRB_H 1
13861 for ac_header
in com_err.h
13863 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13864 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13865 cat >>confdefs.h
<<_ACEOF
13866 #define HAVE_COM_ERR_H 1
13881 # Solaris requires -lintl if you want strerror (which calls dgettext)
13882 # to return localized messages.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13884 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13885 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13888 ac_check_lib_save_LIBS
=$LIBS
13889 LIBS
="-lintl $LIBS"
13890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13903 return dgettext ();
13908 if ac_fn_c_try_link
"$LINENO"; then :
13909 ac_cv_lib_intl_dgettext
=yes
13911 ac_cv_lib_intl_dgettext
=no
13913 rm -f core conftest.err conftest.
$ac_objext \
13914 conftest
$ac_exeext conftest.
$ac_ext
13915 LIBS
=$ac_check_lib_save_LIBS
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13918 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13919 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13920 cat >>confdefs.h
<<_ACEOF
13921 #define HAVE_LIBINTL 1
13924 LIBS
="-lintl $LIBS"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13930 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13931 if test "${emacs_cv_localtime_cache+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13934 if test x
$ac_cv_func_tzset = xyes
; then
13935 if test "$cross_compiling" = yes; then :
13936 # If we have tzset, assume the worst when cross-compiling.
13937 emacs_cv_localtime_cache
=yes
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13942 char TZ_GMT0[] = "TZ=GMT0";
13943 char TZ_PST8[] = "TZ=PST8";
13946 time_t now = time ((time_t *) 0);
13947 int hour_GMT0, hour_unset;
13948 if (putenv (TZ_GMT0) != 0)
13950 hour_GMT0 = localtime (&now)->tm_hour;
13952 hour_unset = localtime (&now)->tm_hour;
13953 if (putenv (TZ_PST8) != 0)
13955 if (localtime (&now)->tm_hour == hour_GMT0)
13958 if (localtime (&now)->tm_hour != hour_unset)
13963 if ac_fn_c_try_run
"$LINENO"; then :
13964 emacs_cv_localtime_cache
=no
13966 emacs_cv_localtime_cache
=yes
13968 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13969 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13973 # If we lack tzset, report that localtime does not cache TZ,
13974 # since we can't invalidate the cache if we don't have tzset.
13975 emacs_cv_localtime_cache
=no
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13979 $as_echo "$emacs_cv_localtime_cache" >&6; }
13980 if test $emacs_cv_localtime_cache = yes; then
13982 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13986 if test "x$HAVE_TIMEVAL" = xyes
; then
13987 for ac_func
in gettimeofday
13989 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13990 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13991 cat >>confdefs.h
<<_ACEOF
13992 #define HAVE_GETTIMEOFDAY 1
13998 if test $ac_cv_func_gettimeofday = yes; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14000 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14001 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14007 #ifdef TIME_WITH_SYS_TIME
14008 #include <sys/time.h>
14011 #ifdef HAVE_SYS_TIME_H
14012 #include <sys/time.h>
14020 struct timeval time;
14021 gettimeofday (&time, 0);
14026 if ac_fn_c_try_compile
"$LINENO"; then :
14027 emacs_cv_gettimeofday_two_arguments
=yes
14029 emacs_cv_gettimeofday_two_arguments
=no
14031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14034 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14035 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14037 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14044 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14045 if test "x$ac_cv_func_socket" = x
""yes; then :
14051 if test $ok_so_far = yes; then
14052 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14053 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14061 if test $ok_so_far = yes; then
14062 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14063 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14071 if test $ok_so_far = yes; then
14073 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14077 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14079 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14084 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14085 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14087 $as_echo "yes" >&6; }
14089 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14096 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14097 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14101 cat >>confdefs.h
<<_ACEOF
14107 for ac_header
in vfork.h
14109 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14111 cat >>confdefs.h
<<_ACEOF
14112 #define HAVE_VFORK_H 1
14119 for ac_func
in fork vfork
14121 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14122 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14123 eval as_val
=\$
$as_ac_var
14124 if test "x$as_val" = x
""yes; then :
14125 cat >>confdefs.h
<<_ACEOF
14126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14132 if test "x$ac_cv_func_fork" = xyes
; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14134 $as_echo_n "checking for working fork... " >&6; }
14135 if test "${ac_cv_func_fork_works+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14138 if test "$cross_compiling" = yes; then :
14139 ac_cv_func_fork_works
=cross
14141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 $ac_includes_default
14148 /* By Ruediger Kuhlmann. */
14149 return fork () < 0;
14155 if ac_fn_c_try_run
"$LINENO"; then :
14156 ac_cv_func_fork_works
=yes
14158 ac_cv_func_fork_works
=no
14160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14166 $as_echo "$ac_cv_func_fork_works" >&6; }
14169 ac_cv_func_fork_works
=$ac_cv_func_fork
14171 if test "x$ac_cv_func_fork_works" = xcross
; then
14173 *-*-amigaos* |
*-*-msdosdjgpp*)
14174 # Override, as these systems have only a dummy fork() stub
14175 ac_cv_func_fork_works
=no
14178 ac_cv_func_fork_works
=yes
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14182 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14184 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14185 if test "x$ac_cv_func_vfork" = xyes
; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14187 $as_echo_n "checking for working vfork... " >&6; }
14188 if test "${ac_cv_func_vfork_works+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14191 if test "$cross_compiling" = yes; then :
14192 ac_cv_func_vfork_works
=cross
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 /* Thanks to Paul Eggert for this test. */
14197 $ac_includes_default
14198 #include <sys/wait.h>
14199 #ifdef HAVE_VFORK_H
14200 # include <vfork.h>
14202 /* On some sparc systems, changes by the child to local and incoming
14203 argument registers are propagated back to the parent. The compiler
14204 is told about this with #include <vfork.h>, but some compilers
14205 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14206 static variable whose address is put into a register that is
14207 clobbered by the vfork. */
14210 sparc_address_test (int arg)
14212 sparc_address_test (arg) int arg;
14215 static pid_t child;
14233 pid_t parent = getpid ();
14236 sparc_address_test (0);
14241 /* Here is another test for sparc vfork register problems. This
14242 test uses lots of local variables, at least as many local
14243 variables as main has allocated so far including compiler
14244 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14245 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14246 reuse the register of parent for one of the local variables,
14247 since it will think that parent can't possibly be used any more
14248 in this routine. Assigning to the local variable will thus
14249 munge parent in the parent process. */
14251 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14252 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14253 /* Convince the compiler that p..p7 are live; otherwise, it might
14254 use the same hardware register for all 8 local variables. */
14255 if (p != p1 || p != p2 || p != p3 || p != p4
14256 || p != p5 || p != p6 || p != p7)
14259 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14260 from child file descriptors. If the child closes a descriptor
14261 before it execs or exits, this munges the parent's descriptor
14262 as well. Test for this by closing stdout in the child. */
14263 _exit(close(fileno(stdout)) != 0);
14268 while (wait(&status) != child)
14271 /* Was there some problem with vforking? */
14274 /* Did the child fail? (This shouldn't happen.) */
14277 /* Did the vfork/compiler bug occur? */
14278 || parent != getpid()
14280 /* Did the file descriptor bug occur? */
14281 || fstat(fileno(stdout), &st) != 0
14286 if ac_fn_c_try_run
"$LINENO"; then :
14287 ac_cv_func_vfork_works
=yes
14289 ac_cv_func_vfork_works
=no
14291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14297 $as_echo "$ac_cv_func_vfork_works" >&6; }
14300 if test "x$ac_cv_func_fork_works" = xcross
; then
14301 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14303 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14306 if test "x$ac_cv_func_vfork_works" = xyes
; then
14308 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14312 $as_echo "#define vfork fork" >>confdefs.h
14315 if test "x$ac_cv_func_fork_works" = xyes
; then
14317 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14323 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14324 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 #include <langinfo.h>
14333 char* cs = nl_langinfo(CODESET);
14338 if ac_fn_c_try_link
"$LINENO"; then :
14339 emacs_cv_langinfo_codeset
=yes
14341 emacs_cv_langinfo_codeset
=no
14343 rm -f core conftest.err conftest.
$ac_objext \
14344 conftest
$ac_exeext conftest.
$ac_ext
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14348 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14349 if test $emacs_cv_langinfo_codeset = yes; then
14351 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14355 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14356 if test "x$ac_cv_type_size_t" = x
""yes; then :
14358 cat >>confdefs.h
<<_ACEOF
14359 #define HAVE_SIZE_T 1
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14367 $as_echo_n "checking for mbstate_t... " >&6; }
14368 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 $ac_includes_default
14374 # include <wchar.h>
14378 mbstate_t x; return sizeof x;
14383 if ac_fn_c_try_compile
"$LINENO"; then :
14384 ac_cv_type_mbstate_t
=yes
14386 ac_cv_type_mbstate_t
=no
14388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14391 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14392 if test $ac_cv_type_mbstate_t = yes; then
14394 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14398 $as_echo "#define mbstate_t int" >>confdefs.h
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14403 $as_echo_n "checking for C restrict keyword... " >&6; }
14404 if test "${emacs_cv_c_restrict+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 void fred (int *restrict x);
14418 if ac_fn_c_try_compile
"$LINENO"; then :
14419 emacs_cv_c_restrict
=yes
14421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 void fred (int *__restrict x);
14432 if ac_fn_c_try_compile
"$LINENO"; then :
14433 emacs_cv_c_restrict
=__restrict
14435 emacs_cv_c_restrict
=no
14437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14442 $as_echo "$emacs_cv_c_restrict" >&6; }
14443 case "$emacs_cv_c_restrict" in
14444 yes) emacs_restrict
=restrict
;;
14445 no
) emacs_restrict
="";;
14446 *) emacs_restrict
="$emacs_cv_c_restrict";;
14448 if test "$emacs_restrict" != __restrict
; then
14450 cat >>confdefs.h
<<_ACEOF
14451 #define __restrict $emacs_restrict
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14457 $as_echo_n "checking for C restricted array declarations... " >&6; }
14458 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 void fred (int x[__restrict]);
14472 if ac_fn_c_try_compile
"$LINENO"; then :
14473 emacs_cv_c_restrict_arr
=yes
14475 emacs_cv_c_restrict_arr
=no
14477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14480 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14481 if test "$emacs_cv_c_restrict_arr" = yes; then
14483 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14489 # Set up the CFLAGS for real compilation, so we can substitute it.
14490 CFLAGS
="$REAL_CFLAGS"
14491 CPPFLAGS
="$REAL_CPPFLAGS"
14493 ## Hack to detect a buggy GCC version.
14494 if test "x$GCC" = xyes \
14495 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14496 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14497 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14498 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14501 #### Find out which version of Emacs this is.
14502 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14503 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14504 if test x
"${version}" = x
; then
14505 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14507 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14509 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14512 ### Specify what sort of things we'll be editing into Makefile and config.h.
14513 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14537 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14538 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14539 ## end of LIBX_BASE, but nothing ever set it.
14544 ## Used in lwlib/Makefile.in.
14546 if test -n "${machfile}"; then
14547 M_FILE="\$
(srcdir
)/${machfile}"
14551 S_FILE="\$
(srcdir
)/${opsysfile}"
14563 cat >>confdefs.h <<_ACEOF
14564 #define EMACS_CONFIGURATION "${canonical}"
14568 cat >>confdefs.h <<_ACEOF
14569 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14572 if test -n "$machfile"; then
14574 cat >>confdefs.h <<_ACEOF
14575 #define config_machfile "${machfile}"
14580 cat >>confdefs.h <<_ACEOF
14581 #define config_opsysfile "${opsysfile}"
14588 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14590 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14593 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14595 if test "$HAVE_XFT" = "yes"; then
14596 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14597 elif test "$HAVE_FREETYPE" = "yes"; then
14598 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14608 if test "${USE_X_TOOLKIT}" != "none" ; then
14609 WIDGET_OBJ
=widget.o
14611 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14613 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14615 $as_echo "#define USE_LUCID 1" >>confdefs.h
14617 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14619 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14624 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14625 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14629 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14630 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14631 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14635 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14636 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14639 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14645 case "$USE_X_TOOLKIT" in
14646 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14647 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14648 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14652 if test "$USE_X_TOOLKIT" = "none"; then
14653 LIBXT_OTHER
="\$(LIBXSM)"
14654 OLDXMENU_TARGET
="really-oldXMenu"
14656 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14657 OLDXMENU_TARGET
="really-lwlib"
14661 ## The X Menu stuff is present in the X10 distribution, but missing
14662 ## from X11. If we have X10, just use the installed library;
14663 ## otherwise, use our own copy.
14664 if test "${HAVE_X11}" = "yes" ; then
14666 $as_echo "#define HAVE_X11 1" >>confdefs.h
14669 if test "$USE_X_TOOLKIT" = "none"; then
14670 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14672 OLDXMENU
="\${lwlibdir}/liblw.a"
14674 LIBXMENU
="\$(OLDXMENU)"
14675 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14676 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14678 ## For a syntactically valid Makefile; not actually used for anything.
14679 ## See comments in src/Makefile.in.
14681 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14682 if test "${HAVE_X_WINDOWS}" = "yes"; then
14691 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14704 if test "${HAVE_MENUS}" = "yes" ; then
14706 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14710 if test "${GNU_MALLOC}" = "yes" ; then
14712 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14717 if test "${REL_ALLOC}" = "yes" ; then
14719 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14722 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14726 if test "$opsys" = "cygwin"; then
14727 CYGWIN_OBJ
="sheap.o"
14728 ## Cygwin differs because of its unexec().
14730 POST_ALLOC_OBJ
=lastfile.o
14733 PRE_ALLOC_OBJ
=lastfile.o
14742 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14745 ## The -headerpad option tells ld (see man page) to leave room at the
14746 ## end of the header for adding load commands. Needed for dumping.
14747 ## 0x690 is the total size of 30 segment load commands (at 56
14748 ## each); under Cocoa 31 commands are required.
14749 if test "$HAVE_NS" = "yes"; then
14750 libs_nsgui
="-framework AppKit"
14751 headerpad_extra
=6C8
14754 headerpad_extra
=690
14756 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14758 ## This is here because src/Makefile.in did some extra fiddling around
14759 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14760 ## #ifndef LD_SWITCH_SYSTEM
14761 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14762 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14763 ## not using gcc, darwin system not on an alpha (ie darwin, since
14764 ## darwin + alpha does not occur).
14765 ## Because this was done in src/Makefile.in, the resulting part of
14766 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14767 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14768 ## rather than LD_SWITCH_SYSTEM.
14769 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14770 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14773 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14774 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14775 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14776 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14777 ## had different values in configure (in ac_link) and src/Makefile.in.
14778 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14779 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14781 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14784 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14785 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14794 ## gnu: GNU needs its own crt0.
14795 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14797 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14798 ## library search parth, i.e. it won't search /usr/lib for libc and
14799 ## friends. Using -nostartfiles instead avoids this problem, and
14800 ## will also work on earlier NetBSD releases.
14801 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14803 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14804 ## MkLinux/LinuxPPC needs this.
14805 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14808 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14814 if test "x$ORDINARY_LINK" = "xyes"; then
14818 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14821 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14822 ## freebsd, gnu-* not on macppc|ibms390x.
14823 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14825 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14826 ## places that are difficult to figure out at make time. Fortunately,
14827 ## these same versions allow you to pass arbitrary flags on to the
14828 ## linker, so there is no reason not to use it as a linker.
14830 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14831 ## searching for libraries in its internal directories, so we have to
14832 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14833 LD_FIRSTFLAG
="-nostdlib"
14836 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14837 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14842 ## FIXME? The logic here is not precisely the same as that above.
14843 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14844 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14846 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14849 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14852 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14853 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14859 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14860 ## immediately undefine it again and redefine it to empty.
14861 ## Was the C_SWITCH_X_SITE part really necessary?
14862 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14868 ## Ask GCC where to find libgcc.a.
14869 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14876 ## If we're using X11/GNUstep, define some consequences.
14877 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14879 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14882 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14884 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14885 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
14887 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14888 test "$HAVE_X_WINDOWS" = "yes" && \
14889 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14899 #### Report on what we decided to do.
14900 #### Report GTK as a toolkit, even if it doesn't use Xt.
14901 #### It makes printing result more understandable as using GTK sets
14902 #### toolkit_scroll_bars to yes by default.
14903 if test "${HAVE_GTK}" = "yes"; then
14908 if test -n "$machfile"; then
14909 and_machfile
=" and \`${machfile}'"
14913 Configured for \`${canonical}'.
14915 Where should the build process find the source code? ${srcdir}
14916 What operating system and machine description files should Emacs use?
14917 \`${opsysfile}'${and_machfile}
14918 What compiler should emacs be built with? ${CC} ${CFLAGS}
14919 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14920 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14921 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14922 What window system should Emacs use? ${window_system}
14923 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14925 if test -n "${x_includes}"; then
14926 echo " Where do we find X Windows header files? ${x_includes}"
14928 echo " Where do we find X Windows header files? Standard dirs"
14930 if test -n "${x_libraries}"; then
14931 echo " Where do we find X Windows libraries? ${x_libraries}"
14933 echo " Where do we find X Windows libraries? Standard dirs"
14936 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14937 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14938 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14939 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14940 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14941 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14942 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14943 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14945 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14946 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14947 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14948 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14949 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14950 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14952 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14953 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14954 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14955 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14957 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14960 if test $USE_XASSERTS = yes; then
14961 echo " Compiling with asserts turned on."
14962 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14967 if test "$HAVE_NS" = "yes"; then
14969 echo "You must run \"make install\" in order to test the built application.
14970 The installed application will go to nextstep/Emacs.app and can be
14971 run or moved from there."
14972 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14973 echo "The application will be fully self-contained."
14975 echo "The lisp resources for the application will be installed under ${prefix}.
14976 You may need to run \"make install\" with sudo. The application will fail
14977 to run if these resources are not installed."
14983 # Remove any trailing slashes in these variables.
14984 test "${prefix}" != NONE
&&
14985 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14986 test "${exec_prefix}" != NONE
&&
14987 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14989 ac_config_files
="$ac_config_files 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"
14991 ac_config_commands
="$ac_config_commands default"
14993 cat >confcache
<<\_ACEOF
14994 # This file is a shell script that caches the results of configure
14995 # tests run on this system so they can be shared between configure
14996 # scripts and configure runs, see configure's option --config-cache.
14997 # It is not useful on other systems. If it contains results you don't
14998 # want to keep, you may remove or edit it.
15000 # config.status only pays attention to the cache file if you give it
15001 # the --recheck option to rerun configure.
15003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15005 # following values.
15009 # The following way of writing the cache mishandles newlines in values,
15010 # but we know of no workaround that is simple, portable, and efficient.
15011 # So, we kill variables containing newlines.
15012 # Ultrix sh set writes to stderr and can't be redirected directly,
15013 # and sets the high bit in the cache file unless we assign to the vars.
15015 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15016 eval ac_val
=\$
$ac_var
15020 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15024 _ | IFS | as_nl
) ;; #(
15025 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15026 *) { eval $ac_var=; unset $ac_var;} ;;
15032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15033 *${as_nl}ac_space
=\
*)
15034 # `set' does not quote correctly, so add quotes: double-quote
15035 # substitution turns \\\\ into \\, and sed turns \\ into \.
15038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15041 # `set' quotes correctly as required by POSIX, so do not add quotes.
15042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15055 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15056 if test -w "$cache_file"; then
15057 test "x$cache_file" != "x/dev/null" &&
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15059 $as_echo "$as_me: updating cache $cache_file" >&6;}
15060 cat confcache
>$cache_file
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15068 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15069 # Let make expand exec_prefix.
15070 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15072 DEFS
=-DHAVE_CONFIG_H
15076 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15077 # 1. Remove the extension, and $U if already installed.
15078 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15079 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15081 # will be set to the directory where LIBOBJS objects are built.
15082 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15083 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15085 LIBOBJS
=$ac_libobjs
15087 LTLIBOBJS
=$ac_ltlibobjs
15092 : ${CONFIG_STATUS=./config.status}
15094 ac_clean_files_save
=$ac_clean_files
15095 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15097 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15099 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15101 # Generated by $as_me.
15102 # Run this file to recreate the current configuration.
15103 # Compiler output produced by configure, useful for debugging
15104 # configure, is in config.log if it exists.
15107 ac_cs_recheck=false
15110 SHELL=\${CONFIG_SHELL-$SHELL}
15113 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15114 ## -------------------- ##
15115 ## M4sh Initialization. ##
15116 ## -------------------- ##
15118 # Be more Bourne compatible
15119 DUALCASE
=1; export DUALCASE
# for MKS sh
15120 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15124 # is contrary to our usage. Disable this feature.
15125 alias -g '${1+"$@"}'='"$@"'
15126 setopt NO_GLOB_SUBST
15128 case `(set -o) 2>/dev/null` in #(
15140 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15141 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15142 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15143 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15144 # Prefer a ksh shell builtin over an external printf program on Solaris,
15145 # but without wasting forks for bash or zsh.
15146 if test -z "$BASH_VERSION$ZSH_VERSION" \
15147 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15148 as_echo='print
-r --'
15149 as_echo_n='print
-rn --'
15150 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15151 as_echo='printf %s
\n'
15152 as_echo_n='printf %s
'
15154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15155 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15156 as_echo_n='/usr
/ucb
/echo -n'
15158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15159 as_echo_n_body='eval
15163 expr "X$arg" : "X\\(.*\\)$as_nl";
15164 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15166 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15168 export as_echo_n_body
15169 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15171 export as_echo_body
15172 as_echo='sh
-c $as_echo_body as_echo
'
15175 # The user is always right.
15176 if test "${PATH_SEPARATOR+set}" != set; then
15178 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15179 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15186 # We need space, tab and new line, in precisely that order. Quoting is
15187 # there to prevent editors from complaining about space-tab.
15188 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15189 # splitting by setting IFS to empty value.)
15192 # Find who we are. Look in the path if we contain no directory separator.
15194 *[\\/]* ) as_myself=$0 ;;
15195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $PATH
15199 test -z "$as_dir" && as_dir=.
15200 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15206 # We did not find ourselves, most probably we were run as `sh COMMAND'
15207 # in which case we are not to be found in the path.
15208 if test "x$as_myself" = x
; then
15211 if test ! -f "$as_myself"; then
15212 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15216 # Unset variables that we do not need and which cause bugs (e.g. in
15217 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15218 # suppresses any "Segmentation fault" message there. '((' could
15219 # trigger a bug in pdksh 5.2.14.
15220 for as_var
in BASH_ENV ENV MAIL MAILPATH
15221 do eval test x\
${$as_var+set} = xset \
15222 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15235 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15238 # as_fn_error ERROR [LINENO LOG_FD]
15239 # ---------------------------------
15240 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15241 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15242 # script with status $?, using 1 if that was 0.
15245 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15247 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15248 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15250 $as_echo "$as_me: error: $1" >&2
15251 as_fn_exit
$as_status
15255 # as_fn_set_status STATUS
15256 # -----------------------
15257 # Set $? to STATUS, without forking.
15258 as_fn_set_status
()
15261 } # as_fn_set_status
15263 # as_fn_exit STATUS
15264 # -----------------
15265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15269 as_fn_set_status
$1
15275 # Portably unset VAR.
15278 { eval $1=; unset $1;}
15280 as_unset
=as_fn_unset
15281 # as_fn_append VAR VALUE
15282 # ----------------------
15283 # Append the text in VALUE to the end of the definition contained in VAR. Take
15284 # advantage of any shell optimizations that allow amortized linear growth over
15285 # repeated appends, instead of the typical quadratic growth present in naive
15287 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15288 eval 'as_fn_append ()
15299 # as_fn_arith ARG...
15300 # ------------------
15301 # Perform arithmetic evaluation on the ARGs, and store the result in the
15302 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15303 # must be portable across $(()) and expr.
15304 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15305 eval 'as_fn_arith ()
15312 as_val
=`expr "$@" || test $? -eq 1`
15317 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15318 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15324 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15325 as_basename
=basename
15330 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15336 as_me
=`$as_basename -- "$0" ||
15337 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15338 X"$0" : 'X\(//\)$' \| \
15339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15341 sed '/^.*\/\([^/][^/]*\)\/*$/{
15355 # Avoid depending upon Character Ranges.
15356 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15357 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15358 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15359 as_cr_digits
='0123456789'
15360 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15362 ECHO_C
= ECHO_N
= ECHO_T
=
15363 case `echo -n x` in #(((((
15365 case `echo 'xy\c'` in
15366 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15368 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15375 rm -f conf$$ conf$$.exe conf$$.
file
15376 if test -d conf$$.dir
; then
15377 rm -f conf$$.dir
/conf$$.
file
15380 mkdir conf$$.dir
2>/dev
/null
15382 if (echo >conf$$.
file) 2>/dev
/null
; then
15383 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15385 # ... but there are two gotchas:
15386 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15387 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15388 # In both cases, we have to default to `cp -p'.
15389 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15391 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15399 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15400 rmdir conf$$.dir
2>/dev
/null
15405 # Create "$as_dir" as a directory, including parents if necessary.
15410 -*) as_dir
=.
/$as_dir;;
15412 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15416 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15417 *) as_qdir
=$as_dir;;
15419 as_dirs
="'$as_qdir' $as_dirs"
15420 as_dir
=`$as_dirname -- "$as_dir" ||
15421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15422 X"$as_dir" : 'X\(//\)[^/]' \| \
15423 X"$as_dir" : 'X\(//\)$' \| \
15424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15425 $as_echo X"$as_dir" |
15426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430 /^X\(\/\/\)[^/].*/{
15443 test -d "$as_dir" && break
15445 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15446 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15450 if mkdir
-p .
2>/dev
/null
; then
15451 as_mkdir_p
='mkdir -p "$as_dir"'
15453 test -d .
/-p && rmdir .
/-p
15457 if test -x / >/dev
/null
2>&1; then
15458 as_test_x
='test -x'
15460 if ls -dL / >/dev
/null
2>&1; then
15467 if test -d "$1"; then
15473 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15474 ???[sx]*):;;*)false;;esac;fi
15478 as_executable_p
=$as_test_x
15480 # Sed expression to map a string onto a valid CPP name.
15481 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15483 # Sed expression to map a string onto a valid variable name.
15484 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15488 ## ----------------------------------- ##
15489 ## Main body of $CONFIG_STATUS script. ##
15490 ## ----------------------------------- ##
15492 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15495 # Save the log message, to keep $0 and so on meaningful, and to
15496 # report actual input values of CONFIG_FILES etc. instead of their
15497 # values after options handling.
15499 This file was extended by emacs $as_me 24.0.50, which was
15500 generated by GNU Autoconf 2.65. Invocation command line was
15502 CONFIG_FILES = $CONFIG_FILES
15503 CONFIG_HEADERS = $CONFIG_HEADERS
15504 CONFIG_LINKS = $CONFIG_LINKS
15505 CONFIG_COMMANDS = $CONFIG_COMMANDS
15508 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15513 case $ac_config_files in *"
15514 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15517 case $ac_config_headers in *"
15518 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15523 # Files that config.status was made for.
15524 config_files="$ac_config_files"
15525 config_headers="$ac_config_headers"
15526 config_commands="$ac_config_commands"
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15532 \`$as_me' instantiates files and other configuration actions
15533 from templates according to the current configuration. Unless the files
15534 and actions are specified as TAGs, all are instantiated by default.
15536 Usage: $0 [OPTION]... [TAG]...
15538 -h, --help print this help, then exit
15539 -V, --version print version number and configuration settings, then exit
15540 --config print configuration, then exit
15541 -q, --quiet, --silent
15542 do not print progress messages
15543 -d, --debug don't remove temporary files
15544 --recheck update $as_me by reconfiguring in the same conditions
15545 --file=FILE[:TEMPLATE]
15546 instantiate the configuration file FILE
15547 --header=FILE[:TEMPLATE]
15548 instantiate the configuration header FILE
15550 Configuration files:
15553 Configuration headers:
15556 Configuration commands:
15559 Report bugs to the package provider."
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15565 emacs config.status 24.0.50
15566 configured by $0, generated by GNU Autoconf 2.65,
15567 with options \\"\$ac_cs_config\\"
15569 Copyright (C) 2009 Free Software Foundation, Inc.
15570 This config.status script is free software; the Free Software Foundation
15571 gives unlimited permission to copy, distribute and modify it."
15576 test -n "\$AWK" || AWK=awk
15579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15580 # The default lists apply if the user does not specify any file.
15586 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15587 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15598 # Handling of the options.
15599 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15601 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15602 $as_echo "$ac_cs_version"; exit ;;
15603 --config |
--confi |
--conf |
--con |
--co |
--c )
15604 $as_echo "$ac_cs_config"; exit ;;
15605 --debug |
--debu |
--deb |
--de |
--d |
-d )
15607 --file |
--fil |
--fi |
--f )
15610 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15612 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15613 ac_need_defaults
=false
;;
15614 --header |
--heade |
--head |
--hea )
15617 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15619 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15620 ac_need_defaults
=false
;;
15622 # Conflict between --help and --header
15623 as_fn_error
"ambiguous option: \`$1'
15624 Try \`$0 --help' for more information.";;
15625 --help |
--hel |
-h )
15626 $as_echo "$ac_cs_usage"; exit ;;
15627 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15628 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15631 # This is an error.
15632 -*) as_fn_error
"unrecognized option: \`$1'
15633 Try \`$0 --help' for more information." ;;
15635 *) as_fn_append ac_config_targets
" $1"
15636 ac_need_defaults
=false
;;
15642 ac_configure_extra_args
=
15644 if $ac_cs_silent; then
15646 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15651 if \$ac_cs_recheck; then
15652 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15654 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15655 CONFIG_SHELL='$SHELL'
15656 export CONFIG_SHELL
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15666 ## Running $as_me. ##
15672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15682 # Handling of arguments.
15683 for ac_config_target
in $ac_config_targets
15685 case $ac_config_target in
15686 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15687 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15688 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15689 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15690 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15691 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15692 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15693 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15694 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15695 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15696 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15697 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15698 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15700 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15705 # If the user did not use the arguments to specify the items to instantiate,
15706 # then the envvar interface is used. Set only those that are not.
15707 # We use the long form for the default assignment because of an extremely
15708 # bizarre bug on SunOS 4.1.3.
15709 if $ac_need_defaults; then
15710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15715 # Have a temporary directory for convenience. Make it in the build tree
15716 # simply because there is no reason against having it here, and in addition,
15717 # creating and moving files from /tmp can sometimes cause problems.
15718 # Hook for its removal unless debugging.
15719 # Note that there is a small window in which the directory will not be cleaned:
15720 # after its creation but before its name has been assigned to `$tmp'.
15724 trap 'exit_status=$?
15725 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15727 trap 'as_fn_exit 1' 1 2 13 15
15729 # Create a (secure) tmp directory for tmp files.
15732 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15733 test -n "$tmp" && test -d "$tmp"
15736 tmp
=.
/conf$$
-$RANDOM
15737 (umask 077 && mkdir
"$tmp")
15738 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15740 # Set up the scripts for CONFIG_FILES section.
15741 # No need to generate them if there are no CONFIG_FILES.
15742 # This happens for instance with `./config.status config.h'.
15743 if test -n "$CONFIG_FILES"; then
15745 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15746 ac_cs_awk_getline
=:
15747 ac_cs_awk_pipe_init
=
15748 ac_cs_awk_read_file
='
15749 while ((getline aline < (F[key])) > 0)
15752 ac_cs_awk_pipe_fini
=
15754 ac_cs_awk_getline
=false
15755 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15756 ac_cs_awk_read_file
='
15758 print "cat " F[key] " &&"
15759 '$ac_cs_awk_pipe_init
15760 # The final `:' finishes the AND list.
15761 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15763 ac_cr
=`echo X | tr X '\015'`
15764 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15765 # But we know of no other shell where ac_cr would be empty at this
15766 # point, so we can use a bashism as a fallback.
15767 if test "x$ac_cr" = x
; then
15768 eval ac_cr
=\$
\'\\r
\'
15770 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15771 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15774 ac_cs_awk_cr
=$ac_cr
15777 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15780 # Create commands to substitute file output variables.
15782 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15783 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15784 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15787 } >conf$
$files.sh
&&
15788 . .
/conf$
$files.sh ||
15789 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15790 rm -f conf$
$files.sh
15793 echo "cat >conf$$subs.awk <<_ACEOF" &&
15794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15796 } >conf$$subs.sh ||
15797 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15800 for ac_last_try in false false false false false :; do
15801 . ./conf$$subs.sh ||
15802 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15804 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15805 if test $ac_delim_n = $ac_delim_num; then
15807 elif $ac_last_try; then
15808 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15810 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15813 rm -f conf$$subs.sh
15815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15820 s/^/S["/; s
/!.
*/"]=/
15830 s/\(.\{148\}\)..*/\1/
15832 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15837 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15844 s/\(.\{148\}\)..*/\1/
15846 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15850 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15855 ' <conf$$subs.awk | sed '
15860 ' >>$CONFIG_STATUS || ac_write_fail=1
15861 rm -f conf$$subs.awk
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15864 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15865 for (key in S) S_is_set[key] = 1
15867 \$ac_cs_awk_pipe_init
15871 nfields = split(line, field, "@
")
15873 len = length(field[1])
15874 for (i = 2; i < nfields; i++) {
15876 keylen = length(key)
15877 if (S_is_set[key]) {
15879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15880 len += length(value) + length(field[++i])
15885 if (nfields == 3 && !substed) {
15887 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15888 \$ac_cs_awk_read_file
15894 \$ac_cs_awk_pipe_fini
15897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15899 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15902 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15903 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15906 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15907 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15908 # trailing colons and then remove the whole line if VPATH becomes empty
15909 # (actually we leave an empty line to preserve line numbers).
15910 if test "x
$srcdir" = x.; then
15911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15912 s/:*\$(srcdir):*/:/
15913 s/:*\${srcdir}:*/:/
15915 s/^\([^=]*=[ ]*\):*/\1/
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 fi # test -n "$CONFIG_FILES"
15924 # Set up the scripts for CONFIG_HEADERS section.
15925 # No need to generate them if there are no CONFIG_HEADERS.
15926 # This happens for instance with `./config.status Makefile'.
15927 if test -n "$CONFIG_HEADERS"; then
15928 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15932 # Transform confdefs.h into an awk script `defines.awk', embedded as
15933 # here-document in config.status, that substitutes the proper values into
15934 # config.h.in to produce config.h.
15936 # Create a delimiter string that does not exist in confdefs.h, to ease
15937 # handling of long lines.
15939 for ac_last_try in false false :; do
15940 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15941 if test -z "$ac_t"; then
15943 elif $ac_last_try; then
15944 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15946 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15950 # For the awk script, D is an array of macro values keyed by name,
15951 # likewise P contains macro parameters if any. Preserve backslash
15952 # newline sequences.
15954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15956 s/.\{148\}/&'"$ac_delim"'/g
15959 s/^[ ]*#[ ]*define[ ][ ]*/ /
15966 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15968 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15973 D["\
1"]=" \
3\\\\\\n
"\\/p
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15980 s/.\{148\}/&'"$ac_delim"'/g
15985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15988 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15990 ' <confdefs.h | sed '
15991 s/'"$ac_delim"'/"\\\
15992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16005 defundef
= substr
(arg
[1], 2)
16008 split(mac1
, mac2
, "(") #)
16010 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16011 if (D_is_set
[macro
]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix
"define", macro P
[macro
] D
[macro
]
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef
== "undef") {
16020 print
"/*", prefix defundef
, macro
, "*/"
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16029 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16030 fi # test -n "$CONFIG_HEADERS"
16033 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16038 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16040 case $ac_mode$ac_tag in
16042 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH
]-) ac_tag
=-:-;;
16044 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16061 -) ac_f
="$tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16068 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16070 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16072 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs
" '$ac_f'"
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input
='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16082 if test x
"$ac_file" != x-
; then
16083 configure_input
="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085 $as_echo "$as_me: creating $ac_file" >&6;}
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\
&* |
*\|
* |
*\\* )
16090 ac_sed_conf_input
=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input
=$configure_input;;
16096 *:-:* |
*:-) cat >"$tmp/stdin" \
16097 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16102 ac_dir
=`$as_dirname -- "$ac_file" ||
16103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16112 /^X\(\/\/\)[^/].*/{
16125 as_dir
="$ac_dir"; as_fn_mkdir_p
16129 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16131 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16136 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16139 ac_abs_top_builddir
=$ac_pwd
16140 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16141 # for backward compatibility:
16142 ac_top_builddir
=$ac_top_build_prefix
16145 .
) # We are building in place.
16147 ac_top_srcdir
=$ac_top_builddir_sub
16148 ac_abs_top_srcdir
=$ac_pwd ;;
16149 [\\/]* | ?
:[\\/]* ) # Absolute name.
16150 ac_srcdir
=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir
=$srcdir
16152 ac_abs_top_srcdir
=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16158 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16168 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16169 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16174 # If the template does not know about datarootdir, expand it.
16175 # FIXME: This hack should be removed a few years after 2.60.
16176 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16188 *datarootdir
*) ac_datarootdir_seen
=yes;;
16189 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 ac_datarootdir_hack='
16195 s&@datadir@&$datadir&g
16196 s&@docdir@&$docdir&g
16197 s&@infodir@&$infodir&g
16198 s&@localedir@&$localedir&g
16199 s&@mandir@&$mandir&g
16200 s&\\\${datarootdir}&$datarootdir&g' ;;
16204 # Neutralize VPATH when `$srcdir' = `.'.
16205 # Shell code in configure.ac might set extrasub.
16206 # FIXME: do we really want to maintain this feature?
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 ac_sed_extra="$ac_vpsub
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16213 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16214 s|@configure_input@|
$ac_sed_conf_input|
;t t
16215 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16216 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16217 s
&@srcdir@
&$ac_srcdir&;t t
16218 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16219 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16220 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16221 s
&@builddir@
&$ac_builddir&;t t
16222 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16223 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16224 s
&@INSTALL@
&$ac_INSTALL&;t t
16225 $ac_datarootdir_hack
16227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16228 if $ac_cs_awk_getline; then
16229 $AWK -f "$tmp/subs.
awk"
16231 $AWK -f "$tmp/subs.
awk" | $SHELL
16233 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16239 which seems to be undefined. Please make sure it is defined." >&5
16240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16241 which seems to be undefined. Please make sure it is defined." >&2;}
16245 -) cat "$tmp/out" && rm -f "$tmp/out";;
16246 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16248 || as_fn_error "could not create $ac_file" "$LINENO" 5
16254 if test x"$ac_file" != x-; then
16256 $as_echo "/* $configure_input */" \
16257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16258 } >"$tmp/config.h" \
16259 || as_fn_error "could not create $ac_file" "$LINENO" 5
16260 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16265 mv "$tmp/config.h" "$ac_file" \
16266 || as_fn_error "could not create $ac_file" "$LINENO" 5
16269 $as_echo "/* $configure_input */" \
16270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16271 || as_fn_error "could not create -" "$LINENO" 5
16275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16276 $as_echo "$as_me: executing $ac_file commands" >&6;}
16281 case $ac_file$ac_mode in
16284 ### Make the necessary directories, if they don't exist.
16285 for dir
in etc lisp
; do
16286 test -d ${dir} || mkdir
${dir}
16289 echo creating src
/epaths.h
16290 ${MAKE-make} epaths-force
16292 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16293 echo creating src
/.gdbinit
16294 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16305 ac_clean_files
=$ac_clean_files_save
16307 test $ac_write_fail = 0 ||
16308 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16311 # configure is writing to config.log, and then calls config.status.
16312 # config.status does its own redirection, appending to config.log.
16313 # Unfortunately, on DOS this fails, as config.log is still kept open
16314 # by configure, so config.status won't be able to write to it; its
16315 # output is simply discarded. So we exec the FD to /dev/null,
16316 # effectively closing config.log, so it can be properly (re)opened and
16317 # appended to by config.status. When coming back to configure, we
16318 # need to make the FD available again.
16319 if test "$no_create" != yes; then
16321 ac_config_status_args
=
16322 test "$silent" = yes &&
16323 ac_config_status_args
="$ac_config_status_args --quiet"
16325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16328 # would make configure fail if this is the last instruction.
16329 $ac_cs_success || as_fn_exit $?
16331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}