2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
605 LD_SWITCH_SYSTEM_TEMACS
638 x_default_search_path
704 LD_SWITCH_X_SITE_AUX_RPATH
778 program_transform_name
789 ac_subst_files
='deps_frag
792 enable_option_checking
813 with_toolkit_scroll_bars
826 enable_ns_self_contained
828 enable_maintainer_mode
836 ac_precious_vars
='build_alias
848 # Initialize some variables set by options.
850 ac_init_version
=false
851 ac_unrecognized_opts
=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
862 program_transform_name
=s
,x
,x
,
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir
='${exec_prefix}/bin'
877 sbindir
='${exec_prefix}/sbin'
878 libexecdir
='${exec_prefix}/libexec'
879 datarootdir
='${prefix}/share'
880 datadir
='${datarootdir}'
881 sysconfdir
='${prefix}/etc'
882 sharedstatedir
='${prefix}/com'
883 localstatedir
='${prefix}/var'
884 includedir
='${prefix}/include'
885 oldincludedir
='/usr/include'
886 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir
='${datarootdir}/info'
892 libdir
='${exec_prefix}/lib'
893 localedir
='${datarootdir}/locale'
894 mandir
='${datarootdir}/man'
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\
$ac_option
908 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
918 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
920 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
923 -build |
--build |
--buil |
--bui |
--bu)
924 ac_prev
=build_alias
;;
925 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
926 build_alias
=$ac_optarg ;;
928 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
929 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
930 ac_prev
=cache_file
;;
931 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
932 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
933 cache_file
=$ac_optarg ;;
936 cache_file
=config.cache
;;
938 -datadir |
--datadir |
--datadi |
--datad)
940 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
941 datadir
=$ac_optarg ;;
943 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
944 |
--dataroo |
--dataro |
--datar)
945 ac_prev
=datarootdir
;;
946 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
947 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
948 datarootdir
=$ac_optarg ;;
950 -disable-* |
--disable-*)
951 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
954 as_fn_error
"invalid feature name: $ac_useropt"
955 ac_useropt_orig
=$ac_useropt
956 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep
=', ';;
964 eval enable_
$ac_useropt=no
;;
966 -docdir |
--docdir |
--docdi |
--doc |
--do)
968 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
971 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
973 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
976 -enable-* |
--enable-*)
977 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
980 as_fn_error
"invalid feature name: $ac_useropt"
981 ac_useropt_orig
=$ac_useropt
982 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep
=', ';;
990 eval enable_
$ac_useropt=\
$ac_optarg ;;
992 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
993 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
994 |
--exec |
--exe |
--ex)
995 ac_prev
=exec_prefix
;;
996 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
997 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
998 |
--exec=* |
--exe=* |
--ex=*)
999 exec_prefix
=$ac_optarg ;;
1001 -gas |
--gas |
--ga |
--g)
1002 # Obsolete; use --with-gas.
1005 -help |
--help |
--hel |
--he |
-h)
1006 ac_init_help
=long
;;
1007 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1008 ac_init_help
=recursive
;;
1009 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1010 ac_init_help
=short
;;
1012 -host |
--host |
--hos |
--ho)
1013 ac_prev
=host_alias
;;
1014 -host=* |
--host=* |
--hos=* |
--ho=*)
1015 host_alias
=$ac_optarg ;;
1017 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1019 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1021 htmldir
=$ac_optarg ;;
1023 -includedir |
--includedir |
--includedi |
--included |
--include \
1024 |
--includ |
--inclu |
--incl |
--inc)
1025 ac_prev
=includedir
;;
1026 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1027 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1028 includedir
=$ac_optarg ;;
1030 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1032 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1033 infodir
=$ac_optarg ;;
1035 -libdir |
--libdir |
--libdi |
--libd)
1037 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1038 libdir
=$ac_optarg ;;
1040 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1041 |
--libexe |
--libex |
--libe)
1042 ac_prev
=libexecdir
;;
1043 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1044 |
--libexe=* |
--libex=* |
--libe=*)
1045 libexecdir
=$ac_optarg ;;
1047 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1048 ac_prev
=localedir
;;
1049 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1050 localedir
=$ac_optarg ;;
1052 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1053 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1054 ac_prev
=localstatedir
;;
1055 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1056 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1057 localstatedir
=$ac_optarg ;;
1059 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1061 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1062 mandir
=$ac_optarg ;;
1064 -nfp |
--nfp |
--nf)
1065 # Obsolete; use --without-fp.
1068 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1069 |
--no-cr |
--no-c |
-n)
1072 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1073 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1076 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1077 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1078 |
--oldin |
--oldi |
--old |
--ol |
--o)
1079 ac_prev
=oldincludedir
;;
1080 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1081 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1082 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1083 oldincludedir
=$ac_optarg ;;
1085 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1087 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1088 prefix
=$ac_optarg ;;
1090 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1091 |
--program-pre |
--program-pr |
--program-p)
1092 ac_prev
=program_prefix
;;
1093 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1094 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1095 program_prefix
=$ac_optarg ;;
1097 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1098 |
--program-suf |
--program-su |
--program-s)
1099 ac_prev
=program_suffix
;;
1100 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1101 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1102 program_suffix
=$ac_optarg ;;
1104 -program-transform-name |
--program-transform-name \
1105 |
--program-transform-nam |
--program-transform-na \
1106 |
--program-transform-n |
--program-transform- \
1107 |
--program-transform |
--program-transfor \
1108 |
--program-transfo |
--program-transf \
1109 |
--program-trans |
--program-tran \
1110 |
--progr-tra |
--program-tr |
--program-t)
1111 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1121 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1123 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1124 pdfdir
=$ac_optarg ;;
1126 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1128 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1131 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1132 |
-silent |
--silent |
--silen |
--sile |
--sil)
1135 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1137 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1139 sbindir
=$ac_optarg ;;
1141 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1142 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1143 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1145 ac_prev
=sharedstatedir
;;
1146 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1147 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1148 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1150 sharedstatedir
=$ac_optarg ;;
1152 -site |
--site |
--sit)
1154 -site=* |
--site=* |
--sit=*)
1157 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1159 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1160 srcdir
=$ac_optarg ;;
1162 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1163 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1164 ac_prev
=sysconfdir
;;
1165 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1166 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1167 sysconfdir
=$ac_optarg ;;
1169 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1170 ac_prev
=target_alias
;;
1171 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1172 target_alias
=$ac_optarg ;;
1174 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1177 -version |
--version |
--versio |
--versi |
--vers |
-V)
1178 ac_init_version
=: ;;
1181 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1184 as_fn_error
"invalid package name: $ac_useropt"
1185 ac_useropt_orig
=$ac_useropt
1186 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep
=', ';;
1194 eval with_
$ac_useropt=\
$ac_optarg ;;
1196 -without-* |
--without-*)
1197 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1200 as_fn_error
"invalid package name: $ac_useropt"
1201 ac_useropt_orig
=$ac_useropt
1202 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep
=', ';;
1210 eval with_
$ac_useropt=no
;;
1213 # Obsolete; use --with-x.
1216 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1217 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1218 ac_prev
=x_includes
;;
1219 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1220 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1221 x_includes
=$ac_optarg ;;
1223 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1224 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1225 ac_prev
=x_libraries
;;
1226 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1227 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1228 x_libraries
=$ac_optarg ;;
1230 -*) as_fn_error
"unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1235 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1239 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1241 eval $ac_envvar=\
$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error
"missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val
=\$
$ac_var
1275 # Remove trailing slashes.
1278 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\
$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$
]* | ?
:[\\/]* ) continue;;
1284 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1286 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target
=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x
; then
1298 if test "x$build_alias" = x
; then
1299 cross_compiling
=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1310 test "$silent" = yes && exec 6>/dev
/null
1313 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di
=`ls -di .` &&
1315 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error
"working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error
"pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted
=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir
=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted
=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1357 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 for ac_var
in $ac_precious_vars; do
1374 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1376 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1450 --x-includes=DIR X include files are
in DIR
1451 --x-libraries=DIR X library files are
in DIR
1454 --build=BUILD configure
for building on BUILD
[guessed
]
1455 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1466 --disable-option-checking ignore unrecognized
--enable/--with options
1467 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1468 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1469 --disable-ns-self-contained
1470 disable self contained build under NeXTstep
1471 --enable-asserts compile code with asserts enabled
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful
(and
1474 sometimes confusing
) to the casual installer
1475 --enable-locallisppath=PATH
1476 directories Emacs should search
for lisp files
1477 specific to this site
1478 --enable-checking[=LIST
]
1479 enable expensive run-time checks. With LIST
, enable
1480 only specific categories of checks. Categories are
:
1481 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1482 stringfreelist
, xmallocoverrun
, conslist
1483 --enable-profiling build emacs with profiling support. This might not
1484 work on all platforms
1485 --enable-autodepend automatically generate dependencies to .h-files.
1486 Requires GNU Make and Gcc. Enabled
if GNU Make and
1488 --disable-largefile omit support
for large files
1491 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1492 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1493 --without-pop don
't support POP mail retrieval with movemail
1494 --with-kerberos support Kerberos-authenticated POP
1495 --with-kerberos5 support Kerberos version 5 authenticated POP
1496 --with-hesiod support Hesiod to get the POP server host
1497 --with-mmdf support MMDF mailboxes
1498 --with-mail-unlink unlink, rather than empty, mail spool after reading
1499 --with-mailhost=HOSTNAME
1500 string giving default POP mail host
1501 --without-sound don't compile with sound support
1502 --without-sync-input process async input synchronously
1503 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1505 --without-xpm don
't compile with XPM image support
1506 --without-jpeg don't compile with JPEG image support
1507 --without-tiff don
't compile with TIFF image support
1508 --without-gif don't compile with GIF image support
1509 --without-png don
't compile with PNG image support
1510 --without-rsvg don't compile with SVG image support
1511 --with-imagemagick compile with ImageMagick image support
1512 --without-xft don
't use XFT for anti aliased fonts
1513 --without-libotf don't use libotf
for OpenType font support
1514 --without-m17n-flt don
't use m17n-flt for text shaping
1515 --without-toolkit-scroll-bars
1516 don't use Motif or Xaw3d scroll bars
1517 --without-xaw3d don
't use Xaw3d
1518 --without-xim don't use X11 XIM
1519 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1520 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1522 --without-dbus don't compile with D-Bus support
1523 --without-gconf don
't compile with GConf support
1524 --without-selinux don't compile with SELinux support
1525 --without-makeinfo don
't require makeinfo for building manuals
1526 --without-compress-info don't
compress the installed Info pages
1527 --with-pkg-config-prog=PATH
1528 path to pkg-config
for finding GTK and librsvg
1529 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1530 /usr
/lib
, or
/usr
/lib64 on some platforms.
1531 --with-gnustep-conf=PATH
1532 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1533 or
/etc
/GNUstep
/GNUstep.conf
1534 --with-x use the X Window System
1536 Some influential environment variables
:
1537 CC C compiler
command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1540 nonstandard directory
<lib dir
>
1541 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1542 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1543 you have headers
in a nonstandard directory
<include dir
>
1545 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1547 Use these variables to override the choices made by
`configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to the package provider.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 emacs configure 24.0.50
1614 generated by GNU Autoconf 2.65
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1637 *) ac_try_echo
=$ac_try;;
1639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err
; then
1644 grep -v '^ *+' conftest.err
>conftest.er1
1645 cat conftest.er1
>&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.
$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.
$ac_ext >&5
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1661 as_fn_set_status
$ac_retval
1663 } # ac_fn_c_try_compile
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 rm -f conftest.
$ac_objext conftest
$ac_exeext
1672 if { { ac_try
="$ac_link"
1674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 $as_test_x conftest$ac_exeext
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_link
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1720 *) ac_try_echo
=$ac_try;;
1722 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err
; then
1727 grep -v '^ *+' conftest.err
>conftest.er1
1728 cat conftest.er1
>&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } >/dev
/null
&& {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.
$ac_ext >&5
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1744 as_fn_set_status
$ac_retval
1748 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751 # the include files in INCLUDES and setting the cache variable VAR
1753 ac_fn_c_check_header_mongrel
()
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1766 # Is the header compilable?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768 $as_echo_n "checking $2 usability... " >&6; }
1769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1774 if ac_fn_c_try_compile
"$LINENO"; then :
1775 ac_header_compiler
=yes
1777 ac_header_compiler
=no
1779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781 $as_echo "$ac_header_compiler" >&6; }
1783 # Is the header present?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785 $as_echo_n "checking $2 presence... " >&6; }
1786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1790 if ac_fn_c_try_cpp
"$LINENO"; then :
1791 ac_header_preproc
=yes
1793 ac_header_preproc
=no
1795 rm -f conftest.err conftest.
$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797 $as_echo "$ac_header_preproc" >&6; }
1799 # So? What about this header?
1800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1811 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1815 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1825 eval "$3=\$ac_header_compiler"
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1833 } # ac_fn_c_check_header_mongrel
1835 # ac_fn_c_try_run LINENO
1836 # ----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1838 # that executables *can* be run.
1841 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1842 if { { ac_try
="$ac_link"
1844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>&5
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1853 { { case "(($ac_try" in
1854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1855 *) ac_try_echo
=$ac_try;;
1857 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_try") 2>&5
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; }; }; then :
1865 $as_echo "$as_me: program exited with status $ac_status" >&5
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.
$ac_ext >&5
1869 ac_retval
=$ac_status
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1873 as_fn_set_status
$ac_retval
1877 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists and can be compiled using the include files in
1880 # INCLUDES, setting the cache variable VAR accordingly.
1881 ac_fn_c_check_header_compile
()
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1894 if ac_fn_c_try_compile
"$LINENO"; then :
1899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1906 } # ac_fn_c_check_header_compile
1908 # ac_fn_c_check_decl LINENO SYMBOL VAR
1909 # ------------------------------------
1910 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1911 ac_fn_c_check_decl
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1915 $as_echo_n "checking whether $2 is declared... " >&6; }
1916 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1933 if ac_fn_c_try_compile
"$LINENO"; then :
1938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1945 } # ac_fn_c_check_decl
1947 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1948 # ----------------------------------------------
1949 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_preproc
()
1952 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 $as_echo_n "(cached) " >&6
1958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1962 if ac_fn_c_try_cpp
"$LINENO"; then :
1967 rm -f conftest.err conftest.
$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 } # ac_fn_c_check_header_preproc
1976 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1977 # ----------------------------------------------------
1978 # Tries to find if the field MEMBER exists in type AGGR, after including
1979 # INCLUDES, setting cache variable VAR accordingly.
1980 ac_fn_c_check_member
()
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1984 $as_echo_n "checking for $2.$3... " >&6; }
1985 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
2001 if ac_fn_c_try_compile
"$LINENO"; then :
2004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2011 if (sizeof ac_aggr.$3)
2017 if ac_fn_c_try_compile
"$LINENO"; then :
2022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 } # ac_fn_c_check_member
2033 # ac_fn_c_check_func LINENO FUNC VAR
2034 # ----------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_c_check_func
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2048 #define $2 innocuous_$2
2050 /* System header to define __stub macros and hopefully few prototypes,
2051 which can conflict with char $2 (); below.
2052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2053 <limits.h> exists even on freestanding compilers. */
2056 # include <limits.h>
2058 # include <assert.h>
2063 /* Override any GCC internal prototype to avoid an error.
2064 Use char because int might match the return type of a GCC
2065 builtin and then its argument prototype would still apply. */
2070 /* The GNU C library defines this for functions which it implements
2071 to always fail with ENOSYS. Some functions are actually named
2072 something starting with __ and the normal name is an alias. */
2073 #if defined __stub_$2 || defined __stub___$2
2085 if ac_fn_c_try_link
"$LINENO"; then :
2090 rm -f core conftest.err conftest.
$ac_objext \
2091 conftest
$ac_exeext conftest.
$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2098 } # ac_fn_c_check_func
2100 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2101 # -------------------------------------------
2102 # Tests whether TYPE exists after having included INCLUDES, setting cache
2103 # variable VAR accordingly.
2104 ac_fn_c_check_type
()
2106 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2110 $as_echo_n "(cached) " >&6
2113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2138 if ac_fn_c_try_compile
"$LINENO"; then :
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2152 } # ac_fn_c_check_type
2153 cat >config.log
<<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by emacs $as_me 24.0.50, which was
2158 generated by GNU Autoconf 2.65. Invocation command line was
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir
=.
2194 $as_echo "PATH: $as_dir"
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_must_keep_next
=false
2224 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2226 |
-silent |
--silent |
--silen |
--sile |
--sil)
2229 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1
" '$ac_arg'"
2235 if test $ac_must_keep_next = true
; then
2236 ac_must_keep_next
=false
# Got value, back to normal.
2239 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2240 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2241 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2242 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 -* ) ac_must_keep_next
=true
;;
2250 as_fn_append ac_configure_args
" '$ac_arg'"
2255 { ac_configure_args0
=; unset ac_configure_args0
;}
2256 { ac_configure_args1
=; unset ac_configure_args1
;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2269 ## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 ## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2316 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -n "$ac_subst_files"; then
2324 ## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##
2329 for ac_var
in $ac_subst_files
2331 eval ac_val
=\$
$ac_var
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 $as_echo "$ac_var='\''$ac_val'\''"
2340 if test -s confdefs.h; then
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2358 for ac_signal
in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest
* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h
<<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2374 cat >>confdefs.h
<<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2378 cat >>confdefs.h
<<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 cat >>confdefs.h
<<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2386 cat >>confdefs.h
<<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2390 cat >>confdefs.h
<<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2399 if test -n "$CONFIG_SITE"; then
2400 ac_site_file1
=$CONFIG_SITE
2401 elif test "x$prefix" != xNONE
; then
2402 ac_site_file1
=$prefix/share
/config.site
2403 ac_site_file2
=$prefix/etc
/config.site
2405 ac_site_file1
=$ac_default_prefix/share
/config.site
2406 ac_site_file2
=$ac_default_prefix/etc
/config.site
2408 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE
&& continue
2411 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2427 *) .
"./$cache_file";;
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2436 as_fn_append ac_header_list
" stdlib.h"
2437 as_fn_append ac_header_list
" unistd.h"
2438 as_fn_append ac_header_list
" sys/param.h"
2439 as_fn_append ac_func_list
" MagickExportImagePixels"
2440 as_fn_append ac_header_list
" sys/time.h"
2441 as_fn_append ac_func_list
" alarm"
2442 # Check that the precious variables saved in the cache have kept the same
2444 ac_cache_corrupted
=false
2445 for ac_var
in $ac_precious_vars; do
2446 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2447 eval ac_new_set
=\
$ac_env_${ac_var}_set
2448 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2449 eval ac_new_val
=\
$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted
=: ;;
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted
=: ;;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w
=`echo x $ac_old_val`
2464 ac_new_val_w
=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted
=:
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\
$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2483 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg
=$ac_var=$ac_new_val ;;
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2504 ac_cpp
='$CPP $CPPFLAGS'
2505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2510 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2514 test "$program_prefix" != NONE
&&
2515 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2516 # Use a double $ so make ignores it.
2517 test "$program_suffix" != NONE
&&
2518 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2519 # Double any \ or $.
2520 # By default was `s,x,x', remove it if useless.
2521 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2522 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525 lispdir
='${datadir}/emacs/${version}/lisp'
2526 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2527 '${datadir}/emacs/site-lisp'
2528 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2529 etcdir
='${datadir}/emacs/${version}/etc'
2530 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2531 docdir
='${datadir}/emacs/${version}/etc'
2532 gamedir
='${localstatedir}/games/emacs'
2539 # Check whether --with-pop was given.
2540 if test "${with_pop+set}" = set; then :
2546 if test "$with_pop" = yes; then
2547 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2552 # Check whether --with-kerberos was given.
2553 if test "${with_kerberos+set}" = set; then :
2554 withval
=$with_kerberos;
2559 if test "$with_kerberos" != no
; then
2560 $as_echo "#define KERBEROS 1" >>confdefs.h
2565 # Check whether --with-kerberos5 was given.
2566 if test "${with_kerberos5+set}" = set; then :
2567 withval
=$with_kerberos5;
2572 if test "${with_kerberos5}" != no
; then
2573 if test "${with_kerberos}" = no
; then
2575 $as_echo "#define KERBEROS 1" >>confdefs.h
2579 $as_echo "#define KERBEROS5 1" >>confdefs.h
2584 # Check whether --with-hesiod was given.
2585 if test "${with_hesiod+set}" = set; then :
2586 withval
=$with_hesiod;
2591 if test "$with_hesiod" != no
; then
2593 $as_echo "#define HESIOD 1" >>confdefs.h
2598 # Check whether --with-mmdf was given.
2599 if test "${with_mmdf+set}" = set; then :
2605 if test "$with_mmdf" != no
; then
2607 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2612 # Check whether --with-mail-unlink was given.
2613 if test "${with_mail_unlink+set}" = set; then :
2614 withval
=$with_mail_unlink;
2619 if test "$with_mail_unlink" != no
; then
2621 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2626 # Check whether --with-mailhost was given.
2627 if test "${with_mailhost+set}" = set; then :
2628 withval
=$with_mailhost;
2629 cat >>confdefs.h
<<_ACEOF
2630 #define MAILHOST "$withval"
2637 # Check whether --with-sound was given.
2638 if test "${with_sound+set}" = set; then :
2639 withval
=$with_sound;
2646 # Check whether --with-sync-input was given.
2647 if test "${with_sync_input+set}" = set; then :
2648 withval
=$with_sync_input;
2653 if test "$with_sync_input" = yes; then
2655 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2660 # Check whether --with-x-toolkit was given.
2661 if test "${with_x_toolkit+set}" = set; then :
2662 withval
=$with_x_toolkit; case "${withval}" in
2663 y | ye |
yes ) val
=gtk
;;
2665 l | lu | luc | luci | lucid
) val
=lucid
;;
2666 a |
at | ath | athe | athen | athena
) val
=athena
;;
2667 m | mo | mot | moti | motif
) val
=motif
;;
2668 g | gt | gtk
) val
=gtk
;;
2670 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
2671 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2672 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2681 # Check whether --with-xpm was given.
2682 if test "${with_xpm+set}" = set; then :
2689 # Check whether --with-jpeg was given.
2690 if test "${with_jpeg+set}" = set; then :
2697 # Check whether --with-tiff was given.
2698 if test "${with_tiff+set}" = set; then :
2705 # Check whether --with-gif was given.
2706 if test "${with_gif+set}" = set; then :
2713 # Check whether --with-png was given.
2714 if test "${with_png+set}" = set; then :
2721 # Check whether --with-rsvg was given.
2722 if test "${with_rsvg+set}" = set; then :
2729 # Check whether --with-imagemagick was given.
2730 if test "${with_imagemagick+set}" = set; then :
2731 withval
=$with_imagemagick;
2738 # Check whether --with-xft was given.
2739 if test "${with_xft+set}" = set; then :
2746 # Check whether --with-libotf was given.
2747 if test "${with_libotf+set}" = set; then :
2748 withval
=$with_libotf;
2754 # Check whether --with-m17n-flt was given.
2755 if test "${with_m17n_flt+set}" = set; then :
2756 withval
=$with_m17n_flt;
2763 # Check whether --with-toolkit-scroll-bars was given.
2764 if test "${with_toolkit_scroll_bars+set}" = set; then :
2765 withval
=$with_toolkit_scroll_bars;
2767 with_toolkit_scroll_bars
=yes
2771 # Check whether --with-xaw3d was given.
2772 if test "${with_xaw3d+set}" = set; then :
2773 withval
=$with_xaw3d;
2779 # Check whether --with-xim was given.
2780 if test "${with_xim+set}" = set; then :
2787 # Check whether --with-ns was given.
2788 if test "${with_ns+set}" = set; then :
2796 # Check whether --with-gpm was given.
2797 if test "${with_gpm+set}" = set; then :
2804 # Check whether --with-dbus was given.
2805 if test "${with_dbus+set}" = set; then :
2812 # Check whether --with-gconf was given.
2813 if test "${with_gconf+set}" = set; then :
2814 withval
=$with_gconf;
2820 # Check whether --with-selinux was given.
2821 if test "${with_selinux+set}" = set; then :
2822 withval
=$with_selinux;
2828 ## For the times when you want to build Emacs but don't have
2829 ## a suitable makeinfo, and can live without the manuals.
2831 # Check whether --with-makeinfo was given.
2832 if test "${with_makeinfo+set}" = set; then :
2833 withval
=$with_makeinfo;
2839 ## This is an option because I do not know if all info/man support
2840 ## compressed files, nor how to test if they do so.
2842 # Check whether --with-compress-info was given.
2843 if test "${with_compress_info+set}" = set; then :
2844 withval
=$with_compress_info;
2846 with_compress_info
=yes
2849 if test $with_compress_info = yes; then
2857 # Check whether --with-pkg-config-prog was given.
2858 if test "${with_pkg_config_prog+set}" = set; then :
2859 withval
=$with_pkg_config_prog;
2862 if test "X${with_pkg_config_prog}" != X
; then
2863 if test "${with_pkg_config_prog}" != yes; then
2864 PKG_CONFIG
="${with_pkg_config_prog}"
2870 # Check whether --with-crt-dir was given.
2871 if test "${with_crt_dir+set}" = set; then :
2872 withval
=$with_crt_dir;
2875 CRT_DIR
="${with_crt_dir}"
2878 # Check whether --with-gnustep-conf was given.
2879 if test "${with_gnustep_conf+set}" = set; then :
2880 withval
=$with_gnustep_conf;
2883 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2884 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2885 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2886 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2888 # Check whether --enable-ns-self-contained was given.
2889 if test "${enable_ns_self_contained+set}" = set; then :
2890 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2892 EN_NS_SELF_CONTAINED
=yes
2896 # Check whether --enable-asserts was given.
2897 if test "${enable_asserts+set}" = set; then :
2898 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2904 # Check whether --enable-maintainer-mode was given.
2905 if test "${enable_maintainer_mode+set}" = set; then :
2906 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2908 USE_MAINTAINER_MODE
=no
2911 if test $USE_MAINTAINER_MODE = yes; then
2918 # Check whether --enable-locallisppath was given.
2919 if test "${enable_locallisppath+set}" = set; then :
2920 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2922 elif test "${enableval}" != "yes"; then
2923 locallisppath
=${enableval}
2928 # Check whether --enable-checking was given.
2929 if test "${enable_checking+set}" = set; then :
2930 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2933 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2934 for check
in $ac_checking_flags
2937 # these set all the flags to specific states
2938 yes) ac_enable_checking
=1 ;;
2939 no
) ac_enable_checking
= ;
2940 ac_gc_check_stringbytes
= ;
2941 ac_gc_check_string_overrun
= ;
2942 ac_gc_check_string_free_list
= ;
2943 ac_xmalloc_overrun
= ;
2944 ac_gc_check_cons_list
= ;;
2945 all
) ac_enable_checking
=1 ;
2946 ac_gc_check_stringbytes
=1 ;
2947 ac_gc_check_string_overrun
=1 ;
2948 ac_gc_check_string_free_list
=1 ;
2949 ac_xmalloc_overrun
=1 ;
2950 ac_gc_check_cons_list
=1 ;;
2951 # these enable particular checks
2952 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2953 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2954 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2955 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2956 conslist
) ac_gc_check_cons_list
=1 ;;
2957 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
2962 if test x
$ac_enable_checking != x
; then
2964 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2967 if test x
$ac_gc_check_stringbytes != x
; then
2969 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2972 if test x
$ac_gc_check_stringoverrun != x
; then
2974 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2977 if test x
$ac_gc_check_string_free_list != x
; then
2979 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2982 if test x
$ac_xmalloc_overrun != x
; then
2984 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2987 if test x
$ac_gc_check_cons_list != x
; then
2989 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2993 # Check whether --enable-profiling was given.
2994 if test "${enable_profiling+set}" = set; then :
2995 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2998 if test x
$ac_enable_profiling != x
; then
2999 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3000 PROFILING_LDFLAGS
="-pg"
3006 # Check whether --enable-autodepend was given.
3007 if test "${enable_autodepend+set}" = set; then :
3008 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3010 ac_enable_autodepend
=yes
3014 #### Make srcdir absolute, if it isn't already. It's important to
3015 #### avoid running the path through pwd unnecessarily, since pwd can
3016 #### give you automounter prefixes, which can go away. We do all this
3017 #### so Emacs can find its files when run uninstalled.
3018 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3023 ## We may be able to use the $PWD environment variable to make this
3024 ## absolute. But sometimes PWD is inaccurate.
3025 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3026 ## but that tested only for a well-formed and valid PWD,
3027 ## it did not object when PWD was well-formed and valid but just wrong.
3028 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3032 srcdir
="`(cd ${srcdir}; pwd)`"
3035 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3038 #### Check if the source directory already has a configured system in it.
3039 if test `pwd` != `(cd ${srcdir} && pwd)` \
3040 && test -f "${srcdir}/src/config.h" ; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3042 as a build directory right now; it has been configured in its own
3043 right. To configure in another directory as well, you MUST
3044 use GNU make. If you do not have GNU make, then you must
3045 now do \`make distclean' in ${srcdir},
3046 and then run $0 again." >&5
3047 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3048 as a build directory right now; it has been configured in its own
3049 right. To configure in another directory as well, you MUST
3050 use GNU make. If you do not have GNU make, then you must
3051 now do \`make distclean' in ${srcdir},
3052 and then run $0 again." >&2;}
3055 #### Given the configuration name, set machfile and opsysfile to the
3056 #### names of the m/*.h and s/*.h files we should use.
3058 ### Canonicalize the configuration name.
3061 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3062 for ac_t
in install-sh
install.sh shtool
; do
3063 if test -f "$ac_dir/$ac_t"; then
3065 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3070 if test -z "$ac_aux_dir"; then
3071 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3074 # These three variables are undocumented and unsupported,
3075 # and are intended to be withdrawn in a future Autoconf release.
3076 # They can cause serious problems if a builder's source tree is in a directory
3077 # whose full name contains unusual characters.
3078 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3079 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3080 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3083 # Make sure we can run config.sub.
3084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3085 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3088 $as_echo_n "checking build system type... " >&6; }
3089 if test "${ac_cv_build+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 ac_build_alias
=$build_alias
3093 test "x$ac_build_alias" = x
&&
3094 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3095 test "x$ac_build_alias" = x
&&
3096 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3097 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3098 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3102 $as_echo "$ac_cv_build" >&6; }
3103 case $ac_cv_build in
3105 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3108 ac_save_IFS
=$IFS; IFS
='-'
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3118 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3122 $as_echo_n "checking host system type... " >&6; }
3123 if test "${ac_cv_host+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3126 if test "x$host_alias" = x
; then
3127 ac_cv_host
=$ac_cv_build
3129 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3130 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135 $as_echo "$ac_cv_host" >&6; }
3138 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3141 ac_save_IFS
=$IFS; IFS
='-'
3147 # Remember, the first character of IFS is used to create $*,
3148 # except with old shells:
3151 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3155 configuration
=${host_alias-${build_alias-$host}}
3159 ### If you add support for a new configuration, add code to this
3160 ### switch statement to recognize your configuration name and select
3161 ### the appropriate operating system and machine description files.
3163 ### You would hope that you could choose an m/*.h file pretty much
3164 ### based on the machine portion of the configuration name, and an s/*.h
3165 ### file based on the operating system portion. However, it turns out
3166 ### that each m/*.h file is pretty manufacturer-specific - for
3167 ### example mips.h is MIPS
3168 ### So we basically have to have a special case for each
3169 ### configuration name.
3171 ### As far as handling version numbers on operating systems is
3172 ### concerned, make sure things will fail in a fixable way. If
3173 ### /etc/MACHINES doesn't say anything about version numbers, be
3174 ### prepared to handle anything reasonably. If version numbers
3175 ### matter, be sure /etc/MACHINES says something about it.
3177 machine
='' opsys
='' unported
=no
3178 case "${canonical}" in
3183 case "${canonical}" in
3184 alpha
*) machine
=alpha
;;
3185 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3186 arm
*) machine
=arm
;;
3187 ia64-
*) machine
=ia64
;;
3188 i
[3456]86-*) machine
=intel386
;;
3189 powerpc-
*) machine
=macppc
;;
3190 sparc-
*) machine
=sparc
;;
3191 sparc64-
*) machine
=sparc
;;
3195 ## FreeBSD kernel + glibc based userland
3198 case "${canonical}" in
3199 alpha
*) machine
=alpha
;;
3200 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3201 ia64-
*) machine
=ia64
;;
3202 i
[3456]86-*) machine
=intel386
;;
3203 powerpc-
*) machine
=macppc
;;
3204 sparc-
*) machine
=sparc
;;
3205 sparc64-
*) machine
=sparc
;;
3212 case "${canonical}" in
3213 alpha
*) machine
=alpha
;;
3214 x86_64-
*) machine
=amdx86-64
;;
3215 arm-
*) machine
=arm
;;
3216 hppa-
*) machine
=hp800
;;
3217 i
[3456]86-*) machine
=intel386
;;
3218 m68k-
*) machine
=m68k
;;
3219 powerpc-
*) machine
=macppc
;;
3220 mips-
*) machine
=mips
;;
3221 mipse
[bl
]-*) machine
=mips
;;
3222 sparc
*-) machine
=sparc
;;
3223 vax-
*) machine
=vax
;;
3230 case "${canonical}" in
3231 alpha
*) machine
=alpha
;;
3232 x86_64-
*) machine
=amdx86-64
;;
3233 arm-
*) machine
=arm
;;
3234 hppa-
*) machine
=hp800
;;
3235 i386-
*) machine
=intel386
;;
3236 powerpc-
*) machine
=macppc
;;
3237 sparc
*) machine
=sparc
;;
3238 vax-
*) machine
=vax
;;
3242 alpha
*-*-linux-gnu* )
3243 machine
=alpha opsys
=gnu-linux
3247 machine
=arm opsys
=gnu-linux
3250 ## Apple Darwin / Mac OS X
3252 case "${canonical}" in
3253 i
[3456]86-* ) machine
=intel386
;;
3254 powerpc-
* ) machine
=macppc
;;
3255 x86_64-
* ) machine
=amdx86-64
;;
3259 # Define CPP as follows to make autoconf work correctly.
3260 CPP
="${CC-cc} -E -no-cpp-precomp"
3261 # Use fink packages if available.
3262 if test -d /sw
/include
&& test -d /sw
/lib
; then
3263 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3264 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3265 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3269 ## HP 9000 series 700 and 800, running HP/UX
3270 hppa
*-hp-hpux10.2
* )
3271 machine
=hp800 opsys
=hpux10-20
3273 hppa
*-hp-hpux1[1-9]* )
3274 machine
=hp800 opsys
=hpux11
3275 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3278 hppa
*-*-linux-gnu* )
3279 machine
=hp800 opsys
=gnu-linux
3284 machine
=ibms390 opsys
=gnu-linux
3286 s390x-
*-linux-gnu* )
3287 machine
=ibms390x opsys
=gnu-linux
3289 rs6000-ibm-aix4.
[23]* )
3290 machine
=ibmrs6000 opsys
=aix4-2
3292 powerpc-ibm-aix4.
[23]* )
3293 machine
=ibmrs6000 opsys
=aix4-2
3295 rs6000-ibm-aix
[56]* )
3296 machine
=ibmrs6000 opsys
=aix4-2
3298 powerpc-ibm-aix
[56]* )
3299 machine
=ibmrs6000 opsys
=aix4-2
3302 ## Macintosh PowerPC
3303 powerpc
*-*-linux-gnu* )
3304 machine
=macppc opsys
=gnu-linux
3307 ## Silicon Graphics machines
3310 machine
=iris4d opsys
=irix6-5
3311 # Without defining _LANGUAGE_C, things get masked out in the headers
3312 # so that, for instance, grepping for `free' in stdlib.h fails and
3313 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3314 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3315 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3319 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3320 machine
=sparc opsys
=gnu-linux
3324 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3325 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3326 case "${canonical}" in
3327 i
[3456]86-*-* ) machine
=intel386
;;
3328 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3329 sparc
* ) machine
=sparc
;;
3332 case "${canonical}" in
3333 *-sunos5.6
* |
*-solaris2.6
* )
3335 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3338 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3340 emacs_check_sunpro_c
=yes
3341 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3343 *-sunos5* |
*-solaris* )
3345 emacs_check_sunpro_c
=yes
3346 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3349 ## Watch out for a compiler that we know will not work.
3350 case "${canonical}" in
3351 *-solaris* |
*-sunos5* )
3352 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3353 ## /usr/ucb/cc doesn't work;
3354 ## we should find some other compiler that does work.
3364 machine
=ia64 opsys
=gnu-linux
3367 ## Intel 386 machines where we don't care about the manufacturer.
3370 case "${canonical}" in
3371 *-cygwin ) opsys
=cygwin
;;
3372 *-darwin* ) opsys
=darwin
3373 CPP
="${CC-cc} -E -no-cpp-precomp"
3375 *-linux-gnu* ) opsys
=gnu-linux
;;
3376 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3377 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3378 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3379 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3383 ## m68k Linux-based GNU system
3385 machine
=m68k opsys
=gnu-linux
3388 ## Mips Linux-based GNU system
3389 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3390 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3391 machine
=mips opsys
=gnu-linux
3394 ## AMD x86-64 Linux-based GNU system
3395 x86_64-
*-linux-gnu* )
3396 machine
=amdx86-64 opsys
=gnu-linux
3399 ## Tensilica Xtensa Linux-based GNU system
3400 xtensa
*-*-linux-gnu* )
3401 machine
=xtensa opsys
=gnu-linux
3404 ## SuperH Linux-based GNU system
3405 sh
[34]*-*-linux-gnu* )
3406 machine
=sh3 opsys
=gnu-linux
3414 ### If the code above didn't choose an operating system, just choose
3415 ### an operating system based on the configuration name. You really
3416 ### only want to use this when you have no idea what the right
3417 ### operating system is; if you know what operating systems a machine
3418 ### runs, it's cleaner to make it explicit in the case statement
3420 if test x
"${opsys}" = x
; then
3421 case "${canonical}" in
3422 *-gnu* ) opsys
=gnu
;;
3431 if test $unported = yes; then
3432 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3433 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3436 machfile
="m/${machine}.h"
3437 opsysfile
="s/${opsys}.h"
3440 #### Choose a compiler.
3441 test -n "$CC" && cc_specified
=yes
3443 # Save the value of CFLAGS that the user specified.
3444 SPECIFIED_CFLAGS
="$CFLAGS"
3447 ac_cpp
='$CPP $CPPFLAGS'
3448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC
="$CC" # Let the user override the test.
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 for ac_exec_ext
in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc
; ac_word
=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir
=.
3507 for ac_exec_ext
in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC
="gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_CC" = x
; then
3531 case $cross_compiling:$ac_tool_warned in
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned
=yes ;;
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC
="$CC" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc
; ac_word
=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC
="$CC" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected
=yes
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy
$ac_cv_prog_CC
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3624 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog
in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC
="$CC" # Let the user override the test.
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir
=.
3659 for ac_exec_ext
in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CC" && break
3684 if test -z "$CC"; then
3686 for ac_prog
in cl.exe
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy
$ac_prog; ac_word
=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_CC"; then
3696 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir
=.
3703 for ac_exec_ext
in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_CC
="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CC" && break
3728 if test "x$ac_ct_CC" = x
; then
3731 case $cross_compiling:$ac_tool_warned in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned
=yes ;;
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error
"no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 for ac_option
in --version -v -V -qversion; do
3754 { { ac_try
="$ac_compiler $ac_option >&5"
3756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 if test -s conftest.err; then
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3769 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3791 $as_echo_n "checking whether the C compiler works... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798 for ac_file in $ac_files
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807 if { { ac_try="$ac_link_default"
3809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3810 *) ac_try_echo
=$ac_try;;
3812 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link_default") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3823 for ac_file
in $ac_files ''
3825 test -f "$ac_file" ||
continue
3827 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3830 # We found the default executable, but exeext='' is most
3834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3836 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 # We set ac_cv_exeext here because the later test for it is not
3839 # safe: cross compilers may not add the suffix if given an `-o'
3840 # argument, so we may need to know it at that point already.
3841 # Even if this section looks crufty: it has the advantage of
3848 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3853 if test -z "$ac_file"; then :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.
$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status
77
3862 as_fn_error
"C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866 $as_echo "yes" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3869 $as_echo_n "checking for C compiler default output file name... " >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3871 $as_echo "$ac_file" >&6; }
3872 ac_exeext
=$ac_cv_exeext
3874 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3875 ac_clean_files
=$ac_clean_files_save
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3877 $as_echo_n "checking for suffix of executables... " >&6; }
3878 if { { ac_try
="$ac_link"
3880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 $as_echo "$ac_try_echo"; } >&5
3885 (eval "$ac_link") 2>&5
3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }; then :
3889 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3890 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3891 # work properly (i.e., refer to `conftest.exe'), while it won't with
3893 for ac_file
in conftest.exe conftest conftest.
*; do
3894 test -f "$ac_file" ||
continue
3896 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3897 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3906 See \`config.log' for more details." "$LINENO" 5; }
3908 rm -f conftest conftest
$ac_cv_exeext
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3910 $as_echo "$ac_cv_exeext" >&6; }
3912 rm -f conftest.
$ac_ext
3913 EXEEXT
=$ac_cv_exeext
3915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3921 FILE *f = fopen ("conftest.out", "w");
3922 return ferror (f) || fclose (f) != 0;
3928 ac_clean_files
="$ac_clean_files conftest.out"
3929 # Check that the compiler produces executables we can run. If not, either
3930 # the compiler is broken, or we cross compile.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3932 $as_echo_n "checking whether we are cross compiling... " >&6; }
3933 if test "$cross_compiling" != yes; then
3934 { { ac_try
="$ac_link"
3936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_link") 2>&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }
3945 if { ac_try='./conftest$ac_cv_exeext'
3946 { { case "(($ac_try" in
3947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3948 *) ac_try_echo
=$ac_try;;
3950 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_try") 2>&5
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; }; then
3958 if test "$cross_compiling" = maybe
; then
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error
"cannot run C compiled programs.
3964 If you meant to cross compile, use \`--host'.
3965 See \`config.log' for more details." "$LINENO" 5; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3972 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3973 ac_clean_files
=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3975 $as_echo_n "checking for suffix of object files... " >&6; }
3976 if test "${ac_cv_objext+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 rm -f conftest.o conftest.obj
3991 if { { ac_try
="$ac_compile"
3993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_compile") 2>&5
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; then :
4002 for ac_file in conftest.o conftest.obj conftest.*; do
4003 test -f "$ac_file" || continue;
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error "cannot compute suffix of object files
: cannot compile
4017 See \
`config.log' for more details." "$LINENO" 5; }
4019 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4022 $as_echo "$ac_cv_objext" >&6; }
4023 OBJEXT=$ac_cv_objext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4027 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055 if test $ac_compiler_gnu = yes; then
4060 ac_test_CFLAGS=${CFLAGS+set}
4061 ac_save_CFLAGS=$CFLAGS
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4064 if test "${ac_cv_prog_cc_g+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124 $as_echo "$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4134 if test "$GCC" = yes; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 ac_cv_prog_cc_c89=no
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 #include <sys/stat.h>
4153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4154 struct buf { int x; };
4155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4156 static char *e (p, i)
4162 static char *f (char * (*g) (char **, int), char **p, ...)
4167 s = g (p, va_arg (v,int));
4172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4173 function prototypes and stuff, but not '\xHH' hex character constants.
4174 These don't provoke an error unfortunately, instead are silently treated
4175 as 'x'. The following induces an error, until -std is added to get
4176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4177 array size at least. It's necessary to write '\x00'==0 to get something
4178 that's true only with -std. */
4179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4182 inside strings and character constants. */
4184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4186 int test (int i, double x);
4187 struct s1 {int (*f) (int a);};
4188 struct s2 {int (*f) (double a);};
4189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4203 CC="$ac_save_CC $ac_arg"
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_c89=$ac_arg
4207 rm -f core conftest.err conftest.$ac_objext
4208 test "x$ac_cv_prog_cc_c89" != "xno" && break
4210 rm -f conftest.$ac_ext
4215 case "x$ac_cv_prog_cc_c89" in
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4218 $as_echo "none needed" >&6; } ;;
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 $as_echo "unsupported" >&6; } ;;
4223 CC="$CC $ac_cv_prog_cc_c89"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4227 if test "x$ac_cv_prog_cc_c89" != xno; then :
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 # On Suns, sometimes $CPP names a directory.
4239 if test -n "$CPP" && test -d "$CPP"; then
4243 ## If not using gcc, and on Solaris, and no CPP specified, see if
4244 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4245 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4246 test x"$CPP" = x; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4248 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4250 if test "${emacs_cv_sunpro_c+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4267 if ac_fn_c_try_link "$LINENO"; then :
4268 emacs_cv_sunpro_c=yes
4270 emacs_cv_sunpro_c=no
4272 rm -f core conftest.err conftest.$ac_objext \
4273 conftest$ac_exeext conftest.$ac_ext
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4277 $as_echo "$emacs_cv_sunpro_c" >&6; }
4279 if test x"$emacs_cv_sunpro_c" = xyes; then
4280 NON_GNU_CPP="$CC -E -Xs"
4284 #### Some systems specify a CPP to use unless we are using GCC.
4285 #### Now that we know whether we are using GCC, we can decide whether
4286 #### to use that one.
4287 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4292 #### Some systems specify a CC to use unless we are using GCC.
4293 #### Now that we know whether we are using GCC, we can decide whether
4294 #### to use that one.
4295 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4296 test x$cc_specified != xyes
4301 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4303 CC="$CC $GCC_TEST_OPTIONS"
4306 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4308 CC="$CC $NON_GCC_TEST_OPTIONS"
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4317 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4318 # On Suns, sometimes $CPP names a directory.
4319 if test -n "$CPP" && test -d "$CPP"; then
4322 if test -z "$CPP"; then
4323 if test "${ac_cv_prog_CPP+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4326 # Double quotes because CPP needs to be expanded
4327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4330 for ac_c_preproc_warn_flag in '' yes
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4341 # include <limits.h>
4343 # include <assert.h>
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4350 # Broken: fails on valid input.
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4361 if ac_fn_c_try_cpp "$LINENO"; then :
4362 # Broken: success on invalid input.
4365 # Passes both tests.
4369 rm -f conftest.err conftest.$ac_ext
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.
$ac_ext
4374 if $ac_preproc_ok; then :
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4387 $as_echo "$CPP" >&6; }
4389 for ac_c_preproc_warn_flag
in '' yes
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error" is here to catch this case.
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4400 # include <limits.h>
4402 # include <assert.h>
4406 if ac_fn_c_try_cpp
"$LINENO"; then :
4409 # Broken: fails on valid input.
4412 rm -f conftest.err conftest.
$ac_ext
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <ac_nonexistent.h>
4420 if ac_fn_c_try_cpp
"$LINENO"; then :
4421 # Broken: success on invalid input.
4424 # Passes both tests.
4428 rm -f conftest.err conftest.
$ac_ext
4431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4432 rm -f conftest.err conftest.
$ac_ext
4433 if $ac_preproc_ok; then :
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4439 See \`config.log' for more details." "$LINENO" 5; }
4443 ac_cpp
='$CPP $CPPFLAGS'
4444 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found
=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4458 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_prog
in grep ggrep
; do
4463 for ac_exec_ext
in '' $ac_executable_extensions; do
4464 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4465 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4470 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4473 $as_echo_n 0123456789 >"conftest.in"
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4481 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4482 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP
="$ac_path_GREP"
4486 ac_path_GREP_max
=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4494 $ac_path_GREP_found && break 3
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 ac_cv_path_GREP
=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP
="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4518 then ac_cv_path_EGREP
="$GREP -E"
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found
=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4524 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_prog
in egrep; do
4529 for ac_exec_ext
in '' $ac_executable_extensions; do
4530 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4539 $as_echo_n 0123456789 >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4547 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4548 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP
="$ac_path_EGREP"
4552 ac_path_EGREP_max
=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4560 $ac_path_EGREP_found && break 3
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 ac_cv_path_EGREP
=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP
="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580 $as_echo_n "checking for ANSI C header files... " >&6; }
4581 if test "${ac_cv_header_stdc+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4599 if ac_fn_c_try_compile
"$LINENO"; then :
4600 ac_cv_header_stdc
=yes
4602 ac_cv_header_stdc
=no
4604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4606 if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev
/null
2>&1; then :
4617 ac_cv_header_stdc
=no
4623 if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev
/null
2>&1; then :
4634 ac_cv_header_stdc
=no
4640 if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4649 #if ((' ' & 0x0FF) == 0x020)
4650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 # define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4672 if ac_fn_c_try_run
"$LINENO"; then :
4675 ac_cv_header_stdc
=no
4677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684 $as_echo "$ac_cv_header_stdc" >&6; }
4685 if test $ac_cv_header_stdc = yes; then
4687 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4693 inttypes.h stdint.h unistd.h
4695 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 eval as_val
=\$
$as_ac_Header
4699 if test "x$as_val" = x
""yes; then :
4700 cat >>confdefs.h
<<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4711 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4718 if test "$MINIX" = yes; then
4720 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4723 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4726 $as_echo "#define _MINIX 1" >>confdefs.h
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4732 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4733 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4739 # define __EXTENSIONS__ 1
4740 $ac_includes_default
4749 if ac_fn_c_try_compile
"$LINENO"; then :
4750 ac_cv_safe_to_define___extensions__
=yes
4752 ac_cv_safe_to_define___extensions__
=no
4754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4757 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4758 test $ac_cv_safe_to_define___extensions__ = yes &&
4759 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4761 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4763 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4765 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4767 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4771 ### Use -Wno-pointer-sign if the compiler supports it
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4773 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4774 SAVE_CFLAGS
="$CFLAGS"
4775 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4787 if ac_fn_c_try_compile
"$LINENO"; then :
4792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4793 if test $has_option = yes; then
4794 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4797 $as_echo "$has_option" >&6; }
4798 CFLAGS
="$SAVE_CFLAGS"
4802 ### Use -Wdeclaration-after-statement if the compiler supports it
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4804 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4805 SAVE_CFLAGS
="$CFLAGS"
4806 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4818 if ac_fn_c_try_compile
"$LINENO"; then :
4823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4824 if test $has_option = yes; then
4825 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4828 $as_echo "$has_option" >&6; }
4829 CFLAGS
="$SAVE_CFLAGS"
4833 #### Some other nice autoconf tests.
4836 ac_cpp
='$CPP $CPPFLAGS'
4837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4842 # On Suns, sometimes $CPP names a directory.
4843 if test -n "$CPP" && test -d "$CPP"; then
4846 if test -z "$CPP"; then
4847 if test "${ac_cv_prog_CPP+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 # Double quotes because CPP needs to be expanded
4851 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4854 for ac_c_preproc_warn_flag
in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4865 # include <limits.h>
4867 # include <assert.h>
4871 if ac_fn_c_try_cpp
"$LINENO"; then :
4874 # Broken: fails on valid input.
4877 rm -f conftest.err conftest.
$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <ac_nonexistent.h>
4885 if ac_fn_c_try_cpp
"$LINENO"; then :
4886 # Broken: success on invalid input.
4889 # Passes both tests.
4893 rm -f conftest.err conftest.
$ac_ext
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.
$ac_ext
4898 if $ac_preproc_ok; then :
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4911 $as_echo "$CPP" >&6; }
4913 for ac_c_preproc_warn_flag
in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4924 # include <limits.h>
4926 # include <assert.h>
4930 if ac_fn_c_try_cpp
"$LINENO"; then :
4933 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.
$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4944 if ac_fn_c_try_cpp
"$LINENO"; then :
4945 # Broken: success on invalid input.
4948 # Passes both tests.
4952 rm -f conftest.err conftest.
$ac_ext
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956 rm -f conftest.err conftest.
$ac_ext
4957 if $ac_preproc_ok; then :
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4963 See \`config.log' for more details." "$LINENO" 5; }
4967 ac_cpp
='$CPP $CPPFLAGS'
4968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4972 # Find a good install program. We prefer a C program (faster),
4973 # so one script is as good as another. But avoid the broken or
4974 # incompatible versions:
4975 # SysV /etc/install, /usr/sbin/install
4976 # SunOS /usr/etc/install
4977 # IRIX /sbin/install
4979 # AmigaOS /C/install, which installs bootblocks on floppy discs
4980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4983 # OS/2's system install, which has a completely different semantic
4984 # ./install, which can be erroneously created by make from ./install.sh.
4985 # Reject install programs that cannot install multiple files.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4987 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4988 if test -z "$INSTALL"; then
4989 if test "${ac_cv_path_install+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir
=.
4997 # Account for people who put trailing slashes in PATH elements.
4998 case $as_dir/ in #((
4999 .
/ | .
// |
/[cC
]/* | \
5000 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5001 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5004 # OSF1 and SCO ODT 3.0 have their own names for install.
5005 # Don't use installbsd from OSF since it installs stuff as root
5007 for ac_prog
in ginstall scoinst
install; do
5008 for ac_exec_ext
in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5010 if test $ac_prog = install &&
5011 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5012 # AIX install. It has an incompatible calling convention.
5014 elif test $ac_prog = install &&
5015 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5016 # program-specific install script used by HP pwplus--don't use.
5019 rm -rf conftest.one conftest.two conftest.dir
5020 echo one
> conftest.one
5021 echo two
> conftest.two
5023 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5024 test -s conftest.one
&& test -s conftest.two
&&
5025 test -s conftest.dir
/conftest.one
&&
5026 test -s conftest.dir
/conftest.two
5028 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5041 rm -rf conftest.one conftest.two conftest.dir
5044 if test "${ac_cv_path_install+set}" = set; then
5045 INSTALL
=$ac_cv_path_install
5047 # As a last resort, use the slow shell script. Don't cache a
5048 # value for INSTALL within a source directory, because that will
5049 # break other packages using the cache if that directory is
5050 # removed, or if the value is a relative name.
5051 INSTALL
=$ac_install_sh
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5055 $as_echo "$INSTALL" >&6; }
5057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5058 # It thinks the first close brace ends the variable substitution.
5059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5063 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5065 if test "x$RANLIB" = x
; then
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5068 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$RANLIB"; then
5075 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir
=.
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 RANLIB
=$ac_cv_prog_RANLIB
5095 if test -n "$RANLIB"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5097 $as_echo "$RANLIB" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5105 if test -z "$ac_cv_prog_RANLIB"; then
5106 ac_ct_RANLIB
=$RANLIB
5107 # Extract the first word of "ranlib", so it can be a program name with args.
5108 set dummy ranlib
; ac_word
=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 if test -n "$ac_ct_RANLIB"; then
5115 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir
=.
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5135 if test -n "$ac_ct_RANLIB"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5137 $as_echo "$ac_ct_RANLIB" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5143 if test "x$ac_ct_RANLIB" = x
; then
5146 case $cross_compiling:$ac_tool_warned in
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned
=yes ;;
5152 RANLIB
=$ac_ct_RANLIB
5155 RANLIB
="$ac_cv_prog_RANLIB"
5160 ## Although we're running on an amd64 kernel, we're actually compiling for
5161 ## the x86 architecture. The user should probably have provided an
5162 ## explicit --build to `configure', but if everything else than the kernel
5163 ## is running in i386 mode, we can help them out.
5164 if test "$machine" = "amdx86-64"; then
5165 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5166 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5170 if test "$ac_cv_have_decl_i386" = "yes"; then
5171 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5173 machfile
="m/${machine}.h"
5177 # Extract the first word of "install-info", so it can be a program name with args.
5178 set dummy install-info
; ac_word
=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5184 case $INSTALL_INFO in
5186 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5210 $as_echo "$INSTALL_INFO" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 # Extract the first word of "install-info", so it can be a program name with args.
5218 set dummy install-info
; ac_word
=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5224 case $INSTALL_INFO in
5226 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5230 for as_dir
in /usr
/sbin
5233 test -z "$as_dir" && as_dir
=.
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5248 if test -n "$INSTALL_INFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5250 $as_echo "$INSTALL_INFO" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 # Extract the first word of "install-info", so it can be a program name with args.
5258 set dummy install-info
; ac_word
=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 case $INSTALL_INFO in
5266 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir
=.
5274 for ac_exec_ext
in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5288 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5289 if test -n "$INSTALL_INFO"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5291 $as_echo "$INSTALL_INFO" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5298 # Extract the first word of "gzip", so it can be a program name with args.
5299 set dummy
gzip; ac_word
=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5307 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5329 if test -n "$GZIP_PROG"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5331 $as_echo "$GZIP_PROG" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5340 ## Need makeinfo >= 4.6 (?) to build the manuals.
5341 # Extract the first word of "makeinfo", so it can be a program name with args.
5342 set dummy makeinfo
; ac_word
=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5350 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir
=.
5358 for ac_exec_ext
in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5372 MAKEINFO
=$ac_cv_path_MAKEINFO
5373 if test -n "$MAKEINFO"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5375 $as_echo "$MAKEINFO" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5382 if test "$MAKEINFO" != "no" && \
5383 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
5387 ## Makeinfo is unusual. For a released Emacs, the manuals are
5388 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5389 ## therefore in the category of "special tools" not normally required, which
5390 ## configure does not have to check for (eg autoconf itself).
5391 ## In a Bazaar checkout on the other hand, the manuals are not included.
5392 ## So makeinfo is a requirement to build from Bazaar, and configure
5393 ## should test for it as it does for any other build requirement.
5394 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5395 ## with pre-built manuals, from a Bazaar checkout.
5396 if test "$MAKEINFO" = "no"; then
5397 if test "x${with_makeinfo}" = "xno"; then
5399 elif test ! -e $srcdir/info
/emacs
; then
5400 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5401 source tree does not seem to have pre-built manuals in the \`info' directory.
5402 Either install a suitable version of makeinfo, or re-run configure
5403 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5408 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5410 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5413 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5415 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5419 late_LDFLAGS
=$LDFLAGS
5420 if test "$GCC" = yes; then
5421 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5423 LDFLAGS
="$LDFLAGS -znocombreloc"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5427 $as_echo_n "checking for -znocombreloc... " >&6; }
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5432 if ac_fn_c_try_link
"$LINENO"; then :
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5436 LDFLAGS
=$late_LDFLAGS
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 rm -f core conftest.err conftest.
$ac_objext \
5441 conftest
$ac_exeext conftest.
$ac_ext
5443 #### Extract some information from the operating system and machine files.
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5446 - which libraries the lib-src programs will want, and
5447 - whether the GNU malloc routines are usable..." >&5
5448 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5449 - which libraries the lib-src programs will want, and
5450 - whether the GNU malloc routines are usable..." >&6;}
5452 ### First figure out CFLAGS (which we use for running the compiler here)
5453 ### and REAL_CFLAGS (which we use for real compilation).
5454 ### The two are the same except on a few systems, where they are made
5455 ### different to work around various lossages. For example,
5456 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5457 ### as implying static linking.
5459 ### If the CFLAGS env var is specified, we use that value
5460 ### instead of the default.
5462 ### It's not important that this name contain the PID; you can't run
5463 ### two configures in the same directory and have anything work
5465 tempcname
="conftest.c"
5468 #include "'${srcdir}'/src/'${opsysfile}'"
5469 #include "'${srcdir}'/src/'${machfile}'"
5471 configure___ LIBX=-lX11
5474 configure___ cannot_dump=yes
5476 configure___ cannot_dump=no
5479 #ifdef SYSTEM_MALLOC
5480 configure___ system_malloc=yes
5482 configure___ system_malloc=no
5485 #ifdef USE_MMAP_FOR_BUFFERS
5486 configure___ use_mmap_for_buffers=yes
5488 configure___ use_mmap_for_buffers=no
5491 #ifndef C_OPTIMIZE_SWITCH
5493 #define C_OPTIMIZE_SWITCH -O2
5495 #define C_OPTIMIZE_SWITCH -O
5499 #ifndef C_WARNINGS_SWITCH
5500 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5503 #ifdef THIS_IS_CONFIGURE
5505 /* Get the CFLAGS for tests in configure. */
5507 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5509 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5512 #else /* not THIS_IS_CONFIGURE */
5514 /* Get the CFLAGS for real compilation. */
5516 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5518 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5521 #endif /* not THIS_IS_CONFIGURE */
5524 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP
=`eval "echo $CPP"`
5529 eval `${CPP} -Isrc ${tempcname} \
5530 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5531 if test "x$SPECIFIED_CFLAGS" = x
; then
5532 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5533 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5535 REAL_CFLAGS
="$CFLAGS"
5542 UNEXEC_OBJ
=unexelf.o
5545 UNEXEC_OBJ
=unexaix.o
5551 UNEXEC_OBJ
=unexmacosx.o
5554 UNEXEC_OBJ
=unexhp9k800.o
5557 # Use the Solaris dldump() function, called from unexsol.c, to dump
5558 # emacs, instead of the generic ELF dump code found in unexelf.c.
5559 # The resulting binary has a complete symbol table, and is better
5560 # for debugging and other observability tools (debuggers, pstack, etc).
5562 # If you encounter a problem using dldump(), please consider sending
5563 # a message to the OpenSolaris tools-linking mailing list:
5564 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5566 # It is likely that dldump() works with older Solaris too, but this has
5567 # not been tested, so for now this change is for Solaris 10 or newer.
5568 UNEXEC_OBJ
=unexsol.o
5575 ## Let `ld' find image libs and similar things in /usr/local/lib.
5576 ## The system compiler, GCC, has apparently been modified to not
5577 ## look there, contrary to what a stock GCC would do.
5578 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5582 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5583 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5587 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5591 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5592 ## otherwise Emacs dumps core on elf systems.
5593 LD_SWITCH_SYSTEM
="-Z"
5598 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5600 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5601 ## which has not been defined yet. When this was handled with cpp,
5602 ## it was expanded to null when configure sourced the s/*.h file.
5603 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5604 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5605 ## (or somesuch), but because it is supposed to go at the _front_
5606 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5607 ## Compare with the gnu-linux case below, which added to the end
5608 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5609 ## LD_SWITCH_SYSTEM_TEMACS.
5612 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5613 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5618 if test "$machine" = "alpha"; then
5619 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5620 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5624 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5625 ## With ELF, make sure that all common symbols get allocated to in the
5626 ## data section. Otherwise, the dump of temacs may miss variables in
5627 ## the shared library that have been initialized. For example, with
5628 ## GNU libc, __malloc_initialized would normally be resolved to the
5629 ## shared library's .bss section, which is fatal.
5630 if test "x$GCC" = "xyes"; then
5631 C_SWITCH_MACHINE
="-fno-common"
5633 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5636 UNEXEC_OBJ
=unexalpha.o
5644 ## Some programs in src produce warnings saying certain subprograms
5645 ## are too complex and need a MAXMEM value greater than 2000 for
5646 ## additional optimization. --nils@exp-math.uni-essen.de
5647 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5648 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5649 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5650 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5656 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5657 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5659 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5661 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5663 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5665 ## Motif needs -lgen.
5666 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5671 ### Make sure subsequent tests use flags consistent with the build flags.
5673 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5674 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5676 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5681 # Check whether --enable-largefile was given.
5682 if test "${enable_largefile+set}" = set; then :
5683 enableval
=$enable_largefile;
5686 if test "$enable_largefile" != no
; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5693 ac_cv_sys_largefile_CC
=no
5694 if test "$GCC" != yes; then
5697 # IRIX 6.2 and later do not support large files by default,
5698 # so use the C compiler's -n32 option if that helps.
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly.
5703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5704 since some C++ compilers masquerading as C compilers
5705 incorrectly reject 9223372036854775807. */
5706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5708 && LARGE_OFF_T % 2147483647 == 1)
5718 if ac_fn_c_try_compile
"$LINENO"; then :
5721 rm -f core conftest.err conftest.
$ac_objext
5723 if ac_fn_c_try_compile
"$LINENO"; then :
5724 ac_cv_sys_largefile_CC
=' -n32'; break
5726 rm -f core conftest.err conftest.
$ac_objext
5730 rm -f conftest.
$ac_ext
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5735 if test "$ac_cv_sys_largefile_CC" != no
; then
5736 CC
=$CC$ac_cv_sys_largefile_CC
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5765 ac_cv_sys_file_offset_bits
=no
; break
5767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #define _FILE_OFFSET_BITS 64
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 if ac_fn_c_try_compile
"$LINENO"; then :
5789 ac_cv_sys_file_offset_bits
=64; break
5791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 ac_cv_sys_file_offset_bits
=unknown
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5798 case $ac_cv_sys_file_offset_bits in #(
5801 cat >>confdefs.h
<<_ACEOF
5802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5807 if test $ac_cv_sys_file_offset_bits = unknown
; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5810 if test "${ac_cv_sys_large_files+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 /* Check that off_t can represent 2**63 - 1 correctly.
5818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5819 since some C++ compilers masquerading as C compilers
5820 incorrectly reject 9223372036854775807. */
5821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5823 && LARGE_OFF_T % 2147483647 == 1)
5833 if ac_fn_c_try_compile
"$LINENO"; then :
5834 ac_cv_sys_large_files
=no
; break
5836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #define _LARGE_FILES 1
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5857 if ac_fn_c_try_compile
"$LINENO"; then :
5858 ac_cv_sys_large_files
=1; break
5860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 ac_cv_sys_large_files
=unknown
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5866 $as_echo "$ac_cv_sys_large_files" >&6; }
5867 case $ac_cv_sys_large_files in #(
5870 cat >>confdefs.h
<<_ACEOF
5871 #define _LARGE_FILES $ac_cv_sys_large_files
5881 ## If user specified a crt-dir, use that unconditionally.
5882 if test "X$CRT_DIR" = "X"; then
5884 case "$canonical" in
5885 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5886 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5887 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5888 ## For anything else (eg /usr/lib32), it is up the user to specify
5889 ## the location (bug#5655).
5890 ## Test for crtn.o, not just the directory, because sometimes the
5891 ## directory exists but does not have the relevant files (bug#1287).
5892 ## FIXME better to test for binary compatibility somehow.
5893 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5896 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5900 hpux10-20
) CRT_DIR
=/lib
;;
5903 ## Default is /usr/lib.
5904 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5908 ## Some platforms don't use any of these files, so it is not
5909 ## appropriate to put this test outside the if block.
5910 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5911 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5924 START_FILES
='ecrt0.o'
5927 ## Adding -lm confuses the dynamic linker, so omit it.
5929 START_FILES
='pre-crt0.o'
5932 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5933 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5935 gnu-linux | gnu-kfreebsd
)
5936 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5937 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5939 hpux10-20 | hpux11
)
5941 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5944 if test -f $CRT_DIR/crti.o
; then
5945 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5946 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5948 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5949 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5960 if test "${with_sound}" != "no"; then
5961 # Sound support for GNU/Linux and the free BSDs.
5962 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5964 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5966 eval as_val
=\$
$as_ac_Header
5967 if test "x$as_val" = x
""yes; then :
5968 cat >>confdefs.h
<<_ACEOF
5969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5976 # Emulation library used on NetBSD.
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5978 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5979 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5982 ac_check_lib_save_LIBS
=$LIBS
5983 LIBS
="-lossaudio $LIBS"
5984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5987 /* Override any GCC internal prototype to avoid an error.
5988 Use char because int might match the return type of a GCC
5989 builtin and then its argument prototype would still apply. */
5997 return _oss_ioctl ();
6002 if ac_fn_c_try_link
"$LINENO"; then :
6003 ac_cv_lib_ossaudio__oss_ioctl
=yes
6005 ac_cv_lib_ossaudio__oss_ioctl
=no
6007 rm -f core conftest.err conftest.
$ac_objext \
6008 conftest
$ac_exeext conftest.
$ac_ext
6009 LIBS
=$ac_check_lib_save_LIBS
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6012 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6013 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6022 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6026 # Extract the first word of "pkg-config", so it can be a program name with args.
6027 set dummy pkg-config
; ac_word
=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6035 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir
=.
6043 for ac_exec_ext
in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6057 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6058 if test -n "$PKG_CONFIG"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6060 $as_echo "$PKG_CONFIG" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test "$PKG_CONFIG" = "no" ; then
6071 PKG_CONFIG_MIN_VERSION
=0.9.0
6072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6074 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6076 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6078 $as_echo "yes" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6082 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6083 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6085 $as_echo "$ALSA_CFLAGS" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6088 $as_echo_n "checking ALSA_LIBS... " >&6; }
6089 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6091 $as_echo "$ALSA_LIBS" >&6; }
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6097 ## If we have a custom action on failure, don't print errors, but
6098 ## do set a variable so people can do so.
6099 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6111 if test $succeeded = yes; then
6117 if test $HAVE_ALSA = yes; then
6118 SAVE_CFLAGS
="$CFLAGS"
6119 SAVE_LDFLAGS
="$LDFLAGS"
6120 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6121 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <asoundlib.h>
6128 snd_lib_error_set_handler (0);
6133 if ac_fn_c_try_compile
"$LINENO"; then :
6134 emacs_alsa_normal
=yes
6136 emacs_alsa_normal
=no
6138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6139 if test "$emacs_alsa_normal" != yes; then
6140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <alsa/asoundlib.h>
6146 snd_lib_error_set_handler (0);
6151 if ac_fn_c_try_compile
"$LINENO"; then :
6152 emacs_alsa_subdir
=yes
6154 emacs_alsa_subdir
=no
6156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6157 if test "$emacs_alsa_subdir" != yes; then
6158 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6160 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6163 CFLAGS
="$SAVE_CFLAGS"
6164 LDFLAGS
="$SAVE_LDFLAGS"
6165 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6166 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6168 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6174 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6175 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6176 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6177 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6178 sys
/utsname.h
pwd.h utmp.h
6180 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6182 eval as_val
=\$
$as_ac_Header
6183 if test "x$as_val" = x
""yes; then :
6184 cat >>confdefs.h
<<_ACEOF
6185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6194 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/personality.h>
6201 personality (PER_LINUX32)
6206 if ac_fn_c_try_compile
"$LINENO"; then :
6207 emacs_cv_personality_linux32
=yes
6209 emacs_cv_personality_linux32
=no
6211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6213 $as_echo "$emacs_cv_personality_linux32" >&6; }
6215 if test $emacs_cv_personality_linux32 = yes; then
6217 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6221 for ac_header
in term.h
6223 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6224 if test "x$ac_cv_header_term_h" = x
""yes; then :
6225 cat >>confdefs.h
<<_ACEOF
6226 #define HAVE_TERM_H 1
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6253 if ac_fn_c_try_compile
"$LINENO"; then :
6254 ac_cv_header_stdc
=yes
6256 ac_cv_header_stdc
=no
6258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev
/null
2>&1; then :
6271 ac_cv_header_stdc
=no
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev
/null
2>&1; then :
6288 ac_cv_header_stdc
=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6326 if ac_fn_c_try_run
"$LINENO"; then :
6329 ac_cv_header_stdc
=no
6331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6346 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6347 if test "${ac_cv_header_time+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <sys/types.h>
6353 #include <sys/time.h>
6359 if ((struct tm *) 0)
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6366 ac_cv_header_time
=yes
6368 ac_cv_header_time
=no
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6373 $as_echo "$ac_cv_header_time" >&6; }
6374 if test $ac_cv_header_time = yes; then
6376 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6380 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6381 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6387 cat >>confdefs.h
<<_ACEOF
6388 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6391 if test $ac_cv_have_decl_sys_siglist != yes; then
6392 # For Tru64, at least:
6393 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6394 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6400 cat >>confdefs.h
<<_ACEOF
6401 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6404 if test $ac_cv_have_decl___sys_siglist = yes; then
6406 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6411 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6412 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <sys/types.h>
6418 #include <sys/wait.h>
6420 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6423 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6431 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6436 if ac_fn_c_try_compile
"$LINENO"; then :
6437 ac_cv_header_sys_wait_h
=yes
6439 ac_cv_header_sys_wait_h
=no
6441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6444 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6445 if test $ac_cv_header_sys_wait_h = yes; then
6447 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6453 $as_echo_n "checking for struct utimbuf... " >&6; }
6454 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #ifdef TIME_WITH_SYS_TIME
6460 #include <sys/time.h>
6463 #ifdef HAVE_SYS_TIME_H
6464 #include <sys/time.h>
6475 static struct utimbuf x; x.actime = x.modtime;
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6481 emacs_cv_struct_utimbuf
=yes
6483 emacs_cv_struct_utimbuf
=no
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6488 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6489 if test $emacs_cv_struct_utimbuf = yes; then
6491 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6496 $as_echo_n "checking return type of signal handlers... " >&6; }
6497 if test "${ac_cv_type_signal+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6508 return *(signal (0, 0)) (0) == 1;
6513 if ac_fn_c_try_compile
"$LINENO"; then :
6514 ac_cv_type_signal
=int
6516 ac_cv_type_signal
=void
6518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6521 $as_echo "$ac_cv_type_signal" >&6; }
6523 cat >>confdefs.h
<<_ACEOF
6524 #define RETSIGTYPE $ac_cv_type_signal
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6530 $as_echo_n "checking for speed_t... " >&6; }
6531 if test "${emacs_cv_speed_t+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <termios.h>
6545 if ac_fn_c_try_compile
"$LINENO"; then :
6546 emacs_cv_speed_t
=yes
6550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6553 $as_echo "$emacs_cv_speed_t" >&6; }
6554 if test $emacs_cv_speed_t = yes; then
6556 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6561 $as_echo_n "checking for struct timeval... " >&6; }
6562 if test "${emacs_cv_struct_timeval+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #ifdef TIME_WITH_SYS_TIME
6568 #include <sys/time.h>
6571 #ifdef HAVE_SYS_TIME_H
6572 #include <sys/time.h>
6580 static struct timeval x; x.tv_sec = x.tv_usec;
6585 if ac_fn_c_try_compile
"$LINENO"; then :
6586 emacs_cv_struct_timeval
=yes
6588 emacs_cv_struct_timeval
=no
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6593 $as_echo "$emacs_cv_struct_timeval" >&6; }
6594 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6595 if test $emacs_cv_struct_timeval = yes; then
6597 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6602 $as_echo_n "checking for struct exception... " >&6; }
6603 if test "${emacs_cv_struct_exception+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6612 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6617 if ac_fn_c_try_compile
"$LINENO"; then :
6618 emacs_cv_struct_exception
=yes
6620 emacs_cv_struct_exception
=no
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6625 $as_echo "$emacs_cv_struct_exception" >&6; }
6626 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6627 if test $emacs_cv_struct_exception != yes; then
6629 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6633 for ac_header
in sys
/socket.h
6635 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6636 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6637 cat >>confdefs.h
<<_ACEOF
6638 #define HAVE_SYS_SOCKET_H 1
6645 for ac_header
in net
/if.h
6647 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6648 #if HAVE_SYS_SOCKET_H
6649 #include <sys/socket.h>
6652 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6653 cat >>confdefs.h
<<_ACEOF
6654 #define HAVE_NET_IF_H 1
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6663 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6664 if test "${ac_cv_struct_tm+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 #include <sys/types.h>
6676 int *p = &tm.tm_sec;
6682 if ac_fn_c_try_compile
"$LINENO"; then :
6683 ac_cv_struct_tm
=time.h
6685 ac_cv_struct_tm
=sys
/time.h
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6690 $as_echo "$ac_cv_struct_tm" >&6; }
6691 if test $ac_cv_struct_tm = sys
/time.h
; then
6693 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6697 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6698 #include <$ac_cv_struct_tm>
6701 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6703 cat >>confdefs.h
<<_ACEOF
6704 #define HAVE_STRUCT_TM_TM_ZONE 1
6710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6712 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6715 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6717 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6723 cat >>confdefs.h
<<_ACEOF
6724 #define HAVE_DECL_TZNAME $ac_have_decl
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6728 $as_echo_n "checking for tzname... " >&6; }
6729 if test "${ac_cv_var_tzname+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6735 #if !HAVE_DECL_TZNAME
6736 extern char *tzname[];
6742 return tzname[0][0];
6747 if ac_fn_c_try_link
"$LINENO"; then :
6748 ac_cv_var_tzname
=yes
6752 rm -f core conftest.err conftest.
$ac_objext \
6753 conftest
$ac_exeext conftest.
$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6756 $as_echo "$ac_cv_var_tzname" >&6; }
6757 if test $ac_cv_var_tzname = yes; then
6759 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6764 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6766 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6768 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6772 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6773 #if HAVE_SYS_SOCKET_H
6774 #include <sys/socket.h>
6780 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6782 cat >>confdefs.h
<<_ACEOF
6783 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6788 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6789 #if HAVE_SYS_SOCKET_H
6790 #include <sys/socket.h>
6796 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6798 cat >>confdefs.h
<<_ACEOF
6799 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6804 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6805 #if HAVE_SYS_SOCKET_H
6806 #include <sys/socket.h>
6812 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6814 cat >>confdefs.h
<<_ACEOF
6815 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6820 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6821 #if HAVE_SYS_SOCKET_H
6822 #include <sys/socket.h>
6828 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6830 cat >>confdefs.h
<<_ACEOF
6831 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6836 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6837 #if HAVE_SYS_SOCKET_H
6838 #include <sys/socket.h>
6844 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6846 cat >>confdefs.h
<<_ACEOF
6847 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6856 $as_echo_n "checking for function prototypes... " >&6; }
6857 if test "$ac_cv_prog_cc_c89" != no
; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6859 $as_echo "yes" >&6; }
6861 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6864 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6872 $as_echo_n "checking for working volatile... " >&6; }
6873 if test "${ac_cv_c_volatile+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6884 int * volatile y = (int *) 0;
6890 if ac_fn_c_try_compile
"$LINENO"; then :
6891 ac_cv_c_volatile
=yes
6895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6898 $as_echo "$ac_cv_c_volatile" >&6; }
6899 if test $ac_cv_c_volatile = no
; then
6901 $as_echo "#define volatile /**/" >>confdefs.h
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6906 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6907 if test "${ac_cv_c_const+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6916 /* FIXME: Include the comments suggested by Paul. */
6918 /* Ultrix mips cc rejects this. */
6919 typedef int charset[2];
6921 /* SunOS 4.1.1 cc rejects this. */
6922 char const *const *pcpcc;
6924 /* NEC SVR4.0.2 mips cc rejects this. */
6925 struct point {int x, y;};
6926 static struct point const zero = {0,0};
6927 /* AIX XL C 1.02.0.0 rejects this.
6928 It does not let you subtract one const X* pointer from another in
6929 an arm of an if-expression whose if-part is not a constant
6931 const char *g = "string";
6932 pcpcc = &g + (g ? g-g : 0);
6933 /* HPUX 7.0 cc rejects these. */
6935 ppc = (char**) pcpcc;
6936 pcpcc = (char const *const *) ppc;
6937 { /* SCO 3.2v4 cc rejects this. */
6939 char const *s = 0 ? (char *) 0 : (char const *) 0;
6944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6946 const int *foo = &x[0];
6949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6950 typedef const int *iptr;
6954 { /* AIX XL C 1.02.0.0 rejects this saying
6955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6956 struct s { int j; const int *ap[3]; };
6957 struct s *b; b->j = 5;
6959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6963 return !cs[0] && !zero.x;
6970 if ac_fn_c_try_compile
"$LINENO"; then :
6975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6978 $as_echo "$ac_cv_c_const" >&6; }
6979 if test $ac_cv_c_const = no
; then
6981 $as_echo "#define const /**/" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6986 $as_echo_n "checking for void * support... " >&6; }
6987 if test "${emacs_cv_void_star+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7001 if ac_fn_c_try_compile
"$LINENO"; then :
7002 emacs_cv_void_star
=yes
7004 emacs_cv_void_star
=no
7006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7009 $as_echo "$emacs_cv_void_star" >&6; }
7010 if test $emacs_cv_void_star = yes; then
7011 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7014 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7024 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7025 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7026 $as_echo_n "(cached) " >&6
7028 cat >conftest.
make <<\_ACEOF
7031 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7036 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7038 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7042 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7044 $as_echo "yes" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 SET_MAKE
="MAKE=${MAKE-make}"
7056 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7058 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7060 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7061 if test "x$testval" != x
; then
7064 ac_enable_autodepend
=no
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7067 $as_echo "$HAVE_GNU_MAKE" >&6; }
7068 if test $HAVE_GNU_MAKE = yes; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7070 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7071 SAVE_CFLAGS
="$CFLAGS"
7072 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7084 if ac_fn_c_try_compile
"$LINENO"; then :
7087 ac_enable_autodepend
=no
7089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7090 CFLAGS
="$SAVE_CFLAGS"
7091 test -f deps.d || ac_enable_autodepend
=no
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7094 $as_echo "$ac_enable_autodepend" >&6; }
7096 if test $ac_enable_autodepend = yes; then
7097 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7098 ## In parallel builds, another make might create depdir between
7099 ## the first test and mkdir, so stick another test on the end.
7100 ## Or use mkinstalldirs? mkdir -p is not portable.
7101 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7102 deps_frag
=autodeps.mk
7105 deps_frag
=$srcdir/src
/$deps_frag
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7112 $as_echo_n "checking for long file names... " >&6; }
7113 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7116 ac_cv_sys_long_file_names
=yes
7117 # Test for long file names in all the places we know might matter:
7118 # . the current directory, where building will happen
7119 # $prefix/lib where we will be installing things
7120 # $exec_prefix/lib likewise
7121 # $TMPDIR if set, where it might want to write temporary files
7122 # /tmp where it might want to write temporary files
7125 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7126 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7127 # in the usual case where exec_prefix is '${prefix}'.
7129 . |
/* | ?
:[\\/]*) ;; #(
7132 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7133 ac_xdir
=$ac_dir/cf$$
7134 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7135 ac_tf1
=$ac_xdir/conftest9012345
7136 ac_tf2
=$ac_xdir/conftest9012346
7137 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7138 ac_cv_sys_long_file_names
=no
7139 rm -f -r "$ac_xdir" 2>/dev
/null
7140 test $ac_cv_sys_long_file_names = no
&& break
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7144 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7145 if test $ac_cv_sys_long_file_names = yes; then
7147 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7152 #### Choose a window system.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7155 $as_echo_n "checking for X... " >&6; }
7158 # Check whether --with-x was given.
7159 if test "${with_x+set}" = set; then :
7163 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7164 if test "x$with_x" = xno
; then
7165 # The user explicitly disabled X.
7168 case $x_includes,$x_libraries in #(
7169 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7170 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7173 # One or both of the vars are not set, and there is no cached value.
7174 ac_x_includes
=no ac_x_libraries
=no
7175 rm -f -r conftest.dir
7176 if mkdir conftest.dir
; then
7178 cat >Imakefile
<<'_ACEOF'
7180 @echo incroot='${INCROOT}'
7182 @echo usrlibdir='${USRLIBDIR}'
7184 @echo libdir='${LIBDIR}'
7186 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7188 for ac_var
in incroot usrlibdir libdir
; do
7189 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7191 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7192 for ac_extension
in a so sl dylib la dll
; do
7193 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7194 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7195 ac_im_usrlibdir
=$ac_im_libdir; break
7198 # Screen out bogus values from the imake configuration. They are
7199 # bogus both because they are the default anyway, and because
7200 # using them would break gcc on systems where it needs fixed includes.
7201 case $ac_im_incroot in
7202 /usr
/include
) ac_x_includes
= ;;
7203 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7205 case $ac_im_usrlibdir in
7206 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7207 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7211 rm -f -r conftest.dir
7214 # Standard set of common directories for X headers.
7215 # Check X11 before X11Rn because it is often a symlink to the current release.
7229 /usr/local/X11/include
7230 /usr/local/X11R7/include
7231 /usr/local/X11R6/include
7232 /usr/local/X11R5/include
7233 /usr/local/X11R4/include
7235 /usr/local/include/X11
7236 /usr/local/include/X11R7
7237 /usr/local/include/X11R6
7238 /usr/local/include/X11R5
7239 /usr/local/include/X11R4
7243 /usr/XFree86/include/X11
7247 /usr/unsupported/include
7249 /usr/local/x11r5/include
7250 /usr/lpp/Xamples/include
7252 /usr/openwin/include
7253 /usr/openwin/share/include'
7255 if test "$ac_x_includes" = no
; then
7256 # Guess where to find include files, by looking for Xlib.h.
7257 # First, try using that file with no special directory specified.
7258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <X11/Xlib.h>
7262 if ac_fn_c_try_cpp
"$LINENO"; then :
7263 # We can compile using X headers with no special include directory.
7266 for ac_dir
in $ac_x_header_dirs; do
7267 if test -r "$ac_dir/X11/Xlib.h"; then
7268 ac_x_includes
=$ac_dir
7273 rm -f conftest.err conftest.
$ac_ext
7274 fi # $ac_x_includes = no
7276 if test "$ac_x_libraries" = no
; then
7277 # Check for the libraries.
7278 # See if we find them without any special options.
7279 # Don't add to $LIBS permanently.
7282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <X11/Xlib.h>
7293 if ac_fn_c_try_link
"$LINENO"; then :
7295 # We can link X programs with no special library path.
7299 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7301 # Don't even attempt the hair of trying to link an X program!
7302 for ac_extension
in a so sl dylib la dll
; do
7303 if test -r "$ac_dir/libX11.$ac_extension"; then
7304 ac_x_libraries
=$ac_dir
7310 rm -f core conftest.err conftest.
$ac_objext \
7311 conftest
$ac_exeext conftest.
$ac_ext
7312 fi # $ac_x_libraries = no
7314 case $ac_x_includes,$ac_x_libraries in #(
7316 # Didn't find X, or a directory has "'" in its name.
7317 ac_cv_have_x
="have_x=no";; #(
7319 # Record where we found X for the cache.
7320 ac_cv_have_x
="have_x=yes\
7321 ac_x_includes='$ac_x_includes'\
7322 ac_x_libraries='$ac_x_libraries'"
7328 eval "$ac_cv_have_x"
7331 if test "$have_x" != yes; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7333 $as_echo "$have_x" >&6; }
7336 # If each of the values was on the command line, it overrides each guess.
7337 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7338 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7339 # Update the cache value to reflect the command line values.
7340 ac_cv_have_x
="have_x=yes\
7341 ac_x_includes='$x_includes'\
7342 ac_x_libraries='$x_libraries'"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7344 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7347 if test "$no_x" = yes; then
7353 ## Workaround for bug in autoconf <= 2.62.
7354 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7355 ## No need to do anything special for these standard directories.
7356 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7358 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7362 LD_SWITCH_X_SITE_AUX
=
7363 LD_SWITCH_X_SITE_AUX_RPATH
=
7364 if test "${x_libraries}" != NONE
; then
7365 if test -n "${x_libraries}"; then
7366 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7367 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7368 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7370 x_default_search_path
=""
7371 x_search_path
=${x_libraries}
7372 if test -z "${x_search_path}"; then
7373 x_search_path
=/usr
/lib
7375 for x_library
in `echo ${x_search_path}: | \
7376 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7378 ${x_library}/X11/%L/%T/%N%C%S:\
7379 ${x_library}/X11/%l/%T/%N%C%S:\
7380 ${x_library}/X11/%T/%N%C%S:\
7381 ${x_library}/X11/%L/%T/%N%S:\
7382 ${x_library}/X11/%l/%T/%N%S:\
7383 ${x_library}/X11/%T/%N%S"
7384 if test x
"${x_default_search_path}" = x
; then
7385 x_default_search_path
=${x_search_path}
7387 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7394 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7395 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7398 if test x
"${x_includes}" = x
; then
7399 bitmapdir
=/usr
/include
/X11
/bitmaps
7401 # accumulate include directories that have X11 bitmap subdirectories
7403 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7404 if test -d "${bmd}/X11/bitmaps"; then
7405 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7407 if test -d "${bmd}/bitmaps"; then
7408 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7411 if test ${bmd_acc} != "dummyval"; then
7412 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7419 tmp_CPPFLAGS
="$CPPFLAGS"
7420 tmp_CFLAGS
="$CFLAGS"
7421 CPPFLAGS
="$CPPFLAGS -x objective-c"
7422 CFLAGS
="$CFLAGS -x objective-c"
7423 TEMACS_LDFLAGS2
="\${LDFLAGS}"
7424 if test "${with_ns}" != no
; then
7425 if test "${opsys}" = darwin
; then
7427 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7428 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7429 ns_appresdir
=${ns_appdir}Contents
/Resources
7430 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7431 elif test -f $GNUSTEP_CONFIG_FILE; then
7433 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7434 ns_appbindir
=${ns_appdir}
7435 ns_appresdir
=${ns_appdir}Resources
7436 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7437 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7438 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7439 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7440 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7441 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7442 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7443 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7444 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7445 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7446 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7447 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7448 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7453 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7454 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7457 as_fn_error
"\`--with-ns' was specified, but the include
7458 files are missing or cannot be compiled." "$LINENO" 5
7462 NS_HAVE_NSINTEGER
=yes
7463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <Foundation/NSObjCRuntime.h>
7474 if ac_fn_c_try_compile
"$LINENO"; then :
7475 ns_have_nsinteger
=yes
7477 ns_have_nsinteger
=no
7479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7480 if test $ns_have_nsinteger = no
; then
7481 NS_HAVE_NSINTEGER
=no
7489 if test "${HAVE_NS}" = yes; then
7490 window_system
=nextstep
7492 # set up packaging dirs
7493 exec_prefix
=${ns_appbindir}
7494 libexecdir
=${ns_appbindir}/libexec
7495 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7496 prefix
=${ns_appresdir}
7498 ns_frag
=$srcdir/src
/ns.mk
7499 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7500 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7502 CFLAGS
="$tmp_CFLAGS"
7503 CPPFLAGS
="$tmp_CPPFLAGS"
7509 case "${window_system}" in
7513 case "${with_x_toolkit}" in
7514 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7515 motif
) USE_X_TOOLKIT
=MOTIF
;;
7517 USE_X_TOOLKIT
=none
;;
7518 no
) USE_X_TOOLKIT
=none
;;
7519 * ) USE_X_TOOLKIT
=maybe
;;
7529 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7530 # Extract the first word of "X", so it can be a program name with args.
7531 set dummy X
; ac_word
=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 if test -n "$HAVE_XSERVER"; then
7538 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir
=.
7545 for ac_exec_ext
in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_prog_HAVE_XSERVER
="true"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7558 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7559 if test -n "$HAVE_XSERVER"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7561 $as_echo "$HAVE_XSERVER" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7568 if test "$HAVE_XSERVER" = true ||
7569 test -n "$DISPLAY" ||
7570 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7571 as_fn_error
"You seem to be running X, but no X development libraries
7572 were found. You should install the relevant development files for X
7573 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7574 sure you have development files for image handling, i.e.
7575 tiff, gif, jpeg, png and xpm.
7576 If you are sure you want Emacs compiled without X window support, pass
7578 to configure." "$LINENO" 5
7582 ### If we're using X11, we should use the X menu package.
7585 yes ) HAVE_MENUS
=yes ;;
7588 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7589 # Assume not, until told otherwise.
7592 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7593 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7599 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7600 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7607 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7608 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 extern void (* __after_morecore_hook)();
7617 __after_morecore_hook = 0
7622 if ac_fn_c_try_link
"$LINENO"; then :
7623 emacs_cv_var___after_morecore_hook
=yes
7625 emacs_cv_var___after_morecore_hook
=no
7627 rm -f core conftest.err conftest.
$ac_objext \
7628 conftest
$ac_exeext conftest.
$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7631 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7632 if test $emacs_cv_var___after_morecore_hook = no
; then
7636 if test "${system_malloc}" = "yes"; then
7639 (The GNU allocators don't work with this system configuration.)"
7643 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7644 VMLIMIT_OBJ
=vm-limit.o
7649 if test "$doug_lea_malloc" = "yes" ; then
7650 if test "$GNU_MALLOC" = yes ; then
7652 (Using Doug Lea's new malloc from the GNU C Library.)"
7655 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7658 ## Use mmap directly for allocating larger buffers.
7659 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7660 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7661 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7663 gnu
*) REL_ALLOC
=no
;;
7667 if test x
"${REL_ALLOC}" = x
; then
7668 REL_ALLOC
=${GNU_MALLOC}
7675 for ac_header
in $ac_header_list
7677 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7680 eval as_val
=\$
$as_ac_Header
7681 if test "x$as_val" = x
""yes; then :
7682 cat >>confdefs.h
<<_ACEOF
7683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7697 for ac_func
in getpagesize
7699 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7700 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7701 cat >>confdefs.h
<<_ACEOF
7702 #define HAVE_GETPAGESIZE 1
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7709 $as_echo_n "checking for working mmap... " >&6; }
7710 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7713 if test "$cross_compiling" = yes; then :
7714 ac_cv_func_mmap_fixed_mapped
=no
7716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 /* malloc might have been renamed as rpl_malloc. */
7722 /* Thanks to Mike Haertel and Jim Avera for this test.
7723 Here is a matrix of mmap possibilities:
7724 mmap private not fixed
7725 mmap private fixed at somewhere currently unmapped
7726 mmap private fixed at somewhere already mapped
7727 mmap shared not fixed
7728 mmap shared fixed at somewhere currently unmapped
7729 mmap shared fixed at somewhere already mapped
7730 For private mappings, we should verify that changes cannot be read()
7731 back from the file, nor mmap's back from the file at a different
7732 address. (There have been systems where private was not correctly
7733 implemented like the infamous i386 svr4.0, and systems where the
7734 VM page cache was not coherent with the file system buffer cache
7735 like early versions of FreeBSD and possibly contemporary NetBSD.)
7736 For shared mappings, we should conversely verify that changes get
7737 propagated back to all the places they're supposed to be.
7739 Grep wants private fixed already mapped.
7740 The main things grep needs to know about mmap are:
7741 * does it exist and is it safe to write into the mmap'd area
7742 * how to use it (BSD variants) */
7745 #include <sys/mman.h>
7747 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7751 /* This mess was copied from the GNU getpagesize.h. */
7752 #ifndef HAVE_GETPAGESIZE
7753 # ifdef _SC_PAGESIZE
7754 # define getpagesize() sysconf(_SC_PAGESIZE)
7755 # else /* no _SC_PAGESIZE */
7756 # ifdef HAVE_SYS_PARAM_H
7757 # include <sys/param.h>
7758 # ifdef EXEC_PAGESIZE
7759 # define getpagesize() EXEC_PAGESIZE
7760 # else /* no EXEC_PAGESIZE */
7762 # define getpagesize() NBPG * CLSIZE
7765 # endif /* no CLSIZE */
7766 # else /* no NBPG */
7768 # define getpagesize() NBPC
7769 # else /* no NBPC */
7771 # define getpagesize() PAGESIZE
7772 # endif /* PAGESIZE */
7773 # endif /* no NBPC */
7774 # endif /* no NBPG */
7775 # endif /* no EXEC_PAGESIZE */
7776 # else /* no HAVE_SYS_PARAM_H */
7777 # define getpagesize() 8192 /* punt totally */
7778 # endif /* no HAVE_SYS_PARAM_H */
7779 # endif /* no _SC_PAGESIZE */
7781 #endif /* no HAVE_GETPAGESIZE */
7786 char *data, *data2, *data3;
7791 pagesize = getpagesize ();
7793 /* First, make a file with some known garbage in it. */
7794 data = (char *) malloc (pagesize);
7797 for (i = 0; i < pagesize; ++i)
7798 *(data + i) = rand ();
7800 fd = creat ("conftest.mmap", 0600);
7803 if (write (fd, data, pagesize) != pagesize)
7807 /* Next, check that the tail of a page is zero-filled. File must have
7808 non-zero length, otherwise we risk SIGBUS for entire page. */
7809 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7813 if (write (fd2, cdata2, 1) != 1)
7815 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7816 if (data2 == MAP_FAILED)
7818 for (i = 0; i < pagesize; ++i)
7822 if (munmap (data2, pagesize))
7825 /* Next, try to mmap the file at a fixed address which already has
7826 something else allocated at it. If we can, also make sure that
7827 we see the same garbage. */
7828 fd = open ("conftest.mmap", O_RDWR);
7831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7834 for (i = 0; i < pagesize; ++i)
7835 if (*(data + i) != *(data2 + i))
7838 /* Finally, make sure that changes to the mapped area do not
7839 percolate back to the file as seen by read(). (This is a bug on
7840 some variants of i386 svr4.0.) */
7841 for (i = 0; i < pagesize; ++i)
7842 *(data2 + i) = *(data2 + i) + 1;
7843 data3 = (char *) malloc (pagesize);
7846 if (read (fd, data3, pagesize) != pagesize)
7848 for (i = 0; i < pagesize; ++i)
7849 if (*(data + i) != *(data3 + i))
7855 if ac_fn_c_try_run
"$LINENO"; then :
7856 ac_cv_func_mmap_fixed_mapped
=yes
7858 ac_cv_func_mmap_fixed_mapped
=no
7860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7866 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7869 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7872 rm -f conftest.mmap conftest.txt
7874 if test $use_mmap_for_buffers = yes; then
7878 LIBS
="$LIBS_SYSTEM $LIBS"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7881 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7882 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 ac_check_lib_save_LIBS
=$LIBS
7887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7900 return dnet_ntoa ();
7905 if ac_fn_c_try_link
"$LINENO"; then :
7906 ac_cv_lib_dnet_dnet_ntoa
=yes
7908 ac_cv_lib_dnet_dnet_ntoa
=no
7910 rm -f core conftest.err conftest.
$ac_objext \
7911 conftest
$ac_exeext conftest.
$ac_ext
7912 LIBS
=$ac_check_lib_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7915 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7916 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7917 cat >>confdefs.h
<<_ACEOF
7918 #define HAVE_LIBDNET 1
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7927 $as_echo_n "checking for main in -lXbsd... " >&6; }
7928 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_check_lib_save_LIBS
=$LIBS
7933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7945 if ac_fn_c_try_link
"$LINENO"; then :
7946 ac_cv_lib_Xbsd_main
=yes
7948 ac_cv_lib_Xbsd_main
=no
7950 rm -f core conftest.err conftest.
$ac_objext \
7951 conftest
$ac_exeext conftest.
$ac_ext
7952 LIBS
=$ac_check_lib_save_LIBS
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7955 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7956 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7957 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7962 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7963 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7966 ac_check_lib_save_LIBS
=$LIBS
7967 LIBS
="-lpthreads $LIBS"
7968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7971 /* Override any GCC internal prototype to avoid an error.
7972 Use char because int might match the return type of a GCC
7973 builtin and then its argument prototype would still apply. */
7986 if ac_fn_c_try_link
"$LINENO"; then :
7987 ac_cv_lib_pthreads_cma_open
=yes
7989 ac_cv_lib_pthreads_cma_open
=no
7991 rm -f core conftest.err conftest.
$ac_objext \
7992 conftest
$ac_exeext conftest.
$ac_ext
7993 LIBS
=$ac_check_lib_save_LIBS
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7996 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7997 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7998 cat >>confdefs.h
<<_ACEOF
7999 #define HAVE_LIBPTHREADS 1
8002 LIBS
="-lpthreads $LIBS"
8007 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8008 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8009 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8010 ## added to LIBS in configure would never contain the pthreads part,
8011 ## but the value used in Makefiles might. FIXME?
8013 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8014 ## be harmless on older versions of X where it happens to exist.
8015 test "$opsys" = "aix4-2" && \
8016 test $ac_cv_lib_pthreads_cma_open = yes && \
8017 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8023 $as_echo_n "checking for -bbigtoc option... " >&6; }
8024 if test "${gdb_cv_bigtoc+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8029 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8030 *) gdb_cv_bigtoc
=-bbigtoc ;;
8033 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8045 if ac_fn_c_try_link
"$LINENO"; then :
8050 rm -f core conftest.err conftest.
$ac_objext \
8051 conftest
$ac_exeext conftest.
$ac_ext
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8055 $as_echo "$gdb_cv_bigtoc" >&6; }
8059 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8060 # used for the tests that follow. We set them back to REAL_CFLAGS and
8061 # REAL_CPPFLAGS later on.
8063 REAL_CPPFLAGS
="$CPPFLAGS"
8065 if test "${HAVE_X11}" = "yes"; then
8066 DEFS
="$C_SWITCH_X_SITE $DEFS"
8067 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8069 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8070 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8072 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8073 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8074 # but it's more convenient here to set LD_RUN_PATH
8075 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8076 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8077 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8081 if test "${opsys}" = "gnu-linux"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8083 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8090 XOpenDisplay ("foo");
8095 if ac_fn_c_try_link
"$LINENO"; then :
8096 xlinux_first_failure
=no
8098 xlinux_first_failure
=yes
8100 rm -f core conftest.err conftest.
$ac_objext \
8101 conftest
$ac_exeext conftest.
$ac_ext
8102 if test "${xlinux_first_failure}" = "yes"; then
8103 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8104 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8105 OLD_CPPFLAGS
="$CPPFLAGS"
8107 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8108 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8109 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8110 LIBS
="$LIBS -b i486-linuxaout"
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8117 XOpenDisplay ("foo");
8122 if ac_fn_c_try_link
"$LINENO"; then :
8123 xlinux_second_failure
=no
8125 xlinux_second_failure
=yes
8127 rm -f core conftest.err conftest.
$ac_objext \
8128 conftest
$ac_exeext conftest.
$ac_ext
8129 if test "${xlinux_second_failure}" = "yes"; then
8130 # If we get the same failure with -b, there is no use adding -b.
8131 # So take it out. This plays safe.
8132 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8133 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8134 CPPFLAGS
="$OLD_CPPFLAGS"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8140 $as_echo "yes" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8148 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8149 # header files included from there.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8151 $as_echo_n "checking for Xkb... " >&6; }
8152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <X11/Xlib.h>
8155 #include <X11/XKBlib.h>
8159 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8164 if ac_fn_c_try_link
"$LINENO"; then :
8169 rm -f core conftest.err conftest.
$ac_objext \
8170 conftest
$ac_exeext conftest.
$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8172 $as_echo "$emacs_xkb" >&6; }
8173 if test $emacs_xkb = yes; then
8175 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8179 for ac_func
in XrmSetDatabase XScreenResourceString \
8180 XScreenNumberOfScreen XSetWMProtocols
8182 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8183 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8184 eval as_val
=\$
$as_ac_var
8185 if test "x$as_val" = x
""yes; then :
8186 cat >>confdefs.h
<<_ACEOF
8187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8195 if test "${window_system}" = "x11"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8197 $as_echo_n "checking X11 version 6... " >&6; }
8198 if test "${emacs_cv_x11_version_6+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 #include <X11/Xlib.h>
8207 #if XlibSpecificationRelease < 6
8215 if ac_fn_c_try_link
"$LINENO"; then :
8216 emacs_cv_x11_version_6
=yes
8218 emacs_cv_x11_version_6
=no
8220 rm -f core conftest.err conftest.
$ac_objext \
8221 conftest
$ac_exeext conftest.
$ac_ext
8224 if test $emacs_cv_x11_version_6 = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8226 $as_echo "6 or newer" >&6; }
8228 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8232 $as_echo "before 6" >&6; }
8237 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8239 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8240 if test "${with_rsvg}" != "no"; then
8241 RSVG_REQUIRED
=2.11.0
8242 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8247 # Extract the first word of "pkg-config", so it can be a program name with args.
8248 set dummy pkg-config
; ac_word
=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8256 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8263 test -z "$as_dir" && as_dir
=.
8264 for ac_exec_ext
in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8278 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8279 if test -n "$PKG_CONFIG"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8281 $as_echo "$PKG_CONFIG" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8289 if test "$PKG_CONFIG" = "no" ; then
8292 PKG_CONFIG_MIN_VERSION
=0.9.0
8293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8295 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8297 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8299 $as_echo "yes" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8303 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8304 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8306 $as_echo "$RSVG_CFLAGS" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8309 $as_echo_n "checking RSVG_LIBS... " >&6; }
8310 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8312 $as_echo "$RSVG_LIBS" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8318 ## If we have a custom action on failure, don't print errors, but
8319 ## do set a variable so people can do so.
8320 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8327 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8328 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8332 if test $succeeded = yes; then
8341 if test ".${RSVG_CFLAGS}" != "."; then
8344 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8346 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8347 LIBS
="$RSVG_LIBS $LIBS"
8353 if test "${with_imagemagick}" != "no"; then
8354 IMAGEMAGICK_MODULE
="Wand"
8358 # Extract the first word of "pkg-config", so it can be a program name with args.
8359 set dummy pkg-config
; ac_word
=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8367 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir
=.
8375 for ac_exec_ext
in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8389 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8390 if test -n "$PKG_CONFIG"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8392 $as_echo "$PKG_CONFIG" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8400 if test "$PKG_CONFIG" = "no" ; then
8403 PKG_CONFIG_MIN_VERSION
=0.9.0
8404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8406 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8408 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8414 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8415 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8417 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8420 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8421 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8423 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 IMAGEMAGICK_CFLAGS
=""
8429 ## If we have a custom action on failure, don't print errors, but
8430 ## do set a variable so people can do so.
8431 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8443 if test $succeeded = yes; then
8452 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
8453 HAVE_IMAGEMAGICK
=yes
8455 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8457 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8458 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8462 $as_echo "#define HAVE_MAGICKEXPORTIMAGEPIXELS 1" >>confdefs.h
8467 for ac_func
in $ac_func_list
8469 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8470 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8471 eval as_val
=\$
$as_ac_var
8472 if test "x$as_val" = x
""yes; then :
8473 cat >>confdefs.h
<<_ACEOF
8474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8488 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8491 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8496 # Extract the first word of "pkg-config", so it can be a program name with args.
8497 set dummy pkg-config
; ac_word
=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8505 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir
=.
8513 for ac_exec_ext
in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8527 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8528 if test -n "$PKG_CONFIG"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8530 $as_echo "$PKG_CONFIG" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8538 if test "$PKG_CONFIG" = "no" ; then
8541 PKG_CONFIG_MIN_VERSION
=0.9.0
8542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8544 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8546 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8552 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8553 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8555 $as_echo "$GTK_CFLAGS" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8558 $as_echo_n "checking GTK_LIBS... " >&6; }
8559 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8561 $as_echo "$GTK_LIBS" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 ## If we have a custom action on failure, don't print errors, but
8568 ## do set a variable so people can do so.
8569 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8581 if test $succeeded = yes; then
8587 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8588 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8594 if test x
"$pkg_check_gtk" = xyes
; then
8598 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8599 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8600 LIBS
="$GTK_LIBS $LIBS"
8602 for ac_func
in gtk_main
8604 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8605 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8606 cat >>confdefs.h
<<_ACEOF
8607 #define HAVE_GTK_MAIN 1
8613 if test "${GTK_COMPILES}" != "yes"; then
8614 if test "$USE_X_TOOLKIT" != "maybe"; then
8615 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8620 $as_echo "#define USE_GTK 1" >>confdefs.h
8624 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8628 closing open displays. This is no problem if you just use
8629 one display, but if you use more than one and close one of them
8630 Emacs may crash." >&5
8631 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8632 closing open displays. This is no problem if you just use
8633 one display, but if you use more than one and close one of them
8634 Emacs may crash." >&2;}
8643 if test "${HAVE_GTK}" = "yes"; then
8645 if test "$with_toolkit_scroll_bars" != no
; then
8646 with_toolkit_scroll_bars
=yes
8649 HAVE_GTK_MULTIDISPLAY
=no
8650 for ac_func
in gdk_display_open
8652 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8653 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8654 cat >>confdefs.h
<<_ACEOF
8655 #define HAVE_GDK_DISPLAY_OPEN 1
8657 HAVE_GTK_MULTIDISPLAY
=yes
8661 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8663 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8667 HAVE_GTK_FILE_SELECTION
=no
8668 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8669 #include <gtk/gtk.h>
8671 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8672 HAVE_GTK_FILE_SELECTION
=yes
8674 HAVE_GTK_FILE_SELECTION
=no
8677 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8678 for ac_func
in gtk_file_selection_new
8680 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8681 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8682 cat >>confdefs.h
<<_ACEOF
8683 #define HAVE_GTK_FILE_SELECTION_NEW 1
8685 HAVE_GTK_FILE_SELECTION
=yes
8687 HAVE_GTK_FILE_SELECTION
=no
8693 HAVE_GTK_FILE_CHOOSER
=no
8694 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8695 #include <gtk/gtk.h>
8697 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8698 HAVE_GTK_FILE_CHOOSER
=yes
8700 HAVE_GTK_FILE_CHOOSER
=no
8703 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8704 for ac_func
in gtk_file_chooser_dialog_new
8706 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8707 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8708 cat >>confdefs.h
<<_ACEOF
8709 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8711 HAVE_GTK_FILE_CHOOSER
=yes
8713 HAVE_GTK_FILE_CHOOSER
=no
8719 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8720 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8722 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8726 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8727 HAVE_GTK_AND_PTHREAD
=no
8728 for ac_header
in pthread.h
8730 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8731 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8732 cat >>confdefs.h
<<_ACEOF
8733 #define HAVE_PTHREAD_H 1
8740 if test "$ac_cv_header_pthread_h"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8742 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8743 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8746 ac_check_lib_save_LIBS
=$LIBS
8747 LIBS
="-lpthread $LIBS"
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8757 char pthread_self ();
8761 return pthread_self ();
8766 if ac_fn_c_try_link
"$LINENO"; then :
8767 ac_cv_lib_pthread_pthread_self
=yes
8769 ac_cv_lib_pthread_pthread_self
=no
8771 rm -f core conftest.err conftest.
$ac_objext \
8772 conftest
$ac_exeext conftest.
$ac_ext
8773 LIBS
=$ac_check_lib_save_LIBS
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8776 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8777 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8778 HAVE_GTK_AND_PTHREAD
=yes
8782 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8783 case "${canonical}" in
8785 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8788 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8796 if test "${with_dbus}" = "yes"; then
8800 # Extract the first word of "pkg-config", so it can be a program name with args.
8801 set dummy pkg-config
; ac_word
=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8809 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8816 test -z "$as_dir" && as_dir
=.
8817 for ac_exec_ext
in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8831 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8832 if test -n "$PKG_CONFIG"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8834 $as_echo "$PKG_CONFIG" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8842 if test "$PKG_CONFIG" = "no" ; then
8845 PKG_CONFIG_MIN_VERSION
=0.9.0
8846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8848 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8850 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8852 $as_echo "yes" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8856 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8857 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8859 $as_echo "$DBUS_CFLAGS" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8862 $as_echo_n "checking DBUS_LIBS... " >&6; }
8863 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8865 $as_echo "$DBUS_LIBS" >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8871 ## If we have a custom action on failure, don't print errors, but
8872 ## do set a variable so people can do so.
8873 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8885 if test $succeeded = yes; then
8891 if test "$HAVE_DBUS" = yes; then
8892 LIBS
="$LIBS $DBUS_LIBS"
8894 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8896 for ac_func
in dbus_watch_get_unix_fd
8898 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8899 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8900 cat >>confdefs.h
<<_ACEOF
8901 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8913 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8917 # Extract the first word of "pkg-config", so it can be a program name with args.
8918 set dummy pkg-config
; ac_word
=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8926 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8933 test -z "$as_dir" && as_dir
=.
8934 for ac_exec_ext
in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8948 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8949 if test -n "$PKG_CONFIG"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8951 $as_echo "$PKG_CONFIG" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8959 if test "$PKG_CONFIG" = "no" ; then
8962 PKG_CONFIG_MIN_VERSION
=0.9.0
8963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8965 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8967 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8969 $as_echo "yes" >&6; }
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8973 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8974 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8976 $as_echo "$GCONF_CFLAGS" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8979 $as_echo_n "checking GCONF_LIBS... " >&6; }
8980 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8982 $as_echo "$GCONF_LIBS" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8988 ## If we have a custom action on failure, don't print errors, but
8989 ## do set a variable so people can do so.
8990 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9002 if test $succeeded = yes; then
9008 if test "$HAVE_GCONF" = yes; then
9010 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9017 if test "${with_selinux}" = "yes"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9019 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9020 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9023 ac_check_lib_save_LIBS
=$LIBS
9024 LIBS
="-lselinux $LIBS"
9025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9028 /* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9034 char lgetfilecon ();
9038 return lgetfilecon ();
9043 if ac_fn_c_try_link
"$LINENO"; then :
9044 ac_cv_lib_selinux_lgetfilecon
=yes
9046 ac_cv_lib_selinux_lgetfilecon
=no
9048 rm -f core conftest.err conftest.
$ac_objext \
9049 conftest
$ac_exeext conftest.
$ac_ext
9050 LIBS
=$ac_check_lib_save_LIBS
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9053 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9054 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9060 if test "$HAVE_LIBSELINUX" = yes; then
9062 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9064 LIBSELINUX_LIBS
=-lselinux
9071 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9072 if test "$with_xaw3d" != no
; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9074 $as_echo_n "checking for xaw3d... " >&6; }
9075 if test "${emacs_cv_xaw3d+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 #include <X11/Intrinsic.h>
9082 #include <X11/Xaw3d/Simple.h>
9091 if ac_fn_c_try_link
"$LINENO"; then :
9096 rm -f core conftest.err conftest.
$ac_objext \
9097 conftest
$ac_exeext conftest.
$ac_ext
9103 if test $emacs_cv_xaw3d = yes; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9105 $as_echo "yes; using Lucid toolkit" >&6; }
9110 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9116 $as_echo_n "checking for libXaw... " >&6; }
9117 if test "${emacs_cv_xaw+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 #include <X11/Intrinsic.h>
9124 #include <X11/Xaw/Simple.h>
9133 if ac_fn_c_try_link
"$LINENO"; then :
9138 rm -f core conftest.err conftest.
$ac_objext \
9139 conftest
$ac_exeext conftest.
$ac_ext
9142 if test $emacs_cv_xaw = yes; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9144 $as_echo "yes; using Lucid toolkit" >&6; }
9147 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9148 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9151 $as_echo "no; do not use toolkit by default" >&6; }
9157 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9160 if test "${USE_X_TOOLKIT}" != "none"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9162 $as_echo_n "checking X11 toolkit version... " >&6; }
9163 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <X11/Intrinsic.h>
9172 #if XtSpecificationRelease < 6
9180 if ac_fn_c_try_link
"$LINENO"; then :
9181 emacs_cv_x11_toolkit_version_6
=yes
9183 emacs_cv_x11_toolkit_version_6
=no
9185 rm -f core conftest.err conftest.
$ac_objext \
9186 conftest
$ac_exeext conftest.
$ac_ext
9189 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9190 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9192 $as_echo "6 or newer" >&6; }
9194 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9196 LIBXTR6
="-lSM -lICE"
9198 ## Use libw.a along with X11R6 Xt.
9199 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9203 $as_echo "before 6" >&6; }
9207 if test x
$HAVE_X11XTR6 = xyes
; then
9208 LIBS
="-lXt -lSM -lICE $LIBS"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9213 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9214 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 ac_check_lib_save_LIBS
=$LIBS
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9228 char XmuConvertStandardSelection ();
9232 return XmuConvertStandardSelection ();
9237 if ac_fn_c_try_link
"$LINENO"; then :
9238 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9240 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9242 rm -f core conftest.err conftest.
$ac_objext \
9243 conftest
$ac_exeext conftest.
$ac_ext
9244 LIBS
=$ac_check_lib_save_LIBS
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9247 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9248 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9249 cat >>confdefs.h
<<_ACEOF
9250 #define HAVE_LIBXMU 1
9257 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9263 ## These machines don't supply Xmu.
9265 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9270 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9271 if test "${HAVE_X11}" = "yes"; then
9272 if test "${USE_X_TOOLKIT}" != "none"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9274 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9275 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 ac_check_lib_save_LIBS
=$LIBS
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9289 char XShapeQueryExtension ();
9293 return XShapeQueryExtension ();
9298 if ac_fn_c_try_link
"$LINENO"; then :
9299 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9301 ac_cv_lib_Xext_XShapeQueryExtension
=no
9303 rm -f core conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9305 LIBS
=$ac_check_lib_save_LIBS
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9308 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9309 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9310 cat >>confdefs.h
<<_ACEOF
9311 #define HAVE_LIBXEXT 1
9322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9324 $as_echo_n "checking for Motif version 2.1... " >&6; }
9325 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9334 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9337 Motif version prior to 2.1.
9343 if ac_fn_c_try_compile
"$LINENO"; then :
9344 emacs_cv_motif_version_2_1
=yes
9346 emacs_cv_motif_version_2_1
=no
9348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9351 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9352 if test $emacs_cv_motif_version_2_1 = yes; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9354 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9355 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9358 ac_check_lib_save_LIBS
=$LIBS
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9369 char XpCreateContext ();
9373 return XpCreateContext ();
9378 if ac_fn_c_try_link
"$LINENO"; then :
9379 ac_cv_lib_Xp_XpCreateContext
=yes
9381 ac_cv_lib_Xp_XpCreateContext
=no
9383 rm -f core conftest.err conftest.
$ac_objext \
9384 conftest
$ac_exeext conftest.
$ac_ext
9385 LIBS
=$ac_check_lib_save_LIBS
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9388 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9389 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9395 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9396 if test "${emacs_cv_lesstif+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9399 # We put this in CFLAGS temporarily to precede other -I options
9400 # that might be in CFLAGS temporarily.
9401 # We put this in CPPFLAGS where it precedes the other -I options.
9402 OLD_CPPFLAGS
=$CPPFLAGS
9404 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9405 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9417 if ac_fn_c_try_compile
"$LINENO"; then :
9418 emacs_cv_lesstif
=yes
9422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9425 $as_echo "$emacs_cv_lesstif" >&6; }
9426 if test $emacs_cv_lesstif = yes; then
9427 # Make sure this -I option remains in CPPFLAGS after it is set
9428 # back to REAL_CPPFLAGS.
9429 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9430 # have those other -I options anyway. Ultimately, having this
9431 # directory ultimately in CPPFLAGS will be enough.
9432 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9433 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9436 CPPFLAGS
=$OLD_CPPFLAGS
9442 USE_TOOLKIT_SCROLL_BARS
=no
9443 if test "${with_toolkit_scroll_bars}" != "no"; then
9444 if test "${USE_X_TOOLKIT}" != "none"; then
9445 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9446 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9449 USE_TOOLKIT_SCROLL_BARS
=yes
9450 elif test "${HAVE_XAW3D}" = "yes"; then
9451 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9453 USE_TOOLKIT_SCROLL_BARS
=yes
9455 elif test "${HAVE_GTK}" = "yes"; then
9456 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9458 USE_TOOLKIT_SCROLL_BARS
=yes
9459 elif test "${HAVE_NS}" = "yes"; then
9460 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9462 USE_TOOLKIT_SCROLL_BARS
=yes
9466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9469 #include <X11/Xlib.h>
9470 #include <X11/Xresource.h>
9479 if ac_fn_c_try_compile
"$LINENO"; then :
9482 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9490 if test "${with_xim}" != "no"; then
9492 $as_echo "#define USE_XIM 1" >>confdefs.h
9497 if test "${HAVE_XIM}" != "no"; then
9499 if test "$GCC" = yes; then
9500 CFLAGS
="$CFLAGS --pedantic-errors"
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 #include <X11/Xlib.h>
9506 #include <X11/Xresource.h>
9515 XPointer *client_data;
9517 /* If we're not using GCC, it's probably not XFree86, and this is
9518 probably right, but we can't use something like --pedantic-errors. */
9519 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9520 char*, XIMProc, XPointer*);
9522 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9528 if ac_fn_c_try_compile
"$LINENO"; then :
9529 emacs_cv_arg6_star
=yes
9531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9532 if test "$emacs_cv_arg6_star" = yes; then
9533 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9536 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9542 ### Start of font-backend (under any platform) section.
9543 # (nothing here yet -- this is a placeholder)
9544 ### End of font-backend (under any platform) section.
9546 ### Start of font-backend (under X11) section.
9547 if test "${HAVE_X11}" = "yes"; then
9551 # Extract the first word of "pkg-config", so it can be a program name with args.
9552 set dummy pkg-config
; ac_word
=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9560 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9567 test -z "$as_dir" && as_dir
=.
9568 for ac_exec_ext
in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9582 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9583 if test -n "$PKG_CONFIG"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9585 $as_echo "$PKG_CONFIG" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9593 if test "$PKG_CONFIG" = "no" ; then
9596 PKG_CONFIG_MIN_VERSION
=0.9.0
9597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9599 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9601 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603 $as_echo "yes" >&6; }
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9607 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9608 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9610 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9613 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9614 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9616 $as_echo "$FONTCONFIG_LIBS" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 FONTCONFIG_CFLAGS
=""
9622 ## If we have a custom action on failure, don't print errors, but
9623 ## do set a variable so people can do so.
9624 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9636 if test $succeeded = yes; then
9643 ## Use -lXft if available, unless `--with-xft=no'.
9645 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9648 if test "x${with_xft}" != "xno"; then
9653 # Extract the first word of "pkg-config", so it can be a program name with args.
9654 set dummy pkg-config
; ac_word
=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9662 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9669 test -z "$as_dir" && as_dir
=.
9670 for ac_exec_ext
in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9684 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9685 if test -n "$PKG_CONFIG"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9687 $as_echo "$PKG_CONFIG" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9695 if test "$PKG_CONFIG" = "no" ; then
9698 PKG_CONFIG_MIN_VERSION
=0.9.0
9699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9701 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9703 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9705 $as_echo "yes" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9709 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9710 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9712 $as_echo "$XFT_CFLAGS" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9715 $as_echo_n "checking XFT_LIBS... " >&6; }
9716 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9718 $as_echo "$XFT_LIBS" >&6; }
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9724 ## If we have a custom action on failure, don't print errors, but
9725 ## do set a variable so people can do so.
9726 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9738 if test $succeeded = yes; then
9744 ## Because xftfont.c uses XRenderQueryExtension, we also
9745 ## need to link to -lXrender.
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9748 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9749 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9752 ac_check_lib_save_LIBS
=$LIBS
9753 LIBS
="-lXrender $LIBS"
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9763 char XRenderQueryExtension ();
9767 return XRenderQueryExtension ();
9772 if ac_fn_c_try_link
"$LINENO"; then :
9773 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9775 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9777 rm -f core conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9779 LIBS
=$ac_check_lib_save_LIBS
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9782 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9783 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9787 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9788 OLD_CPPFLAGS
="$CPPFLAGS"
9789 OLD_CFLAGS
="$CFLAGS"
9791 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9792 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9793 XFT_LIBS
="-lXrender $XFT_LIBS"
9794 LIBS
="$XFT_LIBS $LIBS"
9795 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9796 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9798 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9799 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9802 ac_check_lib_save_LIBS
=$LIBS
9803 LIBS
="-lXft $XFT_LIBS $LIBS"
9804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9813 char XftFontOpen ();
9817 return XftFontOpen ();
9822 if ac_fn_c_try_link
"$LINENO"; then :
9823 ac_cv_lib_Xft_XftFontOpen
=yes
9825 ac_cv_lib_Xft_XftFontOpen
=no
9827 rm -f core conftest.err conftest.
$ac_objext \
9828 conftest
$ac_exeext conftest.
$ac_ext
9829 LIBS
=$ac_check_lib_save_LIBS
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9832 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9833 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9841 if test "${HAVE_XFT}" = "yes"; then
9843 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9846 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9848 CPPFLAGS
="$OLD_CPPFLAGS"
9849 CFLAGS
="$OLD_CFLAGS"
9851 fi # "${HAVE_XFT}" = "yes"
9852 fi # "$HAVE_XFT" != no
9853 fi # "x${with_xft}" != "xno"
9855 if test "$HAVE_XFT" != "yes"; then
9861 ## We used to allow building with FreeType and without Xft.
9862 ## However, the ftx font backend driver is not in good shape.
9863 if test "${HAVE_XFT}" = "yes"; then
9870 if test "${HAVE_FREETYPE}" = "yes"; then
9872 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9874 if test "${with_libotf}" != "no"; then
9878 # Extract the first word of "pkg-config", so it can be a program name with args.
9879 set dummy pkg-config
; ac_word
=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9887 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9894 test -z "$as_dir" && as_dir
=.
9895 for ac_exec_ext
in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9909 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9910 if test -n "$PKG_CONFIG"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9912 $as_echo "$PKG_CONFIG" >&6; }
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9920 if test "$PKG_CONFIG" = "no" ; then
9923 PKG_CONFIG_MIN_VERSION
=0.9.0
9924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9926 $as_echo_n "checking for libotf... " >&6; }
9928 if $PKG_CONFIG --exists "libotf" 2>&5; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; }
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9934 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9935 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9937 $as_echo "$LIBOTF_CFLAGS" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9940 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9941 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9943 $as_echo "$LIBOTF_LIBS" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9949 ## If we have a custom action on failure, don't print errors, but
9950 ## do set a variable so people can do so.
9951 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9963 if test $succeeded = yes; then
9969 if test "$HAVE_LIBOTF" = "yes"; then
9971 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9974 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9975 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9978 ac_check_lib_save_LIBS
=$LIBS
9980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9983 /* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9989 char OTF_get_variation_glyphs ();
9993 return OTF_get_variation_glyphs ();
9998 if ac_fn_c_try_link
"$LINENO"; then :
9999 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10001 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10003 rm -f core conftest.err conftest.
$ac_objext \
10004 conftest
$ac_exeext conftest.
$ac_ext
10005 LIBS
=$ac_check_lib_save_LIBS
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10008 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10009 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10010 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10012 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10015 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10017 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10025 if test "${HAVE_LIBOTF}" = yes; then
10026 if test "${with_m17n_flt}" != "no"; then
10030 # Extract the first word of "pkg-config", so it can be a program name with args.
10031 set dummy pkg-config
; ac_word
=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10037 case $PKG_CONFIG in
10039 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10043 for as_dir
in $PATH
10046 test -z "$as_dir" && as_dir
=.
10047 for ac_exec_ext
in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10061 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10062 if test -n "$PKG_CONFIG"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10064 $as_echo "$PKG_CONFIG" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10072 if test "$PKG_CONFIG" = "no" ; then
10075 PKG_CONFIG_MIN_VERSION
=0.9.0
10076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10078 $as_echo_n "checking for m17n-flt... " >&6; }
10080 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10082 $as_echo "yes" >&6; }
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10086 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10087 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10089 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10092 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10093 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10095 $as_echo "$M17N_FLT_LIBS" >&6; }
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10101 ## If we have a custom action on failure, don't print errors, but
10102 ## do set a variable so people can do so.
10103 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10115 if test $succeeded = yes; then
10121 if test "$HAVE_M17N_FLT" = "yes"; then
10123 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10135 ### End of font-backend (under X11) section.
10146 ### Use -lXpm if available, unless `--with-xpm=no'.
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${with_xpm}" != "no"; then
10151 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10152 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10154 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10155 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10158 ac_check_lib_save_LIBS
=$LIBS
10159 LIBS
="-lXpm -lX11 $LIBS"
10160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10169 char XpmReadFileToPixmap ();
10173 return XpmReadFileToPixmap ();
10178 if ac_fn_c_try_link
"$LINENO"; then :
10179 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10181 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10183 rm -f core conftest.err conftest.
$ac_objext \
10184 conftest
$ac_exeext conftest.
$ac_ext
10185 LIBS
=$ac_check_lib_save_LIBS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10188 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10189 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10196 if test "${HAVE_XPM}" = "yes"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10198 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 #include "X11/xpm.h"
10202 #ifndef XpmReturnAllocPixels
10203 no_return_alloc_pixels
10207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10216 if test "${HAVE_XPM}" = "yes"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218 $as_echo "yes" >&6; }
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10226 if test "${HAVE_XPM}" = "yes"; then
10228 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10235 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10238 if test "${HAVE_X11}" = "yes"; then
10239 if test "${with_jpeg}" != "no"; then
10240 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10241 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10243 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10244 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10247 ac_check_lib_save_LIBS
=$LIBS
10248 LIBS
="-ljpeg $LIBS"
10249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10258 char jpeg_destroy_compress ();
10262 return jpeg_destroy_compress ();
10267 if ac_fn_c_try_link
"$LINENO"; then :
10268 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10270 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10274 LIBS
=$ac_check_lib_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10277 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10278 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10287 if test "${HAVE_JPEG}" = "yes"; then
10288 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <jpeglib.h>
10293 version=JPEG_LIB_VERSION
10296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10297 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10298 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10302 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10308 if test "${HAVE_JPEG}" = "yes"; then
10314 ### Use -lpng if available, unless `--with-png=no'.
10317 if test "${HAVE_X11}" = "yes"; then
10318 if test "${with_png}" != "no"; then
10319 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10320 # in /usr/include/libpng.
10321 for ac_header
in png.h libpng
/png.h
10323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10325 eval as_val
=\$
$as_ac_Header
10326 if test "x$as_val" = x
""yes; then :
10327 cat >>confdefs.h
<<_ACEOF
10328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10337 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10338 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10341 ac_check_lib_save_LIBS
=$LIBS
10342 LIBS
="-lpng -lz -lm $LIBS"
10343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10352 char png_get_channels ();
10356 return png_get_channels ();
10361 if ac_fn_c_try_link
"$LINENO"; then :
10362 ac_cv_lib_png_png_get_channels
=yes
10364 ac_cv_lib_png_png_get_channels
=no
10366 rm -f core conftest.err conftest.
$ac_objext \
10367 conftest
$ac_exeext conftest.
$ac_ext
10368 LIBS
=$ac_check_lib_save_LIBS
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10371 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10372 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10379 if test "${HAVE_PNG}" = "yes"; then
10381 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10383 LIBPNG
="-lpng -lz -lm"
10388 ### Use -ltiff if available, unless `--with-tiff=no'.
10391 if test "${HAVE_X11}" = "yes"; then
10392 if test "${with_tiff}" != "no"; then
10393 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10394 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10396 # At least one tiff package requires the jpeg library.
10397 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10399 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10400 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10403 ac_check_lib_save_LIBS
=$LIBS
10404 LIBS
="-ltiff $tifflibs $LIBS"
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10414 char TIFFGetVersion ();
10418 return TIFFGetVersion ();
10423 if ac_fn_c_try_link
"$LINENO"; then :
10424 ac_cv_lib_tiff_TIFFGetVersion
=yes
10426 ac_cv_lib_tiff_TIFFGetVersion
=no
10428 rm -f core conftest.err conftest.
$ac_objext \
10429 conftest
$ac_exeext conftest.
$ac_ext
10430 LIBS
=$ac_check_lib_save_LIBS
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10433 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10434 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10443 if test "${HAVE_TIFF}" = "yes"; then
10445 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10452 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10455 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10456 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10457 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10458 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10459 # Earlier versions can crash Emacs.
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10461 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10462 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10465 ac_check_lib_save_LIBS
=$LIBS
10467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10476 char EGifPutExtensionLast ();
10480 return EGifPutExtensionLast ();
10485 if ac_fn_c_try_link
"$LINENO"; then :
10486 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10488 ac_cv_lib_gif_EGifPutExtensionLast
=no
10490 rm -f core conftest.err conftest.
$ac_objext \
10491 conftest
$ac_exeext conftest.
$ac_ext
10492 LIBS
=$ac_check_lib_save_LIBS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10495 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10496 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10506 if test "$HAVE_GIF" = yes; then
10508 elif test "$HAVE_GIF" = maybe
; then
10509 # If gif_lib.h but no libgif, try libungif.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10511 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10512 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10515 ac_check_lib_save_LIBS
=$LIBS
10516 LIBS
="-lungif $LIBS"
10517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10526 char EGifPutExtensionLast ();
10530 return EGifPutExtensionLast ();
10535 if ac_fn_c_try_link
"$LINENO"; then :
10536 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10538 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10540 rm -f core conftest.err conftest.
$ac_objext \
10541 conftest
$ac_exeext conftest.
$ac_ext
10542 LIBS
=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10545 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10546 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10552 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10555 if test "${HAVE_GIF}" = "yes"; then
10557 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10563 if test "${HAVE_X11}" = "yes"; then
10566 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10567 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10568 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10569 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10570 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10571 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10572 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10573 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10574 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10575 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10577 if test "X${MISSING}" != X
; then
10578 as_fn_error
"The following required libraries were not found:
10580 Maybe some development libraries/packages are missing?
10581 If you don't want to link with them give
10583 as options to configure" "$LINENO" 5
10587 ### Use -lgpm if available, unless `--with-gpm=no'.
10591 if test "${with_gpm}" != "no"; then
10592 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10595 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10596 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
10599 ac_check_lib_save_LIBS
=$LIBS
10601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10614 return Gpm_Open ();
10619 if ac_fn_c_try_link
"$LINENO"; then :
10620 ac_cv_lib_gpm_Gpm_Open
=yes
10622 ac_cv_lib_gpm_Gpm_Open
=no
10624 rm -f core conftest.err conftest.
$ac_objext \
10625 conftest
$ac_exeext conftest.
$ac_ext
10626 LIBS
=$ac_check_lib_save_LIBS
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10629 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10630 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10638 if test "${HAVE_GPM}" = "yes"; then
10640 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10643 ## May be reset below.
10644 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
10649 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10650 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10652 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10659 ### Use NeXTstep API to implement GUI.
10660 if test "${HAVE_NS}" = "yes"; then
10662 $as_echo "#define HAVE_NS 1" >>confdefs.h
10664 if test "${NS_IMPL_COCOA}" = "yes"; then
10666 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10670 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10672 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10674 # See also .m.o rule in Makefile.in */
10675 # FIXME: are all these flags really needed? Document here why. */
10676 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
10677 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10679 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10681 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10684 # We also have mouse menus.
10690 ### Use session management (-lSM -lICE) if available
10693 if test "${HAVE_X11}" = "yes"; then
10694 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10695 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10697 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10698 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10701 ac_check_lib_save_LIBS
=$LIBS
10702 LIBS
="-lSM -lICE $LIBS"
10703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10712 char SmcOpenConnection ();
10716 return SmcOpenConnection ();
10721 if ac_fn_c_try_link
"$LINENO"; then :
10722 ac_cv_lib_SM_SmcOpenConnection
=yes
10724 ac_cv_lib_SM_SmcOpenConnection
=no
10726 rm -f core conftest.err conftest.
$ac_objext \
10727 conftest
$ac_exeext conftest.
$ac_ext
10728 LIBS
=$ac_check_lib_save_LIBS
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10731 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10732 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10740 if test "${HAVE_X_SM}" = "yes"; then
10742 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10744 LIBXSM
="-lSM -lICE"
10747 *) LIBS
="$LIBXSM $LIBS" ;;
10753 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10755 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10756 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10770 if ac_fn_c_try_link
"$LINENO"; then :
10771 emacs_cv_netdb_declares_h_errno
=yes
10773 emacs_cv_netdb_declares_h_errno
=no
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10779 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10780 if test $emacs_cv_netdb_declares_h_errno = yes; then
10782 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10786 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10787 # for constant arguments. Useless!
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10789 $as_echo_n "checking for working alloca.h... " >&6; }
10790 if test "${ac_cv_working_alloca_h+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <alloca.h>
10799 char *p = (char *) alloca (2 * sizeof (int));
10805 if ac_fn_c_try_link
"$LINENO"; then :
10806 ac_cv_working_alloca_h
=yes
10808 ac_cv_working_alloca_h
=no
10810 rm -f core conftest.err conftest.
$ac_objext \
10811 conftest
$ac_exeext conftest.
$ac_ext
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10814 $as_echo "$ac_cv_working_alloca_h" >&6; }
10815 if test $ac_cv_working_alloca_h = yes; then
10817 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10822 $as_echo_n "checking for alloca... " >&6; }
10823 if test "${ac_cv_func_alloca_works+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 # define alloca __builtin_alloca
10832 # include <malloc.h>
10833 # define alloca _alloca
10835 # ifdef HAVE_ALLOCA_H
10836 # include <alloca.h>
10841 # ifndef alloca /* predefined by HP cc +Olibcalls */
10852 char *p = (char *) alloca (1);
10858 if ac_fn_c_try_link
"$LINENO"; then :
10859 ac_cv_func_alloca_works
=yes
10861 ac_cv_func_alloca_works
=no
10863 rm -f core conftest.err conftest.
$ac_objext \
10864 conftest
$ac_exeext conftest.
$ac_ext
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10867 $as_echo "$ac_cv_func_alloca_works" >&6; }
10869 if test $ac_cv_func_alloca_works = yes; then
10871 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10874 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10875 # that cause trouble. Some versions do not even contain alloca or
10876 # contain a buggy version. If you still want to use their alloca,
10877 # use ar to extract alloca.o from them instead of compiling alloca.c.
10879 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10881 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10885 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10886 if test "${ac_cv_os_cray+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #if defined CRAY && ! defined CRAY2
10898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10899 $EGREP "webecray" >/dev
/null
2>&1; then :
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10908 $as_echo "$ac_cv_os_cray" >&6; }
10909 if test $ac_cv_os_cray = yes; then
10910 for ac_func
in _getb67 GETB67 getb67
; do
10911 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10913 eval as_val
=\$
$as_ac_var
10914 if test "x$as_val" = x
""yes; then :
10916 cat >>confdefs.h
<<_ACEOF
10917 #define CRAY_STACKSEG_END $ac_func
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10927 $as_echo_n "checking stack direction for C alloca... " >&6; }
10928 if test "${ac_cv_c_stack_direction+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10931 if test "$cross_compiling" = yes; then :
10932 ac_cv_c_stack_direction
=0
10934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936 $ac_includes_default
10938 find_stack_direction ()
10940 static char *addr = 0;
10945 return find_stack_direction ();
10948 return (&dummy > addr) ? 1 : -1;
10954 return find_stack_direction () < 0;
10957 if ac_fn_c_try_run
"$LINENO"; then :
10958 ac_cv_c_stack_direction
=1
10960 ac_cv_c_stack_direction
=-1
10962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10968 $as_echo "$ac_cv_c_stack_direction" >&6; }
10969 cat >>confdefs.h
<<_ACEOF
10970 #define STACK_DIRECTION $ac_cv_c_stack_direction
10977 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10978 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10981 # fmod, logb, and frexp are found in -lm on most systems.
10982 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10984 $as_echo_n "checking for sqrt in -lm... " >&6; }
10985 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 ac_check_lib_save_LIBS
=$LIBS
10990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
11008 if ac_fn_c_try_link
"$LINENO"; then :
11009 ac_cv_lib_m_sqrt
=yes
11011 ac_cv_lib_m_sqrt
=no
11013 rm -f core conftest.err conftest.
$ac_objext \
11014 conftest
$ac_exeext conftest.
$ac_ext
11015 LIBS
=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11018 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11019 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11020 cat >>confdefs.h
<<_ACEOF
11021 #define HAVE_LIBM 1
11029 # Check for mail-locking functions in a "mail" library. Probably this should
11030 # have the same check as for liblockfile below.
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11032 $as_echo_n "checking for maillock in -lmail... " >&6; }
11033 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11036 ac_check_lib_save_LIBS
=$LIBS
11037 LIBS
="-lmail $LIBS"
11038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11051 return maillock ();
11056 if ac_fn_c_try_link
"$LINENO"; then :
11057 ac_cv_lib_mail_maillock
=yes
11059 ac_cv_lib_mail_maillock
=no
11061 rm -f core conftest.err conftest.
$ac_objext \
11062 conftest
$ac_exeext conftest.
$ac_ext
11063 LIBS
=$ac_check_lib_save_LIBS
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11066 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11067 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11073 if test $have_mail = yes; then
11075 LIBS
="$LIBS_MAIL $LIBS"
11077 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11083 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11084 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11087 ac_check_lib_save_LIBS
=$LIBS
11088 LIBS
="-llockfile $LIBS"
11089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11102 return maillock ();
11107 if ac_fn_c_try_link
"$LINENO"; then :
11108 ac_cv_lib_lockfile_maillock
=yes
11110 ac_cv_lib_lockfile_maillock
=no
11112 rm -f core conftest.err conftest.
$ac_objext \
11113 conftest
$ac_exeext conftest.
$ac_ext
11114 LIBS
=$ac_check_lib_save_LIBS
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11117 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11118 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11124 if test $have_lockfile = yes; then
11125 LIBS_MAIL
=-llockfile
11126 LIBS
="$LIBS_MAIL $LIBS"
11128 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11131 # If we have the shared liblockfile, assume we must use it for mail
11132 # locking (e.g. Debian). If we couldn't link against liblockfile
11133 # (no liblockfile.a installed), ensure that we don't need to.
11134 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11135 set dummy liblockfile.so
; ac_word
=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11141 if test -n "$liblockfile"; then
11142 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11145 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11146 for as_dir
in $as_dummy
11149 test -z "$as_dir" && as_dir
=.
11150 for ac_exec_ext
in '' $ac_executable_extensions; do
11151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152 ac_cv_prog_liblockfile
="yes"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11163 liblockfile
=$ac_cv_prog_liblockfile
11164 if test -n "$liblockfile"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11166 $as_echo "$liblockfile" >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11173 if test $ac_cv_prog_liblockfile = yes; then
11174 as_fn_error
"Shared liblockfile found but can't link against it.
11175 This probably means that movemail could lose mail.
11176 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11179 for ac_func
in touchlock
11181 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11182 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11183 cat >>confdefs.h
<<_ACEOF
11184 #define HAVE_TOUCHLOCK 1
11190 for ac_header
in maillock.h
11192 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11193 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11194 cat >>confdefs.h
<<_ACEOF
11195 #define HAVE_MAILLOCK_H 1
11204 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11205 ## interlock access to the mail spool. The alternative is a lock file named
11206 ## /usr/spool/mail/$USER.lock.
11209 aix4-2
) mail_lock
="lockf" ;;
11211 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11213 ## On GNU/Linux systems, both methods are used by various mail programs.
11214 ## I assume most people are using newer mailers that have heard of flock.
11215 ## Change this if you need to.
11216 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11217 ## configure gets the right answers, and that means *NOT* using flock.
11218 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11219 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11220 ## Debian maintainer hasn't provided a clean fix for Emacs.
11221 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11222 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11223 ## correct logic. -- fx
11224 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11225 ## liblockfile is a Free Software replacement for libmail, used on
11226 ## Debian systems and elsewhere. -rfr.
11229 if test $have_mail = yes ||
test $have_lockfile = yes; then
11230 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11236 case "$mail_lock" in
11238 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11242 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11245 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11250 for ac_func
in gethostname getdomainname dup2 \
11251 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11252 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11253 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11254 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11255 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11256 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11257 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11258 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11259 cfmakeraw cfsetspeed isnan copysign
11261 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11262 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11263 eval as_val
=\$
$as_ac_var
11264 if test "x$as_val" = x
""yes; then :
11265 cat >>confdefs.h
<<_ACEOF
11266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11273 for ac_header
in sys
/un.h
11275 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11276 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11277 cat >>confdefs.h
<<_ACEOF
11278 #define HAVE_SYS_UN_H 1
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11293 $as_echo_n "checking for working mktime... " >&6; }
11294 if test "${ac_cv_func_working_mktime+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11297 if test "$cross_compiling" = yes; then :
11298 ac_cv_func_working_mktime
=no
11300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 /* Test program from Paul Eggert and Tony Leneis. */
11303 #ifdef TIME_WITH_SYS_TIME
11304 # include <sys/time.h>
11307 # ifdef HAVE_SYS_TIME_H
11308 # include <sys/time.h>
11314 #include <limits.h>
11315 #include <stdlib.h>
11317 #ifdef HAVE_UNISTD_H
11318 # include <unistd.h>
11322 # define alarm(X) /* empty */
11325 /* Work around redefinition to rpl_putenv by other config tests. */
11328 static time_t time_t_max;
11329 static time_t time_t_min;
11331 /* Values we'll use to set the TZ environment variable. */
11332 static char *tz_strings[] = {
11333 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11334 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11336 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11338 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11339 Based on a problem report from Andreas Jaeger. */
11341 spring_forward_gap ()
11343 /* glibc (up to about 1998-10-07) failed this test. */
11346 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11347 instead of "TZ=America/Vancouver" in order to detect the bug even
11348 on systems that don't support the Olson extension, or don't have the
11349 full zoneinfo tables installed. */
11350 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11359 return mktime (&tm) != (time_t) -1;
11367 return ! (lt = localtime (&now)) || mktime (lt) == now;
11374 return (mktime_test1 (now)
11375 && mktime_test1 ((time_t) (time_t_max - now))
11376 && mktime_test1 ((time_t) (time_t_min + now)));
11382 /* Based on code from Ariel Faigon. */
11392 return tm.tm_mon == 2 && tm.tm_mday == 31;
11401 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11402 now = mktime (&tm);
11403 if (now != (time_t) -1)
11405 struct tm *lt = localtime (&now);
11407 && lt->tm_year == tm.tm_year
11408 && lt->tm_mon == tm.tm_mon
11409 && lt->tm_mday == tm.tm_mday
11410 && lt->tm_hour == tm.tm_hour
11411 && lt->tm_min == tm.tm_min
11412 && lt->tm_sec == tm.tm_sec
11413 && lt->tm_yday == tm.tm_yday
11414 && lt->tm_wday == tm.tm_wday
11415 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11416 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11425 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11426 ignoring leap seconds. */
11427 unsigned long int answer = 2527315200UL;
11431 tm.tm_year = 2050 - 1900;
11434 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11437 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11438 instead of "TZ=America/Vancouver" in order to detect the bug even
11439 on systems that don't support the Olson extension, or don't have the
11440 full zoneinfo tables installed. */
11441 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11445 /* Check that the result is either a failure, or close enough
11446 to the correct answer that we can assume the discrepancy is
11447 due to leap seconds. */
11448 return (t == (time_t) -1
11449 || (0 < t && answer - 120 <= t && t <= answer + 120));
11458 /* This test makes some buggy mktime implementations loop.
11459 Give up after 60 seconds; a mktime slower than that
11460 isn't worth using anyway. */
11465 t = (time_t_max << 1) + 1;
11466 if (t <= time_t_max)
11470 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11472 delta = time_t_max / 997; /* a suitable prime number */
11473 for (i = 0; i < N_STRINGS; i++)
11476 putenv (tz_strings[i]);
11478 for (t = 0; t <= time_t_max - delta; t += delta)
11479 if (! mktime_test (t))
11481 if (! (mktime_test ((time_t) 1)
11482 && mktime_test ((time_t) (60 * 60))
11483 && mktime_test ((time_t) (60 * 60 * 24))))
11486 for (j = 1; ; j <<= 1)
11487 if (! bigtime_test (j))
11489 else if (INT_MAX / 2 < j)
11491 if (! bigtime_test (INT_MAX))
11494 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11497 if ac_fn_c_try_run
"$LINENO"; then :
11498 ac_cv_func_working_mktime
=yes
11500 ac_cv_func_working_mktime
=no
11502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11508 $as_echo "$ac_cv_func_working_mktime" >&6; }
11509 if test $ac_cv_func_working_mktime = no
; then
11510 case " $LIBOBJS " in
11511 *" mktime.$ac_objext "* ) ;;
11512 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11518 if test "$ac_cv_func_working_mktime" = no
; then
11520 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11524 ac_have_func
=no
# yes means we've found a way to get the load average.
11526 # Make sure getloadavg.c is where it belongs, at configure-time.
11527 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11528 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11532 # Check for getloadavg, but be sure not to touch the cache variable.
11533 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11534 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11539 ) && ac_have_func
=yes
11541 # On HPUX9, an unprivileged user can get load averages through this function.
11542 for ac_func
in pstat_getdynamic
11544 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11545 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_PSTAT_GETDYNAMIC 1
11554 # Solaris has libkstat which does not require root.
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11556 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11557 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11560 ac_check_lib_save_LIBS
=$LIBS
11561 LIBS
="-lkstat $LIBS"
11562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11571 char kstat_open ();
11575 return kstat_open ();
11580 if ac_fn_c_try_link
"$LINENO"; then :
11581 ac_cv_lib_kstat_kstat_open
=yes
11583 ac_cv_lib_kstat_kstat_open
=no
11585 rm -f core conftest.err conftest.
$ac_objext \
11586 conftest
$ac_exeext conftest.
$ac_ext
11587 LIBS
=$ac_check_lib_save_LIBS
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11590 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11591 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11592 cat >>confdefs.h
<<_ACEOF
11593 #define HAVE_LIBKSTAT 1
11596 LIBS
="-lkstat $LIBS"
11600 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11602 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11603 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11604 # to get the right answer into the cache.
11605 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11606 if test $ac_have_func = no
; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11608 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11609 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 ac_check_lib_save_LIBS
=$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 elf_begin ();
11632 if ac_fn_c_try_link
"$LINENO"; then :
11633 ac_cv_lib_elf_elf_begin
=yes
11635 ac_cv_lib_elf_elf_begin
=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_elf_elf_begin" >&5
11642 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11643 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11648 if test $ac_have_func = no
; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11650 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11651 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11654 ac_check_lib_save_LIBS
=$LIBS
11656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11669 return kvm_open ();
11674 if ac_fn_c_try_link
"$LINENO"; then :
11675 ac_cv_lib_kvm_kvm_open
=yes
11677 ac_cv_lib_kvm_kvm_open
=no
11679 rm -f core conftest.err conftest.
$ac_objext \
11680 conftest
$ac_exeext conftest.
$ac_ext
11681 LIBS
=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11684 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11685 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11689 # Check for the 4.4BSD definition of getloadavg.
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11691 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11692 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11695 ac_check_lib_save_LIBS
=$LIBS
11696 LIBS
="-lutil $LIBS"
11697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11706 char getloadavg ();
11710 return getloadavg ();
11715 if ac_fn_c_try_link
"$LINENO"; then :
11716 ac_cv_lib_util_getloadavg
=yes
11718 ac_cv_lib_util_getloadavg
=no
11720 rm -f core conftest.err conftest.
$ac_objext \
11721 conftest
$ac_exeext conftest.
$ac_ext
11722 LIBS
=$ac_check_lib_save_LIBS
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11725 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11726 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11727 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11732 if test $ac_have_func = no
; then
11733 # There is a commonly available library for RS/6000 AIX.
11734 # Since it is not a standard part of AIX, it might be installed locally.
11735 ac_getloadavg_LIBS
=$LIBS
11736 LIBS
="-L/usr/local/lib $LIBS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11738 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11739 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11742 ac_check_lib_save_LIBS
=$LIBS
11743 LIBS
="-lgetloadavg $LIBS"
11744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11753 char getloadavg ();
11757 return getloadavg ();
11762 if ac_fn_c_try_link
"$LINENO"; then :
11763 ac_cv_lib_getloadavg_getloadavg
=yes
11765 ac_cv_lib_getloadavg_getloadavg
=no
11767 rm -f core conftest.err conftest.
$ac_objext \
11768 conftest
$ac_exeext conftest.
$ac_ext
11769 LIBS
=$ac_check_lib_save_LIBS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11772 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11773 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11774 LIBS
="-lgetloadavg $LIBS"
11776 LIBS
=$ac_getloadavg_LIBS
11781 # Make sure it is really in the library, if we think we found it,
11782 # otherwise set up the replacement function.
11783 for ac_func
in getloadavg
11785 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11786 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11787 cat >>confdefs.h
<<_ACEOF
11788 #define HAVE_GETLOADAVG 1
11792 case " $LIBOBJS " in
11793 *" getloadavg.$ac_objext "* ) ;;
11794 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11799 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11801 # Figure out what our getloadavg.c needs.
11803 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11804 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11807 $as_echo "#define DGUX 1" >>confdefs.h
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11810 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11811 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11814 ac_check_lib_save_LIBS
=$LIBS
11816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11825 char dg_sys_info ();
11829 return dg_sys_info ();
11834 if ac_fn_c_try_link
"$LINENO"; then :
11835 ac_cv_lib_dgc_dg_sys_info
=yes
11837 ac_cv_lib_dgc_dg_sys_info
=no
11839 rm -f core conftest.err conftest.
$ac_objext \
11840 conftest
$ac_exeext conftest.
$ac_ext
11841 LIBS
=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11844 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11845 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11846 cat >>confdefs.h
<<_ACEOF
11847 #define HAVE_LIBDGC 1
11858 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11859 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11864 for ac_func
in setlocale
11866 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11867 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11868 cat >>confdefs.h
<<_ACEOF
11869 #define HAVE_SETLOCALE 1
11876 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11877 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11878 # Irix 4.0.5F has the header but not the library.
11879 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11882 $as_echo "#define SVR4 1" >>confdefs.h
11886 if test $ac_have_func = no
; then
11887 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11888 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11891 $as_echo "#define UMAX 1" >>confdefs.h
11894 $as_echo "#define UMAX4_3 1" >>confdefs.h
11901 if test $ac_have_func = no
; then
11902 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11904 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11911 if test $ac_have_func = no
; then
11912 for ac_header
in mach
/mach.h
11914 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11916 cat >>confdefs.h
<<_ACEOF
11917 #define HAVE_MACH_MACH_H 1
11926 for ac_header
in nlist.h
11928 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11930 cat >>confdefs.h
<<_ACEOF
11931 #define HAVE_NLIST_H 1
11933 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11935 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11937 cat >>confdefs.h
<<_ACEOF
11938 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11942 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11955 # Some definitions of getloadavg require that the program be installed setgid.
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11957 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11958 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11964 #ifdef LDAV_PRIVILEGED
11965 Yowza Am I SETGID yet
11968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11969 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11970 ac_cv_func_getloadavg_setgid
=yes
11972 ac_cv_func_getloadavg_setgid
=no
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11978 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11979 if test $ac_cv_func_getloadavg_setgid = yes; then
11982 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11988 if test $ac_cv_func_getloadavg_setgid = yes; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11990 $as_echo_n "checking group of /dev/kmem... " >&6; }
11991 if test "${ac_cv_group_kmem+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11995 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11996 # If we got an error (system does not support symlinks), try without -L.
11997 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11998 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11999 | sed -ne 's/[ ][ ]*/ /g;
12000 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12005 $as_echo "$ac_cv_group_kmem" >&6; }
12006 KMEM_GROUP
=$ac_cv_group_kmem
12008 if test "x$ac_save_LIBS" = x
; then
12009 GETLOADAVG_LIBS
=$LIBS
12011 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12018 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12019 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #include <sys/types.h> /* for off_t */
12030 int (*fp) (FILE *, off_t, int) = fseeko;
12031 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12036 if ac_fn_c_try_link
"$LINENO"; then :
12037 ac_cv_sys_largefile_source
=no
; break
12039 rm -f core conftest.err conftest.
$ac_objext \
12040 conftest
$ac_exeext conftest.
$ac_ext
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #define _LARGEFILE_SOURCE 1
12044 #include <sys/types.h> /* for off_t */
12049 int (*fp) (FILE *, off_t, int) = fseeko;
12050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12055 if ac_fn_c_try_link
"$LINENO"; then :
12056 ac_cv_sys_largefile_source
=1; break
12058 rm -f core conftest.err conftest.
$ac_objext \
12059 conftest
$ac_exeext conftest.
$ac_ext
12060 ac_cv_sys_largefile_source
=unknown
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12065 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12066 case $ac_cv_sys_largefile_source in #(
12069 cat >>confdefs.h
<<_ACEOF
12070 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12076 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12077 # in glibc 2.1.3, but that breaks too many other things.
12078 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12079 if test $ac_cv_sys_largefile_source != unknown
; then
12081 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12086 # Configure getopt.
12087 # getopt.m4 serial 10
12089 # The getopt module assume you want GNU getopt, with getopt_long etc,
12090 # rather than vanilla POSIX getopt. This means your your code should
12091 # always include <getopt.h> for the getopt prototypes.
12103 # Prerequisites of lib/getopt*.
12109 for ac_header
in getopt.h
12111 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12113 cat >>confdefs.h
<<_ACEOF
12114 #define HAVE_GETOPT_H 1
12123 if test -z "$GETOPT_H"; then
12124 for ac_func
in getopt_long_only
12126 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12127 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12128 cat >>confdefs.h
<<_ACEOF
12129 #define HAVE_GETOPT_LONG_ONLY 1
12139 if test -z "$GETOPT_H"; then
12140 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12142 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12148 if test -z "$GETOPT_H"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12150 $as_echo_n "checking for working GNU getopt function... " >&6; }
12151 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12154 if test "$cross_compiling" = yes; then :
12155 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12157 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12158 gl_cv_func_gnu_getopt
=no
12160 gl_cv_func_gnu_getopt
=yes
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <getopt.h>
12172 myargv[0] = "conftest";
12175 return getopt (2, myargv, "+a") != '?';
12181 if ac_fn_c_try_run
"$LINENO"; then :
12182 gl_cv_func_gnu_getopt
=yes
12184 gl_cv_func_gnu_getopt
=no
12186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12192 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12193 if test "$gl_cv_func_gnu_getopt" = "no"; then
12200 if test -n "$GETOPT_H"; then :
12205 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12210 GETOPTOBJS
='getopt.o getopt1.o'
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12217 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12218 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12221 # Use it with a single arg.
12222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 $ac_includes_default
12233 if ac_fn_c_try_compile
"$LINENO"; then :
12234 ac_cv_func_getpgrp_void
=no
12236 ac_cv_func_getpgrp_void
=yes
12238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12242 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12243 if test $ac_cv_func_getpgrp_void = yes; then
12245 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12250 for ac_func
in strftime
12252 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12253 if test "x$ac_cv_func_strftime" = x
""yes; then :
12254 cat >>confdefs.h
<<_ACEOF
12255 #define HAVE_STRFTIME 1
12259 # strftime is in -lintl on SCO UNIX.
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12261 $as_echo_n "checking for strftime in -lintl... " >&6; }
12262 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12265 ac_check_lib_save_LIBS
=$LIBS
12266 LIBS
="-lintl $LIBS"
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12280 return strftime ();
12285 if ac_fn_c_try_link
"$LINENO"; then :
12286 ac_cv_lib_intl_strftime
=yes
12288 ac_cv_lib_intl_strftime
=no
12290 rm -f core conftest.err conftest.
$ac_objext \
12291 conftest
$ac_exeext conftest.
$ac_ext
12292 LIBS
=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12295 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12296 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12297 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12299 LIBS
="-lintl $LIBS"
12307 for ac_func
in grantpt
12309 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12310 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12311 cat >>confdefs.h
<<_ACEOF
12312 #define HAVE_GRANTPT 1
12319 # PTY-related GNU extensions.
12320 for ac_func
in getpt
12322 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12323 if test "x$ac_cv_func_getpt" = x
""yes; then :
12324 cat >>confdefs.h
<<_ACEOF
12325 #define HAVE_GETPT 1
12332 # Check this now, so that we will NOT find the above functions in ncurses.
12333 # That is because we have not set up to link ncurses in lib-src.
12334 # It's better to believe a function is not available
12335 # than to expect to find it in ncurses.
12336 # Also we need tputs and friends to be able to build at all.
12337 have_tputs_et_al
=true
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12339 $as_echo_n "checking for library containing tputs... " >&6; }
12340 if test "${ac_cv_search_tputs+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12343 ac_func_search_save_LIBS
=$LIBS
12344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12362 for ac_lib
in '' ncurses terminfo termcap
; do
12363 if test -z "$ac_lib"; then
12364 ac_res
="none required"
12367 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12369 if ac_fn_c_try_link
"$LINENO"; then :
12370 ac_cv_search_tputs
=$ac_res
12372 rm -f core conftest.err conftest.
$ac_objext \
12374 if test "${ac_cv_search_tputs+set}" = set; then :
12378 if test "${ac_cv_search_tputs+set}" = set; then :
12381 ac_cv_search_tputs
=no
12383 rm conftest.
$ac_ext
12384 LIBS
=$ac_func_search_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12387 $as_echo "$ac_cv_search_tputs" >&6; }
12388 ac_res
=$ac_cv_search_tputs
12389 if test "$ac_res" != no
; then :
12390 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12393 have_tputs_et_al
=false
12396 if test "$have_tputs_et_al" != true
; then
12397 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12398 Maybe some development libraries/packages are missing? Try installing
12399 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12401 # Must define this when any termcap library is found.
12403 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12405 ## FIXME This was the cpp logic, but I am not sure it is right.
12406 ## The above test has not necessarily found libncurses.
12407 HAVE_LIBNCURSES
=yes
12409 ## Use terminfo instead of termcap?
12410 ## Note only system files NOT using terminfo are:
12411 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12412 ## darwin|gnu without ncurses.
12416 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12417 ## hpux10-20: Use the system provided termcap(3) library.
12418 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12419 ## is necessary. Otherwise Emacs dumps core when run -nw.
12420 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
12422 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12423 ## The ncurses library has been moved out of the System framework in
12424 ## Mac OS X 10.2. So if configure detects it, set the command-line
12425 ## option to use it.
12427 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12428 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12430 LIBS_TERMCAP
="-lncurses"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12436 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12437 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <osreldate.h>
12446 #if __FreeBSD_version < 400000
12454 if ac_fn_c_try_link
"$LINENO"; then :
12455 emacs_cv_freebsd_terminfo
=yes
12457 emacs_cv_freebsd_terminfo
=no
12459 rm -f core conftest.err conftest.
$ac_objext \
12460 conftest
$ac_exeext conftest.
$ac_ext
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12465 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12467 if test $emacs_cv_freebsd_terminfo = yes; then
12469 LIBS_TERMCAP
="-lncurses"
12471 LIBS_TERMCAP
="-ltermcap"
12476 if test $ac_cv_search_tputs = -lterminfo; then
12478 LIBS_TERMCAP
="-lterminfo"
12480 LIBS_TERMCAP
="-ltermcap"
12487 ## hpux: Make sure we get select from libc rather than from libcurses
12488 ## because libcurses on HPUX 10.10 has a broken version of select.
12489 ## We used to use -lc -lcurses, but this may be cleaner.
12490 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
12492 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
12494 ## Must use system termcap, if we use any termcap. It does special things.
12495 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
12498 TERMCAP_OBJ
=tparam.o
12499 if test $TERMINFO = yes; then
12501 $as_echo "#define TERMINFO 1" >>confdefs.h
12504 ## Default used to be -ltermcap. Add a case above if need something else.
12505 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
12507 TERMCAP_OBJ
=terminfo.o
12513 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #include <netinet/in.h>
12518 #include <arpa/nameser.h>
12519 #include <resolv.h>
12528 if ac_fn_c_try_link
"$LINENO"; then :
12533 rm -f core conftest.err conftest.
$ac_objext \
12534 conftest
$ac_exeext conftest.
$ac_ext
12535 if test "$have_res_init" = no
; then
12537 LIBS
="$LIBS -lresolv"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12539 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542 #include <netinet/in.h>
12543 #include <arpa/nameser.h>
12544 #include <resolv.h>
12553 if ac_fn_c_try_link
"$LINENO"; then :
12558 rm -f core conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12561 $as_echo "$have_res_init" >&6; }
12562 if test "$have_res_init" = yes ; then
12568 if test "$have_res_init" = yes; then
12570 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12574 # Do we need the Hesiod library to provide the support routines?
12576 if test "$with_hesiod" != no
; then
12577 # Don't set $LIBS here -- see comments above. FIXME which comments?
12578 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12579 if test "x$ac_cv_func_res_send" = x
""yes; then :
12582 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12583 if test "x$ac_cv_func___res_send" = x
""yes; then :
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12587 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12591 ac_check_lib_save_LIBS
=$LIBS
12592 LIBS
="-lresolv $LIBS"
12593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12606 return res_send ();
12611 if ac_fn_c_try_link
"$LINENO"; then :
12612 ac_cv_lib_resolv_res_send
=yes
12614 ac_cv_lib_resolv_res_send
=no
12616 rm -f core conftest.err conftest.
$ac_objext \
12617 conftest
$ac_exeext conftest.
$ac_ext
12618 LIBS
=$ac_check_lib_save_LIBS
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12621 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12622 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12626 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12630 ac_check_lib_save_LIBS
=$LIBS
12631 LIBS
="-lresolv $LIBS"
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12641 char __res_send ();
12645 return __res_send ();
12650 if ac_fn_c_try_link
"$LINENO"; then :
12651 ac_cv_lib_resolv___res_send
=yes
12653 ac_cv_lib_resolv___res_send
=no
12655 rm -f core conftest.err conftest.
$ac_objext \
12656 conftest
$ac_exeext conftest.
$ac_ext
12657 LIBS
=$ac_check_lib_save_LIBS
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12660 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12661 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12671 if test "$resolv" = yes ; then
12676 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12677 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12681 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12682 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12685 ac_check_lib_save_LIBS
=$LIBS
12686 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12696 char hes_getmailhost ();
12700 return hes_getmailhost ();
12705 if ac_fn_c_try_link
"$LINENO"; then :
12706 ac_cv_lib_hesiod_hes_getmailhost
=yes
12708 ac_cv_lib_hesiod_hes_getmailhost
=no
12710 rm -f core conftest.err conftest.
$ac_objext \
12711 conftest
$ac_exeext conftest.
$ac_ext
12712 LIBS
=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12715 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12716 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12725 if test x
"$hesiod" = xyes
; then
12727 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12734 # Do we need libresolv (due to res_init or Hesiod)?
12735 if test "$resolv" = yes ; then
12737 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12745 # These tell us which Kerberos-related libraries to use.
12752 if test "${with_kerberos}" != no
; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12754 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12758 ac_check_lib_save_LIBS
=$LIBS
12759 LIBS
="-lcom_err $LIBS"
12760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12778 if ac_fn_c_try_link
"$LINENO"; then :
12779 ac_cv_lib_com_err_com_err
=yes
12781 ac_cv_lib_com_err_com_err
=no
12783 rm -f core conftest.err conftest.
$ac_objext \
12784 conftest
$ac_exeext conftest.
$ac_ext
12785 LIBS
=$ac_check_lib_save_LIBS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12788 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12789 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12795 if test $have_com_err = yes; then
12796 COM_ERRLIB
=-lcom_err
12797 LIBS
="$COM_ERRLIB $LIBS"
12799 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12803 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12804 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 ac_check_lib_save_LIBS
=$LIBS
12808 LIBS
="-lcrypto $LIBS"
12809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12818 char mit_des_cbc_encrypt ();
12822 return mit_des_cbc_encrypt ();
12827 if ac_fn_c_try_link
"$LINENO"; then :
12828 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12830 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12832 rm -f core conftest.err conftest.
$ac_objext \
12833 conftest
$ac_exeext conftest.
$ac_ext
12834 LIBS
=$ac_check_lib_save_LIBS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12837 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12838 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12844 if test $have_crypto = yes; then
12846 LIBS
="$CRYPTOLIB $LIBS"
12848 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12852 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12853 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 ac_check_lib_save_LIBS
=$LIBS
12857 LIBS
="-lk5crypto $LIBS"
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12867 char mit_des_cbc_encrypt ();
12871 return mit_des_cbc_encrypt ();
12876 if ac_fn_c_try_link
"$LINENO"; then :
12877 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12879 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12881 rm -f core conftest.err conftest.
$ac_objext \
12882 conftest
$ac_exeext conftest.
$ac_ext
12883 LIBS
=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12886 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12887 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12893 if test $have_k5crypto = yes; then
12894 CRYPTOLIB
=-lk5crypto
12895 LIBS
="$CRYPTOLIB $LIBS"
12897 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12901 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12902 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12905 ac_check_lib_save_LIBS
=$LIBS
12906 LIBS
="-lkrb5 $LIBS"
12907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12916 char krb5_init_context ();
12920 return krb5_init_context ();
12925 if ac_fn_c_try_link
"$LINENO"; then :
12926 ac_cv_lib_krb5_krb5_init_context
=yes
12928 ac_cv_lib_krb5_krb5_init_context
=no
12930 rm -f core conftest.err conftest.
$ac_objext \
12931 conftest
$ac_exeext conftest.
$ac_ext
12932 LIBS
=$ac_check_lib_save_LIBS
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12935 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12936 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12942 if test $have_krb5=yes; then
12944 LIBS
="$KRB5LIB $LIBS"
12946 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12949 if test "${with_kerberos5}" = no
; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12951 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12952 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12955 ac_check_lib_save_LIBS
=$LIBS
12956 LIBS
="-ldes425 $LIBS"
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12966 char des_cbc_encrypt ();
12970 return des_cbc_encrypt ();
12975 if ac_fn_c_try_link
"$LINENO"; then :
12976 ac_cv_lib_des425_des_cbc_encrypt
=yes
12978 ac_cv_lib_des425_des_cbc_encrypt
=no
12980 rm -f core conftest.err conftest.
$ac_objext \
12981 conftest
$ac_exeext conftest.
$ac_ext
12982 LIBS
=$ac_check_lib_save_LIBS
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12985 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12986 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12992 if test $have_des425 = yes; then
12994 LIBS
="$DESLIB $LIBS"
12996 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13000 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13001 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13004 ac_check_lib_save_LIBS
=$LIBS
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13015 char des_cbc_encrypt ();
13019 return des_cbc_encrypt ();
13024 if ac_fn_c_try_link
"$LINENO"; then :
13025 ac_cv_lib_des_des_cbc_encrypt
=yes
13027 ac_cv_lib_des_des_cbc_encrypt
=no
13029 rm -f core conftest.err conftest.
$ac_objext \
13030 conftest
$ac_exeext conftest.
$ac_ext
13031 LIBS
=$ac_check_lib_save_LIBS
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13034 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13035 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13041 if test $have_des = yes; then
13043 LIBS
="$DESLIB $LIBS"
13045 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13050 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13051 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13054 ac_check_lib_save_LIBS
=$LIBS
13055 LIBS
="-lkrb4 $LIBS"
13056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13065 char krb_get_cred ();
13069 return krb_get_cred ();
13074 if ac_fn_c_try_link
"$LINENO"; then :
13075 ac_cv_lib_krb4_krb_get_cred
=yes
13077 ac_cv_lib_krb4_krb_get_cred
=no
13079 rm -f core conftest.err conftest.
$ac_objext \
13080 conftest
$ac_exeext conftest.
$ac_ext
13081 LIBS
=$ac_check_lib_save_LIBS
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13084 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13085 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13091 if test $have_krb4 = yes; then
13093 LIBS
="$KRB4LIB $LIBS"
13095 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13099 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13100 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13103 ac_check_lib_save_LIBS
=$LIBS
13105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13114 char krb_get_cred ();
13118 return krb_get_cred ();
13123 if ac_fn_c_try_link
"$LINENO"; then :
13124 ac_cv_lib_krb_krb_get_cred
=yes
13126 ac_cv_lib_krb_krb_get_cred
=no
13128 rm -f core conftest.err conftest.
$ac_objext \
13129 conftest
$ac_exeext conftest.
$ac_ext
13130 LIBS
=$ac_check_lib_save_LIBS
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13133 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13134 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13140 if test $have_krb = yes; then
13142 LIBS
="$KRB4LIB $LIBS"
13144 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13150 if test "${with_kerberos5}" != no
; then
13151 for ac_header
in krb5.h
13153 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13154 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13155 cat >>confdefs.h
<<_ACEOF
13156 #define HAVE_KRB5_H 1
13158 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13160 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13162 cat >>confdefs.h
<<_ACEOF
13163 #define HAVE_KRB5_ERROR_TEXT 1
13168 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13170 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13172 cat >>confdefs.h
<<_ACEOF
13173 #define HAVE_KRB5_ERROR_E_TEXT 1
13184 for ac_header
in des.h
13186 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_des_h" = x
""yes; then :
13188 cat >>confdefs.h
<<_ACEOF
13189 #define HAVE_DES_H 1
13193 for ac_header
in kerberosIV
/des.h
13195 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13196 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13197 cat >>confdefs.h
<<_ACEOF
13198 #define HAVE_KERBEROSIV_DES_H 1
13202 for ac_header
in kerberos
/des.h
13204 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13205 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13206 cat >>confdefs.h
<<_ACEOF
13207 #define HAVE_KERBEROS_DES_H 1
13222 for ac_header
in krb.h
13224 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13225 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13226 cat >>confdefs.h
<<_ACEOF
13227 #define HAVE_KRB_H 1
13231 for ac_header
in kerberosIV
/krb.h
13233 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13234 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13235 cat >>confdefs.h
<<_ACEOF
13236 #define HAVE_KERBEROSIV_KRB_H 1
13240 for ac_header
in kerberos
/krb.h
13242 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13243 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13244 cat >>confdefs.h
<<_ACEOF
13245 #define HAVE_KERBEROS_KRB_H 1
13261 for ac_header
in com_err.h
13263 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13264 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13265 cat >>confdefs.h
<<_ACEOF
13266 #define HAVE_COM_ERR_H 1
13281 # Solaris requires -lintl if you want strerror (which calls dgettext)
13282 # to return localized messages.
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13284 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13285 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13288 ac_check_lib_save_LIBS
=$LIBS
13289 LIBS
="-lintl $LIBS"
13290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13293 /* Override any GCC internal prototype to avoid an error.
13294 Use char because int might match the return type of a GCC
13295 builtin and then its argument prototype would still apply. */
13303 return dgettext ();
13308 if ac_fn_c_try_link
"$LINENO"; then :
13309 ac_cv_lib_intl_dgettext
=yes
13311 ac_cv_lib_intl_dgettext
=no
13313 rm -f core conftest.err conftest.
$ac_objext \
13314 conftest
$ac_exeext conftest.
$ac_ext
13315 LIBS
=$ac_check_lib_save_LIBS
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13318 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13319 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13320 cat >>confdefs.h
<<_ACEOF
13321 #define HAVE_LIBINTL 1
13324 LIBS
="-lintl $LIBS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13330 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13331 if test "${emacs_cv_localtime_cache+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13334 if test x
$ac_cv_func_tzset = xyes
; then
13335 if test "$cross_compiling" = yes; then :
13336 # If we have tzset, assume the worst when cross-compiling.
13337 emacs_cv_localtime_cache
=yes
13339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 extern char **environ;
13346 for (to = from = environ; (*to = *from); from++)
13347 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13350 char TZ_GMT0[] = "TZ=GMT0";
13351 char TZ_PST8[] = "TZ=PST8";
13354 time_t now = time ((time_t *) 0);
13355 int hour_GMT0, hour_unset;
13356 if (putenv (TZ_GMT0) != 0)
13358 hour_GMT0 = localtime (&now)->tm_hour;
13360 hour_unset = localtime (&now)->tm_hour;
13361 if (putenv (TZ_PST8) != 0)
13363 if (localtime (&now)->tm_hour == hour_GMT0)
13366 if (localtime (&now)->tm_hour != hour_unset)
13371 if ac_fn_c_try_run
"$LINENO"; then :
13372 emacs_cv_localtime_cache
=no
13374 emacs_cv_localtime_cache
=yes
13376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13381 # If we lack tzset, report that localtime does not cache TZ,
13382 # since we can't invalidate the cache if we don't have tzset.
13383 emacs_cv_localtime_cache
=no
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13387 $as_echo "$emacs_cv_localtime_cache" >&6; }
13388 if test $emacs_cv_localtime_cache = yes; then
13390 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13394 if test "x$HAVE_TIMEVAL" = xyes
; then
13395 for ac_func
in gettimeofday
13397 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13398 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13399 cat >>confdefs.h
<<_ACEOF
13400 #define HAVE_GETTIMEOFDAY 1
13406 if test $ac_cv_func_gettimeofday = yes; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13408 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13409 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 #ifdef TIME_WITH_SYS_TIME
13416 #include <sys/time.h>
13419 #ifdef HAVE_SYS_TIME_H
13420 #include <sys/time.h>
13428 struct timeval time;
13429 gettimeofday (&time, 0);
13434 if ac_fn_c_try_compile
"$LINENO"; then :
13435 emacs_cv_gettimeofday_two_arguments
=yes
13437 emacs_cv_gettimeofday_two_arguments
=no
13439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13442 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13443 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13445 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13452 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13453 if test "x$ac_cv_func_socket" = x
""yes; then :
13459 if test $ok_so_far = yes; then
13460 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13461 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13469 if test $ok_so_far = yes; then
13470 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13471 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13479 if test $ok_so_far = yes; then
13481 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13485 for ac_header
in sys
/ioctl.h
13487 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13488 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13489 cat >>confdefs.h
<<_ACEOF
13490 #define HAVE_SYS_IOCTL_H 1
13498 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13500 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13505 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13506 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13508 $as_echo "yes" >&6; }
13510 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13517 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13518 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13522 cat >>confdefs.h
<<_ACEOF
13528 for ac_header
in vfork.h
13530 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13532 cat >>confdefs.h
<<_ACEOF
13533 #define HAVE_VFORK_H 1
13540 for ac_func
in fork vfork
13542 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13543 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13544 eval as_val
=\$
$as_ac_var
13545 if test "x$as_val" = x
""yes; then :
13546 cat >>confdefs.h
<<_ACEOF
13547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13553 if test "x$ac_cv_func_fork" = xyes
; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13555 $as_echo_n "checking for working fork... " >&6; }
13556 if test "${ac_cv_func_fork_works+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13559 if test "$cross_compiling" = yes; then :
13560 ac_cv_func_fork_works
=cross
13562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 $ac_includes_default
13569 /* By Ruediger Kuhlmann. */
13570 return fork () < 0;
13576 if ac_fn_c_try_run
"$LINENO"; then :
13577 ac_cv_func_fork_works
=yes
13579 ac_cv_func_fork_works
=no
13581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13587 $as_echo "$ac_cv_func_fork_works" >&6; }
13590 ac_cv_func_fork_works
=$ac_cv_func_fork
13592 if test "x$ac_cv_func_fork_works" = xcross
; then
13594 *-*-amigaos* |
*-*-msdosdjgpp*)
13595 # Override, as these systems have only a dummy fork() stub
13596 ac_cv_func_fork_works
=no
13599 ac_cv_func_fork_works
=yes
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13603 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13605 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13606 if test "x$ac_cv_func_vfork" = xyes
; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13608 $as_echo_n "checking for working vfork... " >&6; }
13609 if test "${ac_cv_func_vfork_works+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13612 if test "$cross_compiling" = yes; then :
13613 ac_cv_func_vfork_works
=cross
13615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 /* Thanks to Paul Eggert for this test. */
13618 $ac_includes_default
13619 #include <sys/wait.h>
13620 #ifdef HAVE_VFORK_H
13621 # include <vfork.h>
13623 /* On some sparc systems, changes by the child to local and incoming
13624 argument registers are propagated back to the parent. The compiler
13625 is told about this with #include <vfork.h>, but some compilers
13626 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13627 static variable whose address is put into a register that is
13628 clobbered by the vfork. */
13631 sparc_address_test (int arg)
13633 sparc_address_test (arg) int arg;
13636 static pid_t child;
13654 pid_t parent = getpid ();
13657 sparc_address_test (0);
13662 /* Here is another test for sparc vfork register problems. This
13663 test uses lots of local variables, at least as many local
13664 variables as main has allocated so far including compiler
13665 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13666 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13667 reuse the register of parent for one of the local variables,
13668 since it will think that parent can't possibly be used any more
13669 in this routine. Assigning to the local variable will thus
13670 munge parent in the parent process. */
13672 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13673 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13674 /* Convince the compiler that p..p7 are live; otherwise, it might
13675 use the same hardware register for all 8 local variables. */
13676 if (p != p1 || p != p2 || p != p3 || p != p4
13677 || p != p5 || p != p6 || p != p7)
13680 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13681 from child file descriptors. If the child closes a descriptor
13682 before it execs or exits, this munges the parent's descriptor
13683 as well. Test for this by closing stdout in the child. */
13684 _exit(close(fileno(stdout)) != 0);
13689 while (wait(&status) != child)
13692 /* Was there some problem with vforking? */
13695 /* Did the child fail? (This shouldn't happen.) */
13698 /* Did the vfork/compiler bug occur? */
13699 || parent != getpid()
13701 /* Did the file descriptor bug occur? */
13702 || fstat(fileno(stdout), &st) != 0
13707 if ac_fn_c_try_run
"$LINENO"; then :
13708 ac_cv_func_vfork_works
=yes
13710 ac_cv_func_vfork_works
=no
13712 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13713 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13718 $as_echo "$ac_cv_func_vfork_works" >&6; }
13721 if test "x$ac_cv_func_fork_works" = xcross
; then
13722 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13724 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13727 if test "x$ac_cv_func_vfork_works" = xyes
; then
13729 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13733 $as_echo "#define vfork fork" >>confdefs.h
13736 if test "x$ac_cv_func_fork_works" = xyes
; then
13738 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13744 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13745 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <langinfo.h>
13754 char* cs = nl_langinfo(CODESET);
13759 if ac_fn_c_try_link
"$LINENO"; then :
13760 emacs_cv_langinfo_codeset
=yes
13762 emacs_cv_langinfo_codeset
=no
13764 rm -f core conftest.err conftest.
$ac_objext \
13765 conftest
$ac_exeext conftest.
$ac_ext
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13769 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13770 if test $emacs_cv_langinfo_codeset = yes; then
13772 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13776 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13777 if test "x$ac_cv_type_size_t" = x
""yes; then :
13779 cat >>confdefs.h
<<_ACEOF
13780 #define HAVE_SIZE_T 1
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13788 $as_echo_n "checking for mbstate_t... " >&6; }
13789 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 $ac_includes_default
13795 # include <wchar.h>
13799 mbstate_t x; return sizeof x;
13804 if ac_fn_c_try_compile
"$LINENO"; then :
13805 ac_cv_type_mbstate_t
=yes
13807 ac_cv_type_mbstate_t
=no
13809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13812 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13813 if test $ac_cv_type_mbstate_t = yes; then
13815 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13819 $as_echo "#define mbstate_t int" >>confdefs.h
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13824 $as_echo_n "checking for C restrict keyword... " >&6; }
13825 if test "${emacs_cv_c_restrict+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 void fred (int *restrict x);
13839 if ac_fn_c_try_compile
"$LINENO"; then :
13840 emacs_cv_c_restrict
=yes
13842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 void fred (int *__restrict x);
13853 if ac_fn_c_try_compile
"$LINENO"; then :
13854 emacs_cv_c_restrict
=__restrict
13856 emacs_cv_c_restrict
=no
13858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13863 $as_echo "$emacs_cv_c_restrict" >&6; }
13864 case "$emacs_cv_c_restrict" in
13865 yes) emacs_restrict
=restrict
;;
13866 no
) emacs_restrict
="";;
13867 *) emacs_restrict
="$emacs_cv_c_restrict";;
13869 if test "$emacs_restrict" != __restrict
; then
13871 cat >>confdefs.h
<<_ACEOF
13872 #define __restrict $emacs_restrict
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13878 $as_echo_n "checking for C restricted array declarations... " >&6; }
13879 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 void fred (int x[__restrict]);
13893 if ac_fn_c_try_compile
"$LINENO"; then :
13894 emacs_cv_c_restrict_arr
=yes
13896 emacs_cv_c_restrict_arr
=no
13898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13901 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13902 if test "$emacs_cv_c_restrict_arr" = yes; then
13904 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13910 # Set up the CFLAGS for real compilation, so we can substitute it.
13911 CFLAGS
="$REAL_CFLAGS"
13912 CPPFLAGS
="$REAL_CPPFLAGS"
13914 ## Hack to detect a buggy GCC version.
13915 if test "x$GCC" = xyes \
13916 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13917 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13918 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13919 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13922 #### Find out which version of Emacs this is.
13923 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13924 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13925 if test x
"${version}" = x
; then
13926 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13928 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13930 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13933 ### Specify what sort of things we'll be editing into Makefile and config.h.
13934 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13958 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13959 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13960 ## end of LIBX_BASE, but nothing ever set it.
13965 ## Used in lwlib/Makefile.in.
13978 cat >>confdefs.h <<_ACEOF
13979 #define EMACS_CONFIGURATION "${canonical}"
13983 cat >>confdefs.h <<_ACEOF
13984 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13988 cat >>confdefs.h <<_ACEOF
13989 #define config_machfile "${machfile}"
13993 cat >>confdefs.h <<_ACEOF
13994 #define config_opsysfile "${opsysfile}"
14001 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14003 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14006 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14008 if test "$HAVE_XFT" = "yes"; then
14009 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14010 elif test "$HAVE_FREETYPE" = "yes"; then
14011 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14021 if test "${USE_X_TOOLKIT}" != "none" ; then
14022 WIDGET_OBJ
=widget.o
14024 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14026 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14028 $as_echo "#define USE_LUCID 1" >>confdefs.h
14030 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14032 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14037 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14038 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14042 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14043 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14044 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14048 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14049 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14052 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14058 case "$USE_X_TOOLKIT" in
14059 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14060 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14061 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14065 if test "$USE_X_TOOLKIT" = "none"; then
14066 LIBXT_OTHER
="\$(LIBXSM)"
14067 OLDXMENU_TARGET
="really-oldXMenu"
14069 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14070 OLDXMENU_TARGET
="really-lwlib"
14074 ## The X Menu stuff is present in the X10 distribution, but missing
14075 ## from X11. If we have X10, just use the installed library;
14076 ## otherwise, use our own copy.
14077 if test "${HAVE_X11}" = "yes" ; then
14079 $as_echo "#define HAVE_X11 1" >>confdefs.h
14082 if test "$USE_X_TOOLKIT" = "none"; then
14083 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
14085 OLDXMENU
="\${lwlibdir}liblw.a"
14087 LIBXMENU
="\$(OLDXMENU)"
14088 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14089 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14091 ## For a syntactically valid Makefile; not actually used for anything.
14092 ## See comments in src/Makefile.in.
14094 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14095 if test "${HAVE_X_WINDOWS}" = "yes"; then
14104 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14117 if test "${HAVE_MENUS}" = "yes" ; then
14119 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14123 if test "${GNU_MALLOC}" = "yes" ; then
14125 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14130 if test "${REL_ALLOC}" = "yes" ; then
14132 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14135 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14139 if test "$opsys" = "cygwin"; then
14140 CYGWIN_OBJ
="sheap.o"
14141 ## Cygwin differs because of its unexec().
14143 POST_ALLOC_OBJ
=lastfile.o
14146 PRE_ALLOC_OBJ
=lastfile.o
14155 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14158 ## The -headerpad option tells ld (see man page) to leave room at the
14159 ## end of the header for adding load commands. Needed for dumping.
14160 ## 0x690 is the total size of 30 segment load commands (at 56
14161 ## each); under Cocoa 31 commands are required.
14162 if test "$HAVE_NS" = "yes"; then
14163 libs_nsgui
="-framework AppKit"
14164 headerpad_extra
=6C8
14167 headerpad_extra
=690
14169 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14171 ## This is here because src/Makefile.in did some extra fiddling around
14172 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14173 ## #ifndef LD_SWITCH_SYSTEM
14174 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14175 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14176 ## not using gcc, darwin system not on an alpha (ie darwin, since
14177 ## darwin + alpha does not occur).
14178 ## Because this was done in src/Makefile.in, the resulting part of
14179 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14180 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14181 ## rather than LD_SWITCH_SYSTEM.
14182 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14183 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14186 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14187 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14188 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14189 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14190 ## had different values in configure (in ac_link) and src/Makefile.in.
14191 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14192 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14194 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14197 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14198 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14207 ## gnu: GNU needs its own crt0.
14208 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14210 cygwin
) LINKER
="\$(CC)" ;;
14212 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14213 ## library search parth, i.e. it won't search /usr/lib for libc and
14214 ## friends. Using -nostartfiles instead avoids this problem, and
14215 ## will also work on earlier NetBSD releases.
14216 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
14218 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14219 ## MkLinux/LinuxPPC needs this.
14220 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14223 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
14231 if test "x$ORDINARY_LINK" = "xyes"; then
14235 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14238 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14239 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14240 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14242 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14243 ## places that are difficult to figure out at make time. Fortunately,
14244 ## these same versions allow you to pass arbitrary flags on to the
14245 ## linker, so there is no reason not to use it as a linker.
14247 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14248 ## searching for libraries in its internal directories, so we have to
14249 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14250 LINKER
="\$(CC) -nostdlib"
14251 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
14252 ## See prefix-args.c for an explanation of why we do not do this with the
14253 ## shell''s ``for'' construct. Note that sane people do not have '.' in
14254 ## their paths, so we must use ./prefix-args.
14255 ## TODO either make prefix-args check ORDINARY_LINK internally,
14256 ## or remove it altogether (bug#6184), removing the need for this hack.
14257 PRE_EDIT_LDFLAGS
='`./prefix-args -Xlinker'
14258 POST_EDIT_LDFLAGS
='`'
14263 test "x$LINKER" = "x" && LINKER
=ld
14264 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14265 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
14270 ## FIXME? The logic here is not precisely the same as that above.
14271 ## There is no check here for a pre-defined LINKER.
14272 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14274 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14277 ## cygwin: don't link against static libgcc.
14278 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14281 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14282 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14283 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14284 if test "$machine" = "arm"; then
14287 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14288 ## immediately undefine it again and redefine it to empty.
14289 ## Was the C_SWITCH_X_SITE part really necessary?
14290 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14295 ## Ask GCC where to find libgcc.a.
14296 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14303 ## If we're using X11/GNUstep, define some consequences.
14304 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14306 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14309 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14311 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14312 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14314 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14315 test "$HAVE_X_WINDOWS" = "yes" && \
14316 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14326 #### Report on what we decided to do.
14327 #### Report GTK as a toolkit, even if it doesn't use Xt.
14328 #### It makes printing result more understandable as using GTK sets
14329 #### toolkit_scroll_bars to yes by default.
14330 if test "${HAVE_GTK}" = "yes"; then
14335 Configured for \`${canonical}'.
14337 Where should the build process find the source code? ${srcdir}
14338 What operating system and machine description files should Emacs use?
14339 \`${opsysfile}' and \`${machfile}'
14340 What compiler should emacs be built with? ${CC} ${CFLAGS}
14341 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14342 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14343 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14344 What window system should Emacs use? ${window_system}
14345 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14347 if test -n "${x_includes}"; then
14348 echo " Where do we find X Windows header files? ${x_includes}"
14350 echo " Where do we find X Windows header files? Standard dirs"
14352 if test -n "${x_libraries}"; then
14353 echo " Where do we find X Windows libraries? ${x_libraries}"
14355 echo " Where do we find X Windows libraries? Standard dirs"
14358 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14359 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14360 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14361 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14362 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14363 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14364 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14365 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14366 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14367 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14368 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14369 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14371 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14372 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14373 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14374 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14376 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14379 if test $USE_XASSERTS = yes; then
14380 echo " Compiling with asserts turned on."
14381 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14386 if test "$HAVE_NS" = "yes"; then
14388 echo "You must run \"make install\" in order to test the built application.
14389 The installed application will go to nextstep/Emacs.app and can be
14390 run or moved from there."
14391 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14392 echo "The application will be fully self-contained."
14394 echo "The lisp resources for the application will be installed under ${prefix}.
14395 You may need to run \"make install\" with sudo. The application will fail
14396 to run if these resources are not installed."
14401 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14402 echo "D-Bus integration has been tested for GNU/Linux only."
14407 # Remove any trailing slashes in these variables.
14408 test "${prefix}" != NONE
&&
14409 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14410 test "${exec_prefix}" != NONE
&&
14411 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14413 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"
14415 ac_config_commands
="$ac_config_commands default"
14417 cat >confcache
<<\_ACEOF
14418 # This file is a shell script that caches the results of configure
14419 # tests run on this system so they can be shared between configure
14420 # scripts and configure runs, see configure's option --config-cache.
14421 # It is not useful on other systems. If it contains results you don't
14422 # want to keep, you may remove or edit it.
14424 # config.status only pays attention to the cache file if you give it
14425 # the --recheck option to rerun configure.
14427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14429 # following values.
14433 # The following way of writing the cache mishandles newlines in values,
14434 # but we know of no workaround that is simple, portable, and efficient.
14435 # So, we kill variables containing newlines.
14436 # Ultrix sh set writes to stderr and can't be redirected directly,
14437 # and sets the high bit in the cache file unless we assign to the vars.
14439 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14440 eval ac_val
=\$
$ac_var
14444 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14448 _ | IFS | as_nl
) ;; #(
14449 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14450 *) { eval $ac_var=; unset $ac_var;} ;;
14456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14457 *${as_nl}ac_space
=\
*)
14458 # `set' does not quote correctly, so add quotes: double-quote
14459 # substitution turns \\\\ into \\, and sed turns \\ into \.
14462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14465 # `set' quotes correctly as required by POSIX, so do not add quotes.
14466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14479 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14480 if test -w "$cache_file"; then
14481 test "x$cache_file" != "x/dev/null" &&
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14483 $as_echo "$as_me: updating cache $cache_file" >&6;}
14484 cat confcache
>$cache_file
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14492 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14493 # Let make expand exec_prefix.
14494 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14496 DEFS
=-DHAVE_CONFIG_H
14500 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14501 # 1. Remove the extension, and $U if already installed.
14502 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14503 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14505 # will be set to the directory where LIBOBJS objects are built.
14506 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14507 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14509 LIBOBJS
=$ac_libobjs
14511 LTLIBOBJS
=$ac_ltlibobjs
14515 : ${CONFIG_STATUS=./config.status}
14517 ac_clean_files_save
=$ac_clean_files
14518 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14524 # Generated by $as_me.
14525 # Run this file to recreate the current configuration.
14526 # Compiler output produced by configure, useful for debugging
14527 # configure, is in config.log if it exists.
14530 ac_cs_recheck=false
14533 SHELL=\${CONFIG_SHELL-$SHELL}
14536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14537 ## -------------------- ##
14538 ## M4sh Initialization. ##
14539 ## -------------------- ##
14541 # Be more Bourne compatible
14542 DUALCASE
=1; export DUALCASE
# for MKS sh
14543 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14547 # is contrary to our usage. Disable this feature.
14548 alias -g '${1+"$@"}'='"$@"'
14549 setopt NO_GLOB_SUBST
14551 case `(set -o) 2>/dev/null` in #(
14563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14564 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14567 # Prefer a ksh shell builtin over an external printf program on Solaris,
14568 # but without wasting forks for bash or zsh.
14569 if test -z "$BASH_VERSION$ZSH_VERSION" \
14570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14571 as_echo='print
-r --'
14572 as_echo_n='print
-rn --'
14573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14574 as_echo='printf %s
\n'
14575 as_echo_n='printf %s
'
14577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14578 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14579 as_echo_n='/usr
/ucb
/echo -n'
14581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14582 as_echo_n_body='eval
14586 expr "X$arg" : "X\\(.*\\)$as_nl";
14587 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14589 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14591 export as_echo_n_body
14592 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14594 export as_echo_body
14595 as_echo='sh
-c $as_echo_body as_echo
'
14598 # The user is always right.
14599 if test "${PATH_SEPARATOR+set}" != set; then
14601 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14602 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14609 # We need space, tab and new line, in precisely that order. Quoting is
14610 # there to prevent editors from complaining about space-tab.
14611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14612 # splitting by setting IFS to empty value.)
14615 # Find who we are. Look in the path if we contain no directory separator.
14617 *[\\/]* ) as_myself=$0 ;;
14618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14622 test -z "$as_dir" && as_dir=.
14623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14629 # We did not find ourselves, most probably we were run as `sh COMMAND'
14630 # in which case we are not to be found in the path.
14631 if test "x$as_myself" = x
; then
14634 if test ! -f "$as_myself"; then
14635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14639 # Unset variables that we do not need and which cause bugs (e.g. in
14640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14641 # suppresses any "Segmentation fault" message there. '((' could
14642 # trigger a bug in pdksh 5.2.14.
14643 for as_var
in BASH_ENV ENV MAIL MAILPATH
14644 do eval test x\
${$as_var+set} = xset \
14645 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14658 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14661 # as_fn_error ERROR [LINENO LOG_FD]
14662 # ---------------------------------
14663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14665 # script with status $?, using 1 if that was 0.
14668 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14670 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14673 $as_echo "$as_me: error: $1" >&2
14674 as_fn_exit
$as_status
14678 # as_fn_set_status STATUS
14679 # -----------------------
14680 # Set $? to STATUS, without forking.
14681 as_fn_set_status
()
14684 } # as_fn_set_status
14686 # as_fn_exit STATUS
14687 # -----------------
14688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14692 as_fn_set_status
$1
14698 # Portably unset VAR.
14701 { eval $1=; unset $1;}
14703 as_unset
=as_fn_unset
14704 # as_fn_append VAR VALUE
14705 # ----------------------
14706 # Append the text in VALUE to the end of the definition contained in VAR. Take
14707 # advantage of any shell optimizations that allow amortized linear growth over
14708 # repeated appends, instead of the typical quadratic growth present in naive
14710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14711 eval 'as_fn_append ()
14722 # as_fn_arith ARG...
14723 # ------------------
14724 # Perform arithmetic evaluation on the ARGs, and store the result in the
14725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14726 # must be portable across $(()) and expr.
14727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14728 eval 'as_fn_arith ()
14735 as_val
=`expr "$@" || test $? -eq 1`
14740 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14741 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14747 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14748 as_basename
=basename
14753 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14759 as_me
=`$as_basename -- "$0" ||
14760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14761 X"$0" : 'X\(//\)$' \| \
14762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14764 sed '/^.*\/\([^/][^/]*\)\/*$/{
14778 # Avoid depending upon Character Ranges.
14779 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14780 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14781 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14782 as_cr_digits
='0123456789'
14783 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14785 ECHO_C
= ECHO_N
= ECHO_T
=
14786 case `echo -n x` in #(((((
14788 case `echo 'xy\c'` in
14789 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14791 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14798 rm -f conf$$ conf$$.exe conf$$.
file
14799 if test -d conf$$.dir
; then
14800 rm -f conf$$.dir
/conf$$.
file
14803 mkdir conf$$.dir
2>/dev
/null
14805 if (echo >conf$$.
file) 2>/dev
/null
; then
14806 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14808 # ... but there are two gotchas:
14809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14811 # In both cases, we have to default to `cp -p'.
14812 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14814 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14822 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14823 rmdir conf$$.dir
2>/dev
/null
14828 # Create "$as_dir" as a directory, including parents if necessary.
14833 -*) as_dir
=.
/$as_dir;;
14835 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14839 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14840 *) as_qdir
=$as_dir;;
14842 as_dirs
="'$as_qdir' $as_dirs"
14843 as_dir
=`$as_dirname -- "$as_dir" ||
14844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 X"$as_dir" : 'X\(//\)[^/]' \| \
14846 X"$as_dir" : 'X\(//\)$' \| \
14847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14848 $as_echo X"$as_dir" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14853 /^X\(\/\/\)[^/].*/{
14866 test -d "$as_dir" && break
14868 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14869 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14873 if mkdir
-p .
2>/dev
/null
; then
14874 as_mkdir_p
='mkdir -p "$as_dir"'
14876 test -d .
/-p && rmdir .
/-p
14880 if test -x / >/dev
/null
2>&1; then
14881 as_test_x
='test -x'
14883 if ls -dL / >/dev
/null
2>&1; then
14890 if test -d "$1"; then
14896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14897 ???[sx]*):;;*)false;;esac;fi
14901 as_executable_p
=$as_test_x
14903 # Sed expression to map a string onto a valid CPP name.
14904 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14906 # Sed expression to map a string onto a valid variable name.
14907 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14911 ## ----------------------------------- ##
14912 ## Main body of $CONFIG_STATUS script. ##
14913 ## ----------------------------------- ##
14915 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14918 # Save the log message, to keep $0 and so on meaningful, and to
14919 # report actual input values of CONFIG_FILES etc. instead of their
14920 # values after options handling.
14922 This file was extended by emacs $as_me 24.0.50, which was
14923 generated by GNU Autoconf 2.65. Invocation command line was
14925 CONFIG_FILES = $CONFIG_FILES
14926 CONFIG_HEADERS = $CONFIG_HEADERS
14927 CONFIG_LINKS = $CONFIG_LINKS
14928 CONFIG_COMMANDS = $CONFIG_COMMANDS
14931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14936 case $ac_config_files in *"
14937 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14940 case $ac_config_headers in *"
14941 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14946 # Files that config.status was made for.
14947 config_files="$ac_config_files"
14948 config_headers="$ac_config_headers"
14949 config_commands="$ac_config_commands"
14953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14955 \`$as_me' instantiates files and other configuration actions
14956 from templates according to the current configuration. Unless the files
14957 and actions are specified as TAGs, all are instantiated by default.
14959 Usage: $0 [OPTION]... [TAG]...
14961 -h, --help print this help, then exit
14962 -V, --version print version number and configuration settings, then exit
14963 --config print configuration, then exit
14964 -q, --quiet, --silent
14965 do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14973 Configuration files:
14976 Configuration headers:
14979 Configuration commands:
14982 Report bugs to the package provider."
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14988 emacs config.status 24.0.50
14989 configured by $0, generated by GNU Autoconf 2.65,
14990 with options \\"\$ac_cs_config\\"
14992 Copyright (C) 2009 Free Software Foundation, Inc.
14993 This config.status script is free software; the Free Software Foundation
14994 gives unlimited permission to copy, distribute and modify it."
14999 test -n "\$AWK" || AWK=awk
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15003 # The default lists apply if the user does not specify any file.
15009 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15010 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15021 # Handling of the options.
15022 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15024 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15025 $as_echo "$ac_cs_version"; exit ;;
15026 --config |
--confi |
--conf |
--con |
--co |
--c )
15027 $as_echo "$ac_cs_config"; exit ;;
15028 --debug |
--debu |
--deb |
--de |
--d |
-d )
15030 --file |
--fil |
--fi |
--f )
15033 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15035 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15036 ac_need_defaults
=false
;;
15037 --header |
--heade |
--head |
--hea )
15040 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15042 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15043 ac_need_defaults
=false
;;
15045 # Conflict between --help and --header
15046 as_fn_error
"ambiguous option: \`$1'
15047 Try \`$0 --help' for more information.";;
15048 --help |
--hel |
-h )
15049 $as_echo "$ac_cs_usage"; exit ;;
15050 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15051 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15054 # This is an error.
15055 -*) as_fn_error
"unrecognized option: \`$1'
15056 Try \`$0 --help' for more information." ;;
15058 *) as_fn_append ac_config_targets
" $1"
15059 ac_need_defaults
=false
;;
15065 ac_configure_extra_args
=
15067 if $ac_cs_silent; then
15069 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 if \$ac_cs_recheck; then
15075 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15077 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15078 CONFIG_SHELL='$SHELL'
15079 export CONFIG_SHELL
15084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15089 ## Running $as_me. ##
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15099 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15105 # Handling of arguments.
15106 for ac_config_target
in $ac_config_targets
15108 case $ac_config_target in
15109 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15110 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15111 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15112 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15113 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15114 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15115 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15116 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15117 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15118 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15119 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15120 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15121 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15123 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15128 # If the user did not use the arguments to specify the items to instantiate,
15129 # then the envvar interface is used. Set only those that are not.
15130 # We use the long form for the default assignment because of an extremely
15131 # bizarre bug on SunOS 4.1.3.
15132 if $ac_need_defaults; then
15133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15138 # Have a temporary directory for convenience. Make it in the build tree
15139 # simply because there is no reason against having it here, and in addition,
15140 # creating and moving files from /tmp can sometimes cause problems.
15141 # Hook for its removal unless debugging.
15142 # Note that there is a small window in which the directory will not be cleaned:
15143 # after its creation but before its name has been assigned to `$tmp'.
15147 trap 'exit_status=$?
15148 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15150 trap 'as_fn_exit 1' 1 2 13 15
15152 # Create a (secure) tmp directory for tmp files.
15155 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15156 test -n "$tmp" && test -d "$tmp"
15159 tmp
=.
/conf$$
-$RANDOM
15160 (umask 077 && mkdir
"$tmp")
15161 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15163 # Set up the scripts for CONFIG_FILES section.
15164 # No need to generate them if there are no CONFIG_FILES.
15165 # This happens for instance with `./config.status config.h'.
15166 if test -n "$CONFIG_FILES"; then
15168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15169 ac_cs_awk_getline
=:
15170 ac_cs_awk_pipe_init
=
15171 ac_cs_awk_read_file
='
15172 while ((getline aline < (F[key])) > 0)
15175 ac_cs_awk_pipe_fini
=
15177 ac_cs_awk_getline
=false
15178 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15179 ac_cs_awk_read_file
='
15181 print "cat " F[key] " &&"
15182 '$ac_cs_awk_pipe_init
15183 # The final `:' finishes the AND list.
15184 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15186 ac_cr
=`echo X | tr X '\015'`
15187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15188 # But we know of no other shell where ac_cr would be empty at this
15189 # point, so we can use a bashism as a fallback.
15190 if test "x$ac_cr" = x
; then
15191 eval ac_cr
=\$
\'\\r
\'
15193 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15197 ac_cs_awk_cr
=$ac_cr
15200 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15203 # Create commands to substitute file output variables.
15205 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15206 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15207 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15210 } >conf$
$files.sh
&&
15211 . .
/conf$
$files.sh ||
15212 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15213 rm -f conf$
$files.sh
15216 echo "cat >conf$$subs.awk <<_ACEOF" &&
15217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15219 } >conf$$subs.sh ||
15220 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15223 for ac_last_try in false false false false false :; do
15224 . ./conf$$subs.sh ||
15225 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15227 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15228 if test $ac_delim_n = $ac_delim_num; then
15230 elif $ac_last_try; then
15231 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15233 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15236 rm -f conf$$subs.sh
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15243 s/^/S["/; s
/!.
*/"]=/
15253 s/\(.\{148\}\)..*/\1/
15255 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15260 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15267 s/\(.\{148\}\)..*/\1/
15269 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15273 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15278 ' <conf$$subs.awk | sed '
15283 ' >>$CONFIG_STATUS || ac_write_fail=1
15284 rm -f conf$$subs.awk
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15288 for (key in S) S_is_set[key] = 1
15290 \$ac_cs_awk_pipe_init
15294 nfields = split(line, field, "@
")
15296 len = length(field[1])
15297 for (i = 2; i < nfields; i++) {
15299 keylen = length(key)
15300 if (S_is_set[key]) {
15302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15303 len += length(value) + length(field[++i])
15308 if (nfields == 3 && !substed) {
15310 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15311 \$ac_cs_awk_read_file
15317 \$ac_cs_awk_pipe_fini
15320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15321 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15322 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15325 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15326 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15331 # trailing colons and then remove the whole line if VPATH becomes empty
15332 # (actually we leave an empty line to preserve line numbers).
15333 if test "x
$srcdir" = x.; then
15334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15335 s/:*\$(srcdir):*/:/
15336 s/:*\${srcdir}:*/:/
15338 s/^\([^=]*=[ ]*\):*/\1/
15344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15345 fi # test -n "$CONFIG_FILES"
15347 # Set up the scripts for CONFIG_HEADERS section.
15348 # No need to generate them if there are no CONFIG_HEADERS.
15349 # This happens for instance with `./config.status Makefile'.
15350 if test -n "$CONFIG_HEADERS"; then
15351 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15355 # Transform confdefs.h into an awk script `defines.awk', embedded as
15356 # here-document in config.status, that substitutes the proper values into
15357 # config.h.in to produce config.h.
15359 # Create a delimiter string that does not exist in confdefs.h, to ease
15360 # handling of long lines.
15362 for ac_last_try in false false :; do
15363 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15364 if test -z "$ac_t"; then
15366 elif $ac_last_try; then
15367 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15369 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15373 # For the awk script, D is an array of macro values keyed by name,
15374 # likewise P contains macro parameters if any. Preserve backslash
15375 # newline sequences.
15377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15379 s/.\{148\}/&'"$ac_delim"'/g
15382 s/^[ ]*#[ ]*define[ ][ ]*/ /
15389 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15391 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15396 D["\
1"]=" \
3\\\\\\n
"\\/p
15398 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15403 s/.\{148\}/&'"$ac_delim"'/g
15408 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15411 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15413 ' <confdefs.h | sed '
15414 s/'"$ac_delim"'/"\\\
15415 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418 for (key in D) D_is_set[key] = 1
15421 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15423 split(line, arg, " ")
15424 if (arg[1] == "#") {
15428 defundef
= substr
(arg
[1], 2)
15431 split(mac1
, mac2
, "(") #)
15433 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15434 if (D_is_set
[macro
]) {
15435 # Preserve the white space surrounding the "#".
15436 print prefix
"define", macro P
[macro
] D
[macro
]
15439 # Replace #undef with comments. This is necessary, for example,
15440 # in the case of _POSIX_SOURCE, which is predefined and required
15441 # on some systems where configure will not decide to define it.
15442 if (defundef
== "undef") {
15443 print
"/*", prefix defundef
, macro
, "*/"
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15452 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15453 fi # test -n "$CONFIG_HEADERS"
15456 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15461 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15463 case $ac_mode$ac_tag in
15465 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15466 :[FH
]-) ac_tag
=-:-;;
15467 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15484 -) ac_f
="$tmp/stdin";;
15485 *) # Look for the file first in the build tree, then in the source tree
15486 # (if the path is not absolute). The absolute path cannot be DOS-style,
15487 # because $ac_f cannot contain `:'.
15491 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15493 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15495 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15496 as_fn_append ac_file_inputs
" '$ac_f'"
15499 # Let's still pretend it is `configure' which instantiates (i.e., don't
15500 # use $as_me), people would be surprised to read:
15501 # /* config.h. Generated by config.status. */
15502 configure_input
='Generated from '`
15503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15505 if test x
"$ac_file" != x-
; then
15506 configure_input
="$ac_file. $configure_input"
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15508 $as_echo "$as_me: creating $ac_file" >&6;}
15510 # Neutralize special characters interpreted by sed in replacement strings.
15511 case $configure_input in #(
15512 *\
&* |
*\|
* |
*\\* )
15513 ac_sed_conf_input
=`$as_echo "$configure_input" |
15514 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15515 *) ac_sed_conf_input
=$configure_input;;
15519 *:-:* |
*:-) cat >"$tmp/stdin" \
15520 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15525 ac_dir
=`$as_dirname -- "$ac_file" ||
15526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15527 X"$ac_file" : 'X\(//\)[^/]' \| \
15528 X"$ac_file" : 'X\(//\)$' \| \
15529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15530 $as_echo X"$ac_file" |
15531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15535 /^X\(\/\/\)[^/].*/{
15548 as_dir
="$ac_dir"; as_fn_mkdir_p
15552 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15554 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15555 # A ".." for each directory in $ac_dir_suffix.
15556 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15557 case $ac_top_builddir_sub in
15558 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15559 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15562 ac_abs_top_builddir
=$ac_pwd
15563 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15564 # for backward compatibility:
15565 ac_top_builddir
=$ac_top_build_prefix
15568 .
) # We are building in place.
15570 ac_top_srcdir
=$ac_top_builddir_sub
15571 ac_abs_top_srcdir
=$ac_pwd ;;
15572 [\\/]* | ?
:[\\/]* ) # Absolute name.
15573 ac_srcdir
=$srcdir$ac_dir_suffix;
15574 ac_top_srcdir
=$srcdir
15575 ac_abs_top_srcdir
=$srcdir ;;
15576 *) # Relative name.
15577 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15578 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15579 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15581 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15591 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15592 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15597 # If the template does not know about datarootdir, expand it.
15598 # FIXME: This hack should be removed a few years after 2.60.
15599 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15610 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15611 *datarootdir
*) ac_datarootdir_seen
=yes;;
15612 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15614 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_datarootdir_hack='
15618 s&@datadir@&$datadir&g
15619 s&@docdir@&$docdir&g
15620 s&@infodir@&$infodir&g
15621 s&@localedir@&$localedir&g
15622 s&@mandir@&$mandir&g
15623 s&\\\${datarootdir}&$datarootdir&g' ;;
15627 # Neutralize VPATH when `$srcdir' = `.'.
15628 # Shell code in configure.ac might set extrasub.
15629 # FIXME: do we really want to maintain this feature?
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 ac_sed_extra="$ac_vpsub
15634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15636 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15637 s|@configure_input@|
$ac_sed_conf_input|
;t t
15638 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15639 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15640 s
&@srcdir@
&$ac_srcdir&;t t
15641 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15642 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15643 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15644 s
&@builddir@
&$ac_builddir&;t t
15645 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15646 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15647 s
&@INSTALL@
&$ac_INSTALL&;t t
15648 $ac_datarootdir_hack
15650 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15651 if $ac_cs_awk_getline; then
15652 $AWK -f "$tmp/subs.
awk"
15654 $AWK -f "$tmp/subs.
awk" | $SHELL
15656 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15662 which seems to be undefined. Please make sure it is defined." >&5
15663 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15664 which seems to be undefined. Please make sure it is defined." >&2;}
15668 -) cat "$tmp/out" && rm -f "$tmp/out";;
15669 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15671 || as_fn_error "could not create $ac_file" "$LINENO" 5
15677 if test x"$ac_file" != x-; then
15679 $as_echo "/* $configure_input */" \
15680 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15681 } >"$tmp/config.h" \
15682 || as_fn_error "could not create $ac_file" "$LINENO" 5
15683 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15685 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15688 mv "$tmp/config.h" "$ac_file" \
15689 || as_fn_error "could not create $ac_file" "$LINENO" 5
15692 $as_echo "/* $configure_input */" \
15693 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15694 || as_fn_error "could not create -" "$LINENO" 5
15698 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15699 $as_echo "$as_me: executing $ac_file commands" >&6;}
15704 case $ac_file$ac_mode in
15707 ### Make the necessary directories, if they don't exist.
15708 for dir
in etc lisp
; do
15709 test -d ${dir} || mkdir
${dir}
15712 echo creating src
/epaths.h
15713 ${MAKE-make} epaths-force
15715 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
15716 echo creating src
/.gdbinit
15717 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
15728 ac_clean_files
=$ac_clean_files_save
15730 test $ac_write_fail = 0 ||
15731 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15734 # configure is writing to config.log, and then calls config.status.
15735 # config.status does its own redirection, appending to config.log.
15736 # Unfortunately, on DOS this fails, as config.log is still kept open
15737 # by configure, so config.status won't be able to write to it; its
15738 # output is simply discarded. So we exec the FD to /dev/null,
15739 # effectively closing config.log, so it can be properly (re)opened and
15740 # appended to by config.status. When coming back to configure, we
15741 # need to make the FD available again.
15742 if test "$no_create" != yes; then
15744 ac_config_status_args
=
15745 test "$silent" = yes &&
15746 ac_config_status_args
="$ac_config_status_args --quiet"
15748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15751 # would make configure fail if this is the last instruction.
15752 $ac_cs_success || as_fn_exit $?
15754 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15756 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}