2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
706 LD_SWITCH_X_SITE_AUX_RPATH
782 program_transform_name
793 ac_subst_files
='deps_frag
796 enable_option_checking
818 with_toolkit_scroll_bars
832 enable_ns_self_contained
834 enable_maintainer_mode
837 enable_use_lisp_union_type
843 ac_precious_vars
='build_alias
855 # Initialize some variables set by options.
857 ac_init_version
=false
858 ac_unrecognized_opts
=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name
=s
,x
,x
,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir
='${exec_prefix}/bin'
884 sbindir
='${exec_prefix}/sbin'
885 libexecdir
='${exec_prefix}/libexec'
886 datarootdir
='${prefix}/share'
887 datadir
='${datarootdir}'
888 sysconfdir
='${prefix}/etc'
889 sharedstatedir
='${prefix}/com'
890 localstatedir
='${prefix}/var'
891 includedir
='${prefix}/include'
892 oldincludedir
='/usr/include'
893 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir
='${datarootdir}/info'
899 libdir
='${exec_prefix}/lib'
900 localedir
='${datarootdir}/locale'
901 mandir
='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\
$ac_option
915 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
928 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
931 -build |
--build |
--buil |
--bui |
--bu)
932 ac_prev
=build_alias
;;
933 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
934 build_alias
=$ac_optarg ;;
936 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
937 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
938 ac_prev
=cache_file
;;
939 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
940 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
941 cache_file
=$ac_optarg ;;
944 cache_file
=config.cache
;;
946 -datadir |
--datadir |
--datadi |
--datad)
948 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
949 datadir
=$ac_optarg ;;
951 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
952 |
--dataroo |
--dataro |
--datar)
953 ac_prev
=datarootdir
;;
954 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
955 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
956 datarootdir
=$ac_optarg ;;
958 -disable-* |
--disable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 as_fn_error $?
"invalid feature name: $ac_useropt"
963 ac_useropt_orig
=$ac_useropt
964 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep
=', ';;
972 eval enable_
$ac_useropt=no
;;
974 -docdir |
--docdir |
--docdi |
--doc |
--do)
976 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
979 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
981 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
984 -enable-* |
--enable-*)
985 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
988 as_fn_error $?
"invalid feature name: $ac_useropt"
989 ac_useropt_orig
=$ac_useropt
990 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep
=', ';;
998 eval enable_
$ac_useropt=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1192 as_fn_error $?
"invalid package name: $ac_useropt"
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=\
$ac_optarg ;;
1204 -without-* |
--without-*)
1205 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1208 as_fn_error $?
"invalid package name: $ac_useropt"
1209 ac_useropt_orig
=$ac_useropt
1210 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep
=', ';;
1218 eval with_
$ac_useropt=no
;;
1221 # Obsolete; use --with-x.
1224 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1225 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1226 ac_prev
=x_includes
;;
1227 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1228 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1229 x_includes
=$ac_optarg ;;
1231 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1232 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1233 ac_prev
=x_libraries
;;
1234 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1235 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1236 x_libraries
=$ac_optarg ;;
1238 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1243 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1247 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1249 eval $ac_envvar=\
$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263 if test -n "$ac_prev"; then
1264 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $?
"missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1271 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val
=\$
$ac_var
1283 # Remove trailing slashes.
1286 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\
$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$
]* | ?
:[\\/]* ) continue;;
1292 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1294 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target
=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x
; then
1306 if test "x$build_alias" = x
; then
1307 cross_compiling
=maybe
1308 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used" >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $?
"working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $?
"pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted
=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir
=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted
=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1365 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var
in $ac_precious_vars; do
1382 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1384 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1458 --x-includes=DIR X include files are
in DIR
1459 --x-libraries=DIR X library files are
in DIR
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful
(and
1482 sometimes confusing
) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search
for lisp files
1485 specific to this site
1486 --enable-checking[=LIST
]
1487 enable expensive run-time checks. With LIST
, enable
1488 only specific categories of checks. Categories are
:
1489 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1490 stringfreelist
, xmallocoverrun
, conslist
1491 --enable-use-lisp-union-type
1492 use a union
for the Lisp_Object data
type. This is
1493 only useful
for development
for catching certain
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled
if GNU Make and
1500 --disable-largefile omit support
for large files
1503 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1504 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1505 --without-pop don
't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1516 lucid or athena
, motif
, no
)
1517 --without-xpm don
't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don
't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don
't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don
't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don
't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf
for OpenType font support
1527 --without-m17n-flt don
't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don
't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1533 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don
't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don
't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo
for building manuals
1540 --without-compress-info don
't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to
help
1562 it to
find libraries and programs with nonstandard names
/locations.
1564 Report bugs to the package provider.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir
=$ac_pwd
1589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir
=$ac_top_build_prefix
1594 .
) # We are building in place.
1596 ac_top_srcdir
=$ac_top_builddir_sub
1597 ac_abs_top_srcdir
=$ac_pwd ;;
1598 [\\/]* | ?
:[\\/]* ) # Absolute name.
1599 ac_srcdir
=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir
=$srcdir
1601 ac_abs_top_srcdir
=$srcdir ;;
1603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 emacs configure
24.0.50
1628 generated by GNU Autoconf
2.67
1630 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1631 This configure
script is free software
; the Free Software Foundation
1632 gives unlimited permission to copy
, distribute and modify it.
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile
()
1646 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1647 rm -f conftest.
$ac_objext
1648 if { { ac_try
="$ac_compile"
1650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1689 *) ac_try_echo
=$ac_try;;
1691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err
; then
1696 grep -v '^ *+' conftest.err
>conftest.er1
1697 cat conftest.er1
>&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest
$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest
$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 as_fn_set_status
$ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1731 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval "test \"\${$3+set}\"" = set; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval "test \"\${$3+set}\"" = set; then :
1837 $as_echo_n "(cached) " >&6
1839 eval "$3=\$ac_header_compiler"
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval "test \"\${$3+set}\"" = set; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1923 # ---------------------------------------------
1924 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1926 ac_fn_c_check_decl ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1930 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1932 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1933 if eval "test \"\${$3+set}\"" = set; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1942 #ifndef $as_decl_name
1944 (void) $as_decl_use;
1946 (void) $as_decl_name;
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 } # ac_fn_c_check_decl
1968 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1969 # ----------------------------------------------
1970 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1971 ac_fn_c_check_header_preproc ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 } # ac_fn_c_check_header_preproc
1997 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1998 # ----------------------------------------------------
1999 # Tries to find if the field MEMBER exists in type AGGR, after including
2000 # INCLUDES, setting cache variable VAR accordingly.
2001 ac_fn_c_check_member ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2005 $as_echo_n "checking for $2.$3... " >&6; }
2006 if eval "test \"\${$4+set}\"" = set; then :
2007 $as_echo_n "(cached) " >&6
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2032 if (sizeof ac_aggr.$3)
2038 if ac_fn_c_try_compile "$LINENO"; then :
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_member
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2077 # include <limits.h>
2079 # include <assert.h>
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2106 if ac_fn_c_try_link "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_check_func
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval "test \"\${$3+set}\"" = set; then :
2131 $as_echo_n "(cached) " >&6
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2159 if ac_fn_c_try_compile "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_type
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2178 It was created by emacs $as_me 24.0.50, which was
2179 generated by GNU Autoconf 2.67. Invocation command line was
2191 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2192 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2193 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2194 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2195 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2197 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2198 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2200 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2201 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2202 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2203 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2204 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2205 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2206 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2239 ac_must_keep_next=false
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2250 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2268 -* ) ac_must_keep_next=true ;;
2271 as_fn_append ac_configure_args " '$ac_arg'"
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2289 $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2293 # The following way of writing the cache mishandles newlines in values,
2295 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2296 eval ac_val=\$$ac_var
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2311 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2325 $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2329 for ac_var in $ac_subst_vars
2331 eval ac_val=\$$ac_var
2333 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2344 for ac_var in $ac_subst_files
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2379 $as_echo "/* confdefs.h */" > confdefs.h
2381 # Predefined preprocessor variables.
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2412 if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site
script $ac_site_file
2437 See \
`config.log' for more details" "$LINENO" 5; }
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2458 as_fn_append ac_header_list " stdlib.h"
2459 as_fn_append ac_header_list " unistd.h"
2460 as_fn_append ac_header_list " sys/param.h"
2461 as_fn_append ac_header_list " sys/time.h"
2462 as_fn_append ac_func_list " alarm"
2463 # Check that the precious variables saved in the cache have kept the same
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2474 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2478 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x
$ac_old_val`
2485 ac_new_val_w=`echo x
$ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2489 ac_cache_corrupted=:
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s
,x
,x
', remove it if useless.
2542 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546 lispdir='${datadir}/emacs
/${version}/lisp
'
2547 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2548 '${datadir}/emacs
/site-lisp
'
2549 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2550 etcdir='${datadir}/emacs
/${version}/etc
'
2551 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2552 docdir='${datadir}/emacs
/${version}/etc
'
2553 gamedir='${localstatedir}/games
/emacs
'
2560 # Check whether --with-pop was given.
2561 if test "${with_pop+set}" = set; then :
2567 if test "$with_pop" = yes; then
2568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2573 # Check whether --with-kerberos was given.
2574 if test "${with_kerberos+set}" = set; then :
2575 withval=$with_kerberos;
2580 if test "$with_kerberos" != no; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2586 # Check whether --with-kerberos5 was given.
2587 if test "${with_kerberos5+set}" = set; then :
2588 withval=$with_kerberos5;
2593 if test "${with_kerberos5}" != no; then
2594 if test "${with_kerberos}" = no; then
2596 $as_echo "#define KERBEROS 1" >>confdefs.h
2600 $as_echo "#define KERBEROS5 1" >>confdefs.h
2605 # Check whether --with-hesiod was given.
2606 if test "${with_hesiod+set}" = set; then :
2607 withval=$with_hesiod;
2612 if test "$with_hesiod" != no; then
2614 $as_echo "#define HESIOD 1" >>confdefs.h
2619 # Check whether --with-mmdf was given.
2620 if test "${with_mmdf+set}" = set; then :
2626 if test "$with_mmdf" != no; then
2628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2633 # Check whether --with-mail-unlink was given.
2634 if test "${with_mail_unlink+set}" = set; then :
2635 withval=$with_mail_unlink;
2640 if test "$with_mail_unlink" != no; then
2642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2647 # Check whether --with-mailhost was given.
2648 if test "${with_mailhost+set}" = set; then :
2649 withval=$with_mailhost;
2650 cat >>confdefs.h <<_ACEOF
2651 #define MAILHOST "$withval"
2658 # Check whether --with-sound was given.
2659 if test "${with_sound+set}" = set; then :
2660 withval=$with_sound;
2667 # Check whether --with-sync-input was given.
2668 if test "${with_sync_input+set}" = set; then :
2669 withval=$with_sync_input;
2674 if test "$with_sync_input" = yes; then
2676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2681 # Check whether --with-x-toolkit was given.
2682 if test "${with_x_toolkit+set}" = set; then :
2683 withval=$with_x_toolkit; case "${withval}" in
2684 y | ye | yes ) val=gtk ;;
2686 l | lu | luc | luci | lucid ) val=lucid ;;
2687 a | at | ath | athe | athen | athena ) val=athena ;;
2688 m | mo | mot | moti | motif ) val=motif ;;
2689 g | gt | gtk ) val=gtk ;;
2692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid
;
2693 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2694 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2703 # Check whether --with-xpm was given.
2704 if test "${with_xpm+set}" = set; then :
2711 # Check whether --with-jpeg was given.
2712 if test "${with_jpeg+set}" = set; then :
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2727 # Check whether --with-gif was given.
2728 if test "${with_gif+set}" = set; then :
2735 # Check whether --with-png was given.
2736 if test "${with_png+set}" = set; then :
2743 # Check whether --with-rsvg was given.
2744 if test "${with_rsvg+set}" = set; then :
2751 # Check whether --with-xml2 was given.
2752 if test "${with_xml2+set}" = set; then :
2759 # Check whether --with-imagemagick was given.
2760 if test "${with_imagemagick+set}" = set; then :
2761 withval=$with_imagemagick;
2763 with_imagemagick=yes
2768 # Check whether --with-xft was given.
2769 if test "${with_xft+set}" = set; then :
2776 # Check whether --with-libotf was given.
2777 if test "${with_libotf+set}" = set; then :
2778 withval=$with_libotf;
2784 # Check whether --with-m17n-flt was given.
2785 if test "${with_m17n_flt+set}" = set; then :
2786 withval=$with_m17n_flt;
2793 # Check whether --with-toolkit-scroll-bars was given.
2794 if test "${with_toolkit_scroll_bars+set}" = set; then :
2795 withval=$with_toolkit_scroll_bars;
2797 with_toolkit_scroll_bars=yes
2801 # Check whether --with-xaw3d was given.
2802 if test "${with_xaw3d+set}" = set; then :
2803 withval=$with_xaw3d;
2809 # Check whether --with-xim was given.
2810 if test "${with_xim+set}" = set; then :
2817 # Check whether --with-ns was given.
2818 if test "${with_ns+set}" = set; then :
2826 # Check whether --with-gpm was given.
2827 if test "${with_gpm+set}" = set; then :
2834 # Check whether --with-dbus was given.
2835 if test "${with_dbus+set}" = set; then :
2842 # Check whether --with-gconf was given.
2843 if test "${with_gconf+set}" = set; then :
2844 withval=$with_gconf;
2850 # Check whether --with-selinux was given.
2851 if test "${with_selinux+set}" = set; then :
2852 withval=$with_selinux;
2858 # Check whether --with-gnutls was given.
2859 if test "${with_gnutls+set}" = set; then :
2860 withval=$with_gnutls;
2866 ## For the times when you want to build Emacs but don't have
2867 ## a suitable makeinfo, and can live without the manuals.
2869 # Check whether --with-makeinfo was given.
2870 if test "${with_makeinfo+set}" = set; then :
2871 withval=$with_makeinfo;
2877 ## This is an option because I do not know if all info/man support
2878 ## compressed files, nor how to test if they do so.
2880 # Check whether --with-compress-info was given.
2881 if test "${with_compress_info+set}" = set; then :
2882 withval=$with_compress_info;
2884 with_compress_info=yes
2887 if test $with_compress_info = yes; then
2895 # Check whether --with-pkg-config-prog was given.
2896 if test "${with_pkg_config_prog+set}" = set; then :
2897 withval=$with_pkg_config_prog;
2900 if test "X${with_pkg_config_prog}" != X; then
2901 if test "${with_pkg_config_prog}" != yes; then
2902 PKG_CONFIG="${with_pkg_config_prog}"
2908 # Check whether --with-crt-dir was given.
2909 if test "${with_crt_dir+set}" = set; then :
2910 withval=$with_crt_dir;
2913 CRT_DIR="${with_crt_dir}"
2916 # Check whether --with-gnustep-conf was given.
2917 if test "${with_gnustep_conf+set}" = set; then :
2918 withval=$with_gnustep_conf;
2921 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2922 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2923 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2924 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2926 # Check whether --enable-ns-self-contained was given.
2927 if test "${enable_ns_self_contained+set}" = set; then :
2928 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2930 EN_NS_SELF_CONTAINED=yes
2934 # Check whether --enable-asserts was given.
2935 if test "${enable_asserts+set}" = set; then :
2936 enableval=$enable_asserts; USE_XASSERTS=$enableval
2942 # Check whether --enable-maintainer-mode was given.
2943 if test "${enable_maintainer_mode+set}" = set; then :
2944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2946 USE_MAINTAINER_MODE=no
2949 if test $USE_MAINTAINER_MODE = yes; then
2956 # Check whether --enable-locallisppath was given.
2957 if test "${enable_locallisppath+set}" = set; then :
2958 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2960 elif test "${enableval}" != "yes"; then
2961 locallisppath=${enableval}
2966 # Check whether --enable-checking was given.
2967 if test "${enable_checking+set}" = set; then :
2968 enableval=$enable_checking; ac_checking_flags="${enableval}"
2971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2972 for check in $ac_checking_flags
2975 # these set all the flags to specific states
2976 yes) ac_enable_checking=1 ;;
2977 no) ac_enable_checking= ;
2978 ac_gc_check_stringbytes= ;
2979 ac_gc_check_string_overrun= ;
2980 ac_gc_check_string_free_list= ;
2981 ac_xmalloc_overrun= ;
2982 ac_gc_check_cons_list= ;;
2983 all) ac_enable_checking=1 ;
2984 ac_gc_check_stringbytes=1 ;
2985 ac_gc_check_string_overrun=1 ;
2986 ac_gc_check_string_free_list=1 ;
2987 ac_xmalloc_overrun=1 ;
2988 ac_gc_check_cons_list=1 ;;
2989 # these enable particular checks
2990 stringbytes) ac_gc_check_stringbytes=1 ;;
2991 stringoverrun) ac_gc_check_string_overrun=1 ;;
2992 stringfreelist) ac_gc_check_string_free_list=1 ;;
2993 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2994 conslist) ac_gc_check_cons_list=1 ;;
2995 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3000 if test x$ac_enable_checking != x ; then
3002 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3005 if test x$ac_gc_check_stringbytes != x ; then
3007 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3010 if test x$ac_gc_check_stringoverrun != x ; then
3012 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3015 if test x$ac_gc_check_string_free_list != x ; then
3017 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3020 if test x$ac_xmalloc_overrun != x ; then
3022 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3025 if test x$ac_gc_check_cons_list != x ; then
3027 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3031 # Check whether --enable-use-lisp-union-type was given.
3032 if test "${enable_use_lisp_union_type+set}" = set; then :
3033 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3035 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3042 # Check whether --enable-profiling was given.
3043 if test "${enable_profiling+set}" = set; then :
3044 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3047 if test x$ac_enable_profiling != x ; then
3048 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3054 # Check whether --enable-autodepend was given.
3055 if test "${enable_autodepend+set}" = set; then :
3056 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3058 ac_enable_autodepend=yes
3062 #### Make srcdir absolute, if it isn't already. It's important to
3063 #### avoid running the path through pwd unnecessarily, since pwd can
3064 #### give you automounter prefixes, which can go away. We do all this
3065 #### so Emacs can find its files when run uninstalled.
3066 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3071 ## We may be able to use the $PWD environment variable to make this
3072 ## absolute. But sometimes PWD is inaccurate.
3073 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3074 ## but that tested only for a well-formed and valid PWD,
3075 ## it did not object when PWD was well-formed and valid but just wrong.
3076 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3080 srcdir="`(cd ${srcdir}; pwd)`"
3083 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3086 #### Check if the source directory already has a configured system in it.
3087 if test `pwd` != `(cd ${srcdir} && pwd)` \
3088 && test -f "${srcdir}/src/config.h" ; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3090 as a build directory right now; it has been configured in its own
3091 right. To configure in another directory as well, you MUST
3092 use GNU make. If you do not have GNU make, then you must
3093 now do \`make distclean' in ${srcdir},
3094 and
then run
$0 again.
" >&5
3095 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3096 as a build directory right now; it has been configured in its own
3097 right. To configure in another directory as well, you MUST
3098 use GNU make. If you do not have GNU make, then you must
3099 now do \`make distclean
' in ${srcdir},
3100 and then run $0 again." >&2;}
3103 #### Given the configuration name, set machfile and opsysfile to the
3104 #### names of the m/*.h and s/*.h files we should use.
3106 ### Canonicalize the configuration name.
3109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3110 if test -f "$ac_dir/install-sh"; then
3112 ac_install_sh="$ac_aux_dir/install-sh -c"
3114 elif test -f "$ac_dir/install.sh"; then
3116 ac_install_sh="$ac_aux_dir/install.sh -c"
3118 elif test -f "$ac_dir/shtool"; then
3120 ac_install_sh="$ac_aux_dir/shtool install -c"
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's
source tree is
in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Make sure we can run config.sub.
3138 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3139 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3142 $as_echo_n "checking build system type... " >&6; }
3143 if test "${ac_cv_build+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3146 ac_build_alias
=$build_alias
3147 test "x$ac_build_alias" = x
&&
3148 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3149 test "x$ac_build_alias" = x
&&
3150 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3151 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3152 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3156 $as_echo "$ac_cv_build" >&6; }
3157 case $ac_cv_build in
3159 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3162 ac_save_IFS
=$IFS; IFS
='-'
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3172 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3176 $as_echo_n "checking host system type... " >&6; }
3177 if test "${ac_cv_host+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3180 if test "x$host_alias" = x
; then
3181 ac_cv_host
=$ac_cv_build
3183 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3184 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3189 $as_echo "$ac_cv_host" >&6; }
3192 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3195 ac_save_IFS
=$IFS; IFS
='-'
3201 # Remember, the first character of IFS is used to create $*,
3202 # except with old shells:
3205 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3209 configuration
=${host_alias-${build_alias-$host}}
3213 ### If you add support for a new configuration, add code to this
3214 ### switch statement to recognize your configuration name and select
3215 ### the appropriate operating system and machine description files.
3217 ### You would hope that you could choose an m/*.h file pretty much
3218 ### based on the machine portion of the configuration name, and an s/*.h
3219 ### file based on the operating system portion. However, it turns out
3220 ### that each m/*.h file is pretty manufacturer-specific - for
3221 ### example mips.h is MIPS
3222 ### So we basically have to have a special case for each
3223 ### configuration name.
3225 ### As far as handling version numbers on operating systems is
3226 ### concerned, make sure things will fail in a fixable way. If
3227 ### /etc/MACHINES doesn't say anything about version numbers, be
3228 ### prepared to handle anything reasonably. If version numbers
3229 ### matter, be sure /etc/MACHINES says something about it.
3231 machine
='' opsys
='' unported
=no
3232 case "${canonical}" in
3237 case ${canonical} in
3238 alpha
*) machine
=alpha
;;
3239 s390-
*) machine
=ibms390
;;
3240 s390x-
*) machine
=ibms390x
;;
3241 powerpc
*) machine
=macppc
;;
3242 sparc
*) machine
=sparc
;;
3243 ia64
*) machine
=ia64
;;
3244 m68k
*) machine
=m68k
;;
3245 x86_64
*) machine
=amdx86-64
;;
3252 case "${canonical}" in
3253 alpha
*) machine
=alpha
;;
3254 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3255 ia64-
*) machine
=ia64
;;
3256 i
[3456]86-*) machine
=intel386
;;
3257 powerpc-
*) machine
=macppc
;;
3258 sparc-
*) machine
=sparc
;;
3259 sparc64-
*) machine
=sparc
;;
3263 ## FreeBSD kernel + glibc based userland
3266 case "${canonical}" in
3267 alpha
*) machine
=alpha
;;
3268 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3269 ia64-
*) machine
=ia64
;;
3270 i
[3456]86-*) machine
=intel386
;;
3271 powerpc-
*) machine
=macppc
;;
3272 sparc-
*) machine
=sparc
;;
3273 sparc64-
*) machine
=sparc
;;
3280 case "${canonical}" in
3281 alpha
*) machine
=alpha
;;
3282 x86_64-
*) machine
=amdx86-64
;;
3283 i
[3456]86-*) machine
=intel386
;;
3284 m68k-
*) machine
=m68k
;;
3285 powerpc-
*) machine
=macppc
;;
3286 sparc
*-) machine
=sparc
;;
3287 vax-
*) machine
=vax
;;
3294 case "${canonical}" in
3295 alpha
*) machine
=alpha
;;
3296 x86_64-
*) machine
=amdx86-64
;;
3297 i386-
*) machine
=intel386
;;
3298 powerpc-
*) machine
=macppc
;;
3299 sparc
*) machine
=sparc
;;
3300 vax-
*) machine
=vax
;;
3304 ## Apple Darwin / Mac OS X
3306 case "${canonical}" in
3307 i
[3456]86-* ) machine
=intel386
;;
3308 powerpc-
* ) machine
=macppc
;;
3309 x86_64-
* ) machine
=amdx86-64
;;
3313 # Define CPP as follows to make autoconf work correctly.
3314 CPP
="${CC-cc} -E -no-cpp-precomp"
3315 # Use fink packages if available.
3316 if test -d /sw
/include
&& test -d /sw
/lib
; then
3317 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3318 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3319 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3323 ## HP 9000 series 700 and 800, running HP/UX
3324 hppa
*-hp-hpux10.2
* )
3327 hppa
*-hp-hpux1[1-9]* )
3329 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3333 rs6000-ibm-aix4.
[23]* )
3334 machine
=ibmrs6000 opsys
=aix4-2
3336 powerpc-ibm-aix4.
[23]* )
3337 machine
=ibmrs6000 opsys
=aix4-2
3339 rs6000-ibm-aix
[56]* )
3340 machine
=ibmrs6000 opsys
=aix4-2
3342 powerpc-ibm-aix
[56]* )
3343 machine
=ibmrs6000 opsys
=aix4-2
3346 ## Silicon Graphics machines
3349 machine
=iris4d opsys
=irix6-5
3350 # Without defining _LANGUAGE_C, things get masked out in the headers
3351 # so that, for instance, grepping for `free' in stdlib.h fails and
3352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3359 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3360 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3361 case "${canonical}" in
3362 i
[3456]86-*-* ) machine
=intel386
;;
3363 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3364 sparc
* ) machine
=sparc
;;
3367 case "${canonical}" in
3368 *-sunos5.6
* |
*-solaris2.6
* )
3370 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3373 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3375 emacs_check_sunpro_c
=yes
3376 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3378 *-sunos5* |
*-solaris* )
3380 emacs_check_sunpro_c
=yes
3381 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3384 ## Watch out for a compiler that we know will not work.
3385 case "${canonical}" in
3386 *-solaris* |
*-sunos5* )
3387 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3388 ## /usr/ucb/cc doesn't work;
3389 ## we should find some other compiler that does work.
3397 ## Intel 386 machines where we don't care about the manufacturer.
3400 case "${canonical}" in
3401 *-cygwin ) opsys
=cygwin
;;
3402 *-darwin* ) opsys
=darwin
3403 CPP
="${CC-cc} -E -no-cpp-precomp"
3405 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3406 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3407 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3408 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3417 ### If the code above didn't choose an operating system, just choose
3418 ### an operating system based on the configuration name. You really
3419 ### only want to use this when you have no idea what the right
3420 ### operating system is; if you know what operating systems a machine
3421 ### runs, it's cleaner to make it explicit in the case statement
3423 if test x
"${opsys}" = x
; then
3424 case "${canonical}" in
3425 *-gnu* ) opsys
=gnu
;;
3434 if test $unported = yes; then
3435 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
3436 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3439 if test -n "$machine"; then
3440 machfile
="m/${machine}.h"
3444 opsysfile
="s/${opsys}.h"
3447 #### Choose a compiler.
3448 test -n "$CC" && cc_specified
=yes
3450 # Save the value of CFLAGS that the user specified.
3451 SPECIFIED_CFLAGS
="$CFLAGS"
3454 ac_cpp
='$CPP $CPPFLAGS'
3455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC
="$CC" # Let the user override the test.
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_exec_ext
in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc
; ac_word
=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_CC
="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x
; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned
=yes ;;
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC
="$CC" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc
; ac_word
=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC
="$CC" # Let the user override the test.
3603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir
=.
3608 for ac_exec_ext
in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected
=yes
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy
$ac_cv_prog_CC
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3631 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog
in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC
="$CC" # Let the user override the test.
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC
="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3735 if test "x$ac_ct_CC" = x
; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned
=yes ;;
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $?
"no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option
in --version -v -V -qversion; do
3761 { { ac_try
="$ac_compiler $ac_option >&5"
3763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3817 *) ac_try_echo
=$ac_try;;
3819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3830 for ac_file
in $ac_files ''
3832 test -f "$ac_file" ||
continue
3834 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3837 # We found the default executable, but exeext='' is most
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3855 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.
$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error
77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext
=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3881 ac_clean_files
=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try
="$ac_link"
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3896 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file
in conftest.exe conftest conftest.
*; do
3900 test -f "$ac_file" ||
continue
3902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3903 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest
$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.
$ac_ext
3919 EXEEXT
=$ac_cv_exeext
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files
="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try
="$ac_link"
3942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe
; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $?
"cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3979 ac_clean_files
=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try
="$ac_compile"
3999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4023 See \
`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cc_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4173 s = g (p, va_arg (v,int));
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 rm -f conftest.$ac_ext
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4249 ## If not using gcc, and on Solaris, and no CPP specified, see if
4250 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4251 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4252 test x"$CPP" = x; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4254 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4256 if test "${emacs_cv_sunpro_c+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4273 if ac_fn_c_try_link "$LINENO"; then :
4274 emacs_cv_sunpro_c=yes
4276 emacs_cv_sunpro_c=no
4278 rm -f core conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4283 $as_echo "$emacs_cv_sunpro_c" >&6; }
4285 if test x"$emacs_cv_sunpro_c" = xyes; then
4286 NON_GNU_CPP="$CC -E -Xs"
4290 #### Some systems specify a CPP to use unless we are using GCC.
4291 #### Now that we know whether we are using GCC, we can decide whether
4292 #### to use that one.
4293 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4298 #### Some systems specify a CC to use unless we are using GCC.
4299 #### Now that we know whether we are using GCC, we can decide whether
4300 #### to use that one.
4301 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4302 test x$cc_specified != xyes
4307 if test x$GCC = xyes; then
4308 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4310 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4324 if test -z "$CPP"; then
4325 if test "${ac_cv_prog_CPP+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4332 for ac_c_preproc_warn_flag in '' yes
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4343 # include <limits.h>
4345 # include <assert.h>
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4352 # Broken: fails on valid input.
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # OK, works on sane cases. Now check whether nonexistent headers
4358 # can be detected and how.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364 # Broken: success on invalid input.
4367 # Passes both tests.
4371 rm -f conftest.err conftest.i conftest.$ac_ext
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.i conftest.err conftest.
$ac_ext
4376 if $ac_preproc_ok; then :
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4389 $as_echo "$CPP" >&6; }
4391 for ac_c_preproc_warn_flag
in '' yes
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4402 # include <limits.h>
4404 # include <assert.h>
4408 if ac_fn_c_try_cpp
"$LINENO"; then :
4411 # Broken: fails on valid input.
4414 rm -f conftest.err conftest.i conftest.
$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ac_nonexistent.h>
4422 if ac_fn_c_try_cpp
"$LINENO"; then :
4423 # Broken: success on invalid input.
4426 # Passes both tests.
4430 rm -f conftest.err conftest.i conftest.
$ac_ext
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.i conftest.err conftest.
$ac_ext
4435 if $ac_preproc_ok; then :
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4441 See \`config.log' for more details" "$LINENO" 5; }
4445 ac_cpp
='$CPP $CPPFLAGS'
4446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4456 if test -z "$GREP"; then
4457 ac_path_GREP_found
=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_prog
in grep ggrep
; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4468 # Check for GNU ac_path_GREP and select it if it is found.
4469 # Check for GNU $ac_path_GREP
4470 case `"$ac_path_GREP" --version 2>&1` in
4472 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4475 $as_echo_n 0123456789 >"conftest.in"
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'GREP' >> "conftest.nl"
4482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4483 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4484 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_GREP
="$ac_path_GREP"
4488 ac_path_GREP_max
=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4493 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4496 $ac_path_GREP_found && break 3
4501 if test -z "$ac_cv_path_GREP"; then
4502 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 ac_cv_path_GREP
=$GREP
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4510 $as_echo "$ac_cv_path_GREP" >&6; }
4511 GREP
="$ac_cv_path_GREP"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4515 $as_echo_n "checking for egrep... " >&6; }
4516 if test "${ac_cv_path_EGREP+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4520 then ac_cv_path_EGREP
="$GREP -E"
4522 if test -z "$EGREP"; then
4523 ac_path_EGREP_found
=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4526 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4529 test -z "$as_dir" && as_dir
=.
4530 for ac_prog
in egrep; do
4531 for ac_exec_ext
in '' $ac_executable_extensions; do
4532 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4533 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4534 # Check for GNU ac_path_EGREP and select it if it is found.
4535 # Check for GNU $ac_path_EGREP
4536 case `"$ac_path_EGREP" --version 2>&1` in
4538 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4541 $as_echo_n 0123456789 >"conftest.in"
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo 'EGREP' >> "conftest.nl"
4548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4549 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4550 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_EGREP
="$ac_path_EGREP"
4554 ac_path_EGREP_max
=$ac_count
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4559 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4562 $ac_path_EGREP_found && break 3
4567 if test -z "$ac_cv_path_EGREP"; then
4568 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 ac_cv_path_EGREP
=$EGREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4577 $as_echo "$ac_cv_path_EGREP" >&6; }
4578 EGREP
="$ac_cv_path_EGREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4582 $as_echo_n "checking for ANSI C header files... " >&6; }
4583 if test "${ac_cv_header_stdc+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4601 if ac_fn_c_try_compile
"$LINENO"; then :
4602 ac_cv_header_stdc
=yes
4604 ac_cv_header_stdc
=no
4606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4608 if test $ac_cv_header_stdc = yes; then
4609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "memchr" >/dev
/null
2>&1; then :
4619 ac_cv_header_stdc
=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "free" >/dev
/null
2>&1; then :
4636 ac_cv_header_stdc
=no
4642 if test $ac_cv_header_stdc = yes; then
4643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644 if test "$cross_compiling" = yes; then :
4647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4651 #if ((' ' & 0x0FF) == 0x020)
4652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 # define ISLOWER(c) \
4656 (('a' <= (c) && (c) <= 'i') \
4657 || ('j' <= (c) && (c) <= 'r') \
4658 || ('s' <= (c) && (c) <= 'z'))
4659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667 for (i = 0; i < 256; i++)
4668 if (XOR (islower (i), ISLOWER (i))
4669 || toupper (i) != TOUPPER (i))
4674 if ac_fn_c_try_run
"$LINENO"; then :
4677 ac_cv_header_stdc
=no
4679 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4680 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4686 $as_echo "$ac_cv_header_stdc" >&6; }
4687 if test $ac_cv_header_stdc = yes; then
4689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4695 inttypes.h stdint.h unistd.h
4697 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4701 cat >>confdefs.h
<<_ACEOF
4702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4712 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4719 if test "$MINIX" = yes; then
4721 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4724 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4727 $as_echo "#define _MINIX 1" >>confdefs.h
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4733 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4734 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4740 # define __EXTENSIONS__ 1
4741 $ac_includes_default
4750 if ac_fn_c_try_compile
"$LINENO"; then :
4751 ac_cv_safe_to_define___extensions__
=yes
4753 ac_cv_safe_to_define___extensions__
=no
4755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4758 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4759 test $ac_cv_safe_to_define___extensions__ = yes &&
4760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4772 ### Use -Wno-pointer-sign if the compiler supports it
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4774 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4775 SAVE_CFLAGS
="$CFLAGS"
4776 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 if ac_fn_c_try_compile
"$LINENO"; then :
4793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4794 if test $has_option = yes; then
4795 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4798 $as_echo "$has_option" >&6; }
4799 CFLAGS
="$SAVE_CFLAGS"
4803 ### Use -Wdeclaration-after-statement if the compiler supports it
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4805 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4806 SAVE_CFLAGS
="$CFLAGS"
4807 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4819 if ac_fn_c_try_compile
"$LINENO"; then :
4824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4825 if test $has_option = yes; then
4826 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4829 $as_echo "$has_option" >&6; }
4830 CFLAGS
="$SAVE_CFLAGS"
4834 ### Use -Wold-style-definition if the compiler supports it
4835 # This can be removed when conversion to standard C is finished.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4837 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4838 SAVE_CFLAGS
="$CFLAGS"
4839 CFLAGS
="$CFLAGS -Wold-style-definition"
4840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4851 if ac_fn_c_try_compile
"$LINENO"; then :
4856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4857 if test $has_option = yes; then
4858 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4861 $as_echo "$has_option" >&6; }
4862 CFLAGS
="$SAVE_CFLAGS"
4866 ### Use -Wimplicit-function-declaration if the compiler supports it
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4868 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4869 SAVE_CFLAGS
="$CFLAGS"
4870 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4882 if ac_fn_c_try_compile
"$LINENO"; then :
4887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4888 if test $has_option = yes; then
4889 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4892 $as_echo "$has_option" >&6; }
4893 CFLAGS
="$SAVE_CFLAGS"
4900 #### Some other nice autoconf tests.
4903 ac_cpp
='$CPP $CPPFLAGS'
4904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4909 # On Suns, sometimes $CPP names a directory.
4910 if test -n "$CPP" && test -d "$CPP"; then
4913 if test -z "$CPP"; then
4914 if test "${ac_cv_prog_CPP+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4917 # Double quotes because CPP needs to be expanded
4918 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4921 for ac_c_preproc_warn_flag
in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4932 # include <limits.h>
4934 # include <assert.h>
4938 if ac_fn_c_try_cpp
"$LINENO"; then :
4941 # Broken: fails on valid input.
4944 rm -f conftest.err conftest.i conftest.
$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4952 if ac_fn_c_try_cpp
"$LINENO"; then :
4953 # Broken: success on invalid input.
4956 # Passes both tests.
4960 rm -f conftest.err conftest.i conftest.
$ac_ext
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.i conftest.err conftest.
$ac_ext
4965 if $ac_preproc_ok; then :
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4978 $as_echo "$CPP" >&6; }
4980 for ac_c_preproc_warn_flag
in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 # include <limits.h>
4993 # include <assert.h>
4997 if ac_fn_c_try_cpp
"$LINENO"; then :
5000 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.i conftest.
$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5011 if ac_fn_c_try_cpp
"$LINENO"; then :
5012 # Broken: success on invalid input.
5015 # Passes both tests.
5019 rm -f conftest.err conftest.i conftest.
$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.i conftest.err conftest.
$ac_ext
5024 if $ac_preproc_ok; then :
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details" "$LINENO" 5; }
5034 ac_cpp
='$CPP $CPPFLAGS'
5035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5039 # Find a good install program. We prefer a C program (faster),
5040 # so one script is as good as another. But avoid the broken or
5041 # incompatible versions:
5042 # SysV /etc/install, /usr/sbin/install
5043 # SunOS /usr/etc/install
5044 # IRIX /sbin/install
5046 # AmigaOS /C/install, which installs bootblocks on floppy discs
5047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5050 # OS/2's system install, which has a completely different semantic
5051 # ./install, which can be erroneously created by make from ./install.sh.
5052 # Reject install programs that cannot install multiple files.
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5054 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5055 if test -z "$INSTALL"; then
5056 if test "${ac_cv_path_install+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir
=.
5064 # Account for people who put trailing slashes in PATH elements.
5065 case $as_dir/ in #((
5066 .
/ | .
// |
/[cC
]/* | \
5067 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5068 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5071 # OSF1 and SCO ODT 3.0 have their own names for install.
5072 # Don't use installbsd from OSF since it installs stuff as root
5074 for ac_prog
in ginstall scoinst
install; do
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5077 if test $ac_prog = install &&
5078 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5079 # AIX install. It has an incompatible calling convention.
5081 elif test $ac_prog = install &&
5082 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5083 # program-specific install script used by HP pwplus--don't use.
5086 rm -rf conftest.one conftest.two conftest.dir
5087 echo one
> conftest.one
5088 echo two
> conftest.two
5090 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5091 test -s conftest.one
&& test -s conftest.two
&&
5092 test -s conftest.dir
/conftest.one
&&
5093 test -s conftest.dir
/conftest.two
5095 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5108 rm -rf conftest.one conftest.two conftest.dir
5111 if test "${ac_cv_path_install+set}" = set; then
5112 INSTALL
=$ac_cv_path_install
5114 # As a last resort, use the slow shell script. Don't cache a
5115 # value for INSTALL within a source directory, because that will
5116 # break other packages using the cache if that directory is
5117 # removed, or if the value is a relative name.
5118 INSTALL
=$ac_install_sh
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5122 $as_echo "$INSTALL" >&6; }
5124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5125 # It thinks the first close brace ends the variable substitution.
5126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5130 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5132 if test "x$RANLIB" = x
; then
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5135 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5141 if test -n "$RANLIB"; then
5142 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir
=.
5149 for ac_exec_ext
in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 RANLIB
=$ac_cv_prog_RANLIB
5162 if test -n "$RANLIB"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5164 $as_echo "$RANLIB" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 if test -z "$ac_cv_prog_RANLIB"; then
5173 ac_ct_RANLIB
=$RANLIB
5174 # Extract the first word of "ranlib", so it can be a program name with args.
5175 set dummy ranlib
; ac_word
=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5181 if test -n "$ac_ct_RANLIB"; then
5182 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir
=.
5189 for ac_exec_ext
in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5202 if test -n "$ac_ct_RANLIB"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5204 $as_echo "$ac_ct_RANLIB" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5210 if test "x$ac_ct_RANLIB" = x
; then
5213 case $cross_compiling:$ac_tool_warned in
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned
=yes ;;
5219 RANLIB
=$ac_ct_RANLIB
5222 RANLIB
="$ac_cv_prog_RANLIB"
5227 ## Although we're running on an amd64 kernel, we're actually compiling for
5228 ## the x86 architecture. The user should probably have provided an
5229 ## explicit --build to `configure', but if everything else than the kernel
5230 ## is running in i386 mode, we can help them out.
5231 if test "$machine" = "amdx86-64"; then
5232 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5233 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5237 if test "$ac_cv_have_decl_i386" = "yes"; then
5238 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5240 machfile
="m/${machine}.h"
5244 # Extract the first word of "install-info", so it can be a program name with args.
5245 set dummy install-info
; ac_word
=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5251 case $INSTALL_INFO in
5253 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5275 if test -n "$INSTALL_INFO"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5277 $as_echo "$INSTALL_INFO" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 # Extract the first word of "install-info", so it can be a program name with args.
5285 set dummy install-info
; ac_word
=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5291 case $INSTALL_INFO in
5293 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 for as_dir
in /usr
/sbin
5300 test -z "$as_dir" && as_dir
=.
5301 for ac_exec_ext
in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5315 if test -n "$INSTALL_INFO"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5317 $as_echo "$INSTALL_INFO" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 # Extract the first word of "install-info", so it can be a program name with args.
5325 set dummy install-info
; ac_word
=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 case $INSTALL_INFO in
5333 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_exec_ext
in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5355 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5358 $as_echo "$INSTALL_INFO" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 # Extract the first word of "gzip", so it can be a program name with args.
5366 set dummy
gzip; ac_word
=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5374 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5396 if test -n "$GZIP_PROG"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5398 $as_echo "$GZIP_PROG" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5407 ## Need makeinfo >= 4.6 (?) to build the manuals.
5408 # Extract the first word of "makeinfo", so it can be a program name with args.
5409 set dummy makeinfo
; ac_word
=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5417 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir
=.
5425 for ac_exec_ext
in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5439 MAKEINFO
=$ac_cv_path_MAKEINFO
5440 if test -n "$MAKEINFO"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5442 $as_echo "$MAKEINFO" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 if test "$MAKEINFO" != "no" && \
5450 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
5454 ## Makeinfo is unusual. For a released Emacs, the manuals are
5455 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5456 ## therefore in the category of "special tools" not normally required, which
5457 ## configure does not have to check for (eg autoconf itself).
5458 ## In a Bazaar checkout on the other hand, the manuals are not included.
5459 ## So makeinfo is a requirement to build from Bazaar, and configure
5460 ## should test for it as it does for any other build requirement.
5461 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5462 ## with pre-built manuals, from a Bazaar checkout.
5463 if test "$MAKEINFO" = "no"; then
5464 if test "x${with_makeinfo}" = "xno"; then
5466 elif test ! -e $srcdir/info
/emacs
; then
5467 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
5468 source tree does not seem to have pre-built manuals in the \`info' directory.
5469 Either install a suitable version of makeinfo, or re-run configure
5470 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5475 if test x
$GCC = xyes
; then
5476 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
5477 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5479 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
5480 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5484 late_LDFLAGS
=$LDFLAGS
5485 if test x
$GCC = xyes
; then
5486 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5488 LDFLAGS
="$LDFLAGS -znocombreloc"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5492 $as_echo_n "checking for -znocombreloc... " >&6; }
5493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5504 if ac_fn_c_try_link
"$LINENO"; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506 $as_echo "yes" >&6; }
5508 LDFLAGS
=$late_LDFLAGS
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5512 rm -f core conftest.err conftest.
$ac_objext \
5513 conftest
$ac_exeext conftest.
$ac_ext
5516 # The value of CPP is a quoted variable reference, so we need to do this
5517 # to get its actual value...
5518 CPP
=`eval "echo $CPP"`
5526 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5533 UNEXEC_OBJ
=unexelf.o
5535 # MSDOS uses unexcoff.o
5536 # MSWindows uses unexw32.o
5538 UNEXEC_OBJ
=unexaix.o
5544 UNEXEC_OBJ
=unexmacosx.o
5547 UNEXEC_OBJ
=unexhp9k800.o
5550 # Use the Solaris dldump() function, called from unexsol.c, to dump
5551 # emacs, instead of the generic ELF dump code found in unexelf.c.
5552 # The resulting binary has a complete symbol table, and is better
5553 # for debugging and other observability tools (debuggers, pstack, etc).
5555 # If you encounter a problem using dldump(), please consider sending
5556 # a message to the OpenSolaris tools-linking mailing list:
5557 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5559 # It is likely that dldump() works with older Solaris too, but this has
5560 # not been tested, so for now this change is for Solaris 10 or newer.
5561 UNEXEC_OBJ
=unexsol.o
5568 ## Let `ld' find image libs and similar things in /usr/local/lib.
5569 ## The system compiler, GCC, has apparently been modified to not
5570 ## look there, contrary to what a stock GCC would do.
5571 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5575 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5576 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
5580 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5584 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5585 ## otherwise Emacs dumps core on elf systems.
5586 LD_SWITCH_SYSTEM
="-Z"
5591 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5593 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5594 ## which has not been defined yet. When this was handled with cpp,
5595 ## it was expanded to null when configure sourced the s/*.h file.
5596 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5597 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5598 ## (or somesuch), but because it is supposed to go at the _front_
5599 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5600 ## Compare with the gnu-linux case below, which added to the end
5601 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5602 ## LD_SWITCH_SYSTEM_TEMACS.
5605 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5606 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5611 if test "$machine" = "alpha"; then
5612 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5613 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5617 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5618 ## With ELF, make sure that all common symbols get allocated to in the
5619 ## data section. Otherwise, the dump of temacs may miss variables in
5620 ## the shared library that have been initialized. For example, with
5621 ## GNU libc, __malloc_initialized would normally be resolved to the
5622 ## shared library's .bss section, which is fatal.
5623 if test "x$GCC" = "xyes"; then
5624 C_SWITCH_MACHINE
="-fno-common"
5626 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5629 UNEXEC_OBJ
=unexalpha.o
5637 ## Some programs in src produce warnings saying certain subprograms
5638 ## are too complex and need a MAXMEM value greater than 2000 for
5639 ## additional optimization. --nils@exp-math.uni-essen.de
5640 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5641 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5642 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5643 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5649 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5650 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5652 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5654 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5656 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5658 ## Motif needs -lgen.
5659 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5664 ### Make sure subsequent tests use flags consistent with the build flags.
5666 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5667 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5669 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5674 # Check whether --enable-largefile was given.
5675 if test "${enable_largefile+set}" = set; then :
5676 enableval
=$enable_largefile;
5679 if test "$enable_largefile" != no
; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5682 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5683 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 ac_cv_sys_largefile_CC
=no
5687 if test "$GCC" != yes; then
5690 # IRIX 6.2 and later do not support large files by default,
5691 # so use the C compiler's -n32 option if that helps.
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <sys/types.h>
5695 /* Check that off_t can represent 2**63 - 1 correctly.
5696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5697 since some C++ compilers masquerading as C compilers
5698 incorrectly reject 9223372036854775807. */
5699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5701 && LARGE_OFF_T % 2147483647 == 1)
5711 if ac_fn_c_try_compile
"$LINENO"; then :
5714 rm -f core conftest.err conftest.
$ac_objext
5716 if ac_fn_c_try_compile
"$LINENO"; then :
5717 ac_cv_sys_largefile_CC
=' -n32'; break
5719 rm -f core conftest.err conftest.
$ac_objext
5723 rm -f conftest.
$ac_ext
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5727 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5728 if test "$ac_cv_sys_largefile_CC" != no
; then
5729 CC
=$CC$ac_cv_sys_largefile_CC
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5733 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5734 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5757 if ac_fn_c_try_compile
"$LINENO"; then :
5758 ac_cv_sys_file_offset_bits
=no
; break
5760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #define _FILE_OFFSET_BITS 64
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5781 if ac_fn_c_try_compile
"$LINENO"; then :
5782 ac_cv_sys_file_offset_bits
=64; break
5784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5785 ac_cv_sys_file_offset_bits
=unknown
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5790 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5791 case $ac_cv_sys_file_offset_bits in #(
5794 cat >>confdefs.h
<<_ACEOF
5795 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5800 if test $ac_cv_sys_file_offset_bits = unknown
; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5802 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5803 if test "${ac_cv_sys_large_files+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <sys/types.h>
5810 /* Check that off_t can represent 2**63 - 1 correctly.
5811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5812 since some C++ compilers masquerading as C compilers
5813 incorrectly reject 9223372036854775807. */
5814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5816 && LARGE_OFF_T % 2147483647 == 1)
5826 if ac_fn_c_try_compile
"$LINENO"; then :
5827 ac_cv_sys_large_files
=no
; break
5829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #define _LARGE_FILES 1
5833 #include <sys/types.h>
5834 /* Check that off_t can represent 2**63 - 1 correctly.
5835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5836 since some C++ compilers masquerading as C compilers
5837 incorrectly reject 9223372036854775807. */
5838 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5840 && LARGE_OFF_T % 2147483647 == 1)
5850 if ac_fn_c_try_compile
"$LINENO"; then :
5851 ac_cv_sys_large_files
=1; break
5853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5854 ac_cv_sys_large_files
=unknown
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5859 $as_echo "$ac_cv_sys_large_files" >&6; }
5860 case $ac_cv_sys_large_files in #(
5863 cat >>confdefs.h
<<_ACEOF
5864 #define _LARGE_FILES $ac_cv_sys_large_files
5874 ## If user specified a crt-dir, use that unconditionally.
5875 if test "X$CRT_DIR" = "X"; then
5877 case "$canonical" in
5878 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5879 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5880 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5881 ## For anything else (eg /usr/lib32), it is up the user to specify
5882 ## the location (bug#5655).
5883 ## Test for crtn.o, not just the directory, because sometimes the
5884 ## directory exists but does not have the relevant files (bug#1287).
5885 ## FIXME better to test for binary compatibility somehow.
5886 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5889 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5893 hpux10-20
) CRT_DIR
=/lib
;;
5896 ## Default is /usr/lib.
5897 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5901 ## Some platforms don't use any of these files, so it is not
5902 ## appropriate to put this test outside the if block.
5903 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5904 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
5917 START_FILES
='pre-crt0.o'
5920 ## Adding -lm confuses the dynamic linker, so omit it.
5922 START_FILES
='pre-crt0.o'
5925 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5926 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5928 gnu-linux | gnu-kfreebsd
)
5929 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5930 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5932 hpux10-20 | hpux11
)
5934 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5937 if test -f $CRT_DIR/crti.o
; then
5938 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5939 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5941 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5942 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5953 if test "${with_sound}" != "no"; then
5954 # Sound support for GNU/Linux and the free BSDs.
5955 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5957 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5958 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5959 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5960 cat >>confdefs.h
<<_ACEOF
5961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5963 have_sound_header
=yes
5968 # Emulation library used on NetBSD.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5970 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5971 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 ac_check_lib_save_LIBS
=$LIBS
5975 LIBS
="-lossaudio $LIBS"
5976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5989 return _oss_ioctl ();
5994 if ac_fn_c_try_link
"$LINENO"; then :
5995 ac_cv_lib_ossaudio__oss_ioctl
=yes
5997 ac_cv_lib_ossaudio__oss_ioctl
=no
5999 rm -f core conftest.err conftest.
$ac_objext \
6000 conftest
$ac_exeext conftest.
$ac_ext
6001 LIBS
=$ac_check_lib_save_LIBS
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6004 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6005 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6014 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6018 # Extract the first word of "pkg-config", so it can be a program name with args.
6019 set dummy pkg-config
; ac_word
=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6027 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir
=.
6035 for ac_exec_ext
in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6049 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6050 if test -n "$PKG_CONFIG"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6052 $as_echo "$PKG_CONFIG" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6060 if test "$PKG_CONFIG" = "no" ; then
6063 PKG_CONFIG_MIN_VERSION
=0.9.0
6064 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6066 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6068 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070 $as_echo "yes" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6074 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6075 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6077 $as_echo "$ALSA_CFLAGS" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6080 $as_echo_n "checking ALSA_LIBS... " >&6; }
6081 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6083 $as_echo "$ALSA_LIBS" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 ## If we have a custom action on failure, don't print errors, but
6090 ## do set a variable so people can do so.
6091 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6103 if test $succeeded = yes; then
6109 if test $HAVE_ALSA = yes; then
6110 SAVE_CFLAGS
="$CFLAGS"
6111 SAVE_LDFLAGS
="$LDFLAGS"
6112 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6113 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #include <asoundlib.h>
6120 snd_lib_error_set_handler (0);
6125 if ac_fn_c_try_compile
"$LINENO"; then :
6126 emacs_alsa_normal
=yes
6128 emacs_alsa_normal
=no
6130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 if test "$emacs_alsa_normal" != yes; then
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <alsa/asoundlib.h>
6138 snd_lib_error_set_handler (0);
6143 if ac_fn_c_try_compile
"$LINENO"; then :
6144 emacs_alsa_subdir
=yes
6146 emacs_alsa_subdir
=no
6148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 if test "$emacs_alsa_subdir" != yes; then
6150 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6152 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6155 CFLAGS
="$SAVE_CFLAGS"
6156 LDFLAGS
="$SAVE_LDFLAGS"
6157 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6158 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6160 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6164 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6166 gnu-linux|freebsd|netbsd
)
6168 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6177 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
6178 linux
/version.h sys
/systeminfo.h limits.h \
6179 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
6180 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6181 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6183 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6184 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6185 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6186 cat >>confdefs.h
<<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6196 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <sys/personality.h>
6203 personality (PER_LINUX32)
6208 if ac_fn_c_try_compile
"$LINENO"; then :
6209 emacs_cv_personality_linux32
=yes
6211 emacs_cv_personality_linux32
=no
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6215 $as_echo "$emacs_cv_personality_linux32" >&6; }
6217 if test $emacs_cv_personality_linux32 = yes; then
6219 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6223 for ac_header
in term.h
6225 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6226 if test "x$ac_cv_header_term_h" = x
""yes; then :
6227 cat >>confdefs.h
<<_ACEOF
6228 #define HAVE_TERM_H 1
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6236 $as_echo_n "checking for ANSI C header files... " >&6; }
6237 if test "${ac_cv_header_stdc+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6255 if ac_fn_c_try_compile
"$LINENO"; then :
6256 ac_cv_header_stdc
=yes
6258 ac_cv_header_stdc
=no
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 if test $ac_cv_header_stdc = yes; then
6263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev
/null
2>&1; then :
6273 ac_cv_header_stdc
=no
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "free" >/dev
/null
2>&1; then :
6290 ac_cv_header_stdc
=no
6296 if test $ac_cv_header_stdc = yes; then
6297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6298 if test "$cross_compiling" = yes; then :
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6328 if ac_fn_c_try_run
"$LINENO"; then :
6331 ac_cv_header_stdc
=no
6333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6340 $as_echo "$ac_cv_header_stdc" >&6; }
6341 if test $ac_cv_header_stdc = yes; then
6343 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6349 if test "${ac_cv_header_time+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 #include <sys/types.h>
6355 #include <sys/time.h>
6361 if ((struct tm *) 0)
6367 if ac_fn_c_try_compile
"$LINENO"; then :
6368 ac_cv_header_time
=yes
6370 ac_cv_header_time
=no
6372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6375 $as_echo "$ac_cv_header_time" >&6; }
6376 if test $ac_cv_header_time = yes; then
6378 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6382 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6383 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6389 cat >>confdefs.h
<<_ACEOF
6390 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6393 if test $ac_cv_have_decl_sys_siglist != yes; then
6394 # For Tru64, at least:
6395 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6396 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6402 cat >>confdefs.h
<<_ACEOF
6403 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6406 if test $ac_cv_have_decl___sys_siglist = yes; then
6408 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6413 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6414 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/wait.h>
6422 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6425 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6438 if ac_fn_c_try_compile
"$LINENO"; then :
6439 ac_cv_header_sys_wait_h
=yes
6441 ac_cv_header_sys_wait_h
=no
6443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6446 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6447 if test $ac_cv_header_sys_wait_h = yes; then
6449 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6455 $as_echo_n "checking for struct utimbuf... " >&6; }
6456 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 #ifdef TIME_WITH_SYS_TIME
6462 #include <sys/time.h>
6465 #ifdef HAVE_SYS_TIME_H
6466 #include <sys/time.h>
6477 static struct utimbuf x; x.actime = x.modtime;
6482 if ac_fn_c_try_compile
"$LINENO"; then :
6483 emacs_cv_struct_utimbuf
=yes
6485 emacs_cv_struct_utimbuf
=no
6487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6490 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6491 if test $emacs_cv_struct_utimbuf = yes; then
6493 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6498 $as_echo_n "checking return type of signal handlers... " >&6; }
6499 if test "${ac_cv_type_signal+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #include <sys/types.h>
6510 return *(signal (0, 0)) (0) == 1;
6515 if ac_fn_c_try_compile
"$LINENO"; then :
6516 ac_cv_type_signal
=int
6518 ac_cv_type_signal
=void
6520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6523 $as_echo "$ac_cv_type_signal" >&6; }
6525 cat >>confdefs.h
<<_ACEOF
6526 #define RETSIGTYPE $ac_cv_type_signal
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6532 $as_echo_n "checking for speed_t... " >&6; }
6533 if test "${emacs_cv_speed_t+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <termios.h>
6547 if ac_fn_c_try_compile
"$LINENO"; then :
6548 emacs_cv_speed_t
=yes
6552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6555 $as_echo "$emacs_cv_speed_t" >&6; }
6556 if test $emacs_cv_speed_t = yes; then
6558 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6563 $as_echo_n "checking for struct timeval... " >&6; }
6564 if test "${emacs_cv_struct_timeval+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 #ifdef TIME_WITH_SYS_TIME
6570 #include <sys/time.h>
6573 #ifdef HAVE_SYS_TIME_H
6574 #include <sys/time.h>
6582 static struct timeval x; x.tv_sec = x.tv_usec;
6587 if ac_fn_c_try_compile
"$LINENO"; then :
6588 emacs_cv_struct_timeval
=yes
6590 emacs_cv_struct_timeval
=no
6592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6595 $as_echo "$emacs_cv_struct_timeval" >&6; }
6596 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6597 if test $emacs_cv_struct_timeval = yes; then
6599 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6604 $as_echo_n "checking for struct exception... " >&6; }
6605 if test "${emacs_cv_struct_exception+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6614 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6619 if ac_fn_c_try_compile
"$LINENO"; then :
6620 emacs_cv_struct_exception
=yes
6622 emacs_cv_struct_exception
=no
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6627 $as_echo "$emacs_cv_struct_exception" >&6; }
6628 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6629 if test $emacs_cv_struct_exception != yes; then
6631 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6635 for ac_header
in sys
/socket.h
6637 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6638 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6639 cat >>confdefs.h
<<_ACEOF
6640 #define HAVE_SYS_SOCKET_H 1
6647 for ac_header
in net
/if.h
6649 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6650 #if HAVE_SYS_SOCKET_H
6651 #include <sys/socket.h>
6654 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6655 cat >>confdefs.h
<<_ACEOF
6656 #define HAVE_NET_IF_H 1
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6665 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6666 if test "${ac_cv_struct_tm+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6678 int *p = &tm.tm_sec;
6684 if ac_fn_c_try_compile
"$LINENO"; then :
6685 ac_cv_struct_tm
=time.h
6687 ac_cv_struct_tm
=sys
/time.h
6689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6692 $as_echo "$ac_cv_struct_tm" >&6; }
6693 if test $ac_cv_struct_tm = sys
/time.h
; then
6695 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6699 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6700 #include <$ac_cv_struct_tm>
6703 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6705 cat >>confdefs.h
<<_ACEOF
6706 #define HAVE_STRUCT_TM_TM_ZONE 1
6712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6714 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6717 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6719 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6725 cat >>confdefs.h
<<_ACEOF
6726 #define HAVE_DECL_TZNAME $ac_have_decl
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6730 $as_echo_n "checking for tzname... " >&6; }
6731 if test "${ac_cv_var_tzname+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6737 #if !HAVE_DECL_TZNAME
6738 extern char *tzname[];
6744 return tzname[0][0];
6749 if ac_fn_c_try_link
"$LINENO"; then :
6750 ac_cv_var_tzname
=yes
6754 rm -f core conftest.err conftest.
$ac_objext \
6755 conftest
$ac_exeext conftest.
$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6758 $as_echo "$ac_cv_var_tzname" >&6; }
6759 if test $ac_cv_var_tzname = yes; then
6761 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6766 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6768 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6770 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6774 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6775 #if HAVE_SYS_SOCKET_H
6776 #include <sys/socket.h>
6782 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6784 cat >>confdefs.h
<<_ACEOF
6785 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6790 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6791 #if HAVE_SYS_SOCKET_H
6792 #include <sys/socket.h>
6798 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6800 cat >>confdefs.h
<<_ACEOF
6801 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6806 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6807 #if HAVE_SYS_SOCKET_H
6808 #include <sys/socket.h>
6814 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6816 cat >>confdefs.h
<<_ACEOF
6817 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6822 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6823 #if HAVE_SYS_SOCKET_H
6824 #include <sys/socket.h>
6830 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6832 cat >>confdefs.h
<<_ACEOF
6833 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6838 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6839 #if HAVE_SYS_SOCKET_H
6840 #include <sys/socket.h>
6846 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6848 cat >>confdefs.h
<<_ACEOF
6849 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6858 $as_echo_n "checking for function prototypes... " >&6; }
6859 if test "$ac_cv_prog_cc_c89" != no
; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6861 $as_echo "yes" >&6; }
6863 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6866 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6874 $as_echo_n "checking for working volatile... " >&6; }
6875 if test "${ac_cv_c_volatile+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6886 int * volatile y = (int *) 0;
6892 if ac_fn_c_try_compile
"$LINENO"; then :
6893 ac_cv_c_volatile
=yes
6897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6900 $as_echo "$ac_cv_c_volatile" >&6; }
6901 if test $ac_cv_c_volatile = no
; then
6903 $as_echo "#define volatile /**/" >>confdefs.h
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6908 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6909 if test "${ac_cv_c_const+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6918 /* FIXME: Include the comments suggested by Paul. */
6920 /* Ultrix mips cc rejects this. */
6921 typedef int charset[2];
6923 /* SunOS 4.1.1 cc rejects this. */
6924 char const *const *pcpcc;
6926 /* NEC SVR4.0.2 mips cc rejects this. */
6927 struct point {int x, y;};
6928 static struct point const zero = {0,0};
6929 /* AIX XL C 1.02.0.0 rejects this.
6930 It does not let you subtract one const X* pointer from another in
6931 an arm of an if-expression whose if-part is not a constant
6933 const char *g = "string";
6934 pcpcc = &g + (g ? g-g : 0);
6935 /* HPUX 7.0 cc rejects these. */
6937 ppc = (char**) pcpcc;
6938 pcpcc = (char const *const *) ppc;
6939 { /* SCO 3.2v4 cc rejects this. */
6941 char const *s = 0 ? (char *) 0 : (char const *) 0;
6946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6948 const int *foo = &x[0];
6951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6952 typedef const int *iptr;
6956 { /* AIX XL C 1.02.0.0 rejects this saying
6957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6958 struct s { int j; const int *ap[3]; };
6959 struct s *b; b->j = 5;
6961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6965 return !cs[0] && !zero.x;
6972 if ac_fn_c_try_compile
"$LINENO"; then :
6977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6980 $as_echo "$ac_cv_c_const" >&6; }
6981 if test $ac_cv_c_const = no
; then
6983 $as_echo "#define const /**/" >>confdefs.h
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6988 $as_echo_n "checking for void * support... " >&6; }
6989 if test "${emacs_cv_void_star+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
7003 if ac_fn_c_try_compile
"$LINENO"; then :
7004 emacs_cv_void_star
=yes
7006 emacs_cv_void_star
=no
7008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7011 $as_echo "$emacs_cv_void_star" >&6; }
7012 if test $emacs_cv_void_star = yes; then
7013 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7016 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7021 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7022 if test "${ac_cv_c_bigendian+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7025 ac_cv_c_bigendian
=unknown
7026 # See if we're dealing with a universal compiler.
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #ifndef __APPLE_CC__
7030 not a universal capable compiler
7035 if ac_fn_c_try_compile
"$LINENO"; then :
7037 # Check for potential -arch flags. It is not universal unless
7038 # there are at least two -arch flags with different values.
7041 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7042 if test -n "$ac_prev"; then
7044 i?
86 | x86_64 | ppc | ppc64
)
7045 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7048 ac_cv_c_bigendian
=universal
7054 elif test "x$ac_word" = "x-arch"; then
7059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7060 if test $ac_cv_c_bigendian = unknown
; then
7061 # See if sys/param.h defines the BYTE_ORDER macro.
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #include <sys/types.h>
7065 #include <sys/param.h>
7070 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7071 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7080 if ac_fn_c_try_compile
"$LINENO"; then :
7081 # It does; now see whether it defined to BIG_ENDIAN or not.
7082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #include <sys/types.h>
7085 #include <sys/param.h>
7090 #if BYTE_ORDER != BIG_ENDIAN
7098 if ac_fn_c_try_compile
"$LINENO"; then :
7099 ac_cv_c_bigendian
=yes
7101 ac_cv_c_bigendian
=no
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 if test $ac_cv_c_bigendian = unknown
; then
7108 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7116 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7124 if ac_fn_c_try_compile
"$LINENO"; then :
7125 # It does; now see whether it defined to _BIG_ENDIAN or not.
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7141 if ac_fn_c_try_compile
"$LINENO"; then :
7142 ac_cv_c_bigendian
=yes
7144 ac_cv_c_bigendian
=no
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7150 if test $ac_cv_c_bigendian = unknown
; then
7151 # Compile a test program.
7152 if test "$cross_compiling" = yes; then :
7153 # Try to guess by grepping values from an object file.
7154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 short int ascii_mm[] =
7157 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7158 short int ascii_ii[] =
7159 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7160 int use_ascii (int i) {
7161 return ascii_mm[i] + ascii_ii[i];
7163 short int ebcdic_ii[] =
7164 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7165 short int ebcdic_mm[] =
7166 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7167 int use_ebcdic (int i) {
7168 return ebcdic_mm[i] + ebcdic_ii[i];
7175 return use_ascii (foo) == use_ebcdic (foo);
7180 if ac_fn_c_try_compile
"$LINENO"; then :
7181 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7182 ac_cv_c_bigendian
=yes
7184 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7185 if test "$ac_cv_c_bigendian" = unknown
; then
7186 ac_cv_c_bigendian
=no
7188 # finding both strings is unlikely to happen, but who knows?
7189 ac_cv_c_bigendian
=unknown
7193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 $ac_includes_default
7202 /* Are we little or big endian? From Harbison&Steele. */
7206 char c[sizeof (long int)];
7209 return u.c[sizeof (long int) - 1] == 1;
7215 if ac_fn_c_try_run
"$LINENO"; then :
7216 ac_cv_c_bigendian
=no
7218 ac_cv_c_bigendian
=yes
7220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7227 $as_echo "$ac_cv_c_bigendian" >&6; }
7228 case $ac_cv_c_bigendian in #(
7230 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7236 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7240 as_fn_error $?
"unknown endianness
7241 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7248 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7249 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7250 $as_echo_n "(cached) " >&6
7252 cat >conftest.
make <<\_ACEOF
7255 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7260 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7262 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7266 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7268 $as_echo "yes" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 SET_MAKE
="MAKE=${MAKE-make}"
7280 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7282 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7284 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7285 if test "x$testval" != x
; then
7288 ac_enable_autodepend
=no
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7291 $as_echo "$HAVE_GNU_MAKE" >&6; }
7292 if test $HAVE_GNU_MAKE = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7294 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7295 SAVE_CFLAGS
="$CFLAGS"
7296 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7308 if ac_fn_c_try_compile
"$LINENO"; then :
7311 ac_enable_autodepend
=no
7313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7314 CFLAGS
="$SAVE_CFLAGS"
7315 test -f deps.d || ac_enable_autodepend
=no
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7318 $as_echo "$ac_enable_autodepend" >&6; }
7320 if test $ac_enable_autodepend = yes; then
7321 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7322 ## In parallel builds, another make might create depdir between
7323 ## the first test and mkdir, so stick another test on the end.
7324 ## Or use mkinstalldirs? mkdir -p is not portable.
7325 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7326 deps_frag
=autodeps.mk
7329 deps_frag
=$srcdir/src
/$deps_frag
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7336 $as_echo_n "checking for long file names... " >&6; }
7337 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7340 ac_cv_sys_long_file_names
=yes
7341 # Test for long file names in all the places we know might matter:
7342 # . the current directory, where building will happen
7343 # $prefix/lib where we will be installing things
7344 # $exec_prefix/lib likewise
7345 # $TMPDIR if set, where it might want to write temporary files
7346 # /tmp where it might want to write temporary files
7349 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7350 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7351 # in the usual case where exec_prefix is '${prefix}'.
7353 . |
/* | ?
:[\\/]*) ;; #(
7356 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7357 ac_xdir
=$ac_dir/cf$$
7358 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7359 ac_tf1
=$ac_xdir/conftest9012345
7360 ac_tf2
=$ac_xdir/conftest9012346
7361 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7362 ac_cv_sys_long_file_names
=no
7363 rm -f -r "$ac_xdir" 2>/dev
/null
7364 test $ac_cv_sys_long_file_names = no
&& break
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7368 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7369 if test $ac_cv_sys_long_file_names = yes; then
7371 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7376 #### Choose a window system.
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7379 $as_echo_n "checking for X... " >&6; }
7382 # Check whether --with-x was given.
7383 if test "${with_x+set}" = set; then :
7387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7388 if test "x$with_x" = xno
; then
7389 # The user explicitly disabled X.
7392 case $x_includes,$x_libraries in #(
7393 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
7394 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7397 # One or both of the vars are not set, and there is no cached value.
7398 ac_x_includes
=no ac_x_libraries
=no
7399 rm -f -r conftest.dir
7400 if mkdir conftest.dir
; then
7402 cat >Imakefile
<<'_ACEOF'
7404 @echo incroot='${INCROOT}'
7406 @echo usrlibdir='${USRLIBDIR}'
7408 @echo libdir='${LIBDIR}'
7410 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7412 for ac_var
in incroot usrlibdir libdir
; do
7413 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7415 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7416 for ac_extension
in a so sl dylib la dll
; do
7417 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7418 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7419 ac_im_usrlibdir
=$ac_im_libdir; break
7422 # Screen out bogus values from the imake configuration. They are
7423 # bogus both because they are the default anyway, and because
7424 # using them would break gcc on systems where it needs fixed includes.
7425 case $ac_im_incroot in
7426 /usr
/include
) ac_x_includes
= ;;
7427 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7429 case $ac_im_usrlibdir in
7430 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7431 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7435 rm -f -r conftest.dir
7438 # Standard set of common directories for X headers.
7439 # Check X11 before X11Rn because it is often a symlink to the current release.
7453 /usr/local/X11/include
7454 /usr/local/X11R7/include
7455 /usr/local/X11R6/include
7456 /usr/local/X11R5/include
7457 /usr/local/X11R4/include
7459 /usr/local/include/X11
7460 /usr/local/include/X11R7
7461 /usr/local/include/X11R6
7462 /usr/local/include/X11R5
7463 /usr/local/include/X11R4
7467 /usr/XFree86/include/X11
7471 /usr/unsupported/include
7473 /usr/local/x11r5/include
7474 /usr/lpp/Xamples/include
7476 /usr/openwin/include
7477 /usr/openwin/share/include'
7479 if test "$ac_x_includes" = no
; then
7480 # Guess where to find include files, by looking for Xlib.h.
7481 # First, try using that file with no special directory specified.
7482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <X11/Xlib.h>
7486 if ac_fn_c_try_cpp
"$LINENO"; then :
7487 # We can compile using X headers with no special include directory.
7490 for ac_dir
in $ac_x_header_dirs; do
7491 if test -r "$ac_dir/X11/Xlib.h"; then
7492 ac_x_includes
=$ac_dir
7497 rm -f conftest.err conftest.i conftest.
$ac_ext
7498 fi # $ac_x_includes = no
7500 if test "$ac_x_libraries" = no
; then
7501 # Check for the libraries.
7502 # See if we find them without any special options.
7503 # Don't add to $LIBS permanently.
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <X11/Xlib.h>
7517 if ac_fn_c_try_link
"$LINENO"; then :
7519 # We can link X programs with no special library path.
7523 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7525 # Don't even attempt the hair of trying to link an X program!
7526 for ac_extension
in a so sl dylib la dll
; do
7527 if test -r "$ac_dir/libX11.$ac_extension"; then
7528 ac_x_libraries
=$ac_dir
7534 rm -f core conftest.err conftest.
$ac_objext \
7535 conftest
$ac_exeext conftest.
$ac_ext
7536 fi # $ac_x_libraries = no
7538 case $ac_x_includes,$ac_x_libraries in #(
7540 # Didn't find X, or a directory has "'" in its name.
7541 ac_cv_have_x
="have_x=no";; #(
7543 # Record where we found X for the cache.
7544 ac_cv_have_x
="have_x=yes\
7545 ac_x_includes='$ac_x_includes'\
7546 ac_x_libraries='$ac_x_libraries'"
7552 eval "$ac_cv_have_x"
7555 if test "$have_x" != yes; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7557 $as_echo "$have_x" >&6; }
7560 # If each of the values was on the command line, it overrides each guess.
7561 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7562 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7563 # Update the cache value to reflect the command line values.
7564 ac_cv_have_x
="have_x=yes\
7565 ac_x_includes='$x_includes'\
7566 ac_x_libraries='$x_libraries'"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7568 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7571 if test "$no_x" = yes; then
7577 ## Workaround for bug in autoconf <= 2.62.
7578 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7579 ## No need to do anything special for these standard directories.
7580 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7582 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7586 LD_SWITCH_X_SITE_AUX
=
7587 LD_SWITCH_X_SITE_AUX_RPATH
=
7588 if test "${x_libraries}" != NONE
; then
7589 if test -n "${x_libraries}"; then
7590 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7591 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7592 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7594 x_default_search_path
=""
7595 x_search_path
=${x_libraries}
7596 if test -z "${x_search_path}"; then
7597 x_search_path
=/usr
/lib
7599 for x_library
in `echo ${x_search_path}: | \
7600 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7602 ${x_library}/X11/%L/%T/%N%C%S:\
7603 ${x_library}/X11/%l/%T/%N%C%S:\
7604 ${x_library}/X11/%T/%N%C%S:\
7605 ${x_library}/X11/%L/%T/%N%S:\
7606 ${x_library}/X11/%l/%T/%N%S:\
7607 ${x_library}/X11/%T/%N%S"
7608 if test x
"${x_default_search_path}" = x
; then
7609 x_default_search_path
=${x_search_path}
7611 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7618 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7619 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7622 if test x
"${x_includes}" = x
; then
7623 bitmapdir
=/usr
/include
/X11
/bitmaps
7625 # accumulate include directories that have X11 bitmap subdirectories
7627 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7628 if test -d "${bmd}/X11/bitmaps"; then
7629 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7631 if test -d "${bmd}/bitmaps"; then
7632 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7635 if test ${bmd_acc} != "dummyval"; then
7636 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7643 tmp_CPPFLAGS
="$CPPFLAGS"
7644 tmp_CFLAGS
="$CFLAGS"
7645 CPPFLAGS
="$CPPFLAGS -x objective-c"
7646 CFLAGS
="$CFLAGS -x objective-c"
7647 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7648 if test "${with_ns}" != no
; then
7649 if test "${opsys}" = darwin
; then
7651 ns_appdir
=`pwd`/nextstep
/Emacs.app
7652 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
7653 ns_appresdir
=${ns_appdir}/Contents
/Resources
7654 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7655 elif test -f $GNUSTEP_CONFIG_FILE; then
7657 ns_appdir
=`pwd`/nextstep
/Emacs.app
7658 ns_appbindir
=${ns_appdir}/
7659 ns_appresdir
=${ns_appdir}/Resources
7660 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7661 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7662 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7663 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7664 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7665 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7666 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7667 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7668 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7669 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7670 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7671 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7676 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7677 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7680 as_fn_error $?
"\`--with-ns' was specified, but the include
7681 files are missing or cannot be compiled." "$LINENO" 5
7685 NS_HAVE_NSINTEGER
=yes
7686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <Foundation/NSObjCRuntime.h>
7697 if ac_fn_c_try_compile
"$LINENO"; then :
7698 ns_have_nsinteger
=yes
7700 ns_have_nsinteger
=no
7702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7703 if test $ns_have_nsinteger = no
; then
7704 NS_HAVE_NSINTEGER
=no
7712 if test "${HAVE_NS}" = yes; then
7713 window_system
=nextstep
7715 # set up packaging dirs
7716 exec_prefix
=${ns_appbindir}
7717 libexecdir
=${ns_appbindir}/libexec
7718 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7719 prefix
=${ns_appresdir}
7721 ns_frag
=$srcdir/src
/ns.mk
7722 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7723 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7725 CFLAGS
="$tmp_CFLAGS"
7726 CPPFLAGS
="$tmp_CPPFLAGS"
7732 case "${window_system}" in
7736 case "${with_x_toolkit}" in
7737 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7738 motif
) USE_X_TOOLKIT
=MOTIF
;;
7740 USE_X_TOOLKIT
=none
;;
7741 gtk3
) with_gtk3
=yes
7742 USE_X_TOOLKIT
=none
;;
7743 no
) USE_X_TOOLKIT
=none
;;
7744 * ) USE_X_TOOLKIT
=maybe
;;
7754 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7755 # Extract the first word of "X", so it can be a program name with args.
7756 set dummy X
; ac_word
=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$HAVE_XSERVER"; then
7763 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir
=.
7770 for ac_exec_ext
in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_HAVE_XSERVER
="true"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7783 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7784 if test -n "$HAVE_XSERVER"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7786 $as_echo "$HAVE_XSERVER" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 if test "$HAVE_XSERVER" = true ||
7794 test -n "$DISPLAY" ||
7795 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7796 as_fn_error $?
"You seem to be running X, but no X development libraries
7797 were found. You should install the relevant development files for X
7798 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7799 sure you have development files for image handling, i.e.
7800 tiff, gif, jpeg, png and xpm.
7801 If you are sure you want Emacs compiled without X window support, pass
7803 to configure." "$LINENO" 5
7807 ### If we're using X11, we should use the X menu package.
7810 yes ) HAVE_MENUS
=yes ;;
7813 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7814 # Assume not, until told otherwise.
7817 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7818 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7824 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7825 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7832 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7833 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 extern void (* __after_morecore_hook)();
7842 __after_morecore_hook = 0
7847 if ac_fn_c_try_link
"$LINENO"; then :
7848 emacs_cv_var___after_morecore_hook
=yes
7850 emacs_cv_var___after_morecore_hook
=no
7852 rm -f core conftest.err conftest.
$ac_objext \
7853 conftest
$ac_exeext conftest.
$ac_ext
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7856 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7857 if test $emacs_cv_var___after_morecore_hook = no
; then
7864 ## darwin ld insists on the use of malloc routines in the System framework.
7865 darwin|sol2-10
) system_malloc
=yes ;;
7868 if test "${system_malloc}" = "yes"; then
7870 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7874 (The GNU allocators don't work with this system configuration.)"
7878 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7879 VMLIMIT_OBJ
=vm-limit.o
7884 if test "$doug_lea_malloc" = "yes" ; then
7885 if test "$GNU_MALLOC" = yes ; then
7887 (Using Doug Lea's new malloc from the GNU C Library.)"
7890 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7893 ## Use mmap directly for allocating larger buffers.
7894 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7895 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7896 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7898 gnu
*) REL_ALLOC
=no
;;
7902 if test x
"${REL_ALLOC}" = x
; then
7903 REL_ALLOC
=${GNU_MALLOC}
7906 use_mmap_for_buffers
=no
7908 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7914 for ac_header
in $ac_header_list
7916 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7919 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7920 cat >>confdefs.h
<<_ACEOF
7921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 for ac_func
in getpagesize
7937 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7938 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7939 cat >>confdefs.h
<<_ACEOF
7940 #define HAVE_GETPAGESIZE 1
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7947 $as_echo_n "checking for working mmap... " >&6; }
7948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7951 if test "$cross_compiling" = yes; then :
7952 ac_cv_func_mmap_fixed_mapped
=no
7954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 /* malloc might have been renamed as rpl_malloc. */
7960 /* Thanks to Mike Haertel and Jim Avera for this test.
7961 Here is a matrix of mmap possibilities:
7962 mmap private not fixed
7963 mmap private fixed at somewhere currently unmapped
7964 mmap private fixed at somewhere already mapped
7965 mmap shared not fixed
7966 mmap shared fixed at somewhere currently unmapped
7967 mmap shared fixed at somewhere already mapped
7968 For private mappings, we should verify that changes cannot be read()
7969 back from the file, nor mmap's back from the file at a different
7970 address. (There have been systems where private was not correctly
7971 implemented like the infamous i386 svr4.0, and systems where the
7972 VM page cache was not coherent with the file system buffer cache
7973 like early versions of FreeBSD and possibly contemporary NetBSD.)
7974 For shared mappings, we should conversely verify that changes get
7975 propagated back to all the places they're supposed to be.
7977 Grep wants private fixed already mapped.
7978 The main things grep needs to know about mmap are:
7979 * does it exist and is it safe to write into the mmap'd area
7980 * how to use it (BSD variants) */
7983 #include <sys/mman.h>
7985 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7989 /* This mess was copied from the GNU getpagesize.h. */
7990 #ifndef HAVE_GETPAGESIZE
7991 # ifdef _SC_PAGESIZE
7992 # define getpagesize() sysconf(_SC_PAGESIZE)
7993 # else /* no _SC_PAGESIZE */
7994 # ifdef HAVE_SYS_PARAM_H
7995 # include <sys/param.h>
7996 # ifdef EXEC_PAGESIZE
7997 # define getpagesize() EXEC_PAGESIZE
7998 # else /* no EXEC_PAGESIZE */
8000 # define getpagesize() NBPG * CLSIZE
8003 # endif /* no CLSIZE */
8004 # else /* no NBPG */
8006 # define getpagesize() NBPC
8007 # else /* no NBPC */
8009 # define getpagesize() PAGESIZE
8010 # endif /* PAGESIZE */
8011 # endif /* no NBPC */
8012 # endif /* no NBPG */
8013 # endif /* no EXEC_PAGESIZE */
8014 # else /* no HAVE_SYS_PARAM_H */
8015 # define getpagesize() 8192 /* punt totally */
8016 # endif /* no HAVE_SYS_PARAM_H */
8017 # endif /* no _SC_PAGESIZE */
8019 #endif /* no HAVE_GETPAGESIZE */
8024 char *data, *data2, *data3;
8029 pagesize = getpagesize ();
8031 /* First, make a file with some known garbage in it. */
8032 data = (char *) malloc (pagesize);
8035 for (i = 0; i < pagesize; ++i)
8036 *(data + i) = rand ();
8038 fd = creat ("conftest.mmap", 0600);
8041 if (write (fd, data, pagesize) != pagesize)
8045 /* Next, check that the tail of a page is zero-filled. File must have
8046 non-zero length, otherwise we risk SIGBUS for entire page. */
8047 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8051 if (write (fd2, cdata2, 1) != 1)
8053 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8054 if (data2 == MAP_FAILED)
8056 for (i = 0; i < pagesize; ++i)
8060 if (munmap (data2, pagesize))
8063 /* Next, try to mmap the file at a fixed address which already has
8064 something else allocated at it. If we can, also make sure that
8065 we see the same garbage. */
8066 fd = open ("conftest.mmap", O_RDWR);
8069 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8070 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8072 for (i = 0; i < pagesize; ++i)
8073 if (*(data + i) != *(data2 + i))
8076 /* Finally, make sure that changes to the mapped area do not
8077 percolate back to the file as seen by read(). (This is a bug on
8078 some variants of i386 svr4.0.) */
8079 for (i = 0; i < pagesize; ++i)
8080 *(data2 + i) = *(data2 + i) + 1;
8081 data3 = (char *) malloc (pagesize);
8084 if (read (fd, data3, pagesize) != pagesize)
8086 for (i = 0; i < pagesize; ++i)
8087 if (*(data + i) != *(data3 + i))
8093 if ac_fn_c_try_run
"$LINENO"; then :
8094 ac_cv_func_mmap_fixed_mapped
=yes
8096 ac_cv_func_mmap_fixed_mapped
=no
8098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8104 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8105 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8107 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8110 rm -f conftest.mmap conftest.txt
8112 if test $use_mmap_for_buffers = yes; then
8114 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8119 LIBS
="$LIBS_SYSTEM $LIBS"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8122 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8123 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8126 ac_check_lib_save_LIBS
=$LIBS
8128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8131 /* Override any GCC internal prototype to avoid an error.
8132 Use char because int might match the return type of a GCC
8133 builtin and then its argument prototype would still apply. */
8141 return dnet_ntoa ();
8146 if ac_fn_c_try_link
"$LINENO"; then :
8147 ac_cv_lib_dnet_dnet_ntoa
=yes
8149 ac_cv_lib_dnet_dnet_ntoa
=no
8151 rm -f core conftest.err conftest.
$ac_objext \
8152 conftest
$ac_exeext conftest.
$ac_ext
8153 LIBS
=$ac_check_lib_save_LIBS
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8156 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8157 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8158 cat >>confdefs.h
<<_ACEOF
8159 #define HAVE_LIBDNET 1
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8168 $as_echo_n "checking for main in -lXbsd... " >&6; }
8169 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 ac_check_lib_save_LIBS
=$LIBS
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8186 if ac_fn_c_try_link
"$LINENO"; then :
8187 ac_cv_lib_Xbsd_main
=yes
8189 ac_cv_lib_Xbsd_main
=no
8191 rm -f core conftest.err conftest.
$ac_objext \
8192 conftest
$ac_exeext conftest.
$ac_ext
8193 LIBS
=$ac_check_lib_save_LIBS
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8196 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8197 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8198 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8203 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8204 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 ac_check_lib_save_LIBS
=$LIBS
8208 LIBS
="-lpthreads $LIBS"
8209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8212 /* Override any GCC internal prototype to avoid an error.
8213 Use char because int might match the return type of a GCC
8214 builtin and then its argument prototype would still apply. */
8227 if ac_fn_c_try_link
"$LINENO"; then :
8228 ac_cv_lib_pthreads_cma_open
=yes
8230 ac_cv_lib_pthreads_cma_open
=no
8232 rm -f core conftest.err conftest.
$ac_objext \
8233 conftest
$ac_exeext conftest.
$ac_ext
8234 LIBS
=$ac_check_lib_save_LIBS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8237 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8238 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8239 cat >>confdefs.h
<<_ACEOF
8240 #define HAVE_LIBPTHREADS 1
8243 LIBS
="-lpthreads $LIBS"
8248 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8249 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8250 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8251 ## added to LIBS in configure would never contain the pthreads part,
8252 ## but the value used in Makefiles might. FIXME?
8254 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8255 ## be harmless on older versions of X where it happens to exist.
8256 test "$opsys" = "aix4-2" && \
8257 test $ac_cv_lib_pthreads_cma_open = yes && \
8258 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8264 $as_echo_n "checking for -bbigtoc option... " >&6; }
8265 if test "${gdb_cv_bigtoc+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8270 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8271 *) gdb_cv_bigtoc
=-bbigtoc ;;
8274 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8286 if ac_fn_c_try_link
"$LINENO"; then :
8291 rm -f core conftest.err conftest.
$ac_objext \
8292 conftest
$ac_exeext conftest.
$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8296 $as_echo "$gdb_cv_bigtoc" >&6; }
8300 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8301 # used for the tests that follow. We set them back to REAL_CFLAGS and
8302 # REAL_CPPFLAGS later on.
8304 REAL_CFLAGS
="$CFLAGS"
8305 REAL_CPPFLAGS
="$CPPFLAGS"
8307 if test "${HAVE_X11}" = "yes"; then
8308 DEFS
="$C_SWITCH_X_SITE $DEFS"
8309 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8311 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8312 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8314 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8315 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8316 # but it's more convenient here to set LD_RUN_PATH
8317 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8318 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8319 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8323 if test "${opsys}" = "gnu-linux"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8325 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8332 XOpenDisplay ("foo");
8337 if ac_fn_c_try_link
"$LINENO"; then :
8338 xlinux_first_failure
=no
8340 xlinux_first_failure
=yes
8342 rm -f core conftest.err conftest.
$ac_objext \
8343 conftest
$ac_exeext conftest.
$ac_ext
8344 if test "${xlinux_first_failure}" = "yes"; then
8345 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8346 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8347 OLD_CPPFLAGS
="$CPPFLAGS"
8349 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8350 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8351 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8352 LIBS
="$LIBS -b i486-linuxaout"
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8359 XOpenDisplay ("foo");
8364 if ac_fn_c_try_link
"$LINENO"; then :
8365 xlinux_second_failure
=no
8367 xlinux_second_failure
=yes
8369 rm -f core conftest.err conftest.
$ac_objext \
8370 conftest
$ac_exeext conftest.
$ac_ext
8371 if test "${xlinux_second_failure}" = "yes"; then
8372 # If we get the same failure with -b, there is no use adding -b.
8373 # So take it out. This plays safe.
8374 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8375 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8376 CPPFLAGS
="$OLD_CPPFLAGS"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8382 $as_echo "yes" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8390 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8391 # header files included from there.
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8393 $as_echo_n "checking for Xkb... " >&6; }
8394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <X11/Xlib.h>
8397 #include <X11/XKBlib.h>
8401 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8406 if ac_fn_c_try_link
"$LINENO"; then :
8411 rm -f core conftest.err conftest.
$ac_objext \
8412 conftest
$ac_exeext conftest.
$ac_ext
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8414 $as_echo "$emacs_xkb" >&6; }
8415 if test $emacs_xkb = yes; then
8417 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8421 for ac_func
in XrmSetDatabase XScreenResourceString \
8422 XScreenNumberOfScreen XSetWMProtocols
8424 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8425 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8426 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8427 cat >>confdefs.h
<<_ACEOF
8428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8436 if test "${window_system}" = "x11"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8438 $as_echo_n "checking X11 version 6... " >&6; }
8439 if test "${emacs_cv_x11_version_6+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <X11/Xlib.h>
8448 #if XlibSpecificationRelease < 6
8456 if ac_fn_c_try_link
"$LINENO"; then :
8457 emacs_cv_x11_version_6
=yes
8459 emacs_cv_x11_version_6
=no
8461 rm -f core conftest.err conftest.
$ac_objext \
8462 conftest
$ac_exeext conftest.
$ac_ext
8465 if test $emacs_cv_x11_version_6 = yes; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8467 $as_echo "6 or newer" >&6; }
8469 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8472 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8474 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8479 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8485 $as_echo "before 6" >&6; }
8490 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8492 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8493 if test "${with_rsvg}" != "no"; then
8494 RSVG_REQUIRED
=2.11.0
8495 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8500 # Extract the first word of "pkg-config", so it can be a program name with args.
8501 set dummy pkg-config
; ac_word
=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8509 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir
=.
8517 for ac_exec_ext
in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8531 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8532 if test -n "$PKG_CONFIG"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8534 $as_echo "$PKG_CONFIG" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8542 if test "$PKG_CONFIG" = "no" ; then
8545 PKG_CONFIG_MIN_VERSION
=0.9.0
8546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8548 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8550 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552 $as_echo "yes" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8556 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8557 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8559 $as_echo "$RSVG_CFLAGS" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8562 $as_echo_n "checking RSVG_LIBS... " >&6; }
8563 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8565 $as_echo "$RSVG_LIBS" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8571 ## If we have a custom action on failure, don't print errors, but
8572 ## do set a variable so people can do so.
8573 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8580 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8581 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8585 if test $succeeded = yes; then
8594 if test $HAVE_RSVG = yes; then
8596 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8598 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8599 LIBS
="$RSVG_LIBS $LIBS"
8605 if test "${HAVE_X11}" = "yes"; then
8606 if test "${with_imagemagick}" != "no"; then
8607 IMAGEMAGICK_MODULE
="Wand"
8611 # Extract the first word of "pkg-config", so it can be a program name with args.
8612 set dummy pkg-config
; ac_word
=$2
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614 $as_echo_n "checking for $ac_word... " >&6; }
8615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8620 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8627 test -z "$as_dir" && as_dir
=.
8628 for ac_exec_ext
in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8642 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8643 if test -n "$PKG_CONFIG"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8645 $as_echo "$PKG_CONFIG" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8653 if test "$PKG_CONFIG" = "no" ; then
8656 PKG_CONFIG_MIN_VERSION
=0.9.0
8657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8659 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8661 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8663 $as_echo "yes" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8667 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8668 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8670 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8673 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8674 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8676 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 IMAGEMAGICK_CFLAGS
=""
8682 ## If we have a custom action on failure, don't print errors, but
8683 ## do set a variable so people can do so.
8684 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8696 if test $succeeded = yes; then
8697 HAVE_IMAGEMAGICK
=yes
8705 if test $HAVE_IMAGEMAGICK = yes; then
8707 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8709 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8710 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8711 for ac_func
in MagickExportImagePixels
8713 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8714 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
8715 cat >>confdefs.h
<<_ACEOF
8716 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8728 if test "${with_gtk3}" = "yes"; then
8731 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8736 # Extract the first word of "pkg-config", so it can be a program name with args.
8737 set dummy pkg-config
; ac_word
=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8745 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8752 test -z "$as_dir" && as_dir
=.
8753 for ac_exec_ext
in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8767 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8768 if test -n "$PKG_CONFIG"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8770 $as_echo "$PKG_CONFIG" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test "$PKG_CONFIG" = "no" ; then
8781 PKG_CONFIG_MIN_VERSION
=0.9.0
8782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8784 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8786 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8792 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8793 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8795 $as_echo "$GTK_CFLAGS" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8798 $as_echo_n "checking GTK_LIBS... " >&6; }
8799 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8801 $as_echo "$GTK_LIBS" >&6; }
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8807 ## If we have a custom action on failure, don't print errors, but
8808 ## do set a variable so people can do so.
8809 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8821 if test $succeeded = yes; then
8827 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8828 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8832 if test "$pkg_check_gtk" != "yes"; then
8834 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8837 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8842 # Extract the first word of "pkg-config", so it can be a program name with args.
8843 set dummy pkg-config
; ac_word
=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8851 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8858 test -z "$as_dir" && as_dir
=.
8859 for ac_exec_ext
in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8873 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8874 if test -n "$PKG_CONFIG"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8876 $as_echo "$PKG_CONFIG" >&6; }
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8884 if test "$PKG_CONFIG" = "no" ; then
8887 PKG_CONFIG_MIN_VERSION
=0.9.0
8888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8890 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8892 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8894 $as_echo "yes" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8898 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8899 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8901 $as_echo "$GTK_CFLAGS" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8904 $as_echo_n "checking GTK_LIBS... " >&6; }
8905 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8907 $as_echo "$GTK_LIBS" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8913 ## If we have a custom action on failure, don't print errors, but
8914 ## do set a variable so people can do so.
8915 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8927 if test $succeeded = yes; then
8933 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8934 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
8940 if test x
"$pkg_check_gtk" = xyes
; then
8944 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8945 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8946 LIBS
="$GTK_LIBS $LIBS"
8948 for ac_func
in gtk_main
8950 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8951 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_GTK_MAIN 1
8959 if test "${GTK_COMPILES}" != "yes"; then
8960 if test "$USE_X_TOOLKIT" != "maybe"; then
8961 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8966 $as_echo "#define USE_GTK 1" >>confdefs.h
8970 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8974 closing open displays. This is no problem if you just use
8975 one display, but if you use more than one and close one of them
8976 Emacs may crash." >&5
8977 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8978 closing open displays. This is no problem if you just use
8979 one display, but if you use more than one and close one of them
8980 Emacs may crash." >&2;}
8989 if test "${HAVE_GTK}" = "yes"; then
8991 if test "$with_toolkit_scroll_bars" != no
; then
8992 with_toolkit_scroll_bars
=yes
8995 HAVE_GTK_FILE_SELECTION
=no
8996 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8997 #include <gtk/gtk.h>
8999 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9000 HAVE_GTK_FILE_SELECTION
=yes
9002 HAVE_GTK_FILE_SELECTION
=no
9005 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9006 for ac_func
in gtk_file_selection_new
9008 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9009 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9010 cat >>confdefs.h
<<_ACEOF
9011 #define HAVE_GTK_FILE_SELECTION_NEW 1
9019 HAVE_GTK_AND_PTHREAD
=no
9020 for ac_header
in pthread.h
9022 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9023 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9024 cat >>confdefs.h
<<_ACEOF
9025 #define HAVE_PTHREAD_H 1
9032 if test "$ac_cv_header_pthread_h"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9034 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9035 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 ac_check_lib_save_LIBS
=$LIBS
9039 LIBS
="-lpthread $LIBS"
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9043 /* Override any GCC internal prototype to avoid an error.
9044 Use char because int might match the return type of a GCC
9045 builtin and then its argument prototype would still apply. */
9049 char pthread_self ();
9053 return pthread_self ();
9058 if ac_fn_c_try_link
"$LINENO"; then :
9059 ac_cv_lib_pthread_pthread_self
=yes
9061 ac_cv_lib_pthread_pthread_self
=no
9063 rm -f core conftest.err conftest.
$ac_objext \
9064 conftest
$ac_exeext conftest.
$ac_ext
9065 LIBS
=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9068 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9069 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9070 HAVE_GTK_AND_PTHREAD
=yes
9074 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9075 case "${canonical}" in
9077 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9080 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9084 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9085 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9086 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9087 gtk_orientable_set_orientation
9089 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9091 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9092 cat >>confdefs.h
<<_ACEOF
9093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 if test "${with_dbus}" = "yes"; then
9108 # Extract the first word of "pkg-config", so it can be a program name with args.
9109 set dummy pkg-config
; ac_word
=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9117 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir
=.
9125 for ac_exec_ext
in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9139 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9140 if test -n "$PKG_CONFIG"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9142 $as_echo "$PKG_CONFIG" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test "$PKG_CONFIG" = "no" ; then
9153 PKG_CONFIG_MIN_VERSION
=0.9.0
9154 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9156 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9158 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 $as_echo "yes" >&6; }
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9164 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9165 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9167 $as_echo "$DBUS_CFLAGS" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9170 $as_echo_n "checking DBUS_LIBS... " >&6; }
9171 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9173 $as_echo "$DBUS_LIBS" >&6; }
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9179 ## If we have a custom action on failure, don't print errors, but
9180 ## do set a variable so people can do so.
9181 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9193 if test $succeeded = yes; then
9199 if test "$HAVE_DBUS" = yes; then
9200 LIBS
="$LIBS $DBUS_LIBS"
9202 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9204 for ac_func
in dbus_watch_get_unix_fd
9206 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9207 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9208 cat >>confdefs.h
<<_ACEOF
9209 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9221 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9225 # Extract the first word of "pkg-config", so it can be a program name with args.
9226 set dummy pkg-config
; ac_word
=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9234 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9241 test -z "$as_dir" && as_dir
=.
9242 for ac_exec_ext
in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9256 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9257 if test -n "$PKG_CONFIG"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9259 $as_echo "$PKG_CONFIG" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9267 if test "$PKG_CONFIG" = "no" ; then
9270 PKG_CONFIG_MIN_VERSION
=0.9.0
9271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9273 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9275 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9277 $as_echo "yes" >&6; }
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9281 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9282 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9284 $as_echo "$GCONF_CFLAGS" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9287 $as_echo_n "checking GCONF_LIBS... " >&6; }
9288 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9290 $as_echo "$GCONF_LIBS" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9296 ## If we have a custom action on failure, don't print errors, but
9297 ## do set a variable so people can do so.
9298 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9310 if test $succeeded = yes; then
9316 if test "$HAVE_GCONF" = yes; then
9318 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9320 for ac_func
in g_type_init
9322 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9323 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
9324 cat >>confdefs.h
<<_ACEOF
9325 #define HAVE_G_TYPE_INIT 1
9336 if test "${with_selinux}" = "yes"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9338 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9339 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9342 ac_check_lib_save_LIBS
=$LIBS
9343 LIBS
="-lselinux $LIBS"
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9353 char lgetfilecon ();
9357 return lgetfilecon ();
9362 if ac_fn_c_try_link
"$LINENO"; then :
9363 ac_cv_lib_selinux_lgetfilecon
=yes
9365 ac_cv_lib_selinux_lgetfilecon
=no
9367 rm -f core conftest.err conftest.
$ac_objext \
9368 conftest
$ac_exeext conftest.
$ac_ext
9369 LIBS
=$ac_check_lib_save_LIBS
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9372 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9373 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9379 if test "$HAVE_LIBSELINUX" = yes; then
9381 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9383 LIBSELINUX_LIBS
=-lselinux
9389 if test "${with_gnutls}" = "yes" ; then
9393 # Extract the first word of "pkg-config", so it can be a program name with args.
9394 set dummy pkg-config
; ac_word
=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9402 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9409 test -z "$as_dir" && as_dir
=.
9410 for ac_exec_ext
in '' $ac_executable_extensions; do
9411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9412 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9424 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9425 if test -n "$PKG_CONFIG"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9427 $as_echo "$PKG_CONFIG" >&6; }
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9435 if test "$PKG_CONFIG" = "no" ; then
9438 PKG_CONFIG_MIN_VERSION
=0.9.0
9439 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9441 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9443 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9445 $as_echo "yes" >&6; }
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9449 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9450 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9452 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9455 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9456 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9458 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9464 ## If we have a custom action on failure, don't print errors, but
9465 ## do set a variable so people can do so.
9466 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9473 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9474 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9478 if test $succeeded = yes; then
9484 if test "${HAVE_GNUTLS}" = "yes"; then
9486 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9495 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9496 if test "$with_xaw3d" != no
; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9498 $as_echo_n "checking for xaw3d... " >&6; }
9499 if test "${emacs_cv_xaw3d+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 #include <X11/Intrinsic.h>
9506 #include <X11/Xaw3d/Simple.h>
9515 if ac_fn_c_try_link
"$LINENO"; then :
9520 rm -f core conftest.err conftest.
$ac_objext \
9521 conftest
$ac_exeext conftest.
$ac_ext
9527 if test $emacs_cv_xaw3d = yes; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9529 $as_echo "yes; using Lucid toolkit" >&6; }
9534 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9540 $as_echo_n "checking for libXaw... " >&6; }
9541 if test "${emacs_cv_xaw+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9547 #include <X11/Intrinsic.h>
9548 #include <X11/Xaw/Simple.h>
9557 if ac_fn_c_try_link
"$LINENO"; then :
9562 rm -f core conftest.err conftest.
$ac_objext \
9563 conftest
$ac_exeext conftest.
$ac_ext
9566 if test $emacs_cv_xaw = yes; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9568 $as_echo "yes; using Lucid toolkit" >&6; }
9571 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9572 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9575 $as_echo "no; do not use toolkit by default" >&6; }
9581 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9584 if test "${USE_X_TOOLKIT}" != "none"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9586 $as_echo_n "checking X11 toolkit version... " >&6; }
9587 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 #include <X11/Intrinsic.h>
9596 #if XtSpecificationRelease < 6
9604 if ac_fn_c_try_link
"$LINENO"; then :
9605 emacs_cv_x11_toolkit_version_6
=yes
9607 emacs_cv_x11_toolkit_version_6
=no
9609 rm -f core conftest.err conftest.
$ac_objext \
9610 conftest
$ac_exeext conftest.
$ac_ext
9613 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9616 $as_echo "6 or newer" >&6; }
9618 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9620 LIBXTR6
="-lSM -lICE"
9622 ## Use libw.a along with X11R6 Xt.
9623 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9627 $as_echo "before 6" >&6; }
9631 if test x
$HAVE_X11XTR6 = xyes
; then
9632 LIBS
="-lXt -lSM -lICE $LIBS"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9637 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9638 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9641 ac_check_lib_save_LIBS
=$LIBS
9643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9652 char XmuConvertStandardSelection ();
9656 return XmuConvertStandardSelection ();
9661 if ac_fn_c_try_link
"$LINENO"; then :
9662 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9664 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9666 rm -f core conftest.err conftest.
$ac_objext \
9667 conftest
$ac_exeext conftest.
$ac_ext
9668 LIBS
=$ac_check_lib_save_LIBS
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9671 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9672 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9673 cat >>confdefs.h
<<_ACEOF
9674 #define HAVE_LIBXMU 1
9681 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9687 ## These systems don't supply Xmu.
9689 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9694 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9695 if test "${HAVE_X11}" = "yes"; then
9696 if test "${USE_X_TOOLKIT}" != "none"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9698 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9699 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9702 ac_check_lib_save_LIBS
=$LIBS
9704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9713 char XShapeQueryExtension ();
9717 return XShapeQueryExtension ();
9722 if ac_fn_c_try_link
"$LINENO"; then :
9723 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9725 ac_cv_lib_Xext_XShapeQueryExtension
=no
9727 rm -f core conftest.err conftest.
$ac_objext \
9728 conftest
$ac_exeext conftest.
$ac_ext
9729 LIBS
=$ac_check_lib_save_LIBS
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9732 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9733 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9734 cat >>confdefs.h
<<_ACEOF
9735 #define HAVE_LIBXEXT 1
9746 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9748 $as_echo_n "checking for Motif version 2.1... " >&6; }
9749 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9758 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9761 Motif version prior to 2.1.
9767 if ac_fn_c_try_compile
"$LINENO"; then :
9768 emacs_cv_motif_version_2_1
=yes
9770 emacs_cv_motif_version_2_1
=no
9772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9775 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9776 if test $emacs_cv_motif_version_2_1 = yes; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9778 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9779 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9782 ac_check_lib_save_LIBS
=$LIBS
9784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9793 char XpCreateContext ();
9797 return XpCreateContext ();
9802 if ac_fn_c_try_link
"$LINENO"; then :
9803 ac_cv_lib_Xp_XpCreateContext
=yes
9805 ac_cv_lib_Xp_XpCreateContext
=no
9807 rm -f core conftest.err conftest.
$ac_objext \
9808 conftest
$ac_exeext conftest.
$ac_ext
9809 LIBS
=$ac_check_lib_save_LIBS
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9812 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9813 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9819 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9820 if test "${emacs_cv_lesstif+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9823 # We put this in CFLAGS temporarily to precede other -I options
9824 # that might be in CFLAGS temporarily.
9825 # We put this in CPPFLAGS where it precedes the other -I options.
9826 OLD_CPPFLAGS
=$CPPFLAGS
9828 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9829 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9841 if ac_fn_c_try_compile
"$LINENO"; then :
9842 emacs_cv_lesstif
=yes
9846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9849 $as_echo "$emacs_cv_lesstif" >&6; }
9850 if test $emacs_cv_lesstif = yes; then
9851 # Make sure this -I option remains in CPPFLAGS after it is set
9852 # back to REAL_CPPFLAGS.
9853 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9854 # have those other -I options anyway. Ultimately, having this
9855 # directory ultimately in CPPFLAGS will be enough.
9856 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9857 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9860 CPPFLAGS
=$OLD_CPPFLAGS
9866 USE_TOOLKIT_SCROLL_BARS
=no
9867 if test "${with_toolkit_scroll_bars}" != "no"; then
9868 if test "${USE_X_TOOLKIT}" != "none"; then
9869 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9870 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9873 USE_TOOLKIT_SCROLL_BARS
=yes
9874 elif test "${HAVE_XAW3D}" = "yes"; then
9875 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9877 USE_TOOLKIT_SCROLL_BARS
=yes
9879 elif test "${HAVE_GTK}" = "yes"; then
9880 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9882 USE_TOOLKIT_SCROLL_BARS
=yes
9883 elif test "${HAVE_NS}" = "yes"; then
9884 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9886 USE_TOOLKIT_SCROLL_BARS
=yes
9890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9893 #include <X11/Xlib.h>
9894 #include <X11/Xresource.h>
9903 if ac_fn_c_try_compile
"$LINENO"; then :
9906 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9914 if test "${with_xim}" != "no"; then
9916 $as_echo "#define USE_XIM 1" >>confdefs.h
9921 if test "${HAVE_XIM}" != "no"; then
9923 if test "$GCC" = yes; then
9924 CFLAGS
="$CFLAGS --pedantic-errors"
9926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9929 #include <X11/Xlib.h>
9930 #include <X11/Xresource.h>
9939 XPointer *client_data;
9941 /* If we're not using GCC, it's probably not XFree86, and this is
9942 probably right, but we can't use something like --pedantic-errors. */
9943 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9944 char*, XIMProc, XPointer*);
9946 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9952 if ac_fn_c_try_compile
"$LINENO"; then :
9953 emacs_cv_arg6_star
=yes
9955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9956 if test "$emacs_cv_arg6_star" = yes; then
9957 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9960 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9966 ### Start of font-backend (under any platform) section.
9967 # (nothing here yet -- this is a placeholder)
9968 ### End of font-backend (under any platform) section.
9970 ### Start of font-backend (under X11) section.
9971 if test "${HAVE_X11}" = "yes"; then
9975 # Extract the first word of "pkg-config", so it can be a program name with args.
9976 set dummy pkg-config
; ac_word
=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9984 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9991 test -z "$as_dir" && as_dir
=.
9992 for ac_exec_ext
in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10006 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10007 if test -n "$PKG_CONFIG"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10009 $as_echo "$PKG_CONFIG" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10017 if test "$PKG_CONFIG" = "no" ; then
10020 PKG_CONFIG_MIN_VERSION
=0.9.0
10021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10023 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10025 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027 $as_echo "yes" >&6; }
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10031 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10032 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10034 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10037 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10038 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10040 $as_echo "$FONTCONFIG_LIBS" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 FONTCONFIG_CFLAGS
=""
10046 ## If we have a custom action on failure, don't print errors, but
10047 ## do set a variable so people can do so.
10048 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10060 if test $succeeded = yes; then
10067 ## Use -lXft if available, unless `--with-xft=no'.
10069 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10072 if test "x${with_xft}" != "xno"; then
10077 # Extract the first word of "pkg-config", so it can be a program name with args.
10078 set dummy pkg-config
; ac_word
=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10084 case $PKG_CONFIG in
10086 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10090 for as_dir
in $PATH
10093 test -z "$as_dir" && as_dir
=.
10094 for ac_exec_ext
in '' $ac_executable_extensions; do
10095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10108 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10109 if test -n "$PKG_CONFIG"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10111 $as_echo "$PKG_CONFIG" >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10119 if test "$PKG_CONFIG" = "no" ; then
10122 PKG_CONFIG_MIN_VERSION
=0.9.0
10123 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10125 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10127 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; }
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10133 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10134 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10136 $as_echo "$XFT_CFLAGS" >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10139 $as_echo_n "checking XFT_LIBS... " >&6; }
10140 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10142 $as_echo "$XFT_LIBS" >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10148 ## If we have a custom action on failure, don't print errors, but
10149 ## do set a variable so people can do so.
10150 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10157 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10158 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10162 if test $succeeded = yes; then
10168 ## Because xftfont.c uses XRenderQueryExtension, we also
10169 ## need to link to -lXrender.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10172 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10173 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10176 ac_check_lib_save_LIBS
=$LIBS
10177 LIBS
="-lXrender $LIBS"
10178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10187 char XRenderQueryExtension ();
10191 return XRenderQueryExtension ();
10196 if ac_fn_c_try_link
"$LINENO"; then :
10197 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10199 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10201 rm -f core conftest.err conftest.
$ac_objext \
10202 conftest
$ac_exeext conftest.
$ac_ext
10203 LIBS
=$ac_check_lib_save_LIBS
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10206 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10207 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10211 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10212 OLD_CPPFLAGS
="$CPPFLAGS"
10213 OLD_CFLAGS
="$CFLAGS"
10215 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10216 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10217 XFT_LIBS
="-lXrender $XFT_LIBS"
10218 LIBS
="$XFT_LIBS $LIBS"
10219 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10220 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10222 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10223 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10226 ac_check_lib_save_LIBS
=$LIBS
10227 LIBS
="-lXft $XFT_LIBS $LIBS"
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10237 char XftFontOpen ();
10241 return XftFontOpen ();
10246 if ac_fn_c_try_link
"$LINENO"; then :
10247 ac_cv_lib_Xft_XftFontOpen
=yes
10249 ac_cv_lib_Xft_XftFontOpen
=no
10251 rm -f core conftest.err conftest.
$ac_objext \
10252 conftest
$ac_exeext conftest.
$ac_ext
10253 LIBS
=$ac_check_lib_save_LIBS
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10256 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10257 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10265 if test "${HAVE_XFT}" = "yes"; then
10267 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10270 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10272 CPPFLAGS
="$OLD_CPPFLAGS"
10273 CFLAGS
="$OLD_CFLAGS"
10275 fi # "${HAVE_XFT}" = "yes"
10276 fi # "$HAVE_XFT" != no
10277 fi # "x${with_xft}" != "xno"
10279 if test "$HAVE_XFT" != "yes"; then
10285 ## We used to allow building with FreeType and without Xft.
10286 ## However, the ftx font backend driver is not in good shape.
10287 if test "${HAVE_XFT}" = "yes"; then
10294 if test "${HAVE_FREETYPE}" = "yes"; then
10296 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10298 if test "${with_libotf}" != "no"; then
10302 # Extract the first word of "pkg-config", so it can be a program name with args.
10303 set dummy pkg-config
; ac_word
=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10309 case $PKG_CONFIG in
10311 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10315 for as_dir
in $PATH
10318 test -z "$as_dir" && as_dir
=.
10319 for ac_exec_ext
in '' $ac_executable_extensions; do
10320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10333 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10334 if test -n "$PKG_CONFIG"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10336 $as_echo "$PKG_CONFIG" >&6; }
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10344 if test "$PKG_CONFIG" = "no" ; then
10347 PKG_CONFIG_MIN_VERSION
=0.9.0
10348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10350 $as_echo_n "checking for libotf... " >&6; }
10352 if $PKG_CONFIG --exists "libotf" 2>&5; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354 $as_echo "yes" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10358 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10359 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10361 $as_echo "$LIBOTF_CFLAGS" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10364 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10365 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10367 $as_echo "$LIBOTF_LIBS" >&6; }
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10373 ## If we have a custom action on failure, don't print errors, but
10374 ## do set a variable so people can do so.
10375 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10382 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10383 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10387 if test $succeeded = yes; then
10393 if test "$HAVE_LIBOTF" = "yes"; then
10395 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10398 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10399 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10402 ac_check_lib_save_LIBS
=$LIBS
10404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 /* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10413 char OTF_get_variation_glyphs ();
10417 return OTF_get_variation_glyphs ();
10422 if ac_fn_c_try_link
"$LINENO"; then :
10423 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10425 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10427 rm -f core conftest.err conftest.
$ac_objext \
10428 conftest
$ac_exeext conftest.
$ac_ext
10429 LIBS
=$ac_check_lib_save_LIBS
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10432 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10433 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10434 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10436 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10439 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10441 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10449 if test "${HAVE_LIBOTF}" = yes; then
10450 if test "${with_m17n_flt}" != "no"; then
10454 # Extract the first word of "pkg-config", so it can be a program name with args.
10455 set dummy pkg-config
; ac_word
=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10461 case $PKG_CONFIG in
10463 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10467 for as_dir
in $PATH
10470 test -z "$as_dir" && as_dir
=.
10471 for ac_exec_ext
in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10485 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10486 if test -n "$PKG_CONFIG"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10488 $as_echo "$PKG_CONFIG" >&6; }
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10496 if test "$PKG_CONFIG" = "no" ; then
10499 PKG_CONFIG_MIN_VERSION
=0.9.0
10500 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10502 $as_echo_n "checking for m17n-flt... " >&6; }
10504 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; }
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10510 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10511 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10513 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10516 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10517 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10519 $as_echo "$M17N_FLT_LIBS" >&6; }
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10525 ## If we have a custom action on failure, don't print errors, but
10526 ## do set a variable so people can do so.
10527 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10534 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10535 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10539 if test $succeeded = yes; then
10545 if test "$HAVE_M17N_FLT" = "yes"; then
10547 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10559 ### End of font-backend (under X11) section.
10570 ### Use -lXpm if available, unless `--with-xpm=no'.
10573 if test "${HAVE_X11}" = "yes"; then
10574 if test "${with_xpm}" != "no"; then
10575 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10576 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10578 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10579 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10582 ac_check_lib_save_LIBS
=$LIBS
10583 LIBS
="-lXpm -lX11 $LIBS"
10584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10587 /* Override any GCC internal prototype to avoid an error.
10588 Use char because int might match the return type of a GCC
10589 builtin and then its argument prototype would still apply. */
10593 char XpmReadFileToPixmap ();
10597 return XpmReadFileToPixmap ();
10602 if ac_fn_c_try_link
"$LINENO"; then :
10603 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10605 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10607 rm -f core conftest.err conftest.
$ac_objext \
10608 conftest
$ac_exeext conftest.
$ac_ext
10609 LIBS
=$ac_check_lib_save_LIBS
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10612 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10613 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10620 if test "${HAVE_XPM}" = "yes"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10622 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 #include "X11/xpm.h"
10626 #ifndef XpmReturnAllocPixels
10627 no_return_alloc_pixels
10631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10632 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10640 if test "${HAVE_XPM}" = "yes"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642 $as_echo "yes" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10650 if test "${HAVE_XPM}" = "yes"; then
10652 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10659 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10662 if test "${HAVE_X11}" = "yes"; then
10663 if test "${with_jpeg}" != "no"; then
10664 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10665 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10667 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10671 ac_check_lib_save_LIBS
=$LIBS
10672 LIBS
="-ljpeg $LIBS"
10673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10682 char jpeg_destroy_compress ();
10686 return jpeg_destroy_compress ();
10691 if ac_fn_c_try_link
"$LINENO"; then :
10692 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10694 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10696 rm -f core conftest.err conftest.
$ac_objext \
10697 conftest
$ac_exeext conftest.
$ac_ext
10698 LIBS
=$ac_check_lib_save_LIBS
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10701 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10702 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10711 if test "${HAVE_JPEG}" = "yes"; then
10712 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include <jpeglib.h>
10717 version=JPEG_LIB_VERSION
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10722 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10726 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10732 if test "${HAVE_JPEG}" = "yes"; then
10738 ### Use -lpng if available, unless `--with-png=no'.
10741 if test "${HAVE_X11}" = "yes"; then
10742 if test "${with_png}" != "no"; then
10743 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10744 # in /usr/include/libpng.
10745 for ac_header
in png.h libpng
/png.h
10747 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10748 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10749 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10750 cat >>confdefs.h
<<_ACEOF
10751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10758 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10760 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10761 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10764 ac_check_lib_save_LIBS
=$LIBS
10765 LIBS
="-lpng -lz -lm $LIBS"
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10775 char png_get_channels ();
10779 return png_get_channels ();
10784 if ac_fn_c_try_link
"$LINENO"; then :
10785 ac_cv_lib_png_png_get_channels
=yes
10787 ac_cv_lib_png_png_get_channels
=no
10789 rm -f core conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 LIBS
=$ac_check_lib_save_LIBS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10794 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10795 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10802 if test "${HAVE_PNG}" = "yes"; then
10804 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10806 LIBPNG
="-lpng -lz -lm"
10811 ### Use -ltiff if available, unless `--with-tiff=no'.
10814 if test "${HAVE_X11}" = "yes"; then
10815 if test "${with_tiff}" != "no"; then
10816 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10819 # At least one tiff package requires the jpeg library.
10820 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10822 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10823 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 ac_check_lib_save_LIBS
=$LIBS
10827 LIBS
="-ltiff $tifflibs $LIBS"
10828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10837 char TIFFGetVersion ();
10841 return TIFFGetVersion ();
10846 if ac_fn_c_try_link
"$LINENO"; then :
10847 ac_cv_lib_tiff_TIFFGetVersion
=yes
10849 ac_cv_lib_tiff_TIFFGetVersion
=no
10851 rm -f core conftest.err conftest.
$ac_objext \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 LIBS
=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10856 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10857 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10866 if test "${HAVE_TIFF}" = "yes"; then
10868 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10875 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10878 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10879 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10880 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10881 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10882 # Earlier versions can crash Emacs.
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10884 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10885 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10888 ac_check_lib_save_LIBS
=$LIBS
10890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10899 char EGifPutExtensionLast ();
10903 return EGifPutExtensionLast ();
10908 if ac_fn_c_try_link
"$LINENO"; then :
10909 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10911 ac_cv_lib_gif_EGifPutExtensionLast
=no
10913 rm -f core conftest.err conftest.
$ac_objext \
10914 conftest
$ac_exeext conftest.
$ac_ext
10915 LIBS
=$ac_check_lib_save_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10918 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10919 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10929 if test "$HAVE_GIF" = yes; then
10931 elif test "$HAVE_GIF" = maybe
; then
10932 # If gif_lib.h but no libgif, try libungif.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10934 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10935 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10938 ac_check_lib_save_LIBS
=$LIBS
10939 LIBS
="-lungif $LIBS"
10940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10949 char EGifPutExtensionLast ();
10953 return EGifPutExtensionLast ();
10958 if ac_fn_c_try_link
"$LINENO"; then :
10959 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10961 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10963 rm -f core conftest.err conftest.
$ac_objext \
10964 conftest
$ac_exeext conftest.
$ac_ext
10965 LIBS
=$ac_check_lib_save_LIBS
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10968 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10969 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10975 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10978 if test "${HAVE_GIF}" = "yes"; then
10980 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10986 if test "${HAVE_X11}" = "yes"; then
10989 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10990 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10991 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10992 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10993 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10994 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10995 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10996 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10997 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10998 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11000 if test "X${MISSING}" != X
; then
11001 as_fn_error $?
"The following required libraries were not found:
11003 Maybe some development libraries/packages are missing?
11004 If you don't want to link with them give
11006 as options to configure" "$LINENO" 5
11010 ### Use -lgpm if available, unless `--with-gpm=no'.
11014 if test "${with_gpm}" != "no"; then
11015 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11016 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11018 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11019 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11022 ac_check_lib_save_LIBS
=$LIBS
11024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11037 return Gpm_Open ();
11042 if ac_fn_c_try_link
"$LINENO"; then :
11043 ac_cv_lib_gpm_Gpm_Open
=yes
11045 ac_cv_lib_gpm_Gpm_Open
=no
11047 rm -f core conftest.err conftest.
$ac_objext \
11048 conftest
$ac_exeext conftest.
$ac_ext
11049 LIBS
=$ac_check_lib_save_LIBS
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11052 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11053 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
11061 if test "${HAVE_GPM}" = "yes"; then
11063 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11066 ## May be reset below.
11067 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11072 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11073 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
11075 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11082 ### Use NeXTstep API to implement GUI.
11083 if test "${HAVE_NS}" = "yes"; then
11085 $as_echo "#define HAVE_NS 1" >>confdefs.h
11087 if test "${NS_IMPL_COCOA}" = "yes"; then
11089 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11093 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11095 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11097 # See also .m.o rule in Makefile.in */
11098 # FIXME: are all these flags really needed? Document here why. */
11099 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11100 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11102 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11104 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11107 # We also have mouse menus.
11113 ### Use session management (-lSM -lICE) if available
11116 if test "${HAVE_X11}" = "yes"; then
11117 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11118 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11120 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11121 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11124 ac_check_lib_save_LIBS
=$LIBS
11125 LIBS
="-lSM -lICE $LIBS"
11126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11135 char SmcOpenConnection ();
11139 return SmcOpenConnection ();
11144 if ac_fn_c_try_link
"$LINENO"; then :
11145 ac_cv_lib_SM_SmcOpenConnection
=yes
11147 ac_cv_lib_SM_SmcOpenConnection
=no
11149 rm -f core conftest.err conftest.
$ac_objext \
11150 conftest
$ac_exeext conftest.
$ac_ext
11151 LIBS
=$ac_check_lib_save_LIBS
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11154 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11155 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11163 if test "${HAVE_X_SM}" = "yes"; then
11165 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11167 LIBXSM
="-lSM -lICE"
11170 *) LIBS
="$LIBXSM $LIBS" ;;
11176 ### Use libxml (-lxml2) if available
11177 if test "${with_xml2}" != "no"; then
11178 ### I'm not sure what the version number should be, so I just guessed.
11182 # Extract the first word of "pkg-config", so it can be a program name with args.
11183 set dummy pkg-config
; ac_word
=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11189 case $PKG_CONFIG in
11191 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11195 for as_dir
in $PATH
11198 test -z "$as_dir" && as_dir
=.
11199 for ac_exec_ext
in '' $ac_executable_extensions; do
11200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11213 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11214 if test -n "$PKG_CONFIG"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11216 $as_echo "$PKG_CONFIG" >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11224 if test "$PKG_CONFIG" = "no" ; then
11227 PKG_CONFIG_MIN_VERSION
=0.9.0
11228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11230 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11232 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11238 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11239 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11241 $as_echo "$LIBXML2_CFLAGS" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11244 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11245 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11247 $as_echo "$LIBXML2_LIBS" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11253 ## If we have a custom action on failure, don't print errors, but
11254 ## do set a variable so people can do so.
11255 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11267 if test $succeeded = yes; then
11273 if test "${HAVE_LIBXML2}" = "yes"; then
11274 LIBS
="$LIBXML2_LIBS $LIBS"
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11276 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11277 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 ac_check_lib_save_LIBS
=$LIBS
11281 LIBS
="-lxml2 $LIBS"
11282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11291 char htmlReadMemory ();
11295 return htmlReadMemory ();
11300 if ac_fn_c_try_link
"$LINENO"; then :
11301 ac_cv_lib_xml2_htmlReadMemory
=yes
11303 ac_cv_lib_xml2_htmlReadMemory
=no
11305 rm -f core conftest.err conftest.
$ac_objext \
11306 conftest
$ac_exeext conftest.
$ac_ext
11307 LIBS
=$ac_check_lib_save_LIBS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11310 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11311 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
11317 if test "${HAVE_LIBXML2}" = "yes"; then
11319 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11330 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11332 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11333 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11347 if ac_fn_c_try_link
"$LINENO"; then :
11348 emacs_cv_netdb_declares_h_errno
=yes
11350 emacs_cv_netdb_declares_h_errno
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11356 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11357 if test $emacs_cv_netdb_declares_h_errno = yes; then
11359 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11363 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11364 # for constant arguments. Useless!
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11366 $as_echo_n "checking for working alloca.h... " >&6; }
11367 if test "${ac_cv_working_alloca_h+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #include <alloca.h>
11376 char *p = (char *) alloca (2 * sizeof (int));
11382 if ac_fn_c_try_link
"$LINENO"; then :
11383 ac_cv_working_alloca_h
=yes
11385 ac_cv_working_alloca_h
=no
11387 rm -f core conftest.err conftest.
$ac_objext \
11388 conftest
$ac_exeext conftest.
$ac_ext
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11391 $as_echo "$ac_cv_working_alloca_h" >&6; }
11392 if test $ac_cv_working_alloca_h = yes; then
11394 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11399 $as_echo_n "checking for alloca... " >&6; }
11400 if test "${ac_cv_func_alloca_works+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 # define alloca __builtin_alloca
11409 # include <malloc.h>
11410 # define alloca _alloca
11412 # ifdef HAVE_ALLOCA_H
11413 # include <alloca.h>
11418 # ifndef alloca /* predefined by HP cc +Olibcalls */
11429 char *p = (char *) alloca (1);
11435 if ac_fn_c_try_link
"$LINENO"; then :
11436 ac_cv_func_alloca_works
=yes
11438 ac_cv_func_alloca_works
=no
11440 rm -f core conftest.err conftest.
$ac_objext \
11441 conftest
$ac_exeext conftest.
$ac_ext
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11444 $as_echo "$ac_cv_func_alloca_works" >&6; }
11446 if test $ac_cv_func_alloca_works = yes; then
11448 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11451 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11452 # that cause trouble. Some versions do not even contain alloca or
11453 # contain a buggy version. If you still want to use their alloca,
11454 # use ar to extract alloca.o from them instead of compiling alloca.c.
11456 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11458 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11462 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11463 if test "${ac_cv_os_cray+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #if defined CRAY && ! defined CRAY2
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476 $EGREP "webecray" >/dev
/null
2>&1; then :
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11485 $as_echo "$ac_cv_os_cray" >&6; }
11486 if test $ac_cv_os_cray = yes; then
11487 for ac_func
in _getb67 GETB67 getb67
; do
11488 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11490 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11492 cat >>confdefs.h
<<_ACEOF
11493 #define CRAY_STACKSEG_END $ac_func
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11503 $as_echo_n "checking stack direction for C alloca... " >&6; }
11504 if test "${ac_cv_c_stack_direction+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11507 if test "$cross_compiling" = yes; then :
11508 ac_cv_c_stack_direction
=0
11510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 $ac_includes_default
11514 find_stack_direction ()
11516 static char *addr = 0;
11521 return find_stack_direction ();
11524 return (&dummy > addr) ? 1 : -1;
11530 return find_stack_direction () < 0;
11533 if ac_fn_c_try_run
"$LINENO"; then :
11534 ac_cv_c_stack_direction
=1
11536 ac_cv_c_stack_direction
=-1
11538 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11539 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11544 $as_echo "$ac_cv_c_stack_direction" >&6; }
11545 cat >>confdefs.h
<<_ACEOF
11546 #define STACK_DIRECTION $ac_cv_c_stack_direction
11553 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11554 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
11557 # fmod, logb, and frexp are found in -lm on most systems.
11558 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11560 $as_echo_n "checking for sqrt in -lm... " >&6; }
11561 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11564 ac_check_lib_save_LIBS
=$LIBS
11566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11584 if ac_fn_c_try_link
"$LINENO"; then :
11585 ac_cv_lib_m_sqrt
=yes
11587 ac_cv_lib_m_sqrt
=no
11589 rm -f core conftest.err conftest.
$ac_objext \
11590 conftest
$ac_exeext conftest.
$ac_ext
11591 LIBS
=$ac_check_lib_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11594 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11595 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_LIBM 1
11605 # Check for mail-locking functions in a "mail" library. Probably this should
11606 # have the same check as for liblockfile below.
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11608 $as_echo_n "checking for maillock in -lmail... " >&6; }
11609 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 ac_check_lib_save_LIBS
=$LIBS
11613 LIBS
="-lmail $LIBS"
11614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11627 return maillock ();
11632 if ac_fn_c_try_link
"$LINENO"; then :
11633 ac_cv_lib_mail_maillock
=yes
11635 ac_cv_lib_mail_maillock
=no
11637 rm -f core conftest.err conftest.
$ac_objext \
11638 conftest
$ac_exeext conftest.
$ac_ext
11639 LIBS
=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11642 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11643 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11649 if test $have_mail = yes; then
11651 LIBS
="$LIBS_MAIL $LIBS"
11653 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11659 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11660 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11663 ac_check_lib_save_LIBS
=$LIBS
11664 LIBS
="-llockfile $LIBS"
11665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11678 return maillock ();
11683 if ac_fn_c_try_link
"$LINENO"; then :
11684 ac_cv_lib_lockfile_maillock
=yes
11686 ac_cv_lib_lockfile_maillock
=no
11688 rm -f core conftest.err conftest.
$ac_objext \
11689 conftest
$ac_exeext conftest.
$ac_ext
11690 LIBS
=$ac_check_lib_save_LIBS
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11693 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11694 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11700 if test $have_lockfile = yes; then
11701 LIBS_MAIL
=-llockfile
11702 LIBS
="$LIBS_MAIL $LIBS"
11704 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11707 # If we have the shared liblockfile, assume we must use it for mail
11708 # locking (e.g. Debian). If we couldn't link against liblockfile
11709 # (no liblockfile.a installed), ensure that we don't need to.
11710 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11711 set dummy liblockfile.so
; ac_word
=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11717 if test -n "$liblockfile"; then
11718 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11721 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11722 for as_dir
in $as_dummy
11725 test -z "$as_dir" && as_dir
=.
11726 for ac_exec_ext
in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_prog_liblockfile
="yes"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11739 liblockfile
=$ac_cv_prog_liblockfile
11740 if test -n "$liblockfile"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11742 $as_echo "$liblockfile" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11749 if test $ac_cv_prog_liblockfile = yes; then
11750 as_fn_error $?
"Shared liblockfile found but can't link against it.
11751 This probably means that movemail could lose mail.
11752 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11755 for ac_func
in touchlock
11757 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11758 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11759 cat >>confdefs.h
<<_ACEOF
11760 #define HAVE_TOUCHLOCK 1
11766 for ac_header
in maillock.h
11768 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11769 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11770 cat >>confdefs.h
<<_ACEOF
11771 #define HAVE_MAILLOCK_H 1
11780 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11781 ## interlock access to the mail spool. The alternative is a lock file named
11782 ## /usr/spool/mail/$USER.lock.
11785 aix4-2
) mail_lock
="lockf" ;;
11787 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11789 ## On GNU/Linux systems, both methods are used by various mail programs.
11790 ## I assume most people are using newer mailers that have heard of flock.
11791 ## Change this if you need to.
11792 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11793 ## configure gets the right answers, and that means *NOT* using flock.
11794 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11795 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11796 ## Debian maintainer hasn't provided a clean fix for Emacs.
11797 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11798 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11799 ## correct logic. -- fx
11800 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11801 ## liblockfile is a Free Software replacement for libmail, used on
11802 ## Debian systems and elsewhere. -rfr.
11805 if test $have_mail = yes ||
test $have_lockfile = yes; then
11806 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11812 case "$mail_lock" in
11814 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11818 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11821 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11826 for ac_func
in gethostname getdomainname dup2 \
11827 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11828 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11829 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11830 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11831 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11832 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11833 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11834 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11835 cfmakeraw cfsetspeed isnan copysign __executable_start
11837 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11839 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11840 cat >>confdefs.h
<<_ACEOF
11841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 for ac_header
in sys
/un.h
11850 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11851 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11852 cat >>confdefs.h
<<_ACEOF
11853 #define HAVE_SYS_UN_H 1
11866 for ac_func
in $ac_func_list
11868 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11870 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11871 cat >>confdefs.h
<<_ACEOF
11872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11883 $as_echo_n "checking for working mktime... " >&6; }
11884 if test "${ac_cv_func_working_mktime+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 if test "$cross_compiling" = yes; then :
11888 ac_cv_func_working_mktime
=no
11890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892 /* Test program from Paul Eggert and Tony Leneis. */
11893 #ifdef TIME_WITH_SYS_TIME
11894 # include <sys/time.h>
11897 # ifdef HAVE_SYS_TIME_H
11898 # include <sys/time.h>
11904 #include <limits.h>
11905 #include <stdlib.h>
11907 #ifdef HAVE_UNISTD_H
11908 # include <unistd.h>
11912 # define alarm(X) /* empty */
11915 /* Work around redefinition to rpl_putenv by other config tests. */
11918 static time_t time_t_max;
11919 static time_t time_t_min;
11921 /* Values we'll use to set the TZ environment variable. */
11922 static const char *tz_strings[] = {
11923 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11924 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11926 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11928 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11929 Based on a problem report from Andreas Jaeger. */
11931 spring_forward_gap ()
11933 /* glibc (up to about 1998-10-07) failed this test. */
11936 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11937 instead of "TZ=America/Vancouver" in order to detect the bug even
11938 on systems that don't support the Olson extension, or don't have the
11939 full zoneinfo tables installed. */
11940 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11949 return mktime (&tm) != (time_t) -1;
11953 mktime_test1 (time_t now)
11956 return ! (lt = localtime (&now)) || mktime (lt) == now;
11960 mktime_test (time_t now)
11962 return (mktime_test1 (now)
11963 && mktime_test1 ((time_t) (time_t_max - now))
11964 && mktime_test1 ((time_t) (time_t_min + now)));
11970 /* Based on code from Ariel Faigon. */
11980 return tm.tm_mon == 2 && tm.tm_mday == 31;
11984 bigtime_test (int j)
11988 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11989 now = mktime (&tm);
11990 if (now != (time_t) -1)
11992 struct tm *lt = localtime (&now);
11994 && lt->tm_year == tm.tm_year
11995 && lt->tm_mon == tm.tm_mon
11996 && lt->tm_mday == tm.tm_mday
11997 && lt->tm_hour == tm.tm_hour
11998 && lt->tm_min == tm.tm_min
11999 && lt->tm_sec == tm.tm_sec
12000 && lt->tm_yday == tm.tm_yday
12001 && lt->tm_wday == tm.tm_wday
12002 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12003 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12012 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12013 ignoring leap seconds. */
12014 unsigned long int answer = 2527315200UL;
12018 tm.tm_year = 2050 - 1900;
12021 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12024 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12025 instead of "TZ=America/Vancouver" in order to detect the bug even
12026 on systems that don't support the Olson extension, or don't have the
12027 full zoneinfo tables installed. */
12028 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12032 /* Check that the result is either a failure, or close enough
12033 to the correct answer that we can assume the discrepancy is
12034 due to leap seconds. */
12035 return (t == (time_t) -1
12036 || (0 < t && answer - 120 <= t && t <= answer + 120));
12045 /* This test makes some buggy mktime implementations loop.
12046 Give up after 60 seconds; a mktime slower than that
12047 isn't worth using anyway. */
12052 t = (time_t_max << 1) + 1;
12053 if (t <= time_t_max)
12057 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12059 delta = time_t_max / 997; /* a suitable prime number */
12060 for (i = 0; i < N_STRINGS; i++)
12063 putenv ((char*) tz_strings[i]);
12065 for (t = 0; t <= time_t_max - delta; t += delta)
12066 if (! mktime_test (t))
12068 if (! (mktime_test ((time_t) 1)
12069 && mktime_test ((time_t) (60 * 60))
12070 && mktime_test ((time_t) (60 * 60 * 24))))
12073 for (j = 1; ; j <<= 1)
12074 if (! bigtime_test (j))
12076 else if (INT_MAX / 2 < j)
12078 if (! bigtime_test (INT_MAX))
12081 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12084 if ac_fn_c_try_run
"$LINENO"; then :
12085 ac_cv_func_working_mktime
=yes
12087 ac_cv_func_working_mktime
=no
12089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12095 $as_echo "$ac_cv_func_working_mktime" >&6; }
12096 if test $ac_cv_func_working_mktime = no
; then
12097 case " $LIBOBJS " in
12098 *" mktime.$ac_objext "* ) ;;
12099 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12105 if test "$ac_cv_func_working_mktime" = no
; then
12107 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12111 ac_have_func
=no
# yes means we've found a way to get the load average.
12113 # Make sure getloadavg.c is where it belongs, at configure-time.
12114 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12115 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12119 # Check for getloadavg, but be sure not to touch the cache variable.
12120 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12121 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12126 ) && ac_have_func
=yes
12128 # On HPUX9, an unprivileged user can get load averages through this function.
12129 for ac_func
in pstat_getdynamic
12131 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12132 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12133 cat >>confdefs.h
<<_ACEOF
12134 #define HAVE_PSTAT_GETDYNAMIC 1
12141 # Solaris has libkstat which does not require root.
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12143 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12144 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12147 ac_check_lib_save_LIBS
=$LIBS
12148 LIBS
="-lkstat $LIBS"
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12158 char kstat_open ();
12162 return kstat_open ();
12167 if ac_fn_c_try_link
"$LINENO"; then :
12168 ac_cv_lib_kstat_kstat_open
=yes
12170 ac_cv_lib_kstat_kstat_open
=no
12172 rm -f core conftest.err conftest.
$ac_objext \
12173 conftest
$ac_exeext conftest.
$ac_ext
12174 LIBS
=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12177 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12178 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12179 cat >>confdefs.h
<<_ACEOF
12180 #define HAVE_LIBKSTAT 1
12183 LIBS
="-lkstat $LIBS"
12187 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12189 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12190 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12191 # to get the right answer into the cache.
12192 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12193 if test $ac_have_func = no
; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12195 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12196 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12199 ac_check_lib_save_LIBS
=$LIBS
12201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12214 return elf_begin ();
12219 if ac_fn_c_try_link
"$LINENO"; then :
12220 ac_cv_lib_elf_elf_begin
=yes
12222 ac_cv_lib_elf_elf_begin
=no
12224 rm -f core conftest.err conftest.
$ac_objext \
12225 conftest
$ac_exeext conftest.
$ac_ext
12226 LIBS
=$ac_check_lib_save_LIBS
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12229 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12230 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12235 if test $ac_have_func = no
; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12237 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12238 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 ac_check_lib_save_LIBS
=$LIBS
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12256 return kvm_open ();
12261 if ac_fn_c_try_link
"$LINENO"; then :
12262 ac_cv_lib_kvm_kvm_open
=yes
12264 ac_cv_lib_kvm_kvm_open
=no
12266 rm -f core conftest.err conftest.
$ac_objext \
12267 conftest
$ac_exeext conftest.
$ac_ext
12268 LIBS
=$ac_check_lib_save_LIBS
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12271 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12272 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12276 # Check for the 4.4BSD definition of getloadavg.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12278 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12279 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12282 ac_check_lib_save_LIBS
=$LIBS
12283 LIBS
="-lutil $LIBS"
12284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12293 char getloadavg ();
12297 return getloadavg ();
12302 if ac_fn_c_try_link
"$LINENO"; then :
12303 ac_cv_lib_util_getloadavg
=yes
12305 ac_cv_lib_util_getloadavg
=no
12307 rm -f core conftest.err conftest.
$ac_objext \
12308 conftest
$ac_exeext conftest.
$ac_ext
12309 LIBS
=$ac_check_lib_save_LIBS
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12312 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12313 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12314 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12319 if test $ac_have_func = no
; then
12320 # There is a commonly available library for RS/6000 AIX.
12321 # Since it is not a standard part of AIX, it might be installed locally.
12322 ac_getloadavg_LIBS
=$LIBS
12323 LIBS
="-L/usr/local/lib $LIBS"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12325 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12326 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12329 ac_check_lib_save_LIBS
=$LIBS
12330 LIBS
="-lgetloadavg $LIBS"
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12340 char getloadavg ();
12344 return getloadavg ();
12349 if ac_fn_c_try_link
"$LINENO"; then :
12350 ac_cv_lib_getloadavg_getloadavg
=yes
12352 ac_cv_lib_getloadavg_getloadavg
=no
12354 rm -f core conftest.err conftest.
$ac_objext \
12355 conftest
$ac_exeext conftest.
$ac_ext
12356 LIBS
=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12359 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12360 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12361 LIBS
="-lgetloadavg $LIBS"
12363 LIBS
=$ac_getloadavg_LIBS
12368 # Make sure it is really in the library, if we think we found it,
12369 # otherwise set up the replacement function.
12370 for ac_func
in getloadavg
12372 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12373 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12374 cat >>confdefs.h
<<_ACEOF
12375 #define HAVE_GETLOADAVG 1
12379 case " $LIBOBJS " in
12380 *" getloadavg.$ac_objext "* ) ;;
12381 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12386 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12388 # Figure out what our getloadavg.c needs.
12390 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12391 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12394 $as_echo "#define DGUX 1" >>confdefs.h
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12397 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12398 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12401 ac_check_lib_save_LIBS
=$LIBS
12403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12412 char dg_sys_info ();
12416 return dg_sys_info ();
12421 if ac_fn_c_try_link
"$LINENO"; then :
12422 ac_cv_lib_dgc_dg_sys_info
=yes
12424 ac_cv_lib_dgc_dg_sys_info
=no
12426 rm -f core conftest.err conftest.
$ac_objext \
12427 conftest
$ac_exeext conftest.
$ac_ext
12428 LIBS
=$ac_check_lib_save_LIBS
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12431 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12432 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12433 cat >>confdefs.h
<<_ACEOF
12434 #define HAVE_LIBDGC 1
12445 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12451 for ac_func
in setlocale
12453 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12454 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12455 cat >>confdefs.h
<<_ACEOF
12456 #define HAVE_SETLOCALE 1
12463 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12464 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12465 # Irix 4.0.5F has the header but not the library.
12466 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12469 $as_echo "#define SVR4 1" >>confdefs.h
12473 if test $ac_have_func = no
; then
12474 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12478 $as_echo "#define UMAX 1" >>confdefs.h
12481 $as_echo "#define UMAX4_3 1" >>confdefs.h
12488 if test $ac_have_func = no
; then
12489 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12491 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12498 if test $ac_have_func = no
; then
12499 for ac_header
in mach
/mach.h
12501 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12502 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12503 cat >>confdefs.h
<<_ACEOF
12504 #define HAVE_MACH_MACH_H 1
12513 for ac_header
in nlist.h
12515 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12516 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12517 cat >>confdefs.h
<<_ACEOF
12518 #define HAVE_NLIST_H 1
12520 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12522 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12524 cat >>confdefs.h
<<_ACEOF
12525 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12529 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12542 # Some definitions of getloadavg require that the program be installed setgid.
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12544 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12545 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12550 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12551 #ifdef LDAV_PRIVILEGED
12552 Yowza Am I SETGID yet
12555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12556 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12557 ac_cv_func_getloadavg_setgid
=yes
12559 ac_cv_func_getloadavg_setgid
=no
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12565 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12566 if test $ac_cv_func_getloadavg_setgid = yes; then
12569 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12575 if test $ac_cv_func_getloadavg_setgid = yes; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12577 $as_echo_n "checking group of /dev/kmem... " >&6; }
12578 if test "${ac_cv_group_kmem+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12582 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12583 # If we got an error (system does not support symlinks), try without -L.
12584 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12585 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12586 | sed -ne 's/[ ][ ]*/ /g;
12587 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12592 $as_echo "$ac_cv_group_kmem" >&6; }
12593 KMEM_GROUP
=$ac_cv_group_kmem
12595 if test "x$ac_save_LIBS" = x
; then
12596 GETLOADAVG_LIBS
=$LIBS
12598 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12605 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12606 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <sys/types.h> /* for off_t */
12617 int (*fp) (FILE *, off_t, int) = fseeko;
12618 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12623 if ac_fn_c_try_link
"$LINENO"; then :
12624 ac_cv_sys_largefile_source
=no
; break
12626 rm -f core conftest.err conftest.
$ac_objext \
12627 conftest
$ac_exeext conftest.
$ac_ext
12628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #define _LARGEFILE_SOURCE 1
12631 #include <sys/types.h> /* for off_t */
12636 int (*fp) (FILE *, off_t, int) = fseeko;
12637 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12642 if ac_fn_c_try_link
"$LINENO"; then :
12643 ac_cv_sys_largefile_source
=1; break
12645 rm -f core conftest.err conftest.
$ac_objext \
12646 conftest
$ac_exeext conftest.
$ac_ext
12647 ac_cv_sys_largefile_source
=unknown
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12652 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12653 case $ac_cv_sys_largefile_source in #(
12656 cat >>confdefs.h
<<_ACEOF
12657 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12663 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12664 # in glibc 2.1.3, but that breaks too many other things.
12665 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12666 if test $ac_cv_sys_largefile_source != unknown
; then
12668 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12673 # Configure getopt.
12674 # getopt.m4 serial 10
12676 # The getopt module assume you want GNU getopt, with getopt_long etc,
12677 # rather than vanilla POSIX getopt. This means your your code should
12678 # always include <getopt.h> for the getopt prototypes.
12690 # Prerequisites of lib/getopt*.
12696 for ac_header
in getopt.h
12698 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12699 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12700 cat >>confdefs.h
<<_ACEOF
12701 #define HAVE_GETOPT_H 1
12710 if test -z "$GETOPT_H"; then
12711 for ac_func
in getopt_long_only
12713 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12714 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12715 cat >>confdefs.h
<<_ACEOF
12716 #define HAVE_GETOPT_LONG_ONLY 1
12726 if test -z "$GETOPT_H"; then
12727 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12729 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12735 if test -z "$GETOPT_H"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12737 $as_echo_n "checking for working GNU getopt function... " >&6; }
12738 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12741 if test "$cross_compiling" = yes; then :
12742 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12744 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12745 gl_cv_func_gnu_getopt
=no
12747 gl_cv_func_gnu_getopt
=yes
12751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #include <getopt.h>
12759 myargv[0] = "conftest";
12762 return getopt (2, myargv, "+a") != '?';
12768 if ac_fn_c_try_run
"$LINENO"; then :
12769 gl_cv_func_gnu_getopt
=yes
12771 gl_cv_func_gnu_getopt
=no
12773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12774 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12779 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12780 if test "$gl_cv_func_gnu_getopt" = "no"; then
12787 if test -n "$GETOPT_H"; then :
12792 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12797 GETOPTOBJS
='getopt.o getopt1.o'
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12804 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12805 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12808 # Use it with a single arg.
12809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 $ac_includes_default
12820 if ac_fn_c_try_compile
"$LINENO"; then :
12821 ac_cv_func_getpgrp_void
=no
12823 ac_cv_func_getpgrp_void
=yes
12825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12829 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12830 if test $ac_cv_func_getpgrp_void = yes; then
12832 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12837 for ac_func
in strftime
12839 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12840 if test "x$ac_cv_func_strftime" = x
""yes; then :
12841 cat >>confdefs.h
<<_ACEOF
12842 #define HAVE_STRFTIME 1
12846 # strftime is in -lintl on SCO UNIX.
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12848 $as_echo_n "checking for strftime in -lintl... " >&6; }
12849 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12852 ac_check_lib_save_LIBS
=$LIBS
12853 LIBS
="-lintl $LIBS"
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12867 return strftime ();
12872 if ac_fn_c_try_link
"$LINENO"; then :
12873 ac_cv_lib_intl_strftime
=yes
12875 ac_cv_lib_intl_strftime
=no
12877 rm -f core conftest.err conftest.
$ac_objext \
12878 conftest
$ac_exeext conftest.
$ac_ext
12879 LIBS
=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12882 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12883 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12884 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12886 LIBS
="-lintl $LIBS"
12894 for ac_func
in grantpt
12896 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12897 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12898 cat >>confdefs.h
<<_ACEOF
12899 #define HAVE_GRANTPT 1
12906 # PTY-related GNU extensions.
12907 for ac_func
in getpt
12909 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12910 if test "x$ac_cv_func_getpt" = x
""yes; then :
12911 cat >>confdefs.h
<<_ACEOF
12912 #define HAVE_GETPT 1
12919 # Check this now, so that we will NOT find the above functions in ncurses.
12920 # That is because we have not set up to link ncurses in lib-src.
12921 # It's better to believe a function is not available
12922 # than to expect to find it in ncurses.
12923 # Also we need tputs and friends to be able to build at all.
12924 have_tputs_et_al
=true
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12926 $as_echo_n "checking for library containing tputs... " >&6; }
12927 if test "${ac_cv_search_tputs+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12930 ac_func_search_save_LIBS
=$LIBS
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12949 for ac_lib
in '' ncurses terminfo termcap
; do
12950 if test -z "$ac_lib"; then
12951 ac_res
="none required"
12954 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12956 if ac_fn_c_try_link
"$LINENO"; then :
12957 ac_cv_search_tputs
=$ac_res
12959 rm -f core conftest.err conftest.
$ac_objext \
12961 if test "${ac_cv_search_tputs+set}" = set; then :
12965 if test "${ac_cv_search_tputs+set}" = set; then :
12968 ac_cv_search_tputs
=no
12970 rm conftest.
$ac_ext
12971 LIBS
=$ac_func_search_save_LIBS
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12974 $as_echo "$ac_cv_search_tputs" >&6; }
12975 ac_res
=$ac_cv_search_tputs
12976 if test "$ac_res" != no
; then :
12977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12980 have_tputs_et_al
=false
12983 if test "$have_tputs_et_al" != true
; then
12984 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
12985 Maybe some development libraries/packages are missing? Try installing
12986 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12988 # Must define this when any termcap library is found.
12990 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12992 ## FIXME This was the cpp logic, but I am not sure it is right.
12993 ## The above test has not necessarily found libncurses.
12994 HAVE_LIBNCURSES
=yes
12996 ## Use terminfo instead of termcap?
12997 ## Note only system files NOT using terminfo are:
12998 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12999 ## darwin|gnu without ncurses.
13003 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13004 ## hpux10-20: Use the system provided termcap(3) library.
13005 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13006 ## is necessary. Otherwise Emacs dumps core when run -nw.
13007 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13009 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13010 ## The ncurses library has been moved out of the System framework in
13011 ## Mac OS X 10.2. So if configure detects it, set the command-line
13012 ## option to use it.
13014 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13015 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13017 LIBS_TERMCAP
="-lncurses"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13023 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13024 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <osreldate.h>
13033 #if __FreeBSD_version < 400000
13041 if ac_fn_c_try_link
"$LINENO"; then :
13042 emacs_cv_freebsd_terminfo
=yes
13044 emacs_cv_freebsd_terminfo
=no
13046 rm -f core conftest.err conftest.
$ac_objext \
13047 conftest
$ac_exeext conftest.
$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13052 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13054 if test $emacs_cv_freebsd_terminfo = yes; then
13056 LIBS_TERMCAP
="-lncurses"
13058 LIBS_TERMCAP
="-ltermcap"
13063 if test $ac_cv_search_tputs = -lterminfo; then
13065 LIBS_TERMCAP
="-lterminfo"
13067 LIBS_TERMCAP
="-ltermcap"
13074 ## hpux: Make sure we get select from libc rather than from libcurses
13075 ## because libcurses on HPUX 10.10 has a broken version of select.
13076 ## We used to use -lc -lcurses, but this may be cleaner.
13077 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13079 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13081 ## Must use system termcap, if we use any termcap. It does special things.
13082 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13085 TERMCAP_OBJ
=tparam.o
13086 if test $TERMINFO = yes; then
13088 $as_echo "#define TERMINFO 1" >>confdefs.h
13091 ## Default used to be -ltermcap. Add a case above if need something else.
13092 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13094 TERMCAP_OBJ
=terminfo.o
13100 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <netinet/in.h>
13105 #include <arpa/nameser.h>
13106 #include <resolv.h>
13115 if ac_fn_c_try_link
"$LINENO"; then :
13120 rm -f core conftest.err conftest.
$ac_objext \
13121 conftest
$ac_exeext conftest.
$ac_ext
13122 if test "$have_res_init" = no
; then
13124 LIBS
="$LIBS -lresolv"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13126 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <netinet/in.h>
13130 #include <arpa/nameser.h>
13131 #include <resolv.h>
13140 if ac_fn_c_try_link
"$LINENO"; then :
13145 rm -f core conftest.err conftest.
$ac_objext \
13146 conftest
$ac_exeext conftest.
$ac_ext
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13148 $as_echo "$have_res_init" >&6; }
13149 if test "$have_res_init" = yes ; then
13155 if test "$have_res_init" = yes; then
13157 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13161 # Do we need the Hesiod library to provide the support routines?
13163 if test "$with_hesiod" != no
; then
13164 # Don't set $LIBS here -- see comments above. FIXME which comments?
13165 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13166 if test "x$ac_cv_func_res_send" = x
""yes; then :
13169 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13170 if test "x$ac_cv_func___res_send" = x
""yes; then :
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13174 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13175 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13178 ac_check_lib_save_LIBS
=$LIBS
13179 LIBS
="-lresolv $LIBS"
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13193 return res_send ();
13198 if ac_fn_c_try_link
"$LINENO"; then :
13199 ac_cv_lib_resolv_res_send
=yes
13201 ac_cv_lib_resolv_res_send
=no
13203 rm -f core conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 LIBS
=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13208 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13209 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13213 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13214 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13217 ac_check_lib_save_LIBS
=$LIBS
13218 LIBS
="-lresolv $LIBS"
13219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13228 char __res_send ();
13232 return __res_send ();
13237 if ac_fn_c_try_link
"$LINENO"; then :
13238 ac_cv_lib_resolv___res_send
=yes
13240 ac_cv_lib_resolv___res_send
=no
13242 rm -f core conftest.err conftest.
$ac_objext \
13243 conftest
$ac_exeext conftest.
$ac_ext
13244 LIBS
=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13247 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13248 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13258 if test "$resolv" = yes ; then
13263 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13264 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13268 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13269 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 ac_check_lib_save_LIBS
=$LIBS
13273 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13283 char hes_getmailhost ();
13287 return hes_getmailhost ();
13292 if ac_fn_c_try_link
"$LINENO"; then :
13293 ac_cv_lib_hesiod_hes_getmailhost
=yes
13295 ac_cv_lib_hesiod_hes_getmailhost
=no
13297 rm -f core conftest.err conftest.
$ac_objext \
13298 conftest
$ac_exeext conftest.
$ac_ext
13299 LIBS
=$ac_check_lib_save_LIBS
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13302 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13303 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13312 if test x
"$hesiod" = xyes
; then
13314 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13321 # Do we need libresolv (due to res_init or Hesiod)?
13322 if test "$resolv" = yes ; then
13324 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13332 # These tell us which Kerberos-related libraries to use.
13339 if test "${with_kerberos}" != no
; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13341 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13342 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13345 ac_check_lib_save_LIBS
=$LIBS
13346 LIBS
="-lcom_err $LIBS"
13347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13365 if ac_fn_c_try_link
"$LINENO"; then :
13366 ac_cv_lib_com_err_com_err
=yes
13368 ac_cv_lib_com_err_com_err
=no
13370 rm -f core conftest.err conftest.
$ac_objext \
13371 conftest
$ac_exeext conftest.
$ac_ext
13372 LIBS
=$ac_check_lib_save_LIBS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13375 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13376 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13382 if test $have_com_err = yes; then
13383 COM_ERRLIB
=-lcom_err
13384 LIBS
="$COM_ERRLIB $LIBS"
13386 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13390 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13391 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13394 ac_check_lib_save_LIBS
=$LIBS
13395 LIBS
="-lcrypto $LIBS"
13396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13405 char mit_des_cbc_encrypt ();
13409 return mit_des_cbc_encrypt ();
13414 if ac_fn_c_try_link
"$LINENO"; then :
13415 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13417 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13419 rm -f core conftest.err conftest.
$ac_objext \
13420 conftest
$ac_exeext conftest.
$ac_ext
13421 LIBS
=$ac_check_lib_save_LIBS
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13424 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13425 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13431 if test $have_crypto = yes; then
13433 LIBS
="$CRYPTOLIB $LIBS"
13435 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13439 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13440 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13443 ac_check_lib_save_LIBS
=$LIBS
13444 LIBS
="-lk5crypto $LIBS"
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13454 char mit_des_cbc_encrypt ();
13458 return mit_des_cbc_encrypt ();
13463 if ac_fn_c_try_link
"$LINENO"; then :
13464 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13466 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13468 rm -f core conftest.err conftest.
$ac_objext \
13469 conftest
$ac_exeext conftest.
$ac_ext
13470 LIBS
=$ac_check_lib_save_LIBS
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13473 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13474 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13480 if test $have_k5crypto = yes; then
13481 CRYPTOLIB
=-lk5crypto
13482 LIBS
="$CRYPTOLIB $LIBS"
13484 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13488 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13489 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13492 ac_check_lib_save_LIBS
=$LIBS
13493 LIBS
="-lkrb5 $LIBS"
13494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13503 char krb5_init_context ();
13507 return krb5_init_context ();
13512 if ac_fn_c_try_link
"$LINENO"; then :
13513 ac_cv_lib_krb5_krb5_init_context
=yes
13515 ac_cv_lib_krb5_krb5_init_context
=no
13517 rm -f core conftest.err conftest.
$ac_objext \
13518 conftest
$ac_exeext conftest.
$ac_ext
13519 LIBS
=$ac_check_lib_save_LIBS
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13522 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13523 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13529 if test $have_krb5=yes; then
13531 LIBS
="$KRB5LIB $LIBS"
13533 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13536 if test "${with_kerberos5}" = no
; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13538 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13539 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13542 ac_check_lib_save_LIBS
=$LIBS
13543 LIBS
="-ldes425 $LIBS"
13544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13553 char des_cbc_encrypt ();
13557 return des_cbc_encrypt ();
13562 if ac_fn_c_try_link
"$LINENO"; then :
13563 ac_cv_lib_des425_des_cbc_encrypt
=yes
13565 ac_cv_lib_des425_des_cbc_encrypt
=no
13567 rm -f core conftest.err conftest.
$ac_objext \
13568 conftest
$ac_exeext conftest.
$ac_ext
13569 LIBS
=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13572 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13573 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13579 if test $have_des425 = yes; then
13581 LIBS
="$DESLIB $LIBS"
13583 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13587 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13588 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13591 ac_check_lib_save_LIBS
=$LIBS
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13602 char des_cbc_encrypt ();
13606 return des_cbc_encrypt ();
13611 if ac_fn_c_try_link
"$LINENO"; then :
13612 ac_cv_lib_des_des_cbc_encrypt
=yes
13614 ac_cv_lib_des_des_cbc_encrypt
=no
13616 rm -f core conftest.err conftest.
$ac_objext \
13617 conftest
$ac_exeext conftest.
$ac_ext
13618 LIBS
=$ac_check_lib_save_LIBS
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13621 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13622 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13628 if test $have_des = yes; then
13630 LIBS
="$DESLIB $LIBS"
13632 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13637 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13638 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13641 ac_check_lib_save_LIBS
=$LIBS
13642 LIBS
="-lkrb4 $LIBS"
13643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13652 char krb_get_cred ();
13656 return krb_get_cred ();
13661 if ac_fn_c_try_link
"$LINENO"; then :
13662 ac_cv_lib_krb4_krb_get_cred
=yes
13664 ac_cv_lib_krb4_krb_get_cred
=no
13666 rm -f core conftest.err conftest.
$ac_objext \
13667 conftest
$ac_exeext conftest.
$ac_ext
13668 LIBS
=$ac_check_lib_save_LIBS
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13671 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13672 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13678 if test $have_krb4 = yes; then
13680 LIBS
="$KRB4LIB $LIBS"
13682 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13686 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13687 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13690 ac_check_lib_save_LIBS
=$LIBS
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply. */
13701 char krb_get_cred ();
13705 return krb_get_cred ();
13710 if ac_fn_c_try_link
"$LINENO"; then :
13711 ac_cv_lib_krb_krb_get_cred
=yes
13713 ac_cv_lib_krb_krb_get_cred
=no
13715 rm -f core conftest.err conftest.
$ac_objext \
13716 conftest
$ac_exeext conftest.
$ac_ext
13717 LIBS
=$ac_check_lib_save_LIBS
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13720 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13721 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13727 if test $have_krb = yes; then
13729 LIBS
="$KRB4LIB $LIBS"
13731 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13737 if test "${with_kerberos5}" != no
; then
13738 for ac_header
in krb5.h
13740 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13741 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13742 cat >>confdefs.h
<<_ACEOF
13743 #define HAVE_KRB5_H 1
13745 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13747 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13749 cat >>confdefs.h
<<_ACEOF
13750 #define HAVE_KRB5_ERROR_TEXT 1
13755 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13757 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13759 cat >>confdefs.h
<<_ACEOF
13760 #define HAVE_KRB5_ERROR_E_TEXT 1
13771 for ac_header
in des.h
13773 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13774 if test "x$ac_cv_header_des_h" = x
""yes; then :
13775 cat >>confdefs.h
<<_ACEOF
13776 #define HAVE_DES_H 1
13780 for ac_header
in kerberosIV
/des.h
13782 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13783 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13784 cat >>confdefs.h
<<_ACEOF
13785 #define HAVE_KERBEROSIV_DES_H 1
13789 for ac_header
in kerberos
/des.h
13791 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13792 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13793 cat >>confdefs.h
<<_ACEOF
13794 #define HAVE_KERBEROS_DES_H 1
13809 for ac_header
in krb.h
13811 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13812 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13813 cat >>confdefs.h
<<_ACEOF
13814 #define HAVE_KRB_H 1
13818 for ac_header
in kerberosIV
/krb.h
13820 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13822 cat >>confdefs.h
<<_ACEOF
13823 #define HAVE_KERBEROSIV_KRB_H 1
13827 for ac_header
in kerberos
/krb.h
13829 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13831 cat >>confdefs.h
<<_ACEOF
13832 #define HAVE_KERBEROS_KRB_H 1
13848 for ac_header
in com_err.h
13850 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13851 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13852 cat >>confdefs.h
<<_ACEOF
13853 #define HAVE_COM_ERR_H 1
13868 # Solaris requires -lintl if you want strerror (which calls dgettext)
13869 # to return localized messages.
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13871 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13872 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13875 ac_check_lib_save_LIBS
=$LIBS
13876 LIBS
="-lintl $LIBS"
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13890 return dgettext ();
13895 if ac_fn_c_try_link
"$LINENO"; then :
13896 ac_cv_lib_intl_dgettext
=yes
13898 ac_cv_lib_intl_dgettext
=no
13900 rm -f core conftest.err conftest.
$ac_objext \
13901 conftest
$ac_exeext conftest.
$ac_ext
13902 LIBS
=$ac_check_lib_save_LIBS
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13905 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13906 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13907 cat >>confdefs.h
<<_ACEOF
13908 #define HAVE_LIBINTL 1
13911 LIBS
="-lintl $LIBS"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13917 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13918 if test "${emacs_cv_localtime_cache+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13921 if test x
$ac_cv_func_tzset = xyes
; then
13922 if test "$cross_compiling" = yes; then :
13923 # If we have tzset, assume the worst when cross-compiling.
13924 emacs_cv_localtime_cache
=yes
13926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13929 char TZ_GMT0[] = "TZ=GMT0";
13930 char TZ_PST8[] = "TZ=PST8";
13933 time_t now = time ((time_t *) 0);
13934 int hour_GMT0, hour_unset;
13935 if (putenv (TZ_GMT0) != 0)
13937 hour_GMT0 = localtime (&now)->tm_hour;
13939 hour_unset = localtime (&now)->tm_hour;
13940 if (putenv (TZ_PST8) != 0)
13942 if (localtime (&now)->tm_hour == hour_GMT0)
13945 if (localtime (&now)->tm_hour != hour_unset)
13950 if ac_fn_c_try_run
"$LINENO"; then :
13951 emacs_cv_localtime_cache
=no
13953 emacs_cv_localtime_cache
=yes
13955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13960 # If we lack tzset, report that localtime does not cache TZ,
13961 # since we can't invalidate the cache if we don't have tzset.
13962 emacs_cv_localtime_cache
=no
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13966 $as_echo "$emacs_cv_localtime_cache" >&6; }
13967 if test $emacs_cv_localtime_cache = yes; then
13969 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13973 if test "x$HAVE_TIMEVAL" = xyes
; then
13974 for ac_func
in gettimeofday
13976 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13977 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13978 cat >>confdefs.h
<<_ACEOF
13979 #define HAVE_GETTIMEOFDAY 1
13985 if test $ac_cv_func_gettimeofday = yes; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13987 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13988 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 #ifdef TIME_WITH_SYS_TIME
13995 #include <sys/time.h>
13998 #ifdef HAVE_SYS_TIME_H
13999 #include <sys/time.h>
14007 struct timeval time;
14008 gettimeofday (&time, 0);
14013 if ac_fn_c_try_compile
"$LINENO"; then :
14014 emacs_cv_gettimeofday_two_arguments
=yes
14016 emacs_cv_gettimeofday_two_arguments
=no
14018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14021 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14022 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14024 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14031 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14032 if test "x$ac_cv_func_socket" = x
""yes; then :
14038 if test $ok_so_far = yes; then
14039 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14040 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14048 if test $ok_so_far = yes; then
14049 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14058 if test $ok_so_far = yes; then
14060 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14064 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14066 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14071 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14072 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14083 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14084 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14088 cat >>confdefs.h
<<_ACEOF
14094 for ac_header
in vfork.h
14096 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14098 cat >>confdefs.h
<<_ACEOF
14099 #define HAVE_VFORK_H 1
14106 for ac_func
in fork vfork
14108 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14109 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14110 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14111 cat >>confdefs.h
<<_ACEOF
14112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14118 if test "x$ac_cv_func_fork" = xyes
; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14120 $as_echo_n "checking for working fork... " >&6; }
14121 if test "${ac_cv_func_fork_works+set}" = set; then :
14122 $as_echo_n "(cached) " >&6
14124 if test "$cross_compiling" = yes; then :
14125 ac_cv_func_fork_works
=cross
14127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129 $ac_includes_default
14134 /* By Ruediger Kuhlmann. */
14135 return fork () < 0;
14141 if ac_fn_c_try_run
"$LINENO"; then :
14142 ac_cv_func_fork_works
=yes
14144 ac_cv_func_fork_works
=no
14146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14152 $as_echo "$ac_cv_func_fork_works" >&6; }
14155 ac_cv_func_fork_works
=$ac_cv_func_fork
14157 if test "x$ac_cv_func_fork_works" = xcross
; then
14159 *-*-amigaos* |
*-*-msdosdjgpp*)
14160 # Override, as these systems have only a dummy fork() stub
14161 ac_cv_func_fork_works
=no
14164 ac_cv_func_fork_works
=yes
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14168 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14170 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14171 if test "x$ac_cv_func_vfork" = xyes
; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14173 $as_echo_n "checking for working vfork... " >&6; }
14174 if test "${ac_cv_func_vfork_works+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14177 if test "$cross_compiling" = yes; then :
14178 ac_cv_func_vfork_works
=cross
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 /* Thanks to Paul Eggert for this test. */
14183 $ac_includes_default
14184 #include <sys/wait.h>
14185 #ifdef HAVE_VFORK_H
14186 # include <vfork.h>
14188 /* On some sparc systems, changes by the child to local and incoming
14189 argument registers are propagated back to the parent. The compiler
14190 is told about this with #include <vfork.h>, but some compilers
14191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14192 static variable whose address is put into a register that is
14193 clobbered by the vfork. */
14196 sparc_address_test (int arg)
14198 sparc_address_test (arg) int arg;
14201 static pid_t child;
14219 pid_t parent = getpid ();
14222 sparc_address_test (0);
14227 /* Here is another test for sparc vfork register problems. This
14228 test uses lots of local variables, at least as many local
14229 variables as main has allocated so far including compiler
14230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14232 reuse the register of parent for one of the local variables,
14233 since it will think that parent can't possibly be used any more
14234 in this routine. Assigning to the local variable will thus
14235 munge parent in the parent process. */
14237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14239 /* Convince the compiler that p..p7 are live; otherwise, it might
14240 use the same hardware register for all 8 local variables. */
14241 if (p != p1 || p != p2 || p != p3 || p != p4
14242 || p != p5 || p != p6 || p != p7)
14245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14246 from child file descriptors. If the child closes a descriptor
14247 before it execs or exits, this munges the parent's descriptor
14248 as well. Test for this by closing stdout in the child. */
14249 _exit(close(fileno(stdout)) != 0);
14254 while (wait(&status) != child)
14257 /* Was there some problem with vforking? */
14260 /* Did the child fail? (This shouldn't happen.) */
14263 /* Did the vfork/compiler bug occur? */
14264 || parent != getpid()
14266 /* Did the file descriptor bug occur? */
14267 || fstat(fileno(stdout), &st) != 0
14272 if ac_fn_c_try_run
"$LINENO"; then :
14273 ac_cv_func_vfork_works
=yes
14275 ac_cv_func_vfork_works
=no
14277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14283 $as_echo "$ac_cv_func_vfork_works" >&6; }
14286 if test "x$ac_cv_func_fork_works" = xcross
; then
14287 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14289 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14292 if test "x$ac_cv_func_vfork_works" = xyes
; then
14294 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14298 $as_echo "#define vfork fork" >>confdefs.h
14301 if test "x$ac_cv_func_fork_works" = xyes
; then
14303 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14309 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14310 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #include <langinfo.h>
14319 char* cs = nl_langinfo(CODESET);
14324 if ac_fn_c_try_link
"$LINENO"; then :
14325 emacs_cv_langinfo_codeset
=yes
14327 emacs_cv_langinfo_codeset
=no
14329 rm -f core conftest.err conftest.
$ac_objext \
14330 conftest
$ac_exeext conftest.
$ac_ext
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14334 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14335 if test $emacs_cv_langinfo_codeset = yes; then
14337 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14341 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14342 if test "x$ac_cv_type_size_t" = x
""yes; then :
14344 cat >>confdefs.h
<<_ACEOF
14345 #define HAVE_SIZE_T 1
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14353 $as_echo_n "checking for mbstate_t... " >&6; }
14354 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14355 $as_echo_n "(cached) " >&6
14357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 $ac_includes_default
14360 # include <wchar.h>
14364 mbstate_t x; return sizeof x;
14369 if ac_fn_c_try_compile
"$LINENO"; then :
14370 ac_cv_type_mbstate_t
=yes
14372 ac_cv_type_mbstate_t
=no
14374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14377 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14378 if test $ac_cv_type_mbstate_t = yes; then
14380 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14384 $as_echo "#define mbstate_t int" >>confdefs.h
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14389 $as_echo_n "checking for C restrict keyword... " >&6; }
14390 if test "${emacs_cv_c_restrict+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 void fred (int *restrict x);
14404 if ac_fn_c_try_compile
"$LINENO"; then :
14405 emacs_cv_c_restrict
=yes
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
=__restrict
14421 emacs_cv_c_restrict
=no
14423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14428 $as_echo "$emacs_cv_c_restrict" >&6; }
14429 case "$emacs_cv_c_restrict" in
14430 yes) emacs_restrict
=restrict
;;
14431 no
) emacs_restrict
="";;
14432 *) emacs_restrict
="$emacs_cv_c_restrict";;
14434 if test "$emacs_restrict" != __restrict
; then
14436 cat >>confdefs.h
<<_ACEOF
14437 #define __restrict $emacs_restrict
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14443 $as_echo_n "checking for C restricted array declarations... " >&6; }
14444 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 void fred (int x[__restrict]);
14458 if ac_fn_c_try_compile
"$LINENO"; then :
14459 emacs_cv_c_restrict_arr
=yes
14461 emacs_cv_c_restrict_arr
=no
14463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14466 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14467 if test "$emacs_cv_c_restrict_arr" = yes; then
14469 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14475 # Set up the CFLAGS for real compilation, so we can substitute it.
14476 CFLAGS
="$REAL_CFLAGS"
14477 CPPFLAGS
="$REAL_CPPFLAGS"
14479 ## Hack to detect a buggy GCC version.
14480 if test "x$GCC" = xyes \
14481 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14482 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14483 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14484 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14487 #### Find out which version of Emacs this is.
14488 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14489 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14490 if test x
"${version}" = x
; then
14491 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14493 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14495 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14498 ### Specify what sort of things we'll be editing into Makefile and config.h.
14499 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14523 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14524 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14525 ## end of LIBX_BASE, but nothing ever set it.
14530 ## Used in lwlib/Makefile.in.
14532 if test -n "${machfile}"; then
14533 M_FILE="\$
(srcdir
)/${machfile}"
14537 S_FILE="\$
(srcdir
)/${opsysfile}"
14549 cat >>confdefs.h <<_ACEOF
14550 #define EMACS_CONFIGURATION "${canonical}"
14554 cat >>confdefs.h <<_ACEOF
14555 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14558 if test -n "$machfile"; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define config_machfile "${machfile}"
14566 cat >>confdefs.h <<_ACEOF
14567 #define config_opsysfile "${opsysfile}"
14574 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14576 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14579 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14581 if test "$HAVE_XFT" = "yes"; then
14582 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14583 elif test "$HAVE_FREETYPE" = "yes"; then
14584 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14594 if test "${USE_X_TOOLKIT}" != "none" ; then
14595 WIDGET_OBJ
=widget.o
14597 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14599 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14601 $as_echo "#define USE_LUCID 1" >>confdefs.h
14603 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14605 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14610 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14611 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14615 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14616 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14617 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14621 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14622 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14625 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14631 case "$USE_X_TOOLKIT" in
14632 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14633 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14634 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14638 if test "$USE_X_TOOLKIT" = "none"; then
14639 LIBXT_OTHER
="\$(LIBXSM)"
14640 OLDXMENU_TARGET
="really-oldXMenu"
14642 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14643 OLDXMENU_TARGET
="really-lwlib"
14647 ## The X Menu stuff is present in the X10 distribution, but missing
14648 ## from X11. If we have X10, just use the installed library;
14649 ## otherwise, use our own copy.
14650 if test "${HAVE_X11}" = "yes" ; then
14652 $as_echo "#define HAVE_X11 1" >>confdefs.h
14655 if test "$USE_X_TOOLKIT" = "none"; then
14656 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14658 OLDXMENU
="\${lwlibdir}/liblw.a"
14660 LIBXMENU
="\$(OLDXMENU)"
14661 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14662 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14664 ## For a syntactically valid Makefile; not actually used for anything.
14665 ## See comments in src/Makefile.in.
14667 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14668 if test "${HAVE_X_WINDOWS}" = "yes"; then
14677 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14690 if test "${HAVE_MENUS}" = "yes" ; then
14692 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14696 if test "${GNU_MALLOC}" = "yes" ; then
14698 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14703 if test "${REL_ALLOC}" = "yes" ; then
14705 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14708 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14712 if test "$opsys" = "cygwin"; then
14713 CYGWIN_OBJ
="sheap.o"
14714 ## Cygwin differs because of its unexec().
14716 POST_ALLOC_OBJ
=lastfile.o
14719 PRE_ALLOC_OBJ
=lastfile.o
14728 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14731 ## The -headerpad option tells ld (see man page) to leave room at the
14732 ## end of the header for adding load commands. Needed for dumping.
14733 ## 0x690 is the total size of 30 segment load commands (at 56
14734 ## each); under Cocoa 31 commands are required.
14735 if test "$HAVE_NS" = "yes"; then
14736 libs_nsgui
="-framework AppKit"
14737 headerpad_extra
=6C8
14740 headerpad_extra
=690
14742 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14744 ## This is here because src/Makefile.in did some extra fiddling around
14745 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14746 ## #ifndef LD_SWITCH_SYSTEM
14747 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14748 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14749 ## not using gcc, darwin system not on an alpha (ie darwin, since
14750 ## darwin + alpha does not occur).
14751 ## Because this was done in src/Makefile.in, the resulting part of
14752 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14753 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14754 ## rather than LD_SWITCH_SYSTEM.
14755 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14756 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14759 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14760 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14761 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14762 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14763 ## had different values in configure (in ac_link) and src/Makefile.in.
14764 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14765 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14767 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14770 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14771 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14780 ## gnu: GNU needs its own crt0.
14781 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14783 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14784 ## library search parth, i.e. it won't search /usr/lib for libc and
14785 ## friends. Using -nostartfiles instead avoids this problem, and
14786 ## will also work on earlier NetBSD releases.
14787 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14789 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14790 ## MkLinux/LinuxPPC needs this.
14791 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14794 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14800 if test "x$ORDINARY_LINK" = "xyes"; then
14804 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14807 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14808 ## freebsd, gnu-* not on macppc|ibms390x.
14809 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14811 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14812 ## places that are difficult to figure out at make time. Fortunately,
14813 ## these same versions allow you to pass arbitrary flags on to the
14814 ## linker, so there is no reason not to use it as a linker.
14816 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14817 ## searching for libraries in its internal directories, so we have to
14818 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14819 LD_FIRSTFLAG
="-nostdlib"
14822 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14823 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14828 ## FIXME? The logic here is not precisely the same as that above.
14829 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14830 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14832 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14835 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14838 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14839 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14845 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14846 ## immediately undefine it again and redefine it to empty.
14847 ## Was the C_SWITCH_X_SITE part really necessary?
14848 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14854 ## Ask GCC where to find libgcc.a.
14855 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14862 ## If we're using X11/GNUstep, define some consequences.
14863 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14865 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14868 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14870 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14871 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
14873 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14874 test "$HAVE_X_WINDOWS" = "yes" && \
14875 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14885 #### Report on what we decided to do.
14886 #### Report GTK as a toolkit, even if it doesn't use Xt.
14887 #### It makes printing result more understandable as using GTK sets
14888 #### toolkit_scroll_bars to yes by default.
14889 if test "${HAVE_GTK}" = "yes"; then
14894 Configured for \`${canonical}'.
14896 Where should the build process find the source code? ${srcdir}
14897 What operating system and machine description files should Emacs use?
14898 \`${opsysfile}' and \`${machfile:+${machfile}}${machfile:-none}'
14899 What compiler should emacs be built with? ${CC} ${CFLAGS}
14900 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14901 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14902 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14903 What window system should Emacs use? ${window_system}
14904 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14906 if test -n "${x_includes}"; then
14907 echo " Where do we find X Windows header files? ${x_includes}"
14909 echo " Where do we find X Windows header files? Standard dirs"
14911 if test -n "${x_libraries}"; then
14912 echo " Where do we find X Windows libraries? ${x_libraries}"
14914 echo " Where do we find X Windows libraries? Standard dirs"
14917 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14918 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14919 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14920 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14921 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14922 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14923 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14924 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14926 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14927 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14928 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14929 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14930 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14931 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14933 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14934 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14935 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14936 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14938 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14941 if test $USE_XASSERTS = yes; then
14942 echo " Compiling with asserts turned on."
14943 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14948 if test "$HAVE_NS" = "yes"; then
14950 echo "You must run \"make install\" in order to test the built application.
14951 The installed application will go to nextstep/Emacs.app and can be
14952 run or moved from there."
14953 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14954 echo "The application will be fully self-contained."
14956 echo "The lisp resources for the application will be installed under ${prefix}.
14957 You may need to run \"make install\" with sudo. The application will fail
14958 to run if these resources are not installed."
14964 # Remove any trailing slashes in these variables.
14965 test "${prefix}" != NONE
&&
14966 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14967 test "${exec_prefix}" != NONE
&&
14968 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14970 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"
14972 ac_config_commands
="$ac_config_commands default"
14974 cat >confcache
<<\_ACEOF
14975 # This file is a shell script that caches the results of configure
14976 # tests run on this system so they can be shared between configure
14977 # scripts and configure runs, see configure's option --config-cache.
14978 # It is not useful on other systems. If it contains results you don't
14979 # want to keep, you may remove or edit it.
14981 # config.status only pays attention to the cache file if you give it
14982 # the --recheck option to rerun configure.
14984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14986 # following values.
14990 # The following way of writing the cache mishandles newlines in values,
14991 # but we know of no workaround that is simple, portable, and efficient.
14992 # So, we kill variables containing newlines.
14993 # Ultrix sh set writes to stderr and can't be redirected directly,
14994 # and sets the high bit in the cache file unless we assign to the vars.
14996 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14997 eval ac_val
=\$
$ac_var
15001 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15005 _ | IFS | as_nl
) ;; #(
15006 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15007 *) { eval $ac_var=; unset $ac_var;} ;;
15013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15014 *${as_nl}ac_space
=\
*)
15015 # `set' does not quote correctly, so add quotes: double-quote
15016 # substitution turns \\\\ into \\, and sed turns \\ into \.
15019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15022 # `set' quotes correctly as required by POSIX, so do not add quotes.
15023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15036 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15037 if test -w "$cache_file"; then
15038 test "x$cache_file" != "x/dev/null" &&
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15040 $as_echo "$as_me: updating cache $cache_file" >&6;}
15041 cat confcache
>$cache_file
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15044 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15049 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15050 # Let make expand exec_prefix.
15051 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15053 DEFS
=-DHAVE_CONFIG_H
15058 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15059 # 1. Remove the extension, and $U if already installed.
15060 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15061 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15063 # will be set to the directory where LIBOBJS objects are built.
15064 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15065 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15067 LIBOBJS
=$ac_libobjs
15069 LTLIBOBJS
=$ac_ltlibobjs
15074 : ${CONFIG_STATUS=./config.status}
15076 ac_clean_files_save
=$ac_clean_files
15077 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15083 # Generated by $as_me.
15084 # Run this file to recreate the current configuration.
15085 # Compiler output produced by configure, useful for debugging
15086 # configure, is in config.log if it exists.
15089 ac_cs_recheck=false
15092 SHELL=\${CONFIG_SHELL-$SHELL}
15095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15096 ## -------------------- ##
15097 ## M4sh Initialization. ##
15098 ## -------------------- ##
15100 # Be more Bourne compatible
15101 DUALCASE
=1; export DUALCASE
# for MKS sh
15102 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15106 # is contrary to our usage. Disable this feature.
15107 alias -g '${1+"$@"}'='"$@"'
15108 setopt NO_GLOB_SUBST
15110 case `(set -o) 2>/dev/null` in #(
15122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15123 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15126 # Prefer a ksh shell builtin over an external printf program on Solaris,
15127 # but without wasting forks for bash or zsh.
15128 if test -z "$BASH_VERSION$ZSH_VERSION" \
15129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15130 as_echo='print
-r --'
15131 as_echo_n='print
-rn --'
15132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15133 as_echo='printf %s
\n'
15134 as_echo_n='printf %s
'
15136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15137 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15138 as_echo_n='/usr
/ucb
/echo -n'
15140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15141 as_echo_n_body='eval
15145 expr "X$arg" : "X\\(.*\\)$as_nl";
15146 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15148 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15150 export as_echo_n_body
15151 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15153 export as_echo_body
15154 as_echo='sh
-c $as_echo_body as_echo
'
15157 # The user is always right.
15158 if test "${PATH_SEPARATOR+set}" != set; then
15160 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15161 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15168 # We need space, tab and new line, in precisely that order. Quoting is
15169 # there to prevent editors from complaining about space-tab.
15170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15171 # splitting by setting IFS to empty value.)
15174 # Find who we are. Look in the path if we contain no directory separator.
15176 *[\\/]* ) as_myself=$0 ;;
15177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 for as_dir in $PATH
15181 test -z "$as_dir" && as_dir=.
15182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15188 # We did not find ourselves, most probably we were run as `sh COMMAND'
15189 # in which case we are not to be found in the path.
15190 if test "x$as_myself" = x
; then
15193 if test ! -f "$as_myself"; then
15194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15198 # Unset variables that we do not need and which cause bugs (e.g. in
15199 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15200 # suppresses any "Segmentation fault" message there. '((' could
15201 # trigger a bug in pdksh 5.2.14.
15202 for as_var
in BASH_ENV ENV MAIL MAILPATH
15203 do eval test x\
${$as_var+set} = xset \
15204 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15217 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15220 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15221 # ----------------------------------------
15222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15224 # script with STATUS, using 1 if that was 0.
15227 as_status
=$1; test $as_status -eq 0 && as_status
=1
15229 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15232 $as_echo "$as_me: error: $2" >&2
15233 as_fn_exit
$as_status
15237 # as_fn_set_status STATUS
15238 # -----------------------
15239 # Set $? to STATUS, without forking.
15240 as_fn_set_status
()
15243 } # as_fn_set_status
15245 # as_fn_exit STATUS
15246 # -----------------
15247 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15251 as_fn_set_status
$1
15257 # Portably unset VAR.
15260 { eval $1=; unset $1;}
15262 as_unset
=as_fn_unset
15263 # as_fn_append VAR VALUE
15264 # ----------------------
15265 # Append the text in VALUE to the end of the definition contained in VAR. Take
15266 # advantage of any shell optimizations that allow amortized linear growth over
15267 # repeated appends, instead of the typical quadratic growth present in naive
15269 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15270 eval 'as_fn_append ()
15281 # as_fn_arith ARG...
15282 # ------------------
15283 # Perform arithmetic evaluation on the ARGs, and store the result in the
15284 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15285 # must be portable across $(()) and expr.
15286 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15287 eval 'as_fn_arith ()
15294 as_val
=`expr "$@" || test $? -eq 1`
15299 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15300 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15306 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15307 as_basename
=basename
15312 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15318 as_me
=`$as_basename -- "$0" ||
15319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15320 X"$0" : 'X\(//\)$' \| \
15321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15323 sed '/^.*\/\([^/][^/]*\)\/*$/{
15337 # Avoid depending upon Character Ranges.
15338 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15339 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15340 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15341 as_cr_digits
='0123456789'
15342 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15344 ECHO_C
= ECHO_N
= ECHO_T
=
15345 case `echo -n x` in #(((((
15347 case `echo 'xy\c'` in
15348 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15350 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15357 rm -f conf$$ conf$$.exe conf$$.
file
15358 if test -d conf$$.dir
; then
15359 rm -f conf$$.dir
/conf$$.
file
15362 mkdir conf$$.dir
2>/dev
/null
15364 if (echo >conf$$.
file) 2>/dev
/null
; then
15365 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15367 # ... but there are two gotchas:
15368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15370 # In both cases, we have to default to `cp -p'.
15371 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15373 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15381 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15382 rmdir conf$$.dir
2>/dev
/null
15387 # Create "$as_dir" as a directory, including parents if necessary.
15392 -*) as_dir
=.
/$as_dir;;
15394 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15398 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15399 *) as_qdir
=$as_dir;;
15401 as_dirs
="'$as_qdir' $as_dirs"
15402 as_dir
=`$as_dirname -- "$as_dir" ||
15403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15404 X"$as_dir" : 'X\(//\)[^/]' \| \
15405 X"$as_dir" : 'X\(//\)$' \| \
15406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15407 $as_echo X"$as_dir" |
15408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15412 /^X\(\/\/\)[^/].*/{
15425 test -d "$as_dir" && break
15427 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15428 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15432 if mkdir
-p .
2>/dev
/null
; then
15433 as_mkdir_p
='mkdir -p "$as_dir"'
15435 test -d .
/-p && rmdir .
/-p
15439 if test -x / >/dev
/null
2>&1; then
15440 as_test_x
='test -x'
15442 if ls -dL / >/dev
/null
2>&1; then
15449 if test -d "$1"; then
15455 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15456 ???[sx]*):;;*)false;;esac;fi
15460 as_executable_p
=$as_test_x
15462 # Sed expression to map a string onto a valid CPP name.
15463 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15465 # Sed expression to map a string onto a valid variable name.
15466 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15470 ## ----------------------------------- ##
15471 ## Main body of $CONFIG_STATUS script. ##
15472 ## ----------------------------------- ##
15474 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15477 # Save the log message, to keep $0 and so on meaningful, and to
15478 # report actual input values of CONFIG_FILES etc. instead of their
15479 # values after options handling.
15481 This file was extended by emacs $as_me 24.0.50, which was
15482 generated by GNU Autoconf 2.67. Invocation command line was
15484 CONFIG_FILES = $CONFIG_FILES
15485 CONFIG_HEADERS = $CONFIG_HEADERS
15486 CONFIG_LINKS = $CONFIG_LINKS
15487 CONFIG_COMMANDS = $CONFIG_COMMANDS
15490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15495 case $ac_config_files in *"
15496 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15499 case $ac_config_headers in *"
15500 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15505 # Files that config.status was made for.
15506 config_files="$ac_config_files"
15507 config_headers="$ac_config_headers"
15508 config_commands="$ac_config_commands"
15512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15514 \`$as_me' instantiates files and other configuration actions
15515 from templates according to the current configuration. Unless the files
15516 and actions are specified as TAGs, all are instantiated by default.
15518 Usage: $0 [OPTION]... [TAG]...
15520 -h, --help print this help, then exit
15521 -V, --version print version number and configuration settings, then exit
15522 --config print configuration, then exit
15523 -q, --quiet, --silent
15524 do not print progress messages
15525 -d, --debug don't remove temporary files
15526 --recheck update $as_me by reconfiguring in the same conditions
15527 --file=FILE[:TEMPLATE]
15528 instantiate the configuration file FILE
15529 --header=FILE[:TEMPLATE]
15530 instantiate the configuration header FILE
15532 Configuration files:
15535 Configuration headers:
15538 Configuration commands:
15541 Report bugs to the package provider."
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15547 emacs config.status 24.0.50
15548 configured by $0, generated by GNU Autoconf 2.67,
15549 with options \\"\$ac_cs_config\\"
15551 Copyright (C) 2010 Free Software Foundation, Inc.
15552 This config.status script is free software; the Free Software Foundation
15553 gives unlimited permission to copy, distribute and modify it."
15558 test -n "\$AWK" || AWK=awk
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15562 # The default lists apply if the user does not specify any file.
15568 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15569 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15573 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15585 # Handling of the options.
15586 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15588 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15589 $as_echo "$ac_cs_version"; exit ;;
15590 --config |
--confi |
--conf |
--con |
--co |
--c )
15591 $as_echo "$ac_cs_config"; exit ;;
15592 --debug |
--debu |
--deb |
--de |
--d |
-d )
15594 --file |
--fil |
--fi |
--f )
15597 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15598 '') as_fn_error $?
"missing file argument" ;;
15600 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15601 ac_need_defaults
=false
;;
15602 --header |
--heade |
--head |
--hea )
15605 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15607 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15608 ac_need_defaults
=false
;;
15610 # Conflict between --help and --header
15611 as_fn_error $?
"ambiguous option: \`$1'
15612 Try \`$0 --help' for more information.";;
15613 --help |
--hel |
-h )
15614 $as_echo "$ac_cs_usage"; exit ;;
15615 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15616 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15619 # This is an error.
15620 -*) as_fn_error $?
"unrecognized option: \`$1'
15621 Try \`$0 --help' for more information." ;;
15623 *) as_fn_append ac_config_targets
" $1"
15624 ac_need_defaults
=false
;;
15630 ac_configure_extra_args
=
15632 if $ac_cs_silent; then
15634 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15639 if \$ac_cs_recheck; then
15640 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15643 CONFIG_SHELL='$SHELL'
15644 export CONFIG_SHELL
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15654 ## Running $as_me. ##
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15664 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15670 # Handling of arguments.
15671 for ac_config_target
in $ac_config_targets
15673 case $ac_config_target in
15674 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15675 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15676 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15677 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15678 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15679 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15680 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15681 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15682 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15683 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15684 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15685 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15686 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15688 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15693 # If the user did not use the arguments to specify the items to instantiate,
15694 # then the envvar interface is used. Set only those that are not.
15695 # We use the long form for the default assignment because of an extremely
15696 # bizarre bug on SunOS 4.1.3.
15697 if $ac_need_defaults; then
15698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15703 # Have a temporary directory for convenience. Make it in the build tree
15704 # simply because there is no reason against having it here, and in addition,
15705 # creating and moving files from /tmp can sometimes cause problems.
15706 # Hook for its removal unless debugging.
15707 # Note that there is a small window in which the directory will not be cleaned:
15708 # after its creation but before its name has been assigned to `$tmp'.
15712 trap 'exit_status=$?
15713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15715 trap 'as_fn_exit 1' 1 2 13 15
15717 # Create a (secure) tmp directory for tmp files.
15720 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15721 test -n "$tmp" && test -d "$tmp"
15724 tmp
=.
/conf$$
-$RANDOM
15725 (umask 077 && mkdir
"$tmp")
15726 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15728 # Set up the scripts for CONFIG_FILES section.
15729 # No need to generate them if there are no CONFIG_FILES.
15730 # This happens for instance with `./config.status config.h'.
15731 if test -n "$CONFIG_FILES"; then
15733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15734 ac_cs_awk_getline
=:
15735 ac_cs_awk_pipe_init
=
15736 ac_cs_awk_read_file
='
15737 while ((getline aline < (F[key])) > 0)
15740 ac_cs_awk_pipe_fini
=
15742 ac_cs_awk_getline
=false
15743 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15744 ac_cs_awk_read_file
='
15746 print "cat " F[key] " &&"
15747 '$ac_cs_awk_pipe_init
15748 # The final `:' finishes the AND list.
15749 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15751 ac_cr
=`echo X | tr X '\015'`
15752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15753 # But we know of no other shell where ac_cr would be empty at this
15754 # point, so we can use a bashism as a fallback.
15755 if test "x$ac_cr" = x
; then
15756 eval ac_cr
=\$
\'\\r
\'
15758 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15762 ac_cs_awk_cr
=$ac_cr
15765 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15768 # Create commands to substitute file output variables.
15770 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15771 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15772 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15775 } >conf$
$files.sh
&&
15776 . .
/conf$
$files.sh ||
15777 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
15778 rm -f conf$
$files.sh
15781 echo "cat >conf$$subs.awk <<_ACEOF" &&
15782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15784 } >conf$$subs.sh ||
15785 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15788 for ac_last_try in false false false false false :; do
15789 . ./conf$$subs.sh ||
15790 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15792 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15793 if test $ac_delim_n = $ac_delim_num; then
15795 elif $ac_last_try; then
15796 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15798 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15801 rm -f conf$$subs.sh
15803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15808 s/^/S["/; s
/!.
*/"]=/
15818 s/\(.\{148\}\)..*/\1/
15820 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15825 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15832 s/\(.\{148\}\)..*/\1/
15834 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15838 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15843 ' <conf$$subs.awk | sed '
15848 ' >>$CONFIG_STATUS || ac_write_fail=1
15849 rm -f conf$$subs.awk
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15852 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15853 for (key in S) S_is_set[key] = 1
15855 \$ac_cs_awk_pipe_init
15859 nfields = split(line, field, "@
")
15861 len = length(field[1])
15862 for (i = 2; i < nfields; i++) {
15864 keylen = length(key)
15865 if (S_is_set[key]) {
15867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15868 len += length(value) + length(field[++i])
15873 if (nfields == 3 && !substed) {
15875 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15876 \$ac_cs_awk_read_file
15882 \$ac_cs_awk_pipe_fini
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15887 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15890 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15891 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15896 # trailing colons and then remove the whole line if VPATH becomes empty
15897 # (actually we leave an empty line to preserve line numbers).
15898 if test "x
$srcdir" = x.; then
15899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918 fi # test -n "$CONFIG_FILES"
15920 # Set up the scripts for CONFIG_HEADERS section.
15921 # No need to generate them if there are no CONFIG_HEADERS.
15922 # This happens for instance with `./config.status Makefile'.
15923 if test -n "$CONFIG_HEADERS"; then
15924 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15928 # Transform confdefs.h into an awk script `defines.awk', embedded as
15929 # here-document in config.status, that substitutes the proper values into
15930 # config.h.in to produce config.h.
15932 # Create a delimiter string that does not exist in confdefs.h, to ease
15933 # handling of long lines.
15935 for ac_last_try in false false :; do
15936 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15937 if test -z "$ac_t"; then
15939 elif $ac_last_try; then
15940 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15942 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15946 # For the awk script, D is an array of macro values keyed by name,
15947 # likewise P contains macro parameters if any. Preserve backslash
15948 # newline sequences.
15950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15952 s/.\{148\}/&'"$ac_delim"'/g
15955 s/^[ ]*#[ ]*define[ ][ ]*/ /
15962 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15964 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15969 D["\
1"]=" \
3\\\\\\n
"\\/p
15971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15976 s/.\{148\}/&'"$ac_delim"'/g
15981 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15984 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15986 ' <confdefs.h | sed '
15987 s/'"$ac_delim"'/"\\\
15988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15991 for (key in D) D_is_set[key] = 1
15994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15996 split(line, arg, " ")
15997 if (arg[1] == "#") {
16001 defundef
= substr
(arg
[1], 2)
16004 split(mac1
, mac2
, "(") #)
16006 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16007 if (D_is_set
[macro
]) {
16008 # Preserve the white space surrounding the "#".
16009 print prefix
"define", macro P
[macro
] D
[macro
]
16012 # Replace #undef with comments. This is necessary, for example,
16013 # in the case of _POSIX_SOURCE, which is predefined and required
16014 # on some systems where configure will not decide to define it.
16015 if (defundef
== "undef") {
16016 print
"/*", prefix defundef
, macro
, "*/"
16024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16025 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16026 fi # test -n "$CONFIG_HEADERS"
16029 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16034 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16036 case $ac_mode$ac_tag in
16038 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16039 :[FH
]-) ac_tag
=-:-;;
16040 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16057 -) ac_f
="$tmp/stdin";;
16058 *) # Look for the file first in the build tree, then in the source tree
16059 # (if the path is not absolute). The absolute path cannot be DOS-style,
16060 # because $ac_f cannot contain `:'.
16064 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16066 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16068 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16069 as_fn_append ac_file_inputs
" '$ac_f'"
16072 # Let's still pretend it is `configure' which instantiates (i.e., don't
16073 # use $as_me), people would be surprised to read:
16074 # /* config.h. Generated by config.status. */
16075 configure_input
='Generated from '`
16076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16078 if test x
"$ac_file" != x-
; then
16079 configure_input
="$ac_file. $configure_input"
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16081 $as_echo "$as_me: creating $ac_file" >&6;}
16083 # Neutralize special characters interpreted by sed in replacement strings.
16084 case $configure_input in #(
16085 *\
&* |
*\|
* |
*\\* )
16086 ac_sed_conf_input
=`$as_echo "$configure_input" |
16087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16088 *) ac_sed_conf_input
=$configure_input;;
16092 *:-:* |
*:-) cat >"$tmp/stdin" \
16093 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16098 ac_dir
=`$as_dirname -- "$ac_file" ||
16099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$ac_file" : 'X\(//\)[^/]' \| \
16101 X"$ac_file" : 'X\(//\)$' \| \
16102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X"$ac_file" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16108 /^X\(\/\/\)[^/].*/{
16121 as_dir
="$ac_dir"; as_fn_mkdir_p
16125 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16127 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16128 # A ".." for each directory in $ac_dir_suffix.
16129 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16130 case $ac_top_builddir_sub in
16131 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16132 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16135 ac_abs_top_builddir
=$ac_pwd
16136 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16137 # for backward compatibility:
16138 ac_top_builddir
=$ac_top_build_prefix
16141 .
) # We are building in place.
16143 ac_top_srcdir
=$ac_top_builddir_sub
16144 ac_abs_top_srcdir
=$ac_pwd ;;
16145 [\\/]* | ?
:[\\/]* ) # Absolute name.
16146 ac_srcdir
=$srcdir$ac_dir_suffix;
16147 ac_top_srcdir
=$srcdir
16148 ac_abs_top_srcdir
=$srcdir ;;
16149 *) # Relative name.
16150 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16151 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16152 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16154 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16164 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16165 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16170 # If the template does not know about datarootdir, expand it.
16171 # FIXME: This hack should be removed a few years after 2.60.
16172 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16184 *datarootdir
*) ac_datarootdir_seen
=yes;;
16185 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 ac_datarootdir_hack='
16191 s&@datadir@&$datadir&g
16192 s&@docdir@&$docdir&g
16193 s&@infodir@&$infodir&g
16194 s&@localedir@&$localedir&g
16195 s&@mandir@&$mandir&g
16196 s&\\\${datarootdir}&$datarootdir&g' ;;
16200 # Neutralize VPATH when `$srcdir' = `.'.
16201 # Shell code in configure.ac might set extrasub.
16202 # FIXME: do we really want to maintain this feature?
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204 ac_sed_extra="$ac_vpsub
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16209 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16210 s|@configure_input@|
$ac_sed_conf_input|
;t t
16211 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16212 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16213 s
&@srcdir@
&$ac_srcdir&;t t
16214 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16215 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16216 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16217 s
&@builddir@
&$ac_builddir&;t t
16218 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16219 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16220 s
&@INSTALL@
&$ac_INSTALL&;t t
16221 $ac_datarootdir_hack
16223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16224 if $ac_cs_awk_getline; then
16225 $AWK -f "$tmp/subs.
awk"
16227 $AWK -f "$tmp/subs.
awk" | $SHELL
16229 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16232 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16235 which seems to be undefined. Please make sure it is defined" >&5
16236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16237 which seems to be undefined. Please make sure it is defined" >&2;}
16241 -) cat "$tmp/out" && rm -f "$tmp/out";;
16242 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16250 if test x"$ac_file" != x-; then
16252 $as_echo "/* $configure_input */" \
16253 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16254 } >"$tmp/config.h" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16256 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16261 mv "$tmp/config.h" "$ac_file" \
16262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16265 $as_echo "/* $configure_input */" \
16266 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16267 || as_fn_error $? "could not create -" "$LINENO" 5
16271 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16272 $as_echo "$as_me: executing $ac_file commands" >&6;}
16277 case $ac_file$ac_mode in
16280 ### Make the necessary directories, if they don't exist.
16281 for dir
in etc lisp
; do
16282 test -d ${dir} || mkdir
${dir}
16285 echo creating src
/epaths.h
16286 ${MAKE-make} epaths-force
16288 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16289 echo creating src
/.gdbinit
16290 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16301 ac_clean_files
=$ac_clean_files_save
16303 test $ac_write_fail = 0 ||
16304 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16307 # configure is writing to config.log, and then calls config.status.
16308 # config.status does its own redirection, appending to config.log.
16309 # Unfortunately, on DOS this fails, as config.log is still kept open
16310 # by configure, so config.status won't be able to write to it; its
16311 # output is simply discarded. So we exec the FD to /dev/null,
16312 # effectively closing config.log, so it can be properly (re)opened and
16313 # appended to by config.status. When coming back to configure, we
16314 # need to make the FD available again.
16315 if test "$no_create" != yes; then
16317 ac_config_status_args
=
16318 test "$silent" = yes &&
16319 ac_config_status_args
="$ac_config_status_args --quiet"
16321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16324 # would make configure fail if this is the last instruction.
16325 $ac_cs_success || as_fn_exit
1
16327 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16329 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}