2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_config_libobj_dir
=src
605 ac_subst_vars
='gltests_LTLIBOBJS
617 LD_SWITCH_SYSTEM_TEMACS
650 x_default_search_path
670 GL_COND_LIBTOOL_FALSE
725 LD_SWITCH_X_SITE_AUX_RPATH
787 INSTALL_STRIP_PROGRAM
829 program_transform_name
840 ac_subst_files
='deps_frag
843 enable_option_checking
865 with_toolkit_scroll_bars
880 enable_ns_self_contained
882 enable_maintainer_mode
885 enable_use_lisp_union_type
888 enable_dependency_tracking
892 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
980 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
983 -build |
--build |
--buil |
--bui |
--bu)
984 ac_prev
=build_alias
;;
985 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
986 build_alias
=$ac_optarg ;;
988 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
989 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
990 ac_prev
=cache_file
;;
991 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
992 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
993 cache_file
=$ac_optarg ;;
996 cache_file
=config.cache
;;
998 -datadir |
--datadir |
--datadi |
--datad)
1000 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1001 datadir
=$ac_optarg ;;
1003 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1004 |
--dataroo |
--dataro |
--datar)
1005 ac_prev
=datarootdir
;;
1006 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1007 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1008 datarootdir
=$ac_optarg ;;
1010 -disable-* |
--disable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=no
;;
1026 -docdir |
--docdir |
--docdi |
--doc |
--do)
1028 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1029 docdir
=$ac_optarg ;;
1031 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1033 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1034 dvidir
=$ac_optarg ;;
1036 -enable-* |
--enable-*)
1037 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1040 as_fn_error $?
"invalid feature name: $ac_useropt"
1041 ac_useropt_orig
=$ac_useropt
1042 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_
$ac_useropt"
1047 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep
=', ';;
1050 eval enable_
$ac_useropt=\
$ac_optarg ;;
1052 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1053 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1054 |
--exec |
--exe |
--ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1057 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1058 |
--exec=* |
--exe=* |
--ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas |
--gas |
--ga |
--g)
1062 # Obsolete; use --with-gas.
1065 -help |
--help |
--hel |
--he |
-h)
1066 ac_init_help
=long
;;
1067 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1070 ac_init_help
=short
;;
1072 -host |
--host |
--hos |
--ho)
1073 ac_prev
=host_alias
;;
1074 -host=* |
--host=* |
--hos=* |
--ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1079 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir |
--includedir |
--includedi |
--included |
--include \
1084 |
--includ |
--inclu |
--incl |
--inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1087 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1092 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir |
--libdir |
--libdi |
--libd)
1097 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1101 |
--libexe |
--libex |
--libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1104 |
--libexe=* |
--libex=* |
--libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1113 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1116 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1121 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp |
--nfp |
--nf)
1125 # Obsolete; use --without-fp.
1128 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1129 |
--no-cr |
--no-c |
-n)
1132 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1133 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1136 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1137 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1138 |
--oldin |
--oldi |
--old |
--ol |
--o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1141 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1142 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1147 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1151 |
--program-pre |
--program-pr |
--program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1154 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1158 |
--program-suf |
--program-su |
--program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1161 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name |
--program-transform-name \
1165 |
--program-transform-nam |
--program-transform-na \
1166 |
--program-transform-n |
--program-transform- \
1167 |
--program-transform |
--program-transfor \
1168 |
--program-transfo |
--program-transf \
1169 |
--program-trans |
--program-tran \
1170 |
--progr-tra |
--program-tr |
--program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* |
--program-transform-name=* \
1173 |
--program-transform-nam=* |
--program-transform-na=* \
1174 |
--program-transform-n=* |
--program-transform-=* \
1175 |
--program-transform=* |
--program-transfor=* \
1176 |
--program-transfo=* |
--program-transf=* \
1177 |
--program-trans=* |
--program-tran=* \
1178 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1183 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1188 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1192 |
-silent |
--silent |
--silen |
--sile |
--sil)
1195 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1197 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1202 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1203 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1207 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1208 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site |
--site |
--sit)
1214 -site=* |
--site=* |
--sit=*)
1217 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1219 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1223 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1226 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1230 ac_prev
=target_alias
;;
1231 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1237 -version |
--version |
--versio |
--versi |
--vers |
-V)
1238 ac_init_version
=: ;;
1241 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid package name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid package name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval with_
$ac_useropt=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1295 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1299 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $?
"missing argument to $ac_option"
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1323 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 # Check all directory arguments for consistency.
1329 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val
=\$
$ac_var
1335 # Remove trailing slashes.
1338 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\
$ac_val;;
1341 # Be sure to have absolute directory names.
1343 [\\/$
]* | ?
:[\\/]* ) continue;;
1344 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1346 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target
=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x
; then
1358 if test "x$build_alias" = x
; then
1359 cross_compiling
=maybe
1360 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used" >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1370 test "$silent" = yes && exec 6>/dev
/null
1373 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di
=`ls -di .` &&
1375 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $?
"working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $?
"pwd does not report name of working directory"
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted
=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir
=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted
=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1417 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1419 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var
in $ac_precious_vars; do
1434 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1436 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1510 --x-includes=DIR X include files are
in DIR
1511 --x-libraries=DIR X library files are
in DIR
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --disable-ns-self-contained
1530 disable self contained build under NeXTstep
1531 --enable-asserts compile code with asserts enabled
1532 --enable-maintainer-mode
1533 enable make rules and dependencies not useful
(and
1534 sometimes confusing
) to the casual installer
1535 --enable-locallisppath=PATH
1536 directories Emacs should search
for lisp files
1537 specific to this site
1538 --enable-checking[=LIST
]
1539 enable expensive run-time checks. With LIST
, enable
1540 only specific categories of checks. Categories are
:
1541 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1542 stringfreelist
, xmallocoverrun
, conslist
1543 --enable-use-lisp-union-type
1544 use a union
for the Lisp_Object data
type. This is
1545 only useful
for development
for catching certain
1547 --enable-profiling build emacs with profiling support. This might not
1548 work on all platforms
1549 --enable-autodepend automatically generate dependencies to .h-files.
1550 Requires GNU Make and Gcc. Enabled
if GNU Make and
1552 --disable-dependency-tracking speeds up one-time build
1553 --enable-dependency-tracking do not reject slow dependency extractors
1554 --disable-largefile omit support
for large files
1557 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1558 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1559 --without-pop don
't support POP mail retrieval with movemail
1560 --with-kerberos support Kerberos-authenticated POP
1561 --with-kerberos5 support Kerberos version 5 authenticated POP
1562 --with-hesiod support Hesiod to get the POP server host
1563 --with-mmdf support MMDF mailboxes
1564 --with-mail-unlink unlink, rather than empty, mail spool after reading
1565 --with-mailhost=HOSTNAME
1566 string giving default POP mail host
1567 --without-sound don't compile with sound support
1568 --without-sync-input process async input synchronously
1569 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1570 lucid or athena
, motif
, no
)
1571 --without-xpm don
't compile with XPM image support
1572 --without-jpeg don't compile with JPEG image support
1573 --without-tiff don
't compile with TIFF image support
1574 --without-gif don't compile with GIF image support
1575 --without-png don
't compile with PNG image support
1576 --without-rsvg don't compile with SVG image support
1577 --without-xml2 don
't compile with XML parsing support
1578 --without-imagemagick don't compile with ImageMagick image support
1579 --without-xft don
't use XFT for anti aliased fonts
1580 --without-libotf don't use libotf
for OpenType font support
1581 --without-m17n-flt don
't use m17n-flt for text shaping
1582 --without-toolkit-scroll-bars
1583 don't use Motif or Xaw3d scroll bars
1584 --without-xaw3d don
't use Xaw3d
1585 --without-xim don't use X11 XIM
1586 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1587 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1589 --without-dbus don't compile with D-Bus support
1590 --without-gconf don
't compile with GConf support
1591 --without-selinux don't compile with SELinux support
1592 --without-gnutls don
't use -lgnutls for SSL/TLS support
1593 --without-makeinfo don't require makeinfo
for building manuals
1594 --without-compress-info don
't compress the installed Info pages
1595 --with-pkg-config-prog=PATH
1596 path to pkg-config for finding GTK and librsvg
1597 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1598 /usr/lib, or /usr/lib64 on some platforms.
1599 --with-gameuser=USER user for shared game score files
1600 --with-gnustep-conf=PATH
1601 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1602 or /etc/GNUstep/GNUstep.conf
1603 --with-x use the X Window System
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1614 XMKMF Path to xmkmf, Makefile generator for X Window System
1616 Use these variables to override the choices made by `configure' or to
help
1617 it to
find libraries and programs with nonstandard names
/locations.
1619 Report bugs to the package provider.
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1633 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1635 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1640 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1643 ac_abs_top_builddir
=$ac_pwd
1644 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir
=$ac_top_build_prefix
1649 .
) # We are building in place.
1651 ac_top_srcdir
=$ac_top_builddir_sub
1652 ac_abs_top_srcdir
=$ac_pwd ;;
1653 [\\/]* | ?
:[\\/]* ) # Absolute name.
1654 ac_srcdir
=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir
=$srcdir
1656 ac_abs_top_srcdir
=$srcdir ;;
1658 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1662 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1682 emacs configure
24.0.50
1683 generated by GNU Autoconf
2.68
1685 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1686 This configure
script is free software
; the Free Software Foundation
1687 gives unlimited permission to copy
, distribute and modify it.
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile
()
1701 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1702 rm -f conftest.
$ac_objext
1703 if { { ac_try
="$ac_compile"
1705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_compile
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1744 *) ac_try_echo
=$ac_try;;
1746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1750 if test -s conftest.err
; then
1751 grep -v '^ *+' conftest.err
>conftest.er1
1752 cat conftest.er1
>&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest
$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest
$ac_exeext
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.
$ac_ext >&5
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status
$ac_retval
1778 } # ac_fn_c_try_link
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1786 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1822 ac_fn_c_check_header_mongrel ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if eval \${$3+:} false; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1846 ac_header_compiler=no
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1862 ac_header_preproc=no
1864 rm -f conftest.err conftest.i conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1894 eval "$3=\$ac_header_compiler"
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_try_run LINENO
1905 # ----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907 # that executables *can* be run.
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_link"
1913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1914 *) ac_try_echo
=$ac_try;;
1916 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>&5
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1922 { { case "(($ac_try" in
1923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_try") 2>&5
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; }; }; then :
1934 $as_echo "$as_me: program exited with status $ac_status" >&5
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=$ac_status
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1946 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists and can be compiled using the include files in
1949 # INCLUDES, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_compile ()
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 eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_header_compile
1977 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1978 # ---------------------------------------------
1979 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1981 ac_fn_c_check_decl ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1985 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1987 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1997 #ifndef $as_decl_name
1999 (void) $as_decl_use;
2001 (void) $as_decl_name;
2009 if ac_fn_c_try_compile "$LINENO"; then :
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_decl
2023 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2024 # ----------------------------------------------
2025 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_preproc ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2043 rm -f conftest.err conftest.i conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_preproc
2052 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2053 # ----------------------------------------------------
2054 # Tries to find if the field MEMBER exists in type AGGR, after including
2055 # INCLUDES, setting cache variable VAR accordingly.
2056 ac_fn_c_check_member ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2060 $as_echo_n "checking for $2.$3... " >&6; }
2061 if eval \${$4+:} false; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2087 if (sizeof ac_aggr.$3)
2093 if ac_fn_c_try_compile "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_member
2109 # ac_fn_c_check_func LINENO FUNC VAR
2110 # ----------------------------------
2111 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2112 ac_fn_c_check_func ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2124 #define $2 innocuous_$2
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $2 (); below.
2128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 <limits.h> exists even on freestanding compilers. */
2132 # include <limits.h>
2134 # include <assert.h>
2139 /* Override any GCC internal prototype to avoid an error.
2140 Use char because int might match the return type of a GCC
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined __stub_$2 || defined __stub___$2
2161 if ac_fn_c_try_link "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext \
2167 conftest$ac_exeext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_func
2176 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177 # -------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_c_check_type ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval \${$3+:} false; then :
2186 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2214 if ac_fn_c_try_compile "$LINENO"; then :
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_type
2229 cat >config.log <<_ACEOF
2230 This file contains any messages produced by compilers while
2231 running configure, to aid debugging if configure makes a mistake.
2233 It was created by emacs $as_me 24.0.50, which was
2234 generated by GNU Autoconf 2.68. Invocation command line was
2246 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2247 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2248 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2249 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2250 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2252 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2253 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2255 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2256 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2257 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2258 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2259 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2260 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2261 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 $as_echo "PATH: $as_dir"
2286 # Keep a trace of the command line.
2287 # Strip out --no-create and --no-recursion so they do not pile up.
2288 # Strip out --silent because we don't want to record it for future runs.
2289 # Also quote any args containing shell meta-characters.
2290 # Make two passes to allow for proper duplicate-argument suppression.
2294 ac_must_keep_next=false
2300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302 | -silent | --silent | --silen | --sile | --sil)
2305 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2308 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2310 as_fn_append ac_configure_args1 " '$ac_arg'"
2311 if test $ac_must_keep_next = true; then
2312 ac_must_keep_next=false # Got value, back to normal.
2315 *=* | --config-cache | -C | -disable-* | --disable-* \
2316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318 | -with-* | --with-* | -without-* | --without-* | --x)
2319 case "$ac_configure_args0 " in
2320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2323 -* ) ac_must_keep_next=true ;;
2326 as_fn_append ac_configure_args " '$ac_arg'"
2331 { ac_configure_args0=; unset ac_configure_args0;}
2332 { ac_configure_args1=; unset ac_configure_args1;}
2334 # When interrupted or exit'd, cleanup temporary files, and complete
2335 # config.log. We remove comments because anyway the quotes in there
2336 # would cause problems or look ugly.
2337 # WARNING: Use '\'' to represent an apostrophe within the trap.
2338 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339 trap 'exit_status=$?
2340 # Save into config.log some information that might help in debugging.
2344 $as_echo "## ---------------- ##
2345 ## Cache variables. ##
2346 ## ---------------- ##"
2348 # The following way of writing the cache mishandles newlines in values,
2350 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2351 eval ac_val=\$$ac_var
2355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359 _ | IFS | as_nl) ;; #(
2360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2361 *) { eval $ac_var=; unset $ac_var;} ;;
2366 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2367 *${as_nl}ac_space=\ *)
2369 "s/'\''/'\''\\\\'\'''\''/g;
2370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380 $as_echo "## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##"
2384 for ac_var in $ac_subst_vars
2386 eval ac_val=\$$ac_var
2388 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 $as_echo "$ac_var='\''$ac_val'\''"
2394 if test -n "$ac_subst_files"; then
2395 $as_echo "## ------------------- ##
2396 ## File substitutions. ##
2397 ## ------------------- ##"
2399 for ac_var in $ac_subst_files
2401 eval ac_val=\$$ac_var
2403 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405 $as_echo "$ac_var='\''$ac_val'\''"
2410 if test -s confdefs.h; then
2411 $as_echo "## ----------- ##
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2434 $as_echo "/* confdefs.h */" > confdefs.h
2436 # Predefined preprocessor variables.
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_NAME "$PACKAGE_NAME"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_STRING "$PACKAGE_STRING"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_URL "$PACKAGE_URL"
2463 # Let the site file select an alternate cache file if it wants to.
2464 # Prefer an explicitly selected file to automatically selected ones.
2467 if test -n "$CONFIG_SITE"; then
2468 # We do not want a PATH search for config.site.
2469 case $CONFIG_SITE in #((
2470 -*) ac_site_file1=./$CONFIG_SITE;;
2471 */*) ac_site_file1=$CONFIG_SITE;;
2472 *) ac_site_file1=./$CONFIG_SITE;;
2474 elif test "x$prefix" != xNONE; then
2475 ac_site_file1=$prefix/share/config.site
2476 ac_site_file2=$prefix/etc/config.site
2478 ac_site_file1=$ac_default_prefix/share/config.site
2479 ac_site_file2=$ac_default_prefix/etc/config.site
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2483 test "x$ac_site_file" = xNONE && continue
2484 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487 sed 's/^/| /' "$ac_site_file" >&5
2489 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "failed to load site
script $ac_site_file
2492 See \
`config.log' for more details" "$LINENO" 5; }
2496 if test -r "$cache_file"; then
2497 # Some versions of bash will fail to source /dev/null (special files
2498 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2499 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501 $as_echo "$as_me: loading cache $cache_file" >&6;}
2503 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504 *) . "./$cache_file";;
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509 $as_echo "$as_me: creating cache $cache_file" >&6;}
2513 as_fn_append ac_header_list " stdlib.h"
2514 as_fn_append ac_header_list " unistd.h"
2515 as_fn_append ac_header_list " sys/param.h"
2516 as_fn_append ac_header_list " sys/time.h"
2517 as_fn_append ac_func_list " alarm"
2518 # Check that the precious variables saved in the cache have kept the same
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2529 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2533 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x
$ac_old_val`
2540 ac_new_val_w=`echo x
$ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2544 ac_cache_corrupted=:
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2589 am__api_version='1.11'
2592 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2593 if test -f "$ac_dir/install-sh"; then
2595 ac_install_sh="$ac_aux_dir/install-sh -c"
2597 elif test -f "$ac_dir/install.sh"; then
2599 ac_install_sh="$ac_aux_dir/install.sh -c"
2601 elif test -f "$ac_dir/shtool"; then
2603 ac_install_sh="$ac_aux_dir/shtool install -c"
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620 # Find a good install program. We prefer a C program (faster),
2621 # so one script is as good as another. But avoid the broken or
2622 # incompatible versions:
2623 # SysV /etc/install, /usr/sbin/install
2624 # SunOS /usr/etc/install
2625 # IRIX /sbin/install
2627 # AmigaOS /C/install, which installs bootblocks on floppy discs
2628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2631 # OS/2's system install, which has a completely different semantic
2632 # ./install, which can be erroneously created by make from ./install.sh.
2633 # Reject install programs that cannot install multiple files.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2635 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2636 if test -z "$INSTALL"; then
2637 if ${ac_cv_path_install+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 # Account for people who put trailing slashes in PATH elements.
2646 case $as_dir/ in #((
2647 ./ | .// | /[cC]/* | \
2648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2649 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2652 # OSF1 and SCO ODT 3.0 have their own names for install.
2653 # Don't use installbsd from OSF since it installs stuff as root
2655 for ac_prog in ginstall scoinst install; do
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2658 if test $ac_prog = install &&
2659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660 # AIX install. It has an incompatible calling convention.
2662 elif test $ac_prog = install &&
2663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # program-specific install script used by HP pwplus--don't use.
2667 rm -rf conftest.one conftest.two conftest.dir
2668 echo one > conftest.one
2669 echo two > conftest.two
2671 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2672 test -s conftest.one && test -s conftest.two &&
2673 test -s conftest.dir/conftest.one &&
2674 test -s conftest.dir/conftest.two
2676 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 rm -rf conftest.one conftest.two conftest.dir
2692 if test "${ac_cv_path_install+set}" = set; then
2693 INSTALL=$ac_cv_path_install
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for INSTALL within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 INSTALL=$ac_install_sh
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2703 $as_echo "$INSTALL" >&6; }
2705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2706 # It thinks the first close brace ends the variable substitution.
2707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2714 $as_echo_n "checking whether build environment is sane... " >&6; }
2717 echo timestamp > conftest.file
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name. Accept space and tab only in the latter.
2723 *[\\\"\#\$\&\'\`$am_lf]*)
2724 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2727 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2728 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2731 # Do `set' in a subshell so we don't clobber the current shell's
2732 # arguments. Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2737 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2738 if test "$*" = "X"; then
2740 set X
`ls -t "$srcdir/configure" conftest.file`
2743 if test "$*" != "X $srcdir/configure conftest.file" \
2744 && test "$*" != "X conftest.file $srcdir/configure"; then
2746 # If neither matched, then we have a broken ls. This can happen
2747 # if, for instance, CONFIG_SHELL is bash and it inherits a
2748 # broken ls alias from the environment. This has actually
2749 # happened. Such a system could not be considered "sane".
2750 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2751 alias in your environment" "$LINENO" 5
2754 test "$2" = conftest.
file
2760 as_fn_error $?
"newly created file is older than distributed files!
2761 Check your system clock" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 test "$program_prefix" != NONE
&&
2766 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2767 # Use a double $ so make ignores it.
2768 test "$program_suffix" != NONE
&&
2769 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2770 # Double any \ or $.
2771 # By default was `s,x,x', remove it if useless.
2772 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2773 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2775 # expand $ac_aux_dir to an absolute path
2776 am_aux_dir
=`cd $ac_aux_dir && pwd`
2778 if test x
"${MISSING+set}" != xset
; then
2781 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2783 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2786 # Use eval to expand $SHELL
2787 if eval "$MISSING --run true"; then
2788 am_missing_run
="$MISSING --run "
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2792 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2795 if test x
"${install_sh}" != xset
; then
2798 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2800 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2804 # Installed binaries are usually stripped using `strip' when the user
2805 # run `make install-strip'. However `strip' might not be the right
2806 # tool to use in cross-compilation environments, therefore Automake
2807 # will honor the `STRIP' environment variable to overrule this program.
2808 if test "$cross_compiling" != no
; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2811 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_STRIP+:} false
; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$STRIP"; then
2818 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir
=.
2825 for ac_exec_ext
in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 STRIP
=$ac_cv_prog_STRIP
2838 if test -n "$STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2840 $as_echo "$STRIP" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2848 if test -z "$ac_cv_prog_STRIP"; then
2850 # Extract the first word of "strip", so it can be a program name with args.
2851 set dummy strip
; ac_word
=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2855 $as_echo_n "(cached) " >&6
2857 if test -n "$ac_ct_STRIP"; then
2858 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir
=.
2865 for ac_exec_ext
in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_STRIP
="strip"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2878 if test -n "$ac_ct_STRIP"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2880 $as_echo "$ac_ct_STRIP" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2886 if test "x$ac_ct_STRIP" = x
; then
2889 case $cross_compiling:$ac_tool_warned in
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned
=yes ;;
2898 STRIP
="$ac_cv_prog_STRIP"
2902 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2905 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2906 if test -z "$MKDIR_P"; then
2907 if ${ac_cv_path_mkdir+:} false
; then :
2908 $as_echo_n "(cached) " >&6
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2911 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_prog
in mkdir gmkdir
; do
2916 for ac_exec_ext
in '' $ac_executable_extensions; do
2917 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2919 'mkdir (GNU coreutils) '* | \
2920 'mkdir (coreutils) '* | \
2921 'mkdir (fileutils) '4.1*)
2922 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2932 test -d .
/--version && rmdir .
/--version
2933 if test "${ac_cv_path_mkdir+set}" = set; then
2934 MKDIR_P
="$ac_cv_path_mkdir -p"
2936 # As a last resort, use the slow shell script. Don't cache a
2937 # value for MKDIR_P within a source directory, because that will
2938 # break other packages using the cache if that directory is
2939 # removed, or if the value is a relative name.
2940 MKDIR_P
="$ac_install_sh -d"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2944 $as_echo "$MKDIR_P" >&6; }
2948 [\\/$
]* | ?
:[\\/]*) ;;
2949 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2952 for ac_prog
in gawk mawk nawk
awk
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy
$ac_prog; ac_word
=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_AWK+:} false
; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$AWK"; then
2962 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir
=.
2969 for ac_exec_ext
in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_AWK
="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 if test -n "$AWK"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984 $as_echo "$AWK" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2991 test -n "$AWK" && break
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2997 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2999 $as_echo_n "(cached) " >&6
3001 cat >conftest.
make <<\_ACEOF
3004 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3009 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3011 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3015 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 SET_MAKE
="MAKE=${MAKE-make}"
3025 rm -rf .tst
2>/dev
/null
3026 mkdir .tst
2>/dev
/null
3027 if test -d .tst
; then
3032 rmdir .tst
2>/dev
/null
3034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc
=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status
; then
3040 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3044 # test whether we have cygpath
3045 if test -z "$CYGPATH_W"; then
3046 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3047 CYGPATH_W
='cygpath -w'
3054 # Define the identity of the package.
3059 cat >>confdefs.h
<<_ACEOF
3060 #define PACKAGE "$PACKAGE"
3064 cat >>confdefs.h
<<_ACEOF
3065 #define VERSION "$VERSION"
3068 # Some tools Automake needs.
3070 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3073 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3076 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3079 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3082 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3084 # We need awk for the "check" target. The system "awk" is bad on
3086 # Always define AMTAR for backward compatibility.
3088 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3090 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3099 lispdir
='${datadir}/emacs/${version}/lisp'
3100 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3101 '${datadir}/emacs/site-lisp'
3102 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3103 etcdir
='${datadir}/emacs/${version}/etc'
3104 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3105 docdir
='${datadir}/emacs/${version}/etc'
3106 gamedir
='${localstatedir}/games/emacs'
3111 # Check whether --with-pop was given.
3112 if test "${with_pop+set}" = set; then :
3118 if test "$with_pop" = yes; then
3119 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3124 # Check whether --with-kerberos was given.
3125 if test "${with_kerberos+set}" = set; then :
3126 withval
=$with_kerberos;
3131 if test "$with_kerberos" != no
; then
3132 $as_echo "#define KERBEROS 1" >>confdefs.h
3137 # Check whether --with-kerberos5 was given.
3138 if test "${with_kerberos5+set}" = set; then :
3139 withval
=$with_kerberos5;
3144 if test "${with_kerberos5}" != no
; then
3145 if test "${with_kerberos}" = no
; then
3147 $as_echo "#define KERBEROS 1" >>confdefs.h
3151 $as_echo "#define KERBEROS5 1" >>confdefs.h
3156 # Check whether --with-hesiod was given.
3157 if test "${with_hesiod+set}" = set; then :
3158 withval
=$with_hesiod;
3163 if test "$with_hesiod" != no
; then
3165 $as_echo "#define HESIOD 1" >>confdefs.h
3170 # Check whether --with-mmdf was given.
3171 if test "${with_mmdf+set}" = set; then :
3177 if test "$with_mmdf" != no
; then
3179 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3184 # Check whether --with-mail-unlink was given.
3185 if test "${with_mail_unlink+set}" = set; then :
3186 withval
=$with_mail_unlink;
3191 if test "$with_mail_unlink" != no
; then
3193 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3198 # Check whether --with-mailhost was given.
3199 if test "${with_mailhost+set}" = set; then :
3200 withval
=$with_mailhost;
3201 cat >>confdefs.h
<<_ACEOF
3202 #define MAILHOST "$withval"
3209 # Check whether --with-sound was given.
3210 if test "${with_sound+set}" = set; then :
3211 withval
=$with_sound;
3218 # Check whether --with-sync-input was given.
3219 if test "${with_sync_input+set}" = set; then :
3220 withval
=$with_sync_input;
3225 if test "$with_sync_input" = yes; then
3227 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3232 # Check whether --with-x-toolkit was given.
3233 if test "${with_x_toolkit+set}" = set; then :
3234 withval
=$with_x_toolkit; case "${withval}" in
3235 y | ye |
yes ) val
=gtk
;;
3237 l | lu | luc | luci | lucid
) val
=lucid
;;
3238 a |
at | ath | athe | athen | athena
) val
=athena
;;
3239 m | mo | mot | moti | motif
) val
=motif
;;
3240 g | gt | gtk
) val
=gtk
;;
3243 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3244 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3245 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3254 # Check whether --with-xpm was given.
3255 if test "${with_xpm+set}" = set; then :
3262 # Check whether --with-jpeg was given.
3263 if test "${with_jpeg+set}" = set; then :
3270 # Check whether --with-tiff was given.
3271 if test "${with_tiff+set}" = set; then :
3278 # Check whether --with-gif was given.
3279 if test "${with_gif+set}" = set; then :
3286 # Check whether --with-png was given.
3287 if test "${with_png+set}" = set; then :
3294 # Check whether --with-rsvg was given.
3295 if test "${with_rsvg+set}" = set; then :
3302 # Check whether --with-xml2 was given.
3303 if test "${with_xml2+set}" = set; then :
3310 # Check whether --with-imagemagick was given.
3311 if test "${with_imagemagick+set}" = set; then :
3312 withval
=$with_imagemagick;
3314 with_imagemagick
=yes
3319 # Check whether --with-xft was given.
3320 if test "${with_xft+set}" = set; then :
3327 # Check whether --with-libotf was given.
3328 if test "${with_libotf+set}" = set; then :
3329 withval
=$with_libotf;
3335 # Check whether --with-m17n-flt was given.
3336 if test "${with_m17n_flt+set}" = set; then :
3337 withval
=$with_m17n_flt;
3344 # Check whether --with-toolkit-scroll-bars was given.
3345 if test "${with_toolkit_scroll_bars+set}" = set; then :
3346 withval
=$with_toolkit_scroll_bars;
3348 with_toolkit_scroll_bars
=yes
3352 # Check whether --with-xaw3d was given.
3353 if test "${with_xaw3d+set}" = set; then :
3354 withval
=$with_xaw3d;
3360 # Check whether --with-xim was given.
3361 if test "${with_xim+set}" = set; then :
3368 # Check whether --with-ns was given.
3369 if test "${with_ns+set}" = set; then :
3377 # Check whether --with-gpm was given.
3378 if test "${with_gpm+set}" = set; then :
3385 # Check whether --with-dbus was given.
3386 if test "${with_dbus+set}" = set; then :
3393 # Check whether --with-gconf was given.
3394 if test "${with_gconf+set}" = set; then :
3395 withval
=$with_gconf;
3401 # Check whether --with-selinux was given.
3402 if test "${with_selinux+set}" = set; then :
3403 withval
=$with_selinux;
3409 # Check whether --with-gnutls was given.
3410 if test "${with_gnutls+set}" = set; then :
3411 withval
=$with_gnutls;
3417 ## For the times when you want to build Emacs but don't have
3418 ## a suitable makeinfo, and can live without the manuals.
3420 # Check whether --with-makeinfo was given.
3421 if test "${with_makeinfo+set}" = set; then :
3422 withval
=$with_makeinfo;
3428 ## This is an option because I do not know if all info/man support
3429 ## compressed files, nor how to test if they do so.
3431 # Check whether --with-compress-info was given.
3432 if test "${with_compress_info+set}" = set; then :
3433 withval
=$with_compress_info;
3435 with_compress_info
=yes
3438 if test $with_compress_info = yes; then
3446 # Check whether --with-pkg-config-prog was given.
3447 if test "${with_pkg_config_prog+set}" = set; then :
3448 withval
=$with_pkg_config_prog;
3451 if test "X${with_pkg_config_prog}" != X
; then
3452 if test "${with_pkg_config_prog}" != yes; then
3453 PKG_CONFIG
="${with_pkg_config_prog}"
3459 # Check whether --with-crt-dir was given.
3460 if test "${with_crt_dir+set}" = set; then :
3461 withval
=$with_crt_dir;
3464 CRT_DIR
="${with_crt_dir}"
3467 # Check whether --with-gameuser was given.
3468 if test "${with_gameuser+set}" = set; then :
3469 withval
=$with_gameuser;
3472 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3473 && gameuser
="${with_gameuser}"
3474 test "X$gameuser" = X
&& gameuser
=games
3477 # Check whether --with-gnustep-conf was given.
3478 if test "${with_gnustep_conf+set}" = set; then :
3479 withval
=$with_gnustep_conf;
3482 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3483 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3484 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3485 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3487 # Check whether --enable-ns-self-contained was given.
3488 if test "${enable_ns_self_contained+set}" = set; then :
3489 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3491 EN_NS_SELF_CONTAINED
=yes
3495 # Check whether --enable-asserts was given.
3496 if test "${enable_asserts+set}" = set; then :
3497 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3503 # Check whether --enable-maintainer-mode was given.
3504 if test "${enable_maintainer_mode+set}" = set; then :
3505 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3507 USE_MAINTAINER_MODE
=no
3510 if test $USE_MAINTAINER_MODE = yes; then
3517 # Check whether --enable-locallisppath was given.
3518 if test "${enable_locallisppath+set}" = set; then :
3519 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3521 elif test "${enableval}" != "yes"; then
3522 locallisppath
=${enableval}
3527 # Check whether --enable-checking was given.
3528 if test "${enable_checking+set}" = set; then :
3529 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3532 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3533 for check
in $ac_checking_flags
3536 # these set all the flags to specific states
3537 yes) ac_enable_checking
=1 ;;
3538 no
) ac_enable_checking
= ;
3539 ac_gc_check_stringbytes
= ;
3540 ac_gc_check_string_overrun
= ;
3541 ac_gc_check_string_free_list
= ;
3542 ac_xmalloc_overrun
= ;
3543 ac_gc_check_cons_list
= ;;
3544 all
) ac_enable_checking
=1 ;
3545 ac_gc_check_stringbytes
=1 ;
3546 ac_gc_check_string_overrun
=1 ;
3547 ac_gc_check_string_free_list
=1 ;
3548 ac_xmalloc_overrun
=1 ;
3549 ac_gc_check_cons_list
=1 ;;
3550 # these enable particular checks
3551 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3552 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3553 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3554 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3555 conslist
) ac_gc_check_cons_list
=1 ;;
3556 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3561 if test x
$ac_enable_checking != x
; then
3563 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3566 if test x
$ac_gc_check_stringbytes != x
; then
3568 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3571 if test x
$ac_gc_check_stringoverrun != x
; then
3573 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3576 if test x
$ac_gc_check_string_free_list != x
; then
3578 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3581 if test x
$ac_xmalloc_overrun != x
; then
3583 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3586 if test x
$ac_gc_check_cons_list != x
; then
3588 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3592 # Check whether --enable-use-lisp-union-type was given.
3593 if test "${enable_use_lisp_union_type+set}" = set; then :
3594 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3596 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3603 # Check whether --enable-profiling was given.
3604 if test "${enable_profiling+set}" = set; then :
3605 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3608 if test x
$ac_enable_profiling != x
; then
3609 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3615 # Check whether --enable-autodepend was given.
3616 if test "${enable_autodepend+set}" = set; then :
3617 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3619 ac_enable_autodepend
=yes
3623 #### Make srcdir absolute, if it isn't already. It's important to
3624 #### avoid running the path through pwd unnecessarily, since pwd can
3625 #### give you automounter prefixes, which can go away. We do all this
3626 #### so Emacs can find its files when run uninstalled.
3627 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3632 ## We may be able to use the $PWD environment variable to make this
3633 ## absolute. But sometimes PWD is inaccurate.
3634 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3635 ## but that tested only for a well-formed and valid PWD,
3636 ## it did not object when PWD was well-formed and valid but just wrong.
3637 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3641 srcdir
="`(cd ${srcdir}; pwd)`"
3644 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3647 #### Check if the source directory already has a configured system in it.
3648 if test `pwd` != `(cd ${srcdir} && pwd)` \
3649 && test -f "${srcdir}/src/config.h" ; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3651 as a build directory right now; it has been configured in its own
3652 right. To configure in another directory as well, you MUST
3653 use GNU make. If you do not have GNU make, then you must
3654 now do \`make distclean' in ${srcdir},
3655 and then run $0 again." >&5
3656 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3657 as a build directory right now; it has been configured in its own
3658 right. To configure in another directory as well, you MUST
3659 use GNU make. If you do not have GNU make, then you must
3660 now do \`make distclean' in ${srcdir},
3661 and then run $0 again." >&2;}
3664 #### Given the configuration name, set machfile and opsysfile to the
3665 #### names of the m/*.h and s/*.h files we should use.
3667 ### Canonicalize the configuration name.
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3671 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3674 $as_echo_n "checking build system type... " >&6; }
3675 if ${ac_cv_build+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 ac_build_alias
=$build_alias
3679 test "x$ac_build_alias" = x
&&
3680 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3681 test "x$ac_build_alias" = x
&&
3682 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3683 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3684 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3688 $as_echo "$ac_cv_build" >&6; }
3689 case $ac_cv_build in
3691 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3694 ac_save_IFS
=$IFS; IFS
='-'
3700 # Remember, the first character of IFS is used to create $*,
3701 # except with old shells:
3704 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3708 $as_echo_n "checking host system type... " >&6; }
3709 if ${ac_cv_host+:} false
; then :
3710 $as_echo_n "(cached) " >&6
3712 if test "x$host_alias" = x
; then
3713 ac_cv_host
=$ac_cv_build
3715 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3716 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3721 $as_echo "$ac_cv_host" >&6; }
3724 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3727 ac_save_IFS
=$IFS; IFS
='-'
3733 # Remember, the first character of IFS is used to create $*,
3734 # except with old shells:
3737 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3741 configuration
=${host_alias-${build_alias-$host}}
3745 ### If you add support for a new configuration, add code to this
3746 ### switch statement to recognize your configuration name and select
3747 ### the appropriate operating system and machine description files.
3749 ### You would hope that you could choose an m/*.h file pretty much
3750 ### based on the machine portion of the configuration name, and an s/*.h
3751 ### file based on the operating system portion. However, it turns out
3752 ### that each m/*.h file is pretty manufacturer-specific - for
3753 ### example mips.h is MIPS
3754 ### So we basically have to have a special case for each
3755 ### configuration name.
3757 ### As far as handling version numbers on operating systems is
3758 ### concerned, make sure things will fail in a fixable way. If
3759 ### /etc/MACHINES doesn't say anything about version numbers, be
3760 ### prepared to handle anything reasonably. If version numbers
3761 ### matter, be sure /etc/MACHINES says something about it.
3763 machine
='' opsys
='' unported
=no
3764 case "${canonical}" in
3769 case ${canonical} in
3770 alpha
*) machine
=alpha
;;
3771 s390-
*) machine
=ibms390
;;
3772 s390x-
*) machine
=ibms390x
;;
3773 powerpc
*) machine
=macppc
;;
3774 sparc
*) machine
=sparc
;;
3775 ia64
*) machine
=ia64
;;
3776 m68k
*) machine
=m68k
;;
3777 x86_64
*) machine
=amdx86-64
;;
3784 case "${canonical}" in
3785 alpha
*) machine
=alpha
;;
3786 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3787 ia64-
*) machine
=ia64
;;
3788 i
[3456]86-*) machine
=intel386
;;
3789 powerpc-
*) machine
=macppc
;;
3790 sparc-
*) machine
=sparc
;;
3791 sparc64-
*) machine
=sparc
;;
3795 ## FreeBSD kernel + glibc based userland
3798 case "${canonical}" in
3799 alpha
*) machine
=alpha
;;
3800 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3801 ia64-
*) machine
=ia64
;;
3802 i
[3456]86-*) machine
=intel386
;;
3803 powerpc-
*) machine
=macppc
;;
3804 sparc-
*) machine
=sparc
;;
3805 sparc64-
*) machine
=sparc
;;
3812 case "${canonical}" in
3813 alpha
*) machine
=alpha
;;
3814 x86_64-
*) machine
=amdx86-64
;;
3815 i
[3456]86-*) machine
=intel386
;;
3816 m68k-
*) machine
=m68k
;;
3817 powerpc-
*) machine
=macppc
;;
3818 sparc
*-) machine
=sparc
;;
3819 vax-
*) machine
=vax
;;
3826 case "${canonical}" in
3827 alpha
*) machine
=alpha
;;
3828 x86_64-
*) machine
=amdx86-64
;;
3829 i386-
*) machine
=intel386
;;
3830 powerpc-
*) machine
=macppc
;;
3831 sparc
*) machine
=sparc
;;
3832 vax-
*) machine
=vax
;;
3836 ## Apple Darwin / Mac OS X
3838 case "${canonical}" in
3839 i
[3456]86-* ) machine
=intel386
;;
3840 powerpc-
* ) machine
=macppc
;;
3841 x86_64-
* ) machine
=amdx86-64
;;
3845 # Define CPP as follows to make autoconf work correctly.
3846 CPP
="${CC-cc} -E -no-cpp-precomp"
3847 # Use fink packages if available.
3848 if test -d /sw
/include
&& test -d /sw
/lib
; then
3849 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3850 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3851 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3855 ## HP 9000 series 700 and 800, running HP/UX
3856 hppa
*-hp-hpux10.2
* )
3859 hppa
*-hp-hpux1[1-9]* )
3861 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3865 rs6000-ibm-aix4.
[23]* )
3866 machine
=ibmrs6000 opsys
=aix4-2
3868 powerpc-ibm-aix4.
[23]* )
3869 machine
=ibmrs6000 opsys
=aix4-2
3871 rs6000-ibm-aix
[56]* )
3872 machine
=ibmrs6000 opsys
=aix4-2
3874 powerpc-ibm-aix
[56]* )
3875 machine
=ibmrs6000 opsys
=aix4-2
3878 ## Silicon Graphics machines
3881 machine
=iris4d opsys
=irix6-5
3882 # Without defining _LANGUAGE_C, things get masked out in the headers
3883 # so that, for instance, grepping for `free' in stdlib.h fails and
3884 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3885 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3886 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3891 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3892 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3893 case "${canonical}" in
3894 i
[3456]86-*-* ) machine
=intel386
;;
3895 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3896 sparc
* ) machine
=sparc
;;
3899 case "${canonical}" in
3900 *-sunos5.6
* |
*-solaris2.6
* )
3902 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3905 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3907 emacs_check_sunpro_c
=yes
3908 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3910 *-sunos5* |
*-solaris* )
3912 emacs_check_sunpro_c
=yes
3913 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3916 ## Watch out for a compiler that we know will not work.
3917 case "${canonical}" in
3918 *-solaris* |
*-sunos5* )
3919 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3920 ## /usr/ucb/cc doesn't work;
3921 ## we should find some other compiler that does work.
3929 ## Intel 386 machines where we don't care about the manufacturer.
3932 case "${canonical}" in
3933 *-cygwin ) opsys
=cygwin
;;
3934 *-darwin* ) opsys
=darwin
3935 CPP
="${CC-cc} -E -no-cpp-precomp"
3937 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3938 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3939 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3940 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3949 ### If the code above didn't choose an operating system, just choose
3950 ### an operating system based on the configuration name. You really
3951 ### only want to use this when you have no idea what the right
3952 ### operating system is; if you know what operating systems a machine
3953 ### runs, it's cleaner to make it explicit in the case statement
3955 if test x
"${opsys}" = x
; then
3956 case "${canonical}" in
3957 *-gnu* ) opsys
=gnu
;;
3966 if test $unported = yes; then
3967 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
3968 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3971 if test -n "$machine"; then
3972 machfile
="m/${machine}.h"
3976 opsysfile
="s/${opsys}.h"
3979 #### Choose a compiler.
3980 test -n "$CC" && cc_specified
=yes
3982 # Save the value of CFLAGS that the user specified.
3983 SPECIFIED_CFLAGS
="$CFLAGS"
3986 ac_cpp
='$CPP $CPPFLAGS'
3987 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_prog_CC+:} false
; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC
="$CC" # Let the user override the test.
4001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir
=.
4006 for ac_exec_ext
in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 if test -n "$CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4029 if test -z "$ac_cv_prog_CC"; then
4031 # Extract the first word of "gcc", so it can be a program name with args.
4032 set dummy gcc
; ac_word
=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4036 $as_echo_n "(cached) " >&6
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir
=.
4046 for ac_exec_ext
in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_ac_ct_CC
="gcc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4067 if test "x$ac_ct_CC" = x
; then
4070 case $cross_compiling:$ac_tool_warned in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned
=yes ;;
4082 if test -z "$CC"; then
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4085 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC
="$CC" # Let the user override the test.
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4123 if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc
; ac_word
=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_CC+:} false
; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC
="$CC" # Let the user override the test.
4135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir
=.
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected
=yes
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test $ac_prog_rejected = yes; then
4155 # We found a bogon in the path, so make sure we never use it.
4156 set dummy
$ac_cv_prog_CC
4158 if test $# != 0; then
4159 # We chose a different compiler from the bogus one.
4160 # However, it has the same basename, so the bogon will be chosen
4161 # first if we set CC to just the basename; use the full file name.
4163 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$CC"; then
4180 if test -n "$ac_tool_prefix"; then
4181 for ac_prog
in cl.exe
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_CC+:} false
; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC
="$CC" # Let the user override the test.
4193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir
=.
4198 for ac_exec_ext
in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 if test -n "$CC"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213 $as_echo "$CC" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4220 test -n "$CC" && break
4223 if test -z "$CC"; then
4225 for ac_prog
in cl.exe
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy
$ac_prog; ac_word
=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$ac_ct_CC"; then
4235 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_ac_ct_CC
="$ac_prog"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 $as_echo "$ac_ct_CC" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4264 test -n "$ac_ct_CC" && break
4267 if test "x$ac_ct_CC" = x
; then
4270 case $cross_compiling:$ac_tool_warned in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274 ac_tool_warned
=yes ;;
4283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $?
"no acceptable C compiler found in \$PATH
4286 See \`config.log' for more details" "$LINENO" 5; }
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4292 for ac_option
in --version -v -V -qversion; do
4293 { { ac_try
="$ac_compiler $ac_option >&5"
4295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4302 if test -s conftest.err; then
4304 ... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4308 rm -f conftest.er1 conftest.err
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4324 ac_clean_files_save=$ac_clean_files
4325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4326 # Try to create an executable without -o first, disregard a.out.
4327 # It will help us diagnose broken compilers, and finding out an intuition
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4330 $as_echo_n "checking whether the C compiler works... " >&6; }
4331 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4333 # The possible output files:
4334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4337 for ac_file in $ac_files
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4341 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4346 if { { ac_try="$ac_link_default"
4348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4349 *) ac_try_echo
=$ac_try;;
4351 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_link_default") 2>&5
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4358 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4359 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4360 # so that the user can short-circuit this test for compilers unknown to
4362 for ac_file
in $ac_files ''
4364 test -f "$ac_file" ||
continue
4366 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4369 # We found the default executable, but exeext='' is most
4373 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4375 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 # We set ac_cv_exeext here because the later test for it is not
4378 # safe: cross compilers may not add the suffix if given an `-o'
4379 # argument, so we may need to know it at that point already.
4380 # Even if this section looks crufty: it has the advantage of
4387 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4392 if test -z "$ac_file"; then :
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.
$ac_ext >&5
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400 as_fn_error
77 "C compiler cannot create executables
4401 See \`config.log' for more details" "$LINENO" 5; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4404 $as_echo "yes" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4407 $as_echo_n "checking for C compiler default output file name... " >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4409 $as_echo "$ac_file" >&6; }
4410 ac_exeext
=$ac_cv_exeext
4412 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4413 ac_clean_files
=$ac_clean_files_save
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4415 $as_echo_n "checking for suffix of executables... " >&6; }
4416 if { { ac_try
="$ac_link"
4418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_link") 2>&5
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; }; then :
4427 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4428 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4429 # work properly (i.e., refer to `conftest.exe'), while it won't with
4431 for ac_file
in conftest.exe conftest conftest.
*; do
4432 test -f "$ac_file" ||
continue
4434 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4435 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4444 See \`config.log' for more details" "$LINENO" 5; }
4446 rm -f conftest conftest
$ac_cv_exeext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4448 $as_echo "$ac_cv_exeext" >&6; }
4450 rm -f conftest.
$ac_ext
4451 EXEEXT
=$ac_cv_exeext
4453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4459 FILE *f = fopen ("conftest.out", "w");
4460 return ferror (f) || fclose (f) != 0;
4466 ac_clean_files
="$ac_clean_files conftest.out"
4467 # Check that the compiler produces executables we can run. If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 if test "$cross_compiling" != yes; then
4472 { { ac_try
="$ac_link"
4474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_link") 2>&5
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4483 if { ac_try='./conftest$ac_cv_exeext'
4484 { { case "(($ac_try" in
4485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4486 *) ac_try_echo
=$ac_try;;
4488 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_try") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; }; then
4496 if test "$cross_compiling" = maybe
; then
4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error $?
"cannot run C compiled programs.
4502 If you meant to cross compile, use \`--host'.
4503 See \`config.log' for more details" "$LINENO" 5; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4510 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4511 ac_clean_files
=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4513 $as_echo_n "checking for suffix of object files... " >&6; }
4514 if ${ac_cv_objext+:} false
; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4528 rm -f conftest.o conftest.obj
4529 if { { ac_try
="$ac_compile"
4531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 $as_echo "$ac_try_echo"; } >&5
4536 (eval "$ac_compile") 2>&5
4538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }; then :
4540 for ac_file in conftest.o conftest.obj conftest.*; do
4541 test -f "$ac_file" || continue;
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4555 See \
`config.log' for more details" "$LINENO" 5; }
4557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560 $as_echo "$ac_cv_objext" >&6; }
4561 OBJEXT=$ac_cv_objext
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4565 if ${ac_cv_c_compiler_gnu+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4582 if ac_fn_c_try_compile "$LINENO"; then :
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4593 if test $ac_compiler_gnu = yes; then
4598 ac_test_CFLAGS=${CFLAGS+set}
4599 ac_save_CFLAGS=$CFLAGS
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4602 if ${ac_cv_prog_cc_g+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 ac_save_c_werror_flag=$ac_c_werror_flag
4606 ac_c_werror_flag=yes
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4620 if ac_fn_c_try_compile "$LINENO"; then :
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4635 if ac_fn_c_try_compile "$LINENO"; then :
4638 ac_c_werror_flag=$ac_save_c_werror_flag
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4651 if ac_fn_c_try_compile "$LINENO"; then :
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 ac_c_werror_flag=$ac_save_c_werror_flag
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4662 $as_echo "$ac_cv_prog_cc_g" >&6; }
4663 if test "$ac_test_CFLAGS" = set; then
4664 CFLAGS=$ac_save_CFLAGS
4665 elif test $ac_cv_prog_cc_g = yes; then
4666 if test "$GCC" = yes; then
4672 if test "$GCC" = yes; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4680 if ${ac_cv_prog_cc_c89+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 ac_cv_prog_cc_c89=no
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 #include <sys/stat.h>
4691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4692 struct buf { int x; };
4693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4694 static char *e (p, i)
4700 static char *f (char * (*g) (char **, int), char **p, ...)
4705 s = g (p, va_arg (v,int));
4710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4711 function prototypes and stuff, but not '\xHH' hex character constants.
4712 These don't provoke an error unfortunately, instead are silently treated
4713 as 'x'. The following induces an error, until -std is added to get
4714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4715 array size at least. It's necessary to write '\x00'==0 to get something
4716 that's true only with -std. */
4717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4720 inside strings and character constants. */
4722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4724 int test (int i, double x);
4725 struct s1 {int (*f) (int a);};
4726 struct s2 {int (*f) (double a);};
4727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4741 CC="$ac_save_CC $ac_arg"
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_prog_cc_c89=$ac_arg
4745 rm -f core conftest.err conftest.$ac_objext
4746 test "x$ac_cv_prog_cc_c89" != "xno" && break
4748 rm -f conftest.$ac_ext
4753 case "x$ac_cv_prog_cc_c89" in
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756 $as_echo "none needed" >&6; } ;;
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 $as_echo "unsupported" >&6; } ;;
4761 CC="$CC $ac_cv_prog_cc_c89"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4765 if test "x$ac_cv_prog_cc_c89" != xno; then :
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 DEPDIR="${am__leading_dot}deps"
4776 ac_config_commands="$ac_config_commands depfiles"
4779 am_make=${MAKE-make}
4780 cat > confinc << 'END'
4782 @echo this is the am__doit target
4785 # If we don't find an include directive, just comment out the code.
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4787 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4791 # First try GNU make style include.
4792 echo "include confinc" > confmf
4793 # Ignore all kinds of additional output from `make'.
4794 case `$am_make -s -f confmf 2> /dev/null` in #(
4795 *the\ am__doit\ target*)
4801 # Now try BSD make style include.
4802 if test "$am__include" = "#"; then
4803 echo '.include
"confinc"' > confmf
4804 case `$am_make -s -f confmf 2> /dev/null` in #(
4805 *the\ am__doit\ target*)
4806 am__include=.include
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4815 $as_echo "$_am_result" >&6; }
4816 rm -f confinc confmf
4818 # Check whether --enable-dependency-tracking was given.
4819 if test "${enable_dependency_tracking+set}" = set; then :
4820 enableval=$enable_dependency_tracking;
4823 if test "x$enable_dependency_tracking" != xno; then
4824 am_depcomp="$ac_aux_dir/depcomp"
4827 if test "x$enable_dependency_tracking" != xno
; then
4837 depcc
="$CC" am_compiler_list
=
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4842 $as_echo_n "(cached) " >&6
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named `D' -- because `-MD' means `put the output
4851 # Copy depcomp to subdir because otherwise we won't find it if we're
4852 # using a relative directory.
4853 cp "$am_depcomp" conftest.dir
4855 # We will build objects and dependencies in a subdirectory because
4856 # it helps to detect inapplicable dependency modes. For instance
4857 # both Tru64's cc and ICC support -MD to output dependencies as a
4858 # side effect of compilation, but ICC will put the dependencies in
4859 # the current directory while Tru64 will put them in the object
4863 am_cv_CC_dependencies_compiler_type
=none
4864 if test "$am_compiler_list" = ""; then
4865 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 case " $depcc " in #(
4869 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4872 for depmode
in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4881 for i
in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4884 # Solaris 8's {/usr,}/bin/sh.
4885 touch sub
/conftst
$i.h
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle `-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs
4893 am__obj
=sub
/conftest.
${OBJEXT-o}
4894 am__minus_obj
="-o $am__obj"
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false ||
continue
4901 # after this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested
4903 if test "x$enable_dependency_tracking" = xyes
; then
4909 msvisualcpp | msvcmsys
)
4910 # This compiler won't grok `-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj
=conftest.
${OBJEXT-o}
4918 if depmode
=$depmode \
4919 source=sub
/conftest.c object
=$am__obj \
4920 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4921 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4922 >/dev
/null
2>conftest.err
&&
4923 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4924 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4925 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4926 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4936 am_cv_CC_dependencies_compiler_type
=$depmode
4945 am_cv_CC_dependencies_compiler_type
=none
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4957 am__fastdepCC_FALSE
='#'
4959 am__fastdepCC_TRUE
='#'
4960 am__fastdepCC_FALSE
=
4964 if test "x$CC" != xcc
; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4966 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4969 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4971 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4972 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4973 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4987 # Make sure it works both with $CC and with simple cc.
4988 # We do the test twice because some compilers refuse to overwrite an
4989 # existing .o file with -o, though they will create one.
4990 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4992 if { { case "(($ac_try" in
4993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997 $as_echo "$ac_try_echo"; } >&5
4998 (eval "$ac_try") 2>&5
5000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; } &&
5002 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5004 *) ac_try_echo
=$ac_try;;
5006 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5007 $as_echo "$ac_try_echo"; } >&5
5008 (eval "$ac_try") 2>&5
5010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011 test $ac_status = 0; };
5013 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5014 if test "x$CC" != xcc
; then
5015 # Test first that cc exists at all.
5016 if { ac_try
='cc -c conftest.$ac_ext >&5'
5017 { { case "(($ac_try" in
5018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5022 $as_echo "$ac_try_echo"; } >&5
5023 (eval "$ac_try") 2>&5
5025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026 test $ac_status = 0; }; }; then
5027 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5029 if { { case "(($ac_try" in
5030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5031 *) ac_try_echo
=$ac_try;;
5033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034 $as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_try") 2>&5
5037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5038 test $ac_status = 0; } &&
5039 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_try") 2>&5
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; };
5053 # cc exists but doesn't like -o.
5054 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5059 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5061 rm -f core conftest*
5064 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5071 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5075 # FIXME: we rely on the cache variable name because
5076 # there is no other way.
5078 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5079 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5080 if test "$am_t" != yes; then
5081 # Losing compiler, so override with the script.
5082 # FIXME: It is wrong to rewrite CC.
5083 # But if we don't then we get into trouble of one sort or another.
5084 # A longer-term fix would be to have automake use am__CC in this case,
5085 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5086 CC="$am_aux_dir/compile $CC"
5091 # Initialize gnulib right after verifying that the C compiler works.
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_RANLIB+:} false; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$RANLIB"; then
5101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 RANLIB=$ac_cv_prog_RANLIB
5121 if test -n "$RANLIB"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5123 $as_echo "$RANLIB" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5131 if test -z "$ac_cv_prog_RANLIB"; then
5132 ac_ct_RANLIB=$RANLIB
5133 # Extract the first word of "ranlib", so it can be a program name with args.
5134 set dummy ranlib; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_RANLIB"; then
5141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_RANLIB="ranlib"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5161 if test -n "$ac_ct_RANLIB"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5163 $as_echo "$ac_ct_RANLIB" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5169 if test "x$ac_ct_RANLIB" = x; then
5172 case $cross_compiling:$ac_tool_warned in
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5178 RANLIB=$ac_ct_RANLIB
5181 RANLIB="$ac_cv_prog_RANLIB"
5186 # Code from module dummy:
5189 # On Suns, sometimes $CPP names a directory.
5190 if test -n "$CPP" && test -d "$CPP"; then
5194 ## If not using gcc, and on Solaris, and no CPP specified, see if
5195 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5196 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5197 test x"$CPP" = x; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5199 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5201 if ${emacs_cv_sunpro_c+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5218 if ac_fn_c_try_link "$LINENO"; then :
5219 emacs_cv_sunpro_c=yes
5221 emacs_cv_sunpro_c=no
5223 rm -f core conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5228 $as_echo "$emacs_cv_sunpro_c" >&6; }
5230 if test x"$emacs_cv_sunpro_c" = xyes; then
5231 NON_GNU_CPP="$CC -E -Xs"
5235 #### Some systems specify a CPP to use unless we are using GCC.
5236 #### Now that we know whether we are using GCC, we can decide whether
5237 #### to use that one.
5238 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5243 #### Some systems specify a CC to use unless we are using GCC.
5244 #### Now that we know whether we are using GCC, we can decide whether
5245 #### to use that one.
5246 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5247 test x$cc_specified != xyes
5252 if test x$GCC = xyes; then
5253 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5255 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5265 # On Suns, sometimes $CPP names a directory.
5266 if test -n "$CPP" && test -d "$CPP"; then
5269 if test -z "$CPP"; then
5270 if ${ac_cv_prog_CPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 # Double quotes because CPP needs to be expanded
5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5277 for ac_c_preproc_warn_flag in '' yes
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5288 # include <limits.h>
5290 # include <assert.h>
5294 if ac_fn_c_try_cpp "$LINENO"; then :
5297 # Broken: fails on valid input.
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5308 if ac_fn_c_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5312 # Passes both tests.
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.
$ac_ext
5321 if $ac_preproc_ok; then :
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5334 $as_echo "$CPP" >&6; }
5336 for ac_c_preproc_warn_flag
in '' yes
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5347 # include <limits.h>
5349 # include <assert.h>
5353 if ac_fn_c_try_cpp
"$LINENO"; then :
5356 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.i conftest.
$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5367 if ac_fn_c_try_cpp
"$LINENO"; then :
5368 # Broken: success on invalid input.
5371 # Passes both tests.
5375 rm -f conftest.err conftest.i conftest.
$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.
$ac_ext
5380 if $ac_preproc_ok; then :
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5390 ac_cpp
='$CPP $CPPFLAGS'
5391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found
=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_prog
in grep ggrep
; do
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5412 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5417 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5420 $as_echo_n 0123456789 >"conftest.in"
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5428 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5429 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP
="$ac_path_GREP"
5433 ac_path_GREP_max
=$ac_count
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5438 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5441 $ac_path_GREP_found && break 3
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 ac_cv_path_GREP
=$GREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP
="$ac_cv_path_GREP"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false
; then :
5462 $as_echo_n "(cached) " >&6
5464 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5465 then ac_cv_path_EGREP
="$GREP -E"
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found
=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_prog
in egrep; do
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5483 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5486 $as_echo_n 0123456789 >"conftest.in"
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5495 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP
="$ac_path_EGREP"
5499 ac_path_EGREP_max
=$ac_count
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5507 $ac_path_EGREP_found && break 3
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 ac_cv_path_EGREP
=$EGREP
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP
="$ac_cv_path_EGREP"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5547 ac_cv_header_stdc
=yes
5549 ac_cv_header_stdc
=no
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev
/null
2>&1; then :
5564 ac_cv_header_stdc
=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev
/null
2>&1; then :
5581 ac_cv_header_stdc
=no
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5619 if ac_fn_c_try_run
"$LINENO"; then :
5622 ac_cv_header_stdc
=no
5624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5640 inttypes.h stdint.h unistd.h
5642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5645 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5646 cat >>confdefs.h
<<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5664 if test "$MINIX" = yes; then
5666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5672 $as_echo "#define _MINIX 1" >>confdefs.h
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5679 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5685 # define __EXTENSIONS__ 1
5686 $ac_includes_default
5695 if ac_fn_c_try_compile
"$LINENO"; then :
5696 ac_cv_safe_to_define___extensions__
=yes
5698 ac_cv_safe_to_define___extensions__
=no
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5704 test $ac_cv_safe_to_define___extensions__ = yes &&
5705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5717 ### Use -Wno-pointer-sign if the compiler supports it
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5719 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5720 SAVE_CFLAGS
="$CFLAGS"
5721 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5733 if ac_fn_c_try_compile
"$LINENO"; then :
5738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 if test $has_option = yes; then
5740 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5743 $as_echo "$has_option" >&6; }
5744 CFLAGS
="$SAVE_CFLAGS"
5748 ### Use -Wdeclaration-after-statement if the compiler supports it
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5750 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5751 SAVE_CFLAGS
="$CFLAGS"
5752 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 if test $has_option = yes; then
5771 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5774 $as_echo "$has_option" >&6; }
5775 CFLAGS
="$SAVE_CFLAGS"
5779 ### Use -Wold-style-definition if the compiler supports it
5780 # This can be removed when conversion to standard C is finished.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5782 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5783 SAVE_CFLAGS
="$CFLAGS"
5784 CFLAGS
="$CFLAGS -Wold-style-definition"
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5796 if ac_fn_c_try_compile
"$LINENO"; then :
5801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 if test $has_option = yes; then
5803 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5806 $as_echo "$has_option" >&6; }
5807 CFLAGS
="$SAVE_CFLAGS"
5811 ### Use -Wimplicit-function-declaration if the compiler supports it
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5813 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5814 SAVE_CFLAGS
="$CFLAGS"
5815 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
5816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5827 if ac_fn_c_try_compile
"$LINENO"; then :
5832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5833 if test $has_option = yes; then
5834 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5837 $as_echo "$has_option" >&6; }
5838 CFLAGS
="$SAVE_CFLAGS"
5845 #### Some other nice autoconf tests.
5848 ac_cpp
='$CPP $CPPFLAGS'
5849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5854 # On Suns, sometimes $CPP names a directory.
5855 if test -n "$CPP" && test -d "$CPP"; then
5858 if test -z "$CPP"; then
5859 if ${ac_cv_prog_CPP+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 # Double quotes because CPP needs to be expanded
5863 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5866 for ac_c_preproc_warn_flag
in '' yes
5868 # Use a header file that comes with gcc, so configuring glibc
5869 # with a fresh cross-compiler works.
5870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5871 # <limits.h> exists even on freestanding compilers.
5872 # On the NeXT, cc -E runs the code through the compiler's parser,
5873 # not just through cpp. "Syntax error" is here to catch this case.
5874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5877 # include <limits.h>
5879 # include <assert.h>
5883 if ac_fn_c_try_cpp
"$LINENO"; then :
5886 # Broken: fails on valid input.
5889 rm -f conftest.err conftest.i conftest.
$ac_ext
5891 # OK, works on sane cases. Now check whether nonexistent headers
5892 # can be detected and how.
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <ac_nonexistent.h>
5897 if ac_fn_c_try_cpp
"$LINENO"; then :
5898 # Broken: success on invalid input.
5901 # Passes both tests.
5905 rm -f conftest.err conftest.i conftest.
$ac_ext
5908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5909 rm -f conftest.i conftest.err conftest.
$ac_ext
5910 if $ac_preproc_ok; then :
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5923 $as_echo "$CPP" >&6; }
5925 for ac_c_preproc_warn_flag
in '' yes
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5936 # include <limits.h>
5938 # include <assert.h>
5942 if ac_fn_c_try_cpp
"$LINENO"; then :
5945 # Broken: fails on valid input.
5948 rm -f conftest.err conftest.i conftest.
$ac_ext
5950 # OK, works on sane cases. Now check whether nonexistent headers
5951 # can be detected and how.
5952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #include <ac_nonexistent.h>
5956 if ac_fn_c_try_cpp
"$LINENO"; then :
5957 # Broken: success on invalid input.
5960 # Passes both tests.
5964 rm -f conftest.err conftest.i conftest.
$ac_ext
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.i conftest.err conftest.
$ac_ext
5969 if $ac_preproc_ok; then :
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5975 See \`config.log' for more details" "$LINENO" 5; }
5979 ac_cpp
='$CPP $CPPFLAGS'
5980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5985 if test "x$RANLIB" = x
; then
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_RANLIB+:} false
; then :
5992 $as_echo_n "(cached) " >&6
5994 if test -n "$RANLIB"; then
5995 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir
=.
6002 for ac_exec_ext
in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 RANLIB
=$ac_cv_prog_RANLIB
6015 if test -n "$RANLIB"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6017 $as_echo "$RANLIB" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6025 if test -z "$ac_cv_prog_RANLIB"; then
6026 ac_ct_RANLIB
=$RANLIB
6027 # Extract the first word of "ranlib", so it can be a program name with args.
6028 set dummy ranlib
; ac_word
=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6032 $as_echo_n "(cached) " >&6
6034 if test -n "$ac_ct_RANLIB"; then
6035 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir
=.
6042 for ac_exec_ext
in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6055 if test -n "$ac_ct_RANLIB"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6057 $as_echo "$ac_ct_RANLIB" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6063 if test "x$ac_ct_RANLIB" = x
; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned
=yes ;;
6072 RANLIB
=$ac_ct_RANLIB
6075 RANLIB
="$ac_cv_prog_RANLIB"
6080 ## Although we're running on an amd64 kernel, we're actually compiling for
6081 ## the x86 architecture. The user should probably have provided an
6082 ## explicit --build to `configure', but if everything else than the kernel
6083 ## is running in i386 mode, we can help them out.
6084 if test "$machine" = "amdx86-64"; then
6085 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6086 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6090 if test "$ac_cv_have_decl_i386" = "yes"; then
6091 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6093 machfile
="m/${machine}.h"
6097 # Extract the first word of "install-info", so it can be a program name with args.
6098 set dummy install-info
; ac_word
=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6102 $as_echo_n "(cached) " >&6
6104 case $INSTALL_INFO in
6106 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir
=.
6114 for ac_exec_ext
in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6128 if test -n "$INSTALL_INFO"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6130 $as_echo "$INSTALL_INFO" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6137 # Extract the first word of "install-info", so it can be a program name with args.
6138 set dummy install-info
; ac_word
=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6142 $as_echo_n "(cached) " >&6
6144 case $INSTALL_INFO in
6146 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6150 for as_dir
in /usr
/sbin
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6168 if test -n "$INSTALL_INFO"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6170 $as_echo "$INSTALL_INFO" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6177 # Extract the first word of "install-info", so it can be a program name with args.
6178 set dummy install-info
; ac_word
=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6182 $as_echo_n "(cached) " >&6
6184 case $INSTALL_INFO in
6186 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir
=.
6194 for ac_exec_ext
in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6208 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6209 if test -n "$INSTALL_INFO"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6211 $as_echo "$INSTALL_INFO" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6218 # Extract the first word of "gzip", so it can be a program name with args.
6219 set dummy
gzip; ac_word
=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6227 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir
=.
6235 for ac_exec_ext
in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6249 if test -n "$GZIP_PROG"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6251 $as_echo "$GZIP_PROG" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6260 ## Need makeinfo >= 4.6 (?) to build the manuals.
6261 # Extract the first word of "makeinfo", so it can be a program name with args.
6262 set dummy makeinfo
; ac_word
=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_path_MAKEINFO+:} false
; then :
6266 $as_echo_n "(cached) " >&6
6270 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir
=.
6278 for ac_exec_ext
in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6292 MAKEINFO
=$ac_cv_path_MAKEINFO
6293 if test -n "$MAKEINFO"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6295 $as_echo "$MAKEINFO" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6302 if test "$MAKEINFO" != "no" && \
6303 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
6307 ## Makeinfo is unusual. For a released Emacs, the manuals are
6308 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6309 ## therefore in the category of "special tools" not normally required, which
6310 ## configure does not have to check for (eg autoconf itself).
6311 ## In a Bazaar checkout on the other hand, the manuals are not included.
6312 ## So makeinfo is a requirement to build from Bazaar, and configure
6313 ## should test for it as it does for any other build requirement.
6314 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6315 ## with pre-built manuals, from a Bazaar checkout.
6318 if test "$MAKEINFO" = "no"; then
6320 if test "x${with_makeinfo}" = "xno"; then
6322 elif test ! -e $srcdir/info
/emacs
; then
6323 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6324 source tree does not seem to have pre-built manuals in the \`info' directory.
6325 Either install a suitable version of makeinfo, or re-run configure
6326 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6332 if test x
$GCC = xyes
; then
6333 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6334 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6336 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6337 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6341 late_LDFLAGS
=$LDFLAGS
6342 if test x
$GCC = xyes
; then
6343 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6345 LDFLAGS
="$LDFLAGS -znocombreloc"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6349 $as_echo_n "checking for -znocombreloc... " >&6; }
6350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6361 if ac_fn_c_try_link
"$LINENO"; then :
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6363 $as_echo "yes" >&6; }
6365 LDFLAGS
=$late_LDFLAGS
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6369 rm -f core conftest.err conftest.
$ac_objext \
6370 conftest
$ac_exeext conftest.
$ac_ext
6373 # The value of CPP is a quoted variable reference, so we need to do this
6374 # to get its actual value...
6375 CPP
=`eval "echo $CPP"`
6383 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6390 UNEXEC_OBJ
=unexelf.o
6392 # MSDOS uses unexcoff.o
6393 # MSWindows uses unexw32.o
6395 UNEXEC_OBJ
=unexaix.o
6401 UNEXEC_OBJ
=unexmacosx.o
6404 UNEXEC_OBJ
=unexhp9k800.o
6407 # Use the Solaris dldump() function, called from unexsol.c, to dump
6408 # emacs, instead of the generic ELF dump code found in unexelf.c.
6409 # The resulting binary has a complete symbol table, and is better
6410 # for debugging and other observability tools (debuggers, pstack, etc).
6412 # If you encounter a problem using dldump(), please consider sending
6413 # a message to the OpenSolaris tools-linking mailing list:
6414 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6416 # It is likely that dldump() works with older Solaris too, but this has
6417 # not been tested, so for now this change is for Solaris 10 or newer.
6418 UNEXEC_OBJ
=unexsol.o
6425 ## Let `ld' find image libs and similar things in /usr/local/lib.
6426 ## The system compiler, GCC, has apparently been modified to not
6427 ## look there, contrary to what a stock GCC would do.
6428 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6432 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6433 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6437 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6441 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6442 ## otherwise Emacs dumps core on elf systems.
6443 LD_SWITCH_SYSTEM
="-Z"
6448 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6450 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6451 ## which has not been defined yet. When this was handled with cpp,
6452 ## it was expanded to null when configure sourced the s/*.h file.
6453 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6454 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6455 ## (or somesuch), but because it is supposed to go at the _front_
6456 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6457 ## Compare with the gnu-linux case below, which added to the end
6458 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6459 ## LD_SWITCH_SYSTEM_TEMACS.
6462 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6463 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6468 if test "$machine" = "alpha"; then
6469 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6470 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6474 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6475 ## With ELF, make sure that all common symbols get allocated to in the
6476 ## data section. Otherwise, the dump of temacs may miss variables in
6477 ## the shared library that have been initialized. For example, with
6478 ## GNU libc, __malloc_initialized would normally be resolved to the
6479 ## shared library's .bss section, which is fatal.
6480 if test "x$GCC" = "xyes"; then
6481 C_SWITCH_MACHINE
="-fno-common"
6483 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6486 UNEXEC_OBJ
=unexalpha.o
6494 ## Some programs in src produce warnings saying certain subprograms
6495 ## are too complex and need a MAXMEM value greater than 2000 for
6496 ## additional optimization. --nils@exp-math.uni-essen.de
6497 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6498 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6499 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6500 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6506 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6507 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6509 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6511 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6513 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
6515 ## Motif needs -lgen.
6516 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6521 ### Make sure subsequent tests use flags consistent with the build flags.
6523 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6524 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6526 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6531 # Check whether --enable-largefile was given.
6532 if test "${enable_largefile+set}" = set; then :
6533 enableval
=$enable_largefile;
6536 if test "$enable_largefile" != no
; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6539 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6540 if ${ac_cv_sys_largefile_CC+:} false
; then :
6541 $as_echo_n "(cached) " >&6
6543 ac_cv_sys_largefile_CC
=no
6544 if test "$GCC" != yes; then
6547 # IRIX 6.2 and later do not support large files by default,
6548 # so use the C compiler's -n32 option if that helps.
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 /* Check that off_t can represent 2**63 - 1 correctly.
6553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6554 since some C++ compilers masquerading as C compilers
6555 incorrectly reject 9223372036854775807. */
6556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6558 && LARGE_OFF_T % 2147483647 == 1)
6568 if ac_fn_c_try_compile
"$LINENO"; then :
6571 rm -f core conftest.err conftest.
$ac_objext
6573 if ac_fn_c_try_compile
"$LINENO"; then :
6574 ac_cv_sys_largefile_CC
=' -n32'; break
6576 rm -f core conftest.err conftest.
$ac_objext
6580 rm -f conftest.
$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6584 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6585 if test "$ac_cv_sys_largefile_CC" != no
; then
6586 CC
=$CC$ac_cv_sys_largefile_CC
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6590 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6591 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6592 $as_echo_n "(cached) " >&6
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 /* Check that off_t can represent 2**63 - 1 correctly.
6599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6600 since some C++ compilers masquerading as C compilers
6601 incorrectly reject 9223372036854775807. */
6602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6604 && LARGE_OFF_T % 2147483647 == 1)
6614 if ac_fn_c_try_compile
"$LINENO"; then :
6615 ac_cv_sys_file_offset_bits
=no
; break
6617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #define _FILE_OFFSET_BITS 64
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6638 if ac_fn_c_try_compile
"$LINENO"; then :
6639 ac_cv_sys_file_offset_bits
=64; break
6641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6642 ac_cv_sys_file_offset_bits
=unknown
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6647 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6648 case $ac_cv_sys_file_offset_bits in #(
6651 cat >>confdefs.h
<<_ACEOF
6652 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6657 if test $ac_cv_sys_file_offset_bits = unknown
; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6659 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6660 if ${ac_cv_sys_large_files+:} false
; then :
6661 $as_echo_n "(cached) " >&6
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <sys/types.h>
6667 /* Check that off_t can represent 2**63 - 1 correctly.
6668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6669 since some C++ compilers masquerading as C compilers
6670 incorrectly reject 9223372036854775807. */
6671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6673 && LARGE_OFF_T % 2147483647 == 1)
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 ac_cv_sys_large_files
=no
; break
6686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #define _LARGE_FILES 1
6690 #include <sys/types.h>
6691 /* Check that off_t can represent 2**63 - 1 correctly.
6692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6693 since some C++ compilers masquerading as C compilers
6694 incorrectly reject 9223372036854775807. */
6695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6697 && LARGE_OFF_T % 2147483647 == 1)
6707 if ac_fn_c_try_compile
"$LINENO"; then :
6708 ac_cv_sys_large_files
=1; break
6710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 ac_cv_sys_large_files
=unknown
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6716 $as_echo "$ac_cv_sys_large_files" >&6; }
6717 case $ac_cv_sys_large_files in #(
6720 cat >>confdefs.h
<<_ACEOF
6721 #define _LARGE_FILES $ac_cv_sys_large_files
6731 ## If user specified a crt-dir, use that unconditionally.
6732 if test "X$CRT_DIR" = "X"; then
6734 case "$canonical" in
6735 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6736 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6737 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6738 ## For anything else (eg /usr/lib32), it is up the user to specify
6739 ## the location (bug#5655).
6740 ## Test for crtn.o, not just the directory, because sometimes the
6741 ## directory exists but does not have the relevant files (bug#1287).
6742 ## FIXME better to test for binary compatibility somehow.
6743 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6746 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6750 hpux10-20
) CRT_DIR
=/lib
;;
6753 ## Default is /usr/lib.
6754 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6758 ## Some platforms don't use any of these files, so it is not
6759 ## appropriate to put this test outside the if block.
6760 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6761 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
6774 START_FILES
='pre-crt0.o'
6777 ## Adding -lm confuses the dynamic linker, so omit it.
6779 START_FILES
='pre-crt0.o'
6782 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6783 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6785 gnu-linux | gnu-kfreebsd
)
6786 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6787 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6789 hpux10-20 | hpux11
)
6791 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
6794 if test -f $CRT_DIR/crti.o
; then
6795 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6796 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6798 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6799 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6810 if test "${with_sound}" != "no"; then
6811 # Sound support for GNU/Linux and the free BSDs.
6812 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6814 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6816 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6817 cat >>confdefs.h
<<_ACEOF
6818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6820 have_sound_header
=yes
6825 # Emulation library used on NetBSD.
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6827 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6828 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
6829 $as_echo_n "(cached) " >&6
6831 ac_check_lib_save_LIBS
=$LIBS
6832 LIBS
="-lossaudio $LIBS"
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6836 /* Override any GCC internal prototype to avoid an error.
6837 Use char because int might match the return type of a GCC
6838 builtin and then its argument prototype would still apply. */
6846 return _oss_ioctl ();
6851 if ac_fn_c_try_link
"$LINENO"; then :
6852 ac_cv_lib_ossaudio__oss_ioctl
=yes
6854 ac_cv_lib_ossaudio__oss_ioctl
=no
6856 rm -f core conftest.err conftest.
$ac_objext \
6857 conftest
$ac_exeext conftest.
$ac_ext
6858 LIBS
=$ac_check_lib_save_LIBS
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6861 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6862 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
6871 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6875 # Extract the first word of "pkg-config", so it can be a program name with args.
6876 set dummy pkg-config
; ac_word
=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6880 $as_echo_n "(cached) " >&6
6884 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir
=.
6892 for ac_exec_ext
in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6906 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6907 if test -n "$PKG_CONFIG"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6909 $as_echo "$PKG_CONFIG" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6917 if test "$PKG_CONFIG" = "no" ; then
6920 PKG_CONFIG_MIN_VERSION
=0.9.0
6921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6923 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6925 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6927 $as_echo "yes" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6931 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6932 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6934 $as_echo "$ALSA_CFLAGS" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6937 $as_echo_n "checking ALSA_LIBS... " >&6; }
6938 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6940 $as_echo "$ALSA_LIBS" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 ## If we have a custom action on failure, don't print errors, but
6947 ## do set a variable so people can do so.
6948 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6955 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6956 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6960 if test $succeeded = yes; then
6966 if test $HAVE_ALSA = yes; then
6967 SAVE_CFLAGS
="$CFLAGS"
6968 SAVE_LDFLAGS
="$LDFLAGS"
6969 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6970 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 #include <asoundlib.h>
6977 snd_lib_error_set_handler (0);
6982 if ac_fn_c_try_compile
"$LINENO"; then :
6983 emacs_alsa_normal
=yes
6985 emacs_alsa_normal
=no
6987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6988 if test "$emacs_alsa_normal" != yes; then
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #include <alsa/asoundlib.h>
6995 snd_lib_error_set_handler (0);
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7001 emacs_alsa_subdir
=yes
7003 emacs_alsa_subdir
=no
7005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7006 if test "$emacs_alsa_subdir" != yes; then
7007 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7009 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7012 CFLAGS
="$SAVE_CFLAGS"
7013 LDFLAGS
="$SAVE_LDFLAGS"
7014 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7015 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7017 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7021 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7023 gnu-linux|freebsd|netbsd
)
7025 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7034 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7035 linux
/version.h sys
/systeminfo.h limits.h \
7036 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7037 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7038 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7042 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7043 cat >>confdefs.h
<<_ACEOF
7044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7053 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <sys/personality.h>
7060 personality (PER_LINUX32)
7065 if ac_fn_c_try_compile
"$LINENO"; then :
7066 emacs_cv_personality_linux32
=yes
7068 emacs_cv_personality_linux32
=no
7070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7072 $as_echo "$emacs_cv_personality_linux32" >&6; }
7074 if test $emacs_cv_personality_linux32 = yes; then
7076 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7080 for ac_header
in term.h
7082 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7083 if test "x$ac_cv_header_term_h" = xyes
; then :
7084 cat >>confdefs.h
<<_ACEOF
7085 #define HAVE_TERM_H 1
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7093 $as_echo_n "checking for ANSI C header files... " >&6; }
7094 if ${ac_cv_header_stdc+:} false
; then :
7095 $as_echo_n "(cached) " >&6
7097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7112 if ac_fn_c_try_compile
"$LINENO"; then :
7113 ac_cv_header_stdc
=yes
7115 ac_cv_header_stdc
=no
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 if test $ac_cv_header_stdc = yes; then
7120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "memchr" >/dev
/null
2>&1; then :
7130 ac_cv_header_stdc
=no
7136 if test $ac_cv_header_stdc = yes; then
7137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 $EGREP "free" >/dev
/null
2>&1; then :
7147 ac_cv_header_stdc
=no
7153 if test $ac_cv_header_stdc = yes; then
7154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7155 if test "$cross_compiling" = yes; then :
7158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7162 #if ((' ' & 0x0FF) == 0x020)
7163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7166 # define ISLOWER(c) \
7167 (('a' <= (c) && (c) <= 'i') \
7168 || ('j' <= (c) && (c) <= 'r') \
7169 || ('s' <= (c) && (c) <= 'z'))
7170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7178 for (i = 0; i < 256; i++)
7179 if (XOR (islower (i), ISLOWER (i))
7180 || toupper (i) != TOUPPER (i))
7185 if ac_fn_c_try_run
"$LINENO"; then :
7188 ac_cv_header_stdc
=no
7190 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7191 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7197 $as_echo "$ac_cv_header_stdc" >&6; }
7198 if test $ac_cv_header_stdc = yes; then
7200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7205 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7206 if ${ac_cv_header_time+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <sys/time.h>
7218 if ((struct tm *) 0)
7224 if ac_fn_c_try_compile
"$LINENO"; then :
7225 ac_cv_header_time
=yes
7227 ac_cv_header_time
=no
7229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7232 $as_echo "$ac_cv_header_time" >&6; }
7233 if test $ac_cv_header_time = yes; then
7235 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7239 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7240 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7246 cat >>confdefs.h
<<_ACEOF
7247 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7250 if test $ac_cv_have_decl_sys_siglist != yes; then
7251 # For Tru64, at least:
7252 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7253 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7259 cat >>confdefs.h
<<_ACEOF
7260 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7263 if test $ac_cv_have_decl___sys_siglist = yes; then
7265 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7270 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7271 if ${ac_cv_header_sys_wait_h+:} false
; then :
7272 $as_echo_n "(cached) " >&6
7274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <sys/types.h>
7277 #include <sys/wait.h>
7279 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7282 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7290 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7295 if ac_fn_c_try_compile
"$LINENO"; then :
7296 ac_cv_header_sys_wait_h
=yes
7298 ac_cv_header_sys_wait_h
=no
7300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7303 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7304 if test $ac_cv_header_sys_wait_h = yes; then
7306 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7312 $as_echo_n "checking for struct utimbuf... " >&6; }
7313 if ${emacs_cv_struct_utimbuf+:} false
; then :
7314 $as_echo_n "(cached) " >&6
7316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #ifdef TIME_WITH_SYS_TIME
7319 #include <sys/time.h>
7322 #ifdef HAVE_SYS_TIME_H
7323 #include <sys/time.h>
7334 static struct utimbuf x; x.actime = x.modtime;
7339 if ac_fn_c_try_compile
"$LINENO"; then :
7340 emacs_cv_struct_utimbuf
=yes
7342 emacs_cv_struct_utimbuf
=no
7344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7347 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7348 if test $emacs_cv_struct_utimbuf = yes; then
7350 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7355 $as_echo_n "checking return type of signal handlers... " >&6; }
7356 if ${ac_cv_type_signal+:} false
; then :
7357 $as_echo_n "(cached) " >&6
7359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 #include <sys/types.h>
7367 return *(signal (0, 0)) (0) == 1;
7372 if ac_fn_c_try_compile
"$LINENO"; then :
7373 ac_cv_type_signal
=int
7375 ac_cv_type_signal
=void
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7380 $as_echo "$ac_cv_type_signal" >&6; }
7382 cat >>confdefs.h
<<_ACEOF
7383 #define RETSIGTYPE $ac_cv_type_signal
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7389 $as_echo_n "checking for speed_t... " >&6; }
7390 if ${emacs_cv_speed_t+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <termios.h>
7404 if ac_fn_c_try_compile
"$LINENO"; then :
7405 emacs_cv_speed_t
=yes
7409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7412 $as_echo "$emacs_cv_speed_t" >&6; }
7413 if test $emacs_cv_speed_t = yes; then
7415 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7420 $as_echo_n "checking for struct timeval... " >&6; }
7421 if ${emacs_cv_struct_timeval+:} false
; then :
7422 $as_echo_n "(cached) " >&6
7424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #ifdef TIME_WITH_SYS_TIME
7427 #include <sys/time.h>
7430 #ifdef HAVE_SYS_TIME_H
7431 #include <sys/time.h>
7439 static struct timeval x; x.tv_sec = x.tv_usec;
7444 if ac_fn_c_try_compile
"$LINENO"; then :
7445 emacs_cv_struct_timeval
=yes
7447 emacs_cv_struct_timeval
=no
7449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7452 $as_echo "$emacs_cv_struct_timeval" >&6; }
7453 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7454 if test $emacs_cv_struct_timeval = yes; then
7456 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7461 $as_echo_n "checking for struct exception... " >&6; }
7462 if ${emacs_cv_struct_exception+:} false
; then :
7463 $as_echo_n "(cached) " >&6
7465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7471 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7476 if ac_fn_c_try_compile
"$LINENO"; then :
7477 emacs_cv_struct_exception
=yes
7479 emacs_cv_struct_exception
=no
7481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7484 $as_echo "$emacs_cv_struct_exception" >&6; }
7485 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7486 if test $emacs_cv_struct_exception != yes; then
7488 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7492 for ac_header
in sys
/socket.h
7494 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7495 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7496 cat >>confdefs.h
<<_ACEOF
7497 #define HAVE_SYS_SOCKET_H 1
7504 for ac_header
in net
/if.h
7506 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7507 #if HAVE_SYS_SOCKET_H
7508 #include <sys/socket.h>
7511 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7512 cat >>confdefs.h
<<_ACEOF
7513 #define HAVE_NET_IF_H 1
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7522 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7523 if ${ac_cv_struct_tm+:} false
; then :
7524 $as_echo_n "(cached) " >&6
7526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #include <sys/types.h>
7535 int *p = &tm.tm_sec;
7541 if ac_fn_c_try_compile
"$LINENO"; then :
7542 ac_cv_struct_tm
=time.h
7544 ac_cv_struct_tm
=sys
/time.h
7546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7549 $as_echo "$ac_cv_struct_tm" >&6; }
7550 if test $ac_cv_struct_tm = sys
/time.h
; then
7552 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7556 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7557 #include <$ac_cv_struct_tm>
7560 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7562 cat >>confdefs.h
<<_ACEOF
7563 #define HAVE_STRUCT_TM_TM_ZONE 1
7569 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7571 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7574 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7576 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7582 cat >>confdefs.h
<<_ACEOF
7583 #define HAVE_DECL_TZNAME $ac_have_decl
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7587 $as_echo_n "checking for tzname... " >&6; }
7588 if ${ac_cv_var_tzname+:} false
; then :
7589 $as_echo_n "(cached) " >&6
7591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7594 #if !HAVE_DECL_TZNAME
7595 extern char *tzname[];
7601 return tzname[0][0];
7606 if ac_fn_c_try_link
"$LINENO"; then :
7607 ac_cv_var_tzname
=yes
7611 rm -f core conftest.err conftest.
$ac_objext \
7612 conftest
$ac_exeext conftest.
$ac_ext
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7615 $as_echo "$ac_cv_var_tzname" >&6; }
7616 if test $ac_cv_var_tzname = yes; then
7618 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7623 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7625 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7627 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7631 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7632 #if HAVE_SYS_SOCKET_H
7633 #include <sys/socket.h>
7639 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
7641 cat >>confdefs.h
<<_ACEOF
7642 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7647 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7648 #if HAVE_SYS_SOCKET_H
7649 #include <sys/socket.h>
7655 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
7657 cat >>confdefs.h
<<_ACEOF
7658 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7663 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7664 #if HAVE_SYS_SOCKET_H
7665 #include <sys/socket.h>
7671 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
7673 cat >>confdefs.h
<<_ACEOF
7674 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7679 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7687 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
7689 cat >>confdefs.h
<<_ACEOF
7690 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7695 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7696 #if HAVE_SYS_SOCKET_H
7697 #include <sys/socket.h>
7703 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
7705 cat >>confdefs.h
<<_ACEOF
7706 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7715 $as_echo_n "checking for function prototypes... " >&6; }
7716 if test "$ac_cv_prog_cc_c89" != no
; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718 $as_echo "yes" >&6; }
7720 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7723 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7731 $as_echo_n "checking for working volatile... " >&6; }
7732 if ${ac_cv_c_volatile+:} false
; then :
7733 $as_echo_n "(cached) " >&6
7735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7743 int * volatile y = (int *) 0;
7749 if ac_fn_c_try_compile
"$LINENO"; then :
7750 ac_cv_c_volatile
=yes
7754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7757 $as_echo "$ac_cv_c_volatile" >&6; }
7758 if test $ac_cv_c_volatile = no
; then
7760 $as_echo "#define volatile /**/" >>confdefs.h
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7766 if ${ac_cv_c_const+:} false
; then :
7767 $as_echo_n "(cached) " >&6
7769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7775 /* FIXME: Include the comments suggested by Paul. */
7777 /* Ultrix mips cc rejects this. */
7778 typedef int charset[2];
7780 /* SunOS 4.1.1 cc rejects this. */
7781 char const *const *pcpcc;
7783 /* NEC SVR4.0.2 mips cc rejects this. */
7784 struct point {int x, y;};
7785 static struct point const zero = {0,0};
7786 /* AIX XL C 1.02.0.0 rejects this.
7787 It does not let you subtract one const X* pointer from another in
7788 an arm of an if-expression whose if-part is not a constant
7790 const char *g = "string";
7791 pcpcc = &g + (g ? g-g : 0);
7792 /* HPUX 7.0 cc rejects these. */
7794 ppc = (char**) pcpcc;
7795 pcpcc = (char const *const *) ppc;
7796 { /* SCO 3.2v4 cc rejects this. */
7798 char const *s = 0 ? (char *) 0 : (char const *) 0;
7803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7805 const int *foo = &x[0];
7808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7809 typedef const int *iptr;
7813 { /* AIX XL C 1.02.0.0 rejects this saying
7814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7815 struct s { int j; const int *ap[3]; };
7816 struct s *b; b->j = 5;
7818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7822 return !cs[0] && !zero.x;
7829 if ac_fn_c_try_compile
"$LINENO"; then :
7834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7837 $as_echo "$ac_cv_c_const" >&6; }
7838 if test $ac_cv_c_const = no
; then
7840 $as_echo "#define const /**/" >>confdefs.h
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7845 $as_echo_n "checking for void * support... " >&6; }
7846 if ${emacs_cv_void_star+:} false
; then :
7847 $as_echo_n "(cached) " >&6
7849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7860 if ac_fn_c_try_compile
"$LINENO"; then :
7861 emacs_cv_void_star
=yes
7863 emacs_cv_void_star
=no
7865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7868 $as_echo "$emacs_cv_void_star" >&6; }
7869 if test $emacs_cv_void_star = yes; then
7870 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7873 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7878 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7879 if ${ac_cv_c_bigendian+:} false
; then :
7880 $as_echo_n "(cached) " >&6
7882 ac_cv_c_bigendian
=unknown
7883 # See if we're dealing with a universal compiler.
7884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 #ifndef __APPLE_CC__
7887 not a universal capable compiler
7892 if ac_fn_c_try_compile
"$LINENO"; then :
7894 # Check for potential -arch flags. It is not universal unless
7895 # there are at least two -arch flags with different values.
7898 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7899 if test -n "$ac_prev"; then
7901 i?
86 | x86_64 | ppc | ppc64
)
7902 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7905 ac_cv_c_bigendian
=universal
7911 elif test "x$ac_word" = "x-arch"; then
7916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 if test $ac_cv_c_bigendian = unknown
; then
7918 # See if sys/param.h defines the BYTE_ORDER macro.
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #include <sys/types.h>
7922 #include <sys/param.h>
7927 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7928 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7937 if ac_fn_c_try_compile
"$LINENO"; then :
7938 # It does; now see whether it defined to BIG_ENDIAN or not.
7939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <sys/types.h>
7942 #include <sys/param.h>
7947 #if BYTE_ORDER != BIG_ENDIAN
7955 if ac_fn_c_try_compile
"$LINENO"; then :
7956 ac_cv_c_bigendian
=yes
7958 ac_cv_c_bigendian
=no
7960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7964 if test $ac_cv_c_bigendian = unknown
; then
7965 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7973 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7981 if ac_fn_c_try_compile
"$LINENO"; then :
7982 # It does; now see whether it defined to _BIG_ENDIAN or not.
7983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7998 if ac_fn_c_try_compile
"$LINENO"; then :
7999 ac_cv_c_bigendian
=yes
8001 ac_cv_c_bigendian
=no
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 if test $ac_cv_c_bigendian = unknown
; then
8008 # Compile a test program.
8009 if test "$cross_compiling" = yes; then :
8010 # Try to guess by grepping values from an object file.
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 short int ascii_mm[] =
8014 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8015 short int ascii_ii[] =
8016 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8017 int use_ascii (int i) {
8018 return ascii_mm[i] + ascii_ii[i];
8020 short int ebcdic_ii[] =
8021 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8022 short int ebcdic_mm[] =
8023 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8024 int use_ebcdic (int i) {
8025 return ebcdic_mm[i] + ebcdic_ii[i];
8032 return use_ascii (foo) == use_ebcdic (foo);
8037 if ac_fn_c_try_compile
"$LINENO"; then :
8038 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8039 ac_cv_c_bigendian
=yes
8041 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8042 if test "$ac_cv_c_bigendian" = unknown
; then
8043 ac_cv_c_bigendian
=no
8045 # finding both strings is unlikely to happen, but who knows?
8046 ac_cv_c_bigendian
=unknown
8050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 $ac_includes_default
8059 /* Are we little or big endian? From Harbison&Steele. */
8063 char c[sizeof (long int)];
8066 return u.c[sizeof (long int) - 1] == 1;
8072 if ac_fn_c_try_run
"$LINENO"; then :
8073 ac_cv_c_bigendian
=no
8075 ac_cv_c_bigendian
=yes
8077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8084 $as_echo "$ac_cv_c_bigendian" >&6; }
8085 case $ac_cv_c_bigendian in #(
8087 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8093 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8097 as_fn_error $?
"unknown endianness
8098 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8105 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8106 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8107 $as_echo_n "(cached) " >&6
8109 cat >conftest.
make <<\_ACEOF
8112 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8117 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8119 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8123 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125 $as_echo "yes" >&6; }
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 SET_MAKE
="MAKE=${MAKE-make}"
8137 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8139 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8141 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8142 if test "x$testval" != x
; then
8145 ac_enable_autodepend
=no
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8148 $as_echo "$HAVE_GNU_MAKE" >&6; }
8149 if test $HAVE_GNU_MAKE = yes; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8151 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8152 SAVE_CFLAGS
="$CFLAGS"
8153 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8165 if ac_fn_c_try_compile
"$LINENO"; then :
8168 ac_enable_autodepend
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8171 CFLAGS
="$SAVE_CFLAGS"
8172 test -f deps.d || ac_enable_autodepend
=no
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8175 $as_echo "$ac_enable_autodepend" >&6; }
8177 if test $ac_enable_autodepend = yes; then
8178 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8179 ## In parallel builds, another make might create depdir between
8180 ## the first test and mkdir, so stick another test on the end.
8181 ## Or use mkinstalldirs? mkdir -p is not portable.
8182 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8183 deps_frag
=autodeps.mk
8186 deps_frag
=$srcdir/src
/$deps_frag
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8193 $as_echo_n "checking for long file names... " >&6; }
8194 if ${ac_cv_sys_long_file_names+:} false
; then :
8195 $as_echo_n "(cached) " >&6
8197 ac_cv_sys_long_file_names
=yes
8198 # Test for long file names in all the places we know might matter:
8199 # . the current directory, where building will happen
8200 # $prefix/lib where we will be installing things
8201 # $exec_prefix/lib likewise
8202 # $TMPDIR if set, where it might want to write temporary files
8203 # /tmp where it might want to write temporary files
8206 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8207 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8208 # in the usual case where exec_prefix is '${prefix}'.
8210 . |
/* | ?
:[\\/]*) ;; #(
8213 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8214 ac_xdir
=$ac_dir/cf$$
8215 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8216 ac_tf1
=$ac_xdir/conftest9012345
8217 ac_tf2
=$ac_xdir/conftest9012346
8218 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8219 ac_cv_sys_long_file_names
=no
8220 rm -f -r "$ac_xdir" 2>/dev
/null
8221 test $ac_cv_sys_long_file_names = no
&& break
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8225 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8226 if test $ac_cv_sys_long_file_names = yes; then
8228 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8233 #### Choose a window system.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8236 $as_echo_n "checking for X... " >&6; }
8239 # Check whether --with-x was given.
8240 if test "${with_x+set}" = set; then :
8244 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8245 if test "x$with_x" = xno
; then
8246 # The user explicitly disabled X.
8249 case $x_includes,$x_libraries in #(
8250 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8251 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8252 $as_echo_n "(cached) " >&6
8254 # One or both of the vars are not set, and there is no cached value.
8255 ac_x_includes
=no ac_x_libraries
=no
8256 rm -f -r conftest.dir
8257 if mkdir conftest.dir
; then
8259 cat >Imakefile
<<'_ACEOF'
8261 @echo incroot='${INCROOT}'
8263 @echo usrlibdir='${USRLIBDIR}'
8265 @echo libdir='${LIBDIR}'
8267 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8269 for ac_var
in incroot usrlibdir libdir
; do
8270 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8272 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8273 for ac_extension
in a so sl dylib la dll
; do
8274 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8275 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8276 ac_im_usrlibdir
=$ac_im_libdir; break
8279 # Screen out bogus values from the imake configuration. They are
8280 # bogus both because they are the default anyway, and because
8281 # using them would break gcc on systems where it needs fixed includes.
8282 case $ac_im_incroot in
8283 /usr
/include
) ac_x_includes
= ;;
8284 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8286 case $ac_im_usrlibdir in
8287 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8288 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8292 rm -f -r conftest.dir
8295 # Standard set of common directories for X headers.
8296 # Check X11 before X11Rn because it is often a symlink to the current release.
8310 /usr/local/X11/include
8311 /usr/local/X11R7/include
8312 /usr/local/X11R6/include
8313 /usr/local/X11R5/include
8314 /usr/local/X11R4/include
8316 /usr/local/include/X11
8317 /usr/local/include/X11R7
8318 /usr/local/include/X11R6
8319 /usr/local/include/X11R5
8320 /usr/local/include/X11R4
8324 /usr/XFree86/include/X11
8328 /usr/unsupported/include
8330 /usr/local/x11r5/include
8331 /usr/lpp/Xamples/include
8333 /usr/openwin/include
8334 /usr/openwin/share/include'
8336 if test "$ac_x_includes" = no
; then
8337 # Guess where to find include files, by looking for Xlib.h.
8338 # First, try using that file with no special directory specified.
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 #include <X11/Xlib.h>
8343 if ac_fn_c_try_cpp
"$LINENO"; then :
8344 # We can compile using X headers with no special include directory.
8347 for ac_dir
in $ac_x_header_dirs; do
8348 if test -r "$ac_dir/X11/Xlib.h"; then
8349 ac_x_includes
=$ac_dir
8354 rm -f conftest.err conftest.i conftest.
$ac_ext
8355 fi # $ac_x_includes = no
8357 if test "$ac_x_libraries" = no
; then
8358 # Check for the libraries.
8359 # See if we find them without any special options.
8360 # Don't add to $LIBS permanently.
8363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 #include <X11/Xlib.h>
8374 if ac_fn_c_try_link
"$LINENO"; then :
8376 # We can link X programs with no special library path.
8380 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8382 # Don't even attempt the hair of trying to link an X program!
8383 for ac_extension
in a so sl dylib la dll
; do
8384 if test -r "$ac_dir/libX11.$ac_extension"; then
8385 ac_x_libraries
=$ac_dir
8391 rm -f core conftest.err conftest.
$ac_objext \
8392 conftest
$ac_exeext conftest.
$ac_ext
8393 fi # $ac_x_libraries = no
8395 case $ac_x_includes,$ac_x_libraries in #(
8397 # Didn't find X, or a directory has "'" in its name.
8398 ac_cv_have_x
="have_x=no";; #(
8400 # Record where we found X for the cache.
8401 ac_cv_have_x
="have_x=yes\
8402 ac_x_includes='$ac_x_includes'\
8403 ac_x_libraries='$ac_x_libraries'"
8409 eval "$ac_cv_have_x"
8412 if test "$have_x" != yes; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8414 $as_echo "$have_x" >&6; }
8417 # If each of the values was on the command line, it overrides each guess.
8418 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8419 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8420 # Update the cache value to reflect the command line values.
8421 ac_cv_have_x
="have_x=yes\
8422 ac_x_includes='$x_includes'\
8423 ac_x_libraries='$x_libraries'"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8425 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8428 if test "$no_x" = yes; then
8434 ## Workaround for bug in autoconf <= 2.62.
8435 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8436 ## No need to do anything special for these standard directories.
8437 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8439 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8443 LD_SWITCH_X_SITE_AUX
=
8444 LD_SWITCH_X_SITE_AUX_RPATH
=
8445 if test "${x_libraries}" != NONE
; then
8446 if test -n "${x_libraries}"; then
8447 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8448 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8449 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8451 x_default_search_path
=""
8452 x_search_path
=${x_libraries}
8453 if test -z "${x_search_path}"; then
8454 x_search_path
=/usr
/lib
8456 for x_library
in `echo ${x_search_path}: | \
8457 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8459 ${x_library}/X11/%L/%T/%N%C%S:\
8460 ${x_library}/X11/%l/%T/%N%C%S:\
8461 ${x_library}/X11/%T/%N%C%S:\
8462 ${x_library}/X11/%L/%T/%N%S:\
8463 ${x_library}/X11/%l/%T/%N%S:\
8464 ${x_library}/X11/%T/%N%S"
8465 if test x
"${x_default_search_path}" = x
; then
8466 x_default_search_path
=${x_search_path}
8468 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8475 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8476 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8479 if test x
"${x_includes}" = x
; then
8480 bitmapdir
=/usr
/include
/X11
/bitmaps
8482 # accumulate include directories that have X11 bitmap subdirectories
8484 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8485 if test -d "${bmd}/X11/bitmaps"; then
8486 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8488 if test -d "${bmd}/bitmaps"; then
8489 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8492 if test ${bmd_acc} != "dummyval"; then
8493 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8500 tmp_CPPFLAGS
="$CPPFLAGS"
8501 tmp_CFLAGS
="$CFLAGS"
8502 CPPFLAGS
="$CPPFLAGS -x objective-c"
8503 CFLAGS
="$CFLAGS -x objective-c"
8504 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8505 if test "${with_ns}" != no
; then
8506 if test "${opsys}" = darwin
; then
8508 ns_appdir
=`pwd`/nextstep
/Emacs.app
8509 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8510 ns_appresdir
=${ns_appdir}/Contents
/Resources
8511 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8512 elif test -f $GNUSTEP_CONFIG_FILE; then
8514 ns_appdir
=`pwd`/nextstep
/Emacs.app
8515 ns_appbindir
=${ns_appdir}/
8516 ns_appresdir
=${ns_appdir}/Resources
8517 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8518 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8519 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8520 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8521 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8522 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8523 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8524 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8525 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8526 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8527 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8528 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8533 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8534 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
8537 as_fn_error $?
"\`--with-ns' was specified, but the include
8538 files are missing or cannot be compiled." "$LINENO" 5
8542 NS_HAVE_NSINTEGER
=yes
8543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <Foundation/NSObjCRuntime.h>
8554 if ac_fn_c_try_compile
"$LINENO"; then :
8555 ns_have_nsinteger
=yes
8557 ns_have_nsinteger
=no
8559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8560 if test $ns_have_nsinteger = no
; then
8561 NS_HAVE_NSINTEGER
=no
8569 if test "${HAVE_NS}" = yes; then
8570 window_system
=nextstep
8572 # set up packaging dirs
8573 exec_prefix
=${ns_appbindir}
8574 libexecdir
=${ns_appbindir}/libexec
8575 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8576 prefix
=${ns_appresdir}
8578 ns_frag
=$srcdir/src
/ns.mk
8579 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8580 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8582 CFLAGS
="$tmp_CFLAGS"
8583 CPPFLAGS
="$tmp_CPPFLAGS"
8589 case "${window_system}" in
8593 case "${with_x_toolkit}" in
8594 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8595 motif
) USE_X_TOOLKIT
=MOTIF
;;
8597 USE_X_TOOLKIT
=none
;;
8598 gtk3
) with_gtk3
=yes
8599 USE_X_TOOLKIT
=none
;;
8600 no
) USE_X_TOOLKIT
=none
;;
8601 * ) USE_X_TOOLKIT
=maybe
;;
8611 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8612 # Extract the first word of "X", so it can be a program name with args.
8613 set dummy X
; ac_word
=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
8617 $as_echo_n "(cached) " >&6
8619 if test -n "$HAVE_XSERVER"; then
8620 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8626 test -z "$as_dir" && as_dir
=.
8627 for ac_exec_ext
in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_prog_HAVE_XSERVER
="true"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8640 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8641 if test -n "$HAVE_XSERVER"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8643 $as_echo "$HAVE_XSERVER" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8650 if test "$HAVE_XSERVER" = true ||
8651 test -n "$DISPLAY" ||
8652 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8653 as_fn_error $?
"You seem to be running X, but no X development libraries
8654 were found. You should install the relevant development files for X
8655 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8656 sure you have development files for image handling, i.e.
8657 tiff, gif, jpeg, png and xpm.
8658 If you are sure you want Emacs compiled without X window support, pass
8660 to configure." "$LINENO" 5
8664 ### If we're using X11, we should use the X menu package.
8667 yes ) HAVE_MENUS
=yes ;;
8670 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8671 # Assume not, until told otherwise.
8674 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8675 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
8681 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8682 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8689 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8690 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
8691 $as_echo_n "(cached) " >&6
8693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 extern void (* __after_morecore_hook)();
8699 __after_morecore_hook = 0
8704 if ac_fn_c_try_link
"$LINENO"; then :
8705 emacs_cv_var___after_morecore_hook
=yes
8707 emacs_cv_var___after_morecore_hook
=no
8709 rm -f core conftest.err conftest.
$ac_objext \
8710 conftest
$ac_exeext conftest.
$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8713 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8714 if test $emacs_cv_var___after_morecore_hook = no
; then
8721 ## darwin ld insists on the use of malloc routines in the System framework.
8722 darwin|sol2-10
) system_malloc
=yes ;;
8725 if test "${system_malloc}" = "yes"; then
8727 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8731 (The GNU allocators don't work with this system configuration.)"
8735 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
8736 VMLIMIT_OBJ
=vm-limit.o
8741 if test "$doug_lea_malloc" = "yes" ; then
8742 if test "$GNU_MALLOC" = yes ; then
8744 (Using Doug Lea's new malloc from the GNU C Library.)"
8747 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8750 ## Use mmap directly for allocating larger buffers.
8751 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8752 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8753 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8755 gnu
*) REL_ALLOC
=no
;;
8759 if test x
"${REL_ALLOC}" = x
; then
8760 REL_ALLOC
=${GNU_MALLOC}
8763 use_mmap_for_buffers
=no
8765 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
8771 for ac_header
in $ac_header_list
8773 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8776 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8777 cat >>confdefs.h
<<_ACEOF
8778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8792 for ac_func
in getpagesize
8794 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8795 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8796 cat >>confdefs.h
<<_ACEOF
8797 #define HAVE_GETPAGESIZE 1
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8804 $as_echo_n "checking for working mmap... " >&6; }
8805 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8808 if test "$cross_compiling" = yes; then :
8809 ac_cv_func_mmap_fixed_mapped
=no
8811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8840 #include <sys/mman.h>
8842 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #ifndef HAVE_GETPAGESIZE
8848 # ifdef _SC_PAGESIZE
8849 # define getpagesize() sysconf(_SC_PAGESIZE)
8850 # else /* no _SC_PAGESIZE */
8851 # ifdef HAVE_SYS_PARAM_H
8852 # include <sys/param.h>
8853 # ifdef EXEC_PAGESIZE
8854 # define getpagesize() EXEC_PAGESIZE
8855 # else /* no EXEC_PAGESIZE */
8857 # define getpagesize() NBPG * CLSIZE
8860 # endif /* no CLSIZE */
8861 # else /* no NBPG */
8863 # define getpagesize() NBPC
8864 # else /* no NBPC */
8866 # define getpagesize() PAGESIZE
8867 # endif /* PAGESIZE */
8868 # endif /* no NBPC */
8869 # endif /* no NBPG */
8870 # endif /* no EXEC_PAGESIZE */
8871 # else /* no HAVE_SYS_PARAM_H */
8872 # define getpagesize() 8192 /* punt totally */
8873 # endif /* no HAVE_SYS_PARAM_H */
8874 # endif /* no _SC_PAGESIZE */
8876 #endif /* no HAVE_GETPAGESIZE */
8881 char *data, *data2, *data3;
8886 pagesize = getpagesize ();
8888 /* First, make a file with some known garbage in it. */
8889 data = (char *) malloc (pagesize);
8892 for (i = 0; i < pagesize; ++i)
8893 *(data + i) = rand ();
8895 fd = creat ("conftest.mmap", 0600);
8898 if (write (fd, data, pagesize) != pagesize)
8902 /* Next, check that the tail of a page is zero-filled. File must have
8903 non-zero length, otherwise we risk SIGBUS for entire page. */
8904 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8908 if (write (fd2, cdata2, 1) != 1)
8910 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8911 if (data2 == MAP_FAILED)
8913 for (i = 0; i < pagesize; ++i)
8917 if (munmap (data2, pagesize))
8920 /* Next, try to mmap the file at a fixed address which already has
8921 something else allocated at it. If we can, also make sure that
8922 we see the same garbage. */
8923 fd = open ("conftest.mmap", O_RDWR);
8926 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8927 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8929 for (i = 0; i < pagesize; ++i)
8930 if (*(data + i) != *(data2 + i))
8933 /* Finally, make sure that changes to the mapped area do not
8934 percolate back to the file as seen by read(). (This is a bug on
8935 some variants of i386 svr4.0.) */
8936 for (i = 0; i < pagesize; ++i)
8937 *(data2 + i) = *(data2 + i) + 1;
8938 data3 = (char *) malloc (pagesize);
8941 if (read (fd, data3, pagesize) != pagesize)
8943 for (i = 0; i < pagesize; ++i)
8944 if (*(data + i) != *(data3 + i))
8950 if ac_fn_c_try_run
"$LINENO"; then :
8951 ac_cv_func_mmap_fixed_mapped
=yes
8953 ac_cv_func_mmap_fixed_mapped
=no
8955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8961 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8962 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8964 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8967 rm -f conftest.mmap conftest.txt
8969 if test $use_mmap_for_buffers = yes; then
8971 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8976 LIBS
="$LIBS_SYSTEM $LIBS"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8979 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8980 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
8981 $as_echo_n "(cached) " >&6
8983 ac_check_lib_save_LIBS
=$LIBS
8985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8998 return dnet_ntoa ();
9003 if ac_fn_c_try_link
"$LINENO"; then :
9004 ac_cv_lib_dnet_dnet_ntoa
=yes
9006 ac_cv_lib_dnet_dnet_ntoa
=no
9008 rm -f core conftest.err conftest.
$ac_objext \
9009 conftest
$ac_exeext conftest.
$ac_ext
9010 LIBS
=$ac_check_lib_save_LIBS
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9013 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9014 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_LIBDNET 1
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9025 $as_echo_n "checking for main in -lXbsd... " >&6; }
9026 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9027 $as_echo_n "(cached) " >&6
9029 ac_check_lib_save_LIBS
=$LIBS
9031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9043 if ac_fn_c_try_link
"$LINENO"; then :
9044 ac_cv_lib_Xbsd_main
=yes
9046 ac_cv_lib_Xbsd_main
=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_Xbsd_main" >&5
9053 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9054 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9055 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9060 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9061 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9062 $as_echo_n "(cached) " >&6
9064 ac_check_lib_save_LIBS
=$LIBS
9065 LIBS
="-lpthreads $LIBS"
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9084 if ac_fn_c_try_link
"$LINENO"; then :
9085 ac_cv_lib_pthreads_cma_open
=yes
9087 ac_cv_lib_pthreads_cma_open
=no
9089 rm -f core conftest.err conftest.
$ac_objext \
9090 conftest
$ac_exeext conftest.
$ac_ext
9091 LIBS
=$ac_check_lib_save_LIBS
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9094 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9095 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9096 cat >>confdefs.h
<<_ACEOF
9097 #define HAVE_LIBPTHREADS 1
9100 LIBS
="-lpthreads $LIBS"
9105 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9106 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9107 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9108 ## added to LIBS in configure would never contain the pthreads part,
9109 ## but the value used in Makefiles might. FIXME?
9111 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9112 ## be harmless on older versions of X where it happens to exist.
9113 test "$opsys" = "aix4-2" && \
9114 test $ac_cv_lib_pthreads_cma_open = yes && \
9115 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9121 $as_echo_n "checking for -bbigtoc option... " >&6; }
9122 if ${gdb_cv_bigtoc+:} false
; then :
9123 $as_echo_n "(cached) " >&6
9127 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9128 *) gdb_cv_bigtoc
=-bbigtoc ;;
9131 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9143 if ac_fn_c_try_link
"$LINENO"; then :
9148 rm -f core conftest.err conftest.
$ac_objext \
9149 conftest
$ac_exeext conftest.
$ac_ext
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9153 $as_echo "$gdb_cv_bigtoc" >&6; }
9157 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9158 # used for the tests that follow. We set them back to REAL_CFLAGS and
9159 # REAL_CPPFLAGS later on.
9161 REAL_CFLAGS
="$CFLAGS"
9162 REAL_CPPFLAGS
="$CPPFLAGS"
9164 if test "${HAVE_X11}" = "yes"; then
9165 DEFS
="$C_SWITCH_X_SITE $DEFS"
9166 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9168 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9169 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9171 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9172 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9173 # but it's more convenient here to set LD_RUN_PATH
9174 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9175 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9176 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9180 if test "${opsys}" = "gnu-linux"; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9182 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9189 XOpenDisplay ("foo");
9194 if ac_fn_c_try_link
"$LINENO"; then :
9195 xlinux_first_failure
=no
9197 xlinux_first_failure
=yes
9199 rm -f core conftest.err conftest.
$ac_objext \
9200 conftest
$ac_exeext conftest.
$ac_ext
9201 if test "${xlinux_first_failure}" = "yes"; then
9202 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9203 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9204 OLD_CPPFLAGS
="$CPPFLAGS"
9206 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9207 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9208 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9209 LIBS
="$LIBS -b i486-linuxaout"
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9216 XOpenDisplay ("foo");
9221 if ac_fn_c_try_link
"$LINENO"; then :
9222 xlinux_second_failure
=no
9224 xlinux_second_failure
=yes
9226 rm -f core conftest.err conftest.
$ac_objext \
9227 conftest
$ac_exeext conftest.
$ac_ext
9228 if test "${xlinux_second_failure}" = "yes"; then
9229 # If we get the same failure with -b, there is no use adding -b.
9230 # So take it out. This plays safe.
9231 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9232 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9233 CPPFLAGS
="$OLD_CPPFLAGS"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9239 $as_echo "yes" >&6; }
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9247 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9248 # header files included from there.
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9250 $as_echo_n "checking for Xkb... " >&6; }
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <X11/Xlib.h>
9254 #include <X11/XKBlib.h>
9258 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9263 if ac_fn_c_try_link
"$LINENO"; then :
9268 rm -f core conftest.err conftest.
$ac_objext \
9269 conftest
$ac_exeext conftest.
$ac_ext
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9271 $as_echo "$emacs_xkb" >&6; }
9272 if test $emacs_xkb = yes; then
9274 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9278 for ac_func
in XrmSetDatabase XScreenResourceString \
9279 XScreenNumberOfScreen XSetWMProtocols
9281 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9282 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9283 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9284 cat >>confdefs.h
<<_ACEOF
9285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9293 if test "${window_system}" = "x11"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9295 $as_echo_n "checking X11 version 6... " >&6; }
9296 if ${emacs_cv_x11_version_6+:} false
; then :
9297 $as_echo_n "(cached) " >&6
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <X11/Xlib.h>
9305 #if XlibSpecificationRelease < 6
9313 if ac_fn_c_try_link
"$LINENO"; then :
9314 emacs_cv_x11_version_6
=yes
9316 emacs_cv_x11_version_6
=no
9318 rm -f core conftest.err conftest.
$ac_objext \
9319 conftest
$ac_exeext conftest.
$ac_ext
9322 if test $emacs_cv_x11_version_6 = yes; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9324 $as_echo "6 or newer" >&6; }
9326 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9329 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9331 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9336 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9342 $as_echo "before 6" >&6; }
9347 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9349 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9350 if test "${with_rsvg}" != "no"; then
9351 RSVG_REQUIRED
=2.11.0
9352 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9357 # Extract the first word of "pkg-config", so it can be a program name with args.
9358 set dummy pkg-config
; ac_word
=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9362 $as_echo_n "(cached) " >&6
9366 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9373 test -z "$as_dir" && as_dir
=.
9374 for ac_exec_ext
in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9384 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9388 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9389 if test -n "$PKG_CONFIG"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9391 $as_echo "$PKG_CONFIG" >&6; }
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9399 if test "$PKG_CONFIG" = "no" ; then
9402 PKG_CONFIG_MIN_VERSION
=0.9.0
9403 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9405 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9407 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9409 $as_echo "yes" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9413 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9414 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9416 $as_echo "$RSVG_CFLAGS" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9419 $as_echo_n "checking RSVG_LIBS... " >&6; }
9420 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9422 $as_echo "$RSVG_LIBS" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9428 ## If we have a custom action on failure, don't print errors, but
9429 ## do set a variable so people can do so.
9430 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9442 if test $succeeded = yes; then
9451 if test $HAVE_RSVG = yes; then
9453 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9455 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9456 LIBS
="$RSVG_LIBS $LIBS"
9462 if test "${HAVE_X11}" = "yes"; then
9463 if test "${with_imagemagick}" != "no"; then
9464 IMAGEMAGICK_MODULE
="Wand"
9468 # Extract the first word of "pkg-config", so it can be a program name with args.
9469 set dummy pkg-config
; ac_word
=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9473 $as_echo_n "(cached) " >&6
9477 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir
=.
9485 for ac_exec_ext
in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9499 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9500 if test -n "$PKG_CONFIG"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9502 $as_echo "$PKG_CONFIG" >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9510 if test "$PKG_CONFIG" = "no" ; then
9513 PKG_CONFIG_MIN_VERSION
=0.9.0
9514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9516 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9518 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520 $as_echo "yes" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9524 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9525 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9527 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9530 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9531 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9533 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 IMAGEMAGICK_CFLAGS
=""
9539 ## If we have a custom action on failure, don't print errors, but
9540 ## do set a variable so people can do so.
9541 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9553 if test $succeeded = yes; then
9554 HAVE_IMAGEMAGICK
=yes
9562 if test $HAVE_IMAGEMAGICK = yes; then
9564 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9566 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9567 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9568 for ac_func
in MagickExportImagePixels
9570 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9571 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
9572 cat >>confdefs.h
<<_ACEOF
9573 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9585 if test "${with_gtk3}" = "yes"; then
9588 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9593 # Extract the first word of "pkg-config", so it can be a program name with args.
9594 set dummy pkg-config
; ac_word
=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9598 $as_echo_n "(cached) " >&6
9602 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9609 test -z "$as_dir" && as_dir
=.
9610 for ac_exec_ext
in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9624 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9625 if test -n "$PKG_CONFIG"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9627 $as_echo "$PKG_CONFIG" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9635 if test "$PKG_CONFIG" = "no" ; then
9638 PKG_CONFIG_MIN_VERSION
=0.9.0
9639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9641 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9643 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9645 $as_echo "yes" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9649 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9650 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9652 $as_echo "$GTK_CFLAGS" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9655 $as_echo_n "checking GTK_LIBS... " >&6; }
9656 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9658 $as_echo "$GTK_LIBS" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9664 ## If we have a custom action on failure, don't print errors, but
9665 ## do set a variable so people can do so.
9666 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9678 if test $succeeded = yes; then
9684 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9685 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9689 if test "$pkg_check_gtk" != "yes"; then
9691 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9694 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9699 # Extract the first word of "pkg-config", so it can be a program name with args.
9700 set dummy pkg-config
; ac_word
=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9704 $as_echo_n "(cached) " >&6
9708 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9715 test -z "$as_dir" && as_dir
=.
9716 for ac_exec_ext
in '' $ac_executable_extensions; do
9717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9730 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9731 if test -n "$PKG_CONFIG"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9733 $as_echo "$PKG_CONFIG" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9741 if test "$PKG_CONFIG" = "no" ; then
9744 PKG_CONFIG_MIN_VERSION
=0.9.0
9745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9747 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9749 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751 $as_echo "yes" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9755 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9756 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9758 $as_echo "$GTK_CFLAGS" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9761 $as_echo_n "checking GTK_LIBS... " >&6; }
9762 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9764 $as_echo "$GTK_LIBS" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9770 ## If we have a custom action on failure, don't print errors, but
9771 ## do set a variable so people can do so.
9772 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9784 if test $succeeded = yes; then
9790 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9791 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9797 if test x
"$pkg_check_gtk" = xyes
; then
9801 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9803 LIBS
="$GTK_LIBS $LIBS"
9805 for ac_func
in gtk_main
9807 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9808 if test "x$ac_cv_func_gtk_main" = xyes
; then :
9809 cat >>confdefs.h
<<_ACEOF
9810 #define HAVE_GTK_MAIN 1
9816 if test "${GTK_COMPILES}" != "yes"; then
9817 if test "$USE_X_TOOLKIT" != "maybe"; then
9818 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9823 $as_echo "#define USE_GTK 1" >>confdefs.h
9827 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9831 closing open displays. This is no problem if you just use
9832 one display, but if you use more than one and close one of them
9833 Emacs may crash." >&5
9834 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9835 closing open displays. This is no problem if you just use
9836 one display, but if you use more than one and close one of them
9837 Emacs may crash." >&2;}
9846 if test "${HAVE_GTK}" = "yes"; then
9848 if test "$with_toolkit_scroll_bars" != no
; then
9849 with_toolkit_scroll_bars
=yes
9852 HAVE_GTK_FILE_SELECTION
=no
9853 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9854 #include <gtk/gtk.h>
9856 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
9857 HAVE_GTK_FILE_SELECTION
=yes
9859 HAVE_GTK_FILE_SELECTION
=no
9862 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9863 for ac_func
in gtk_file_selection_new
9865 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9866 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
9867 cat >>confdefs.h
<<_ACEOF
9868 #define HAVE_GTK_FILE_SELECTION_NEW 1
9876 HAVE_GTK_AND_PTHREAD
=no
9877 for ac_header
in pthread.h
9879 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9880 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9881 cat >>confdefs.h
<<_ACEOF
9882 #define HAVE_PTHREAD_H 1
9889 if test "$ac_cv_header_pthread_h"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9891 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9892 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
9893 $as_echo_n "(cached) " >&6
9895 ac_check_lib_save_LIBS
=$LIBS
9896 LIBS
="-lpthread $LIBS"
9897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9906 char pthread_self ();
9910 return pthread_self ();
9915 if ac_fn_c_try_link
"$LINENO"; then :
9916 ac_cv_lib_pthread_pthread_self
=yes
9918 ac_cv_lib_pthread_pthread_self
=no
9920 rm -f core conftest.err conftest.
$ac_objext \
9921 conftest
$ac_exeext conftest.
$ac_ext
9922 LIBS
=$ac_check_lib_save_LIBS
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9925 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9926 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
9927 HAVE_GTK_AND_PTHREAD
=yes
9931 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9932 case "${canonical}" in
9934 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9937 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9941 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9942 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9943 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9944 gtk_orientable_set_orientation
9946 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9947 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9948 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9949 cat >>confdefs.h
<<_ACEOF
9950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9961 if test "${with_dbus}" = "yes"; then
9965 # Extract the first word of "pkg-config", so it can be a program name with args.
9966 set dummy pkg-config
; ac_word
=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9970 $as_echo_n "(cached) " >&6
9974 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9981 test -z "$as_dir" && as_dir
=.
9982 for ac_exec_ext
in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9996 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9997 if test -n "$PKG_CONFIG"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9999 $as_echo "$PKG_CONFIG" >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10007 if test "$PKG_CONFIG" = "no" ; then
10010 PKG_CONFIG_MIN_VERSION
=0.9.0
10011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10013 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10015 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10017 $as_echo "yes" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10021 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10022 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10024 $as_echo "$DBUS_CFLAGS" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10027 $as_echo_n "checking DBUS_LIBS... " >&6; }
10028 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10030 $as_echo "$DBUS_LIBS" >&6; }
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10036 ## If we have a custom action on failure, don't print errors, but
10037 ## do set a variable so people can do so.
10038 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10045 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10046 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10050 if test $succeeded = yes; then
10056 if test "$HAVE_DBUS" = yes; then
10057 LIBS
="$LIBS $DBUS_LIBS"
10059 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10061 for ac_func
in dbus_watch_get_unix_fd
10063 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10064 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10065 cat >>confdefs.h
<<_ACEOF
10066 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10072 DBUS_OBJ
=dbusbind.o
10078 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10082 # Extract the first word of "pkg-config", so it can be a program name with args.
10083 set dummy pkg-config
; ac_word
=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10087 $as_echo_n "(cached) " >&6
10089 case $PKG_CONFIG in
10091 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10095 for as_dir
in $PATH
10098 test -z "$as_dir" && as_dir
=.
10099 for ac_exec_ext
in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10113 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10114 if test -n "$PKG_CONFIG"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10116 $as_echo "$PKG_CONFIG" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10124 if test "$PKG_CONFIG" = "no" ; then
10127 PKG_CONFIG_MIN_VERSION
=0.9.0
10128 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10130 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10132 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134 $as_echo "yes" >&6; }
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10138 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10139 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10141 $as_echo "$GCONF_CFLAGS" >&6; }
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10144 $as_echo_n "checking GCONF_LIBS... " >&6; }
10145 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10147 $as_echo "$GCONF_LIBS" >&6; }
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10153 ## If we have a custom action on failure, don't print errors, but
10154 ## do set a variable so people can do so.
10155 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10162 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10163 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10167 if test $succeeded = yes; then
10173 if test "$HAVE_GCONF" = yes; then
10175 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10177 for ac_func
in g_type_init
10179 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10180 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10181 cat >>confdefs.h
<<_ACEOF
10182 #define HAVE_G_TYPE_INIT 1
10193 if test "${with_selinux}" = "yes"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10195 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10196 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10197 $as_echo_n "(cached) " >&6
10199 ac_check_lib_save_LIBS
=$LIBS
10200 LIBS
="-lselinux $LIBS"
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10210 char lgetfilecon ();
10214 return lgetfilecon ();
10219 if ac_fn_c_try_link
"$LINENO"; then :
10220 ac_cv_lib_selinux_lgetfilecon
=yes
10222 ac_cv_lib_selinux_lgetfilecon
=no
10224 rm -f core conftest.err conftest.
$ac_objext \
10225 conftest
$ac_exeext conftest.
$ac_ext
10226 LIBS
=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10229 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10230 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10231 HAVE_LIBSELINUX
=yes
10236 if test "$HAVE_LIBSELINUX" = yes; then
10238 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10240 LIBSELINUX_LIBS
=-lselinux
10246 if test "${with_gnutls}" = "yes" ; then
10250 # Extract the first word of "pkg-config", so it can be a program name with args.
10251 set dummy pkg-config
; ac_word
=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10255 $as_echo_n "(cached) " >&6
10257 case $PKG_CONFIG in
10259 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10263 for as_dir
in $PATH
10266 test -z "$as_dir" && as_dir
=.
10267 for ac_exec_ext
in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10281 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10282 if test -n "$PKG_CONFIG"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10284 $as_echo "$PKG_CONFIG" >&6; }
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10292 if test "$PKG_CONFIG" = "no" ; then
10295 PKG_CONFIG_MIN_VERSION
=0.9.0
10296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10298 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10300 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10306 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10307 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10309 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10312 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10313 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10315 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 LIBGNUTLS_CFLAGS
=""
10321 ## If we have a custom action on failure, don't print errors, but
10322 ## do set a variable so people can do so.
10323 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10335 if test $succeeded = yes; then
10341 if test "${HAVE_GNUTLS}" = "yes"; then
10343 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10352 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10353 if test "$with_xaw3d" != no
; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10355 $as_echo_n "checking for xaw3d... " >&6; }
10356 if ${emacs_cv_xaw3d+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10362 #include <X11/Intrinsic.h>
10363 #include <X11/Xaw3d/Simple.h>
10372 if ac_fn_c_try_link
"$LINENO"; then :
10377 rm -f core conftest.err conftest.
$ac_objext \
10378 conftest
$ac_exeext conftest.
$ac_ext
10384 if test $emacs_cv_xaw3d = yes; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10386 $as_echo "yes; using Lucid toolkit" >&6; }
10387 USE_X_TOOLKIT
=LUCID
10391 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10397 $as_echo_n "checking for libXaw... " >&6; }
10398 if ${emacs_cv_xaw+:} false
; then :
10399 $as_echo_n "(cached) " >&6
10401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 #include <X11/Intrinsic.h>
10405 #include <X11/Xaw/Simple.h>
10414 if ac_fn_c_try_link
"$LINENO"; then :
10419 rm -f core conftest.err conftest.
$ac_objext \
10420 conftest
$ac_exeext conftest.
$ac_ext
10423 if test $emacs_cv_xaw = yes; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10425 $as_echo "yes; using Lucid toolkit" >&6; }
10426 USE_X_TOOLKIT
=LUCID
10428 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10429 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10432 $as_echo "no; do not use toolkit by default" >&6; }
10438 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10441 if test "${USE_X_TOOLKIT}" != "none"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10443 $as_echo_n "checking X11 toolkit version... " >&6; }
10444 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10445 $as_echo_n "(cached) " >&6
10447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 #include <X11/Intrinsic.h>
10453 #if XtSpecificationRelease < 6
10461 if ac_fn_c_try_link
"$LINENO"; then :
10462 emacs_cv_x11_toolkit_version_6
=yes
10464 emacs_cv_x11_toolkit_version_6
=no
10466 rm -f core conftest.err conftest.
$ac_objext \
10467 conftest
$ac_exeext conftest.
$ac_ext
10470 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10471 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10473 $as_echo "6 or newer" >&6; }
10475 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10477 LIBXTR6
="-lSM -lICE"
10479 ## Use libw.a along with X11R6 Xt.
10480 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10484 $as_echo "before 6" >&6; }
10488 if test x
$HAVE_X11XTR6 = xyes
; then
10489 LIBS
="-lXt -lSM -lICE $LIBS"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10494 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10495 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
10496 $as_echo_n "(cached) " >&6
10498 ac_check_lib_save_LIBS
=$LIBS
10500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10509 char XmuConvertStandardSelection ();
10513 return XmuConvertStandardSelection ();
10518 if ac_fn_c_try_link
"$LINENO"; then :
10519 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10521 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10523 rm -f core conftest.err conftest.
$ac_objext \
10524 conftest
$ac_exeext conftest.
$ac_ext
10525 LIBS
=$ac_check_lib_save_LIBS
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10528 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10529 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
10530 cat >>confdefs.h
<<_ACEOF
10531 #define HAVE_LIBXMU 1
10538 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10544 ## These systems don't supply Xmu.
10546 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10551 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10552 if test "${HAVE_X11}" = "yes"; then
10553 if test "${USE_X_TOOLKIT}" != "none"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10555 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10556 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
10557 $as_echo_n "(cached) " >&6
10559 ac_check_lib_save_LIBS
=$LIBS
10560 LIBS
="-lXext $LIBS"
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10570 char XShapeQueryExtension ();
10574 return XShapeQueryExtension ();
10579 if ac_fn_c_try_link
"$LINENO"; then :
10580 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10582 ac_cv_lib_Xext_XShapeQueryExtension
=no
10584 rm -f core conftest.err conftest.
$ac_objext \
10585 conftest
$ac_exeext conftest.
$ac_ext
10586 LIBS
=$ac_check_lib_save_LIBS
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10589 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10590 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
10591 cat >>confdefs.h
<<_ACEOF
10592 #define HAVE_LIBXEXT 1
10595 LIBS
="-lXext $LIBS"
10603 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10605 $as_echo_n "checking for Motif version 2.1... " >&6; }
10606 if ${emacs_cv_motif_version_2_1+:} false
; then :
10607 $as_echo_n "(cached) " >&6
10609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10615 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10618 Motif version prior to 2.1.
10624 if ac_fn_c_try_compile
"$LINENO"; then :
10625 emacs_cv_motif_version_2_1
=yes
10627 emacs_cv_motif_version_2_1
=no
10629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10632 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10633 if test $emacs_cv_motif_version_2_1 = yes; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10635 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10636 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS
=$LIBS
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10650 char XpCreateContext ();
10654 return XpCreateContext ();
10659 if ac_fn_c_try_link
"$LINENO"; then :
10660 ac_cv_lib_Xp_XpCreateContext
=yes
10662 ac_cv_lib_Xp_XpCreateContext
=no
10664 rm -f core conftest.err conftest.
$ac_objext \
10665 conftest
$ac_exeext conftest.
$ac_ext
10666 LIBS
=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10669 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10670 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10676 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10677 if ${emacs_cv_lesstif+:} false
; then :
10678 $as_echo_n "(cached) " >&6
10680 # We put this in CFLAGS temporarily to precede other -I options
10681 # that might be in CFLAGS temporarily.
10682 # We put this in CPPFLAGS where it precedes the other -I options.
10683 OLD_CPPFLAGS
=$CPPFLAGS
10685 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10686 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10698 if ac_fn_c_try_compile
"$LINENO"; then :
10699 emacs_cv_lesstif
=yes
10701 emacs_cv_lesstif
=no
10703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10706 $as_echo "$emacs_cv_lesstif" >&6; }
10707 if test $emacs_cv_lesstif = yes; then
10708 # Make sure this -I option remains in CPPFLAGS after it is set
10709 # back to REAL_CPPFLAGS.
10710 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10711 # have those other -I options anyway. Ultimately, having this
10712 # directory ultimately in CPPFLAGS will be enough.
10713 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10714 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10717 CPPFLAGS
=$OLD_CPPFLAGS
10723 USE_TOOLKIT_SCROLL_BARS
=no
10724 if test "${with_toolkit_scroll_bars}" != "no"; then
10725 if test "${USE_X_TOOLKIT}" != "none"; then
10726 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10727 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10730 USE_TOOLKIT_SCROLL_BARS
=yes
10731 elif test "${HAVE_XAW3D}" = "yes"; then
10732 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10734 USE_TOOLKIT_SCROLL_BARS
=yes
10736 elif test "${HAVE_GTK}" = "yes"; then
10737 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10739 USE_TOOLKIT_SCROLL_BARS
=yes
10740 elif test "${HAVE_NS}" = "yes"; then
10741 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10743 USE_TOOLKIT_SCROLL_BARS
=yes
10747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 #include <X11/Xlib.h>
10751 #include <X11/Xresource.h>
10760 if ac_fn_c_try_compile
"$LINENO"; then :
10763 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10771 if test "${with_xim}" != "no"; then
10773 $as_echo "#define USE_XIM 1" >>confdefs.h
10778 if test "${HAVE_XIM}" != "no"; then
10779 late_CFLAGS
=$CFLAGS
10780 if test "$GCC" = yes; then
10781 CFLAGS
="$CFLAGS --pedantic-errors"
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10786 #include <X11/Xlib.h>
10787 #include <X11/Xresource.h>
10796 XPointer *client_data;
10798 /* If we're not using GCC, it's probably not XFree86, and this is
10799 probably right, but we can't use something like --pedantic-errors. */
10800 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10801 char*, XIMProc, XPointer*);
10803 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10809 if ac_fn_c_try_compile
"$LINENO"; then :
10810 emacs_cv_arg6_star
=yes
10812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10813 if test "$emacs_cv_arg6_star" = yes; then
10814 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10817 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10820 CFLAGS
=$late_CFLAGS
10823 ### Start of font-backend (under any platform) section.
10824 # (nothing here yet -- this is a placeholder)
10825 ### End of font-backend (under any platform) section.
10827 ### Start of font-backend (under X11) section.
10828 if test "${HAVE_X11}" = "yes"; then
10832 # Extract the first word of "pkg-config", so it can be a program name with args.
10833 set dummy pkg-config
; ac_word
=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10837 $as_echo_n "(cached) " >&6
10839 case $PKG_CONFIG in
10841 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10845 for as_dir
in $PATH
10848 test -z "$as_dir" && as_dir
=.
10849 for ac_exec_ext
in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10863 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10864 if test -n "$PKG_CONFIG"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10866 $as_echo "$PKG_CONFIG" >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10874 if test "$PKG_CONFIG" = "no" ; then
10877 PKG_CONFIG_MIN_VERSION
=0.9.0
10878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10880 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10882 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10888 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10889 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10891 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10894 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10895 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10897 $as_echo "$FONTCONFIG_LIBS" >&6; }
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10901 FONTCONFIG_CFLAGS
=""
10903 ## If we have a custom action on failure, don't print errors, but
10904 ## do set a variable so people can do so.
10905 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10917 if test $succeeded = yes; then
10924 ## Use -lXft if available, unless `--with-xft=no'.
10926 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10929 if test "x${with_xft}" != "xno"; then
10934 # Extract the first word of "pkg-config", so it can be a program name with args.
10935 set dummy pkg-config
; ac_word
=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10939 $as_echo_n "(cached) " >&6
10941 case $PKG_CONFIG in
10943 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10947 for as_dir
in $PATH
10950 test -z "$as_dir" && as_dir
=.
10951 for ac_exec_ext
in '' $ac_executable_extensions; do
10952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10965 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10966 if test -n "$PKG_CONFIG"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10968 $as_echo "$PKG_CONFIG" >&6; }
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10976 if test "$PKG_CONFIG" = "no" ; then
10979 PKG_CONFIG_MIN_VERSION
=0.9.0
10980 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10982 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10984 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10986 $as_echo "yes" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10990 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10991 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10993 $as_echo "$XFT_CFLAGS" >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10996 $as_echo_n "checking XFT_LIBS... " >&6; }
10997 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10999 $as_echo "$XFT_LIBS" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so.
11007 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11019 if test $succeeded = yes; then
11025 ## Because xftfont.c uses XRenderQueryExtension, we also
11026 ## need to link to -lXrender.
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11029 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11030 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11031 $as_echo_n "(cached) " >&6
11033 ac_check_lib_save_LIBS
=$LIBS
11034 LIBS
="-lXrender $LIBS"
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11044 char XRenderQueryExtension ();
11048 return XRenderQueryExtension ();
11053 if ac_fn_c_try_link
"$LINENO"; then :
11054 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11056 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11058 rm -f core conftest.err conftest.
$ac_objext \
11059 conftest
$ac_exeext conftest.
$ac_ext
11060 LIBS
=$ac_check_lib_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11063 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11064 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11068 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11069 OLD_CPPFLAGS
="$CPPFLAGS"
11070 OLD_CFLAGS
="$CFLAGS"
11072 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11073 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11074 XFT_LIBS
="-lXrender $XFT_LIBS"
11075 LIBS
="$XFT_LIBS $LIBS"
11076 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11077 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11079 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11080 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11081 $as_echo_n "(cached) " >&6
11083 ac_check_lib_save_LIBS
=$LIBS
11084 LIBS
="-lXft $XFT_LIBS $LIBS"
11085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11094 char XftFontOpen ();
11098 return XftFontOpen ();
11103 if ac_fn_c_try_link
"$LINENO"; then :
11104 ac_cv_lib_Xft_XftFontOpen
=yes
11106 ac_cv_lib_Xft_XftFontOpen
=no
11108 rm -f core conftest.err conftest.
$ac_objext \
11109 conftest
$ac_exeext conftest.
$ac_ext
11110 LIBS
=$ac_check_lib_save_LIBS
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11113 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11114 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11122 if test "${HAVE_XFT}" = "yes"; then
11124 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11127 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11129 CPPFLAGS
="$OLD_CPPFLAGS"
11130 CFLAGS
="$OLD_CFLAGS"
11132 fi # "${HAVE_XFT}" = "yes"
11133 fi # "$HAVE_XFT" != no
11134 fi # "x${with_xft}" != "xno"
11136 if test "$HAVE_XFT" != "yes"; then
11142 ## We used to allow building with FreeType and without Xft.
11143 ## However, the ftx font backend driver is not in good shape.
11144 if test "${HAVE_XFT}" = "yes"; then
11151 if test "${HAVE_FREETYPE}" = "yes"; then
11153 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11155 if test "${with_libotf}" != "no"; then
11159 # Extract the first word of "pkg-config", so it can be a program name with args.
11160 set dummy pkg-config
; ac_word
=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11164 $as_echo_n "(cached) " >&6
11166 case $PKG_CONFIG in
11168 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11172 for as_dir
in $PATH
11175 test -z "$as_dir" && as_dir
=.
11176 for ac_exec_ext
in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11190 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11191 if test -n "$PKG_CONFIG"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11193 $as_echo "$PKG_CONFIG" >&6; }
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11201 if test "$PKG_CONFIG" = "no" ; then
11204 PKG_CONFIG_MIN_VERSION
=0.9.0
11205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11207 $as_echo_n "checking for libotf... " >&6; }
11209 if $PKG_CONFIG --exists "libotf" 2>&5; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11215 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11216 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11218 $as_echo "$LIBOTF_CFLAGS" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11221 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11222 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11224 $as_echo "$LIBOTF_LIBS" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11230 ## If we have a custom action on failure, don't print errors, but
11231 ## do set a variable so people can do so.
11232 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11244 if test $succeeded = yes; then
11250 if test "$HAVE_LIBOTF" = "yes"; then
11252 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11255 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11256 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11257 $as_echo_n "(cached) " >&6
11259 ac_check_lib_save_LIBS
=$LIBS
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11270 char OTF_get_variation_glyphs ();
11274 return OTF_get_variation_glyphs ();
11279 if ac_fn_c_try_link
"$LINENO"; then :
11280 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11282 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11284 rm -f core conftest.err conftest.
$ac_objext \
11285 conftest
$ac_exeext conftest.
$ac_ext
11286 LIBS
=$ac_check_lib_save_LIBS
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11289 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11290 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11291 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11293 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11296 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11298 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11306 if test "${HAVE_LIBOTF}" = yes; then
11307 if test "${with_m17n_flt}" != "no"; then
11311 # Extract the first word of "pkg-config", so it can be a program name with args.
11312 set dummy pkg-config
; ac_word
=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11316 $as_echo_n "(cached) " >&6
11318 case $PKG_CONFIG in
11320 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11324 for as_dir
in $PATH
11327 test -z "$as_dir" && as_dir
=.
11328 for ac_exec_ext
in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11342 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11343 if test -n "$PKG_CONFIG"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11345 $as_echo "$PKG_CONFIG" >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11353 if test "$PKG_CONFIG" = "no" ; then
11356 PKG_CONFIG_MIN_VERSION
=0.9.0
11357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11359 $as_echo_n "checking for m17n-flt... " >&6; }
11361 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363 $as_echo "yes" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11367 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11368 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11370 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11373 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11374 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11376 $as_echo "$M17N_FLT_LIBS" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11382 ## If we have a custom action on failure, don't print errors, but
11383 ## do set a variable so people can do so.
11384 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11396 if test $succeeded = yes; then
11402 if test "$HAVE_M17N_FLT" = "yes"; then
11404 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11416 ### End of font-backend (under X11) section.
11427 ### Use -lXpm if available, unless `--with-xpm=no'.
11430 if test "${HAVE_X11}" = "yes"; then
11431 if test "${with_xpm}" != "no"; then
11432 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11433 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11435 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11436 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11437 $as_echo_n "(cached) " >&6
11439 ac_check_lib_save_LIBS
=$LIBS
11440 LIBS
="-lXpm -lX11 $LIBS"
11441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11444 /* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
11450 char XpmReadFileToPixmap ();
11454 return XpmReadFileToPixmap ();
11459 if ac_fn_c_try_link
"$LINENO"; then :
11460 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11462 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11464 rm -f core conftest.err conftest.
$ac_objext \
11465 conftest
$ac_exeext conftest.
$ac_ext
11466 LIBS
=$ac_check_lib_save_LIBS
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11469 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11470 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
11477 if test "${HAVE_XPM}" = "yes"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11479 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #include "X11/xpm.h"
11483 #ifndef XpmReturnAllocPixels
11484 no_return_alloc_pixels
11488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11489 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11497 if test "${HAVE_XPM}" = "yes"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test "${HAVE_XPM}" = "yes"; then
11509 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11516 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11519 if test "${HAVE_X11}" = "yes"; then
11520 if test "${with_jpeg}" != "no"; then
11521 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11522 if test "x$ac_cv_header_jerror_h" = xyes
; then :
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11524 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11525 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
11526 $as_echo_n "(cached) " >&6
11528 ac_check_lib_save_LIBS
=$LIBS
11529 LIBS
="-ljpeg $LIBS"
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11539 char jpeg_destroy_compress ();
11543 return jpeg_destroy_compress ();
11548 if ac_fn_c_try_link
"$LINENO"; then :
11549 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11551 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11553 rm -f core conftest.err conftest.
$ac_objext \
11554 conftest
$ac_exeext conftest.
$ac_ext
11555 LIBS
=$ac_check_lib_save_LIBS
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11558 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11559 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
11568 if test "${HAVE_JPEG}" = "yes"; then
11569 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573 #include <jpeglib.h>
11574 version=JPEG_LIB_VERSION
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11579 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11583 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11589 if test "${HAVE_JPEG}" = "yes"; then
11595 ### Use -lpng if available, unless `--with-png=no'.
11598 if test "${HAVE_X11}" = "yes"; then
11599 if test "${with_png}" != "no"; then
11600 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11601 # in /usr/include/libpng.
11602 for ac_header
in png.h libpng
/png.h
11604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11606 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11607 cat >>confdefs.h
<<_ACEOF
11608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11615 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11617 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11618 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
11619 $as_echo_n "(cached) " >&6
11621 ac_check_lib_save_LIBS
=$LIBS
11622 LIBS
="-lpng -lz -lm $LIBS"
11623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11632 char png_get_channels ();
11636 return png_get_channels ();
11641 if ac_fn_c_try_link
"$LINENO"; then :
11642 ac_cv_lib_png_png_get_channels
=yes
11644 ac_cv_lib_png_png_get_channels
=no
11646 rm -f core conftest.err conftest.
$ac_objext \
11647 conftest
$ac_exeext conftest.
$ac_ext
11648 LIBS
=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11651 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11652 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
11659 if test "${HAVE_PNG}" = "yes"; then
11661 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11663 LIBPNG
="-lpng -lz -lm"
11668 ### Use -ltiff if available, unless `--with-tiff=no'.
11671 if test "${HAVE_X11}" = "yes"; then
11672 if test "${with_tiff}" != "no"; then
11673 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11674 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11679 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11680 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
11681 $as_echo_n "(cached) " >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-ltiff $tifflibs $LIBS"
11685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11694 char TIFFGetVersion ();
11698 return TIFFGetVersion ();
11703 if ac_fn_c_try_link
"$LINENO"; then :
11704 ac_cv_lib_tiff_TIFFGetVersion
=yes
11706 ac_cv_lib_tiff_TIFFGetVersion
=no
11708 rm -f core conftest.err conftest.
$ac_objext \
11709 conftest
$ac_exeext conftest.
$ac_ext
11710 LIBS
=$ac_check_lib_save_LIBS
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11713 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11714 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
11723 if test "${HAVE_TIFF}" = "yes"; then
11725 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11732 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11735 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11736 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11737 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
11738 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11739 # Earlier versions can crash Emacs.
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11741 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11742 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
11743 $as_echo_n "(cached) " >&6
11745 ac_check_lib_save_LIBS
=$LIBS
11747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11756 char EGifPutExtensionLast ();
11760 return EGifPutExtensionLast ();
11765 if ac_fn_c_try_link
"$LINENO"; then :
11766 ac_cv_lib_gif_EGifPutExtensionLast
=yes
11768 ac_cv_lib_gif_EGifPutExtensionLast
=no
11770 rm -f core conftest.err conftest.
$ac_objext \
11771 conftest
$ac_exeext conftest.
$ac_ext
11772 LIBS
=$ac_check_lib_save_LIBS
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11775 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11776 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
11786 if test "$HAVE_GIF" = yes; then
11788 elif test "$HAVE_GIF" = maybe
; then
11789 # If gif_lib.h but no libgif, try libungif.
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11791 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11792 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
11793 $as_echo_n "(cached) " >&6
11795 ac_check_lib_save_LIBS
=$LIBS
11796 LIBS
="-lungif $LIBS"
11797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11800 /* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
11806 char EGifPutExtensionLast ();
11810 return EGifPutExtensionLast ();
11815 if ac_fn_c_try_link
"$LINENO"; then :
11816 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11818 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11820 rm -f core conftest.err conftest.
$ac_objext \
11821 conftest
$ac_exeext conftest.
$ac_ext
11822 LIBS
=$ac_check_lib_save_LIBS
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11825 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11826 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
11832 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
11835 if test "${HAVE_GIF}" = "yes"; then
11837 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11843 if test "${HAVE_X11}" = "yes"; then
11846 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11847 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
11848 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11849 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11850 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11851 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11852 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11853 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11854 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11855 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11857 if test "X${MISSING}" != X
; then
11858 as_fn_error $?
"The following required libraries were not found:
11860 Maybe some development libraries/packages are missing?
11861 If you don't want to link with them give
11863 as options to configure" "$LINENO" 5
11867 ### Use -lgpm if available, unless `--with-gpm=no'.
11871 if test "${with_gpm}" != "no"; then
11872 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_gpm_h" = xyes
; then :
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11875 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11876 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
11877 $as_echo_n "(cached) " >&6
11879 ac_check_lib_save_LIBS
=$LIBS
11881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11894 return Gpm_Open ();
11899 if ac_fn_c_try_link
"$LINENO"; then :
11900 ac_cv_lib_gpm_Gpm_Open
=yes
11902 ac_cv_lib_gpm_Gpm_Open
=no
11904 rm -f core conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11906 LIBS
=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11909 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11910 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
11918 if test "${HAVE_GPM}" = "yes"; then
11920 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11923 ## May be reset below.
11924 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11929 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
11932 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11939 ### Use NeXTstep API to implement GUI.
11940 if test "${HAVE_NS}" = "yes"; then
11942 $as_echo "#define HAVE_NS 1" >>confdefs.h
11944 if test "${NS_IMPL_COCOA}" = "yes"; then
11946 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11950 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11952 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11954 # See also .m.o rule in Makefile.in */
11955 # FIXME: are all these flags really needed? Document here why. */
11956 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11957 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11959 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11961 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11964 # We also have mouse menus.
11970 ### Use session management (-lSM -lICE) if available
11973 if test "${HAVE_X11}" = "yes"; then
11974 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11977 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11978 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
11979 $as_echo_n "(cached) " >&6
11981 ac_check_lib_save_LIBS
=$LIBS
11982 LIBS
="-lSM -lICE $LIBS"
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11992 char SmcOpenConnection ();
11996 return SmcOpenConnection ();
12001 if ac_fn_c_try_link
"$LINENO"; then :
12002 ac_cv_lib_SM_SmcOpenConnection
=yes
12004 ac_cv_lib_SM_SmcOpenConnection
=no
12006 rm -f core conftest.err conftest.
$ac_objext \
12007 conftest
$ac_exeext conftest.
$ac_ext
12008 LIBS
=$ac_check_lib_save_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12011 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12012 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12020 if test "${HAVE_X_SM}" = "yes"; then
12022 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12024 LIBXSM
="-lSM -lICE"
12027 *) LIBS
="$LIBXSM $LIBS" ;;
12033 ### Use libxml (-lxml2) if available
12034 if test "${with_xml2}" != "no"; then
12035 ### I'm not sure what the version number should be, so I just guessed.
12039 # Extract the first word of "pkg-config", so it can be a program name with args.
12040 set dummy pkg-config
; ac_word
=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12044 $as_echo_n "(cached) " >&6
12046 case $PKG_CONFIG in
12048 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12052 for as_dir
in $PATH
12055 test -z "$as_dir" && as_dir
=.
12056 for ac_exec_ext
in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12070 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12071 if test -n "$PKG_CONFIG"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12073 $as_echo "$PKG_CONFIG" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12081 if test "$PKG_CONFIG" = "no" ; then
12084 PKG_CONFIG_MIN_VERSION
=0.9.0
12085 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
12087 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
12089 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12095 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12096 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12098 $as_echo "$LIBXML2_CFLAGS" >&6; }
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12101 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12102 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12104 $as_echo "$LIBXML2_LIBS" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12110 ## If we have a custom action on failure, don't print errors, but
12111 ## do set a variable so people can do so.
12112 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
12119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12124 if test $succeeded = yes; then
12130 if test "${HAVE_LIBXML2}" = "yes"; then
12131 LIBS
="$LIBXML2_LIBS $LIBS"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12133 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12134 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12135 $as_echo_n "(cached) " >&6
12137 ac_check_lib_save_LIBS
=$LIBS
12138 LIBS
="-lxml2 $LIBS"
12139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12148 char htmlReadMemory ();
12152 return htmlReadMemory ();
12157 if ac_fn_c_try_link
"$LINENO"; then :
12158 ac_cv_lib_xml2_htmlReadMemory
=yes
12160 ac_cv_lib_xml2_htmlReadMemory
=no
12162 rm -f core conftest.err conftest.
$ac_objext \
12163 conftest
$ac_exeext conftest.
$ac_ext
12164 LIBS
=$ac_check_lib_save_LIBS
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12167 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12168 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12174 if test "${HAVE_LIBXML2}" = "yes"; then
12176 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12187 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12189 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12190 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12191 $as_echo_n "(cached) " >&6
12193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12204 if ac_fn_c_try_link
"$LINENO"; then :
12205 emacs_cv_netdb_declares_h_errno
=yes
12207 emacs_cv_netdb_declares_h_errno
=no
12209 rm -f core conftest.err conftest.
$ac_objext \
12210 conftest
$ac_exeext conftest.
$ac_ext
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12213 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12214 if test $emacs_cv_netdb_declares_h_errno = yes; then
12216 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12220 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12221 if test "x$ac_cv_type_size_t" = xyes
; then :
12225 cat >>confdefs.h
<<_ACEOF
12226 #define size_t unsigned int
12231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12232 # for constant arguments. Useless!
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12234 $as_echo_n "checking for working alloca.h... " >&6; }
12235 if ${ac_cv_working_alloca_h+:} false
; then :
12236 $as_echo_n "(cached) " >&6
12238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #include <alloca.h>
12244 char *p = (char *) alloca (2 * sizeof (int));
12250 if ac_fn_c_try_link
"$LINENO"; then :
12251 ac_cv_working_alloca_h
=yes
12253 ac_cv_working_alloca_h
=no
12255 rm -f core conftest.err conftest.
$ac_objext \
12256 conftest
$ac_exeext conftest.
$ac_ext
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12259 $as_echo "$ac_cv_working_alloca_h" >&6; }
12260 if test $ac_cv_working_alloca_h = yes; then
12262 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12267 $as_echo_n "checking for alloca... " >&6; }
12268 if ${ac_cv_func_alloca_works+:} false
; then :
12269 $as_echo_n "(cached) " >&6
12271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12274 # define alloca __builtin_alloca
12277 # include <malloc.h>
12278 # define alloca _alloca
12280 # ifdef HAVE_ALLOCA_H
12281 # include <alloca.h>
12286 # ifndef alloca /* predefined by HP cc +Olibcalls */
12287 void *alloca (size_t);
12297 char *p = (char *) alloca (1);
12303 if ac_fn_c_try_link
"$LINENO"; then :
12304 ac_cv_func_alloca_works
=yes
12306 ac_cv_func_alloca_works
=no
12308 rm -f core conftest.err conftest.
$ac_objext \
12309 conftest
$ac_exeext conftest.
$ac_ext
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12312 $as_echo "$ac_cv_func_alloca_works" >&6; }
12314 if test $ac_cv_func_alloca_works = yes; then
12316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12320 # that cause trouble. Some versions do not even contain alloca or
12321 # contain a buggy version. If you still want to use their alloca,
12322 # use ar to extract alloca.o from them instead of compiling alloca.c.
12324 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12326 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12330 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12331 if ${ac_cv_os_cray+:} false
; then :
12332 $as_echo_n "(cached) " >&6
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #if defined CRAY && ! defined CRAY2
12343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12344 $EGREP "webecray" >/dev
/null
2>&1; then :
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12353 $as_echo "$ac_cv_os_cray" >&6; }
12354 if test $ac_cv_os_cray = yes; then
12355 for ac_func
in _getb67 GETB67 getb67
; do
12356 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12358 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12360 cat >>confdefs.h
<<_ACEOF
12361 #define CRAY_STACKSEG_END $ac_func
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12371 $as_echo_n "checking stack direction for C alloca... " >&6; }
12372 if ${ac_cv_c_stack_direction+:} false
; then :
12373 $as_echo_n "(cached) " >&6
12375 if test "$cross_compiling" = yes; then :
12376 ac_cv_c_stack_direction
=0
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 $ac_includes_default
12382 find_stack_direction ()
12384 static char *addr = 0;
12389 return find_stack_direction ();
12392 return (&dummy > addr) ? 1 : -1;
12398 return find_stack_direction () < 0;
12401 if ac_fn_c_try_run
"$LINENO"; then :
12402 ac_cv_c_stack_direction
=1
12404 ac_cv_c_stack_direction
=-1
12406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12412 $as_echo "$ac_cv_c_stack_direction" >&6; }
12413 cat >>confdefs.h
<<_ACEOF
12414 #define STACK_DIRECTION $ac_cv_c_stack_direction
12421 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12422 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12425 # fmod, logb, and frexp are found in -lm on most systems.
12426 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12428 $as_echo_n "checking for sqrt in -lm... " >&6; }
12429 if ${ac_cv_lib_m_sqrt+:} false
; then :
12430 $as_echo_n "(cached) " >&6
12432 ac_check_lib_save_LIBS
=$LIBS
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12452 if ac_fn_c_try_link
"$LINENO"; then :
12453 ac_cv_lib_m_sqrt
=yes
12455 ac_cv_lib_m_sqrt
=no
12457 rm -f core conftest.err conftest.
$ac_objext \
12458 conftest
$ac_exeext conftest.
$ac_ext
12459 LIBS
=$ac_check_lib_save_LIBS
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12462 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12463 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_LIBM 1
12473 # Check for mail-locking functions in a "mail" library. Probably this should
12474 # have the same check as for liblockfile below.
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12476 $as_echo_n "checking for maillock in -lmail... " >&6; }
12477 if ${ac_cv_lib_mail_maillock+:} false
; then :
12478 $as_echo_n "(cached) " >&6
12480 ac_check_lib_save_LIBS
=$LIBS
12481 LIBS
="-lmail $LIBS"
12482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12495 return maillock ();
12500 if ac_fn_c_try_link
"$LINENO"; then :
12501 ac_cv_lib_mail_maillock
=yes
12503 ac_cv_lib_mail_maillock
=no
12505 rm -f core conftest.err conftest.
$ac_objext \
12506 conftest
$ac_exeext conftest.
$ac_ext
12507 LIBS
=$ac_check_lib_save_LIBS
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12510 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12511 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
12517 if test $have_mail = yes; then
12519 LIBS
="$LIBS_MAIL $LIBS"
12521 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12527 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12528 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
12529 $as_echo_n "(cached) " >&6
12531 ac_check_lib_save_LIBS
=$LIBS
12532 LIBS
="-llockfile $LIBS"
12533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12546 return maillock ();
12551 if ac_fn_c_try_link
"$LINENO"; then :
12552 ac_cv_lib_lockfile_maillock
=yes
12554 ac_cv_lib_lockfile_maillock
=no
12556 rm -f core conftest.err conftest.
$ac_objext \
12557 conftest
$ac_exeext conftest.
$ac_ext
12558 LIBS
=$ac_check_lib_save_LIBS
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12561 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12562 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
12568 if test $have_lockfile = yes; then
12569 LIBS_MAIL
=-llockfile
12570 LIBS
="$LIBS_MAIL $LIBS"
12572 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12575 # If we have the shared liblockfile, assume we must use it for mail
12576 # locking (e.g. Debian). If we couldn't link against liblockfile
12577 # (no liblockfile.a installed), ensure that we don't need to.
12578 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12579 set dummy liblockfile.so
; ac_word
=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_liblockfile+:} false
; then :
12583 $as_echo_n "(cached) " >&6
12585 if test -n "$liblockfile"; then
12586 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12589 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12590 for as_dir
in $as_dummy
12593 test -z "$as_dir" && as_dir
=.
12594 for ac_exec_ext
in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_prog_liblockfile
="yes"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12607 liblockfile
=$ac_cv_prog_liblockfile
12608 if test -n "$liblockfile"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12610 $as_echo "$liblockfile" >&6; }
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12617 if test $ac_cv_prog_liblockfile = yes; then
12618 as_fn_error $?
"Shared liblockfile found but can't link against it.
12619 This probably means that movemail could lose mail.
12620 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12623 for ac_func
in touchlock
12625 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12626 if test "x$ac_cv_func_touchlock" = xyes
; then :
12627 cat >>confdefs.h
<<_ACEOF
12628 #define HAVE_TOUCHLOCK 1
12634 for ac_header
in maillock.h
12636 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12637 if test "x$ac_cv_header_maillock_h" = xyes
; then :
12638 cat >>confdefs.h
<<_ACEOF
12639 #define HAVE_MAILLOCK_H 1
12648 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12649 ## interlock access to the mail spool. The alternative is a lock file named
12650 ## /usr/spool/mail/$USER.lock.
12653 aix4-2
) mail_lock
="lockf" ;;
12655 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12657 ## On GNU/Linux systems, both methods are used by various mail programs.
12658 ## I assume most people are using newer mailers that have heard of flock.
12659 ## Change this if you need to.
12660 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12661 ## configure gets the right answers, and that means *NOT* using flock.
12662 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12663 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12664 ## Debian maintainer hasn't provided a clean fix for Emacs.
12665 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12666 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12667 ## correct logic. -- fx
12668 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12669 ## liblockfile is a Free Software replacement for libmail, used on
12670 ## Debian systems and elsewhere. -rfr.
12673 if test $have_mail = yes ||
test $have_lockfile = yes; then
12674 test $ac_cv_header_maillock_h = yes && mail_lock
=no
12680 case "$mail_lock" in
12682 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12686 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12689 *) BLESSMAIL_TARGET
="need-blessmail" ;;
12694 for ac_func
in gethostname getdomainname dup2 \
12695 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
12696 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12697 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
12698 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12699 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12700 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12701 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12702 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12703 cfmakeraw cfsetspeed isnan copysign __executable_start
12705 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12707 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12708 cat >>confdefs.h
<<_ACEOF
12709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12717 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12718 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
12719 $as_echo_n "(cached) " >&6
12721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12727 __builtin_unwind_init ();
12732 if ac_fn_c_try_link
"$LINENO"; then :
12733 emacs_cv_func___builtin_unwind_init
=yes
12735 emacs_cv_func___builtin_unwind_init
=no
12737 rm -f core conftest.err conftest.
$ac_objext \
12738 conftest
$ac_exeext conftest.
$ac_ext
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12741 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12742 if test $emacs_cv_func___builtin_unwind_init = yes; then
12744 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12748 for ac_header
in sys
/un.h
12750 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12751 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
12752 cat >>confdefs.h
<<_ACEOF
12753 #define HAVE_SYS_UN_H 1
12766 for ac_func
in $ac_func_list
12768 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12769 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12770 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12771 cat >>confdefs.h
<<_ACEOF
12772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12783 $as_echo_n "checking for working mktime... " >&6; }
12784 if ${ac_cv_func_working_mktime+:} false
; then :
12785 $as_echo_n "(cached) " >&6
12787 if test "$cross_compiling" = yes; then :
12788 ac_cv_func_working_mktime
=no
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792 /* Test program from Paul Eggert and Tony Leneis. */
12793 #ifdef TIME_WITH_SYS_TIME
12794 # include <sys/time.h>
12797 # ifdef HAVE_SYS_TIME_H
12798 # include <sys/time.h>
12804 #include <limits.h>
12805 #include <stdlib.h>
12807 #ifdef HAVE_UNISTD_H
12808 # include <unistd.h>
12812 # define alarm(X) /* empty */
12815 /* Work around redefinition to rpl_putenv by other config tests. */
12818 static time_t time_t_max;
12819 static time_t time_t_min;
12821 /* Values we'll use to set the TZ environment variable. */
12822 static const char *tz_strings[] = {
12823 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12824 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12826 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12828 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12829 Based on a problem report from Andreas Jaeger. */
12831 spring_forward_gap ()
12833 /* glibc (up to about 1998-10-07) failed this test. */
12836 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12837 instead of "TZ=America/Vancouver" in order to detect the bug even
12838 on systems that don't support the Olson extension, or don't have the
12839 full zoneinfo tables installed. */
12840 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12849 return mktime (&tm) != (time_t) -1;
12853 mktime_test1 (time_t now)
12856 return ! (lt = localtime (&now)) || mktime (lt) == now;
12860 mktime_test (time_t now)
12862 return (mktime_test1 (now)
12863 && mktime_test1 ((time_t) (time_t_max - now))
12864 && mktime_test1 ((time_t) (time_t_min + now)));
12870 /* Based on code from Ariel Faigon. */
12880 return tm.tm_mon == 2 && tm.tm_mday == 31;
12884 bigtime_test (int j)
12888 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12889 now = mktime (&tm);
12890 if (now != (time_t) -1)
12892 struct tm *lt = localtime (&now);
12894 && lt->tm_year == tm.tm_year
12895 && lt->tm_mon == tm.tm_mon
12896 && lt->tm_mday == tm.tm_mday
12897 && lt->tm_hour == tm.tm_hour
12898 && lt->tm_min == tm.tm_min
12899 && lt->tm_sec == tm.tm_sec
12900 && lt->tm_yday == tm.tm_yday
12901 && lt->tm_wday == tm.tm_wday
12902 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12903 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12912 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12913 ignoring leap seconds. */
12914 unsigned long int answer = 2527315200UL;
12918 tm.tm_year = 2050 - 1900;
12921 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12924 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12925 instead of "TZ=America/Vancouver" in order to detect the bug even
12926 on systems that don't support the Olson extension, or don't have the
12927 full zoneinfo tables installed. */
12928 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12932 /* Check that the result is either a failure, or close enough
12933 to the correct answer that we can assume the discrepancy is
12934 due to leap seconds. */
12935 return (t == (time_t) -1
12936 || (0 < t && answer - 120 <= t && t <= answer + 120));
12945 /* This test makes some buggy mktime implementations loop.
12946 Give up after 60 seconds; a mktime slower than that
12947 isn't worth using anyway. */
12952 t = (time_t_max << 1) + 1;
12953 if (t <= time_t_max)
12957 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12959 delta = time_t_max / 997; /* a suitable prime number */
12960 for (i = 0; i < N_STRINGS; i++)
12963 putenv ((char*) tz_strings[i]);
12965 for (t = 0; t <= time_t_max - delta; t += delta)
12966 if (! mktime_test (t))
12968 if (! (mktime_test ((time_t) 1)
12969 && mktime_test ((time_t) (60 * 60))
12970 && mktime_test ((time_t) (60 * 60 * 24))))
12973 for (j = 1; ; j <<= 1)
12974 if (! bigtime_test (j))
12976 else if (INT_MAX / 2 < j)
12978 if (! bigtime_test (INT_MAX))
12981 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12984 if ac_fn_c_try_run
"$LINENO"; then :
12985 ac_cv_func_working_mktime
=yes
12987 ac_cv_func_working_mktime
=no
12989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12995 $as_echo "$ac_cv_func_working_mktime" >&6; }
12996 if test $ac_cv_func_working_mktime = no
; then
12997 case " $LIBOBJS " in
12998 *" mktime.$ac_objext "* ) ;;
12999 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
13005 if test "$ac_cv_func_working_mktime" = no
; then
13007 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
13011 ac_have_func
=no
# yes means we've found a way to get the load average.
13013 # Make sure getloadavg.c is where it belongs, at configure-time.
13014 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13015 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13019 # Check for getloadavg, but be sure not to touch the cache variable.
13020 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13021 if test "x$ac_cv_func_getloadavg" = xyes
; then :
13026 ) && ac_have_func
=yes
13028 # On HPUX9, an unprivileged user can get load averages through this function.
13029 for ac_func
in pstat_getdynamic
13031 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13032 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
13033 cat >>confdefs.h
<<_ACEOF
13034 #define HAVE_PSTAT_GETDYNAMIC 1
13041 # Solaris has libkstat which does not require root.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13043 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13044 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
13045 $as_echo_n "(cached) " >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13048 LIBS
="-lkstat $LIBS"
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13058 char kstat_open ();
13062 return kstat_open ();
13067 if ac_fn_c_try_link
"$LINENO"; then :
13068 ac_cv_lib_kstat_kstat_open
=yes
13070 ac_cv_lib_kstat_kstat_open
=no
13072 rm -f core conftest.err conftest.
$ac_objext \
13073 conftest
$ac_exeext conftest.
$ac_ext
13074 LIBS
=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13077 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13078 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
13079 cat >>confdefs.h
<<_ACEOF
13080 #define HAVE_LIBKSTAT 1
13083 LIBS
="-lkstat $LIBS"
13087 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13089 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13090 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13091 # to get the right answer into the cache.
13092 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13093 if test $ac_have_func = no
; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13095 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13096 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
13097 $as_echo_n "(cached) " >&6
13099 ac_check_lib_save_LIBS
=$LIBS
13101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13114 return elf_begin ();
13119 if ac_fn_c_try_link
"$LINENO"; then :
13120 ac_cv_lib_elf_elf_begin
=yes
13122 ac_cv_lib_elf_elf_begin
=no
13124 rm -f core conftest.err conftest.
$ac_objext \
13125 conftest
$ac_exeext conftest.
$ac_ext
13126 LIBS
=$ac_check_lib_save_LIBS
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13129 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13130 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
13135 if test $ac_have_func = no
; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13137 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13138 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
13139 $as_echo_n "(cached) " >&6
13141 ac_check_lib_save_LIBS
=$LIBS
13143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13156 return kvm_open ();
13161 if ac_fn_c_try_link
"$LINENO"; then :
13162 ac_cv_lib_kvm_kvm_open
=yes
13164 ac_cv_lib_kvm_kvm_open
=no
13166 rm -f core conftest.err conftest.
$ac_objext \
13167 conftest
$ac_exeext conftest.
$ac_ext
13168 LIBS
=$ac_check_lib_save_LIBS
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13171 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13172 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
13176 # Check for the 4.4BSD definition of getloadavg.
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13178 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13179 if ${ac_cv_lib_util_getloadavg+:} false
; then :
13180 $as_echo_n "(cached) " >&6
13182 ac_check_lib_save_LIBS
=$LIBS
13183 LIBS
="-lutil $LIBS"
13184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13193 char getloadavg ();
13197 return getloadavg ();
13202 if ac_fn_c_try_link
"$LINENO"; then :
13203 ac_cv_lib_util_getloadavg
=yes
13205 ac_cv_lib_util_getloadavg
=no
13207 rm -f core conftest.err conftest.
$ac_objext \
13208 conftest
$ac_exeext conftest.
$ac_ext
13209 LIBS
=$ac_check_lib_save_LIBS
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13212 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13213 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
13214 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13219 if test $ac_have_func = no
; then
13220 # There is a commonly available library for RS/6000 AIX.
13221 # Since it is not a standard part of AIX, it might be installed locally.
13222 ac_getloadavg_LIBS
=$LIBS
13223 LIBS
="-L/usr/local/lib $LIBS"
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13225 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13226 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
13227 $as_echo_n "(cached) " >&6
13229 ac_check_lib_save_LIBS
=$LIBS
13230 LIBS
="-lgetloadavg $LIBS"
13231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13240 char getloadavg ();
13244 return getloadavg ();
13249 if ac_fn_c_try_link
"$LINENO"; then :
13250 ac_cv_lib_getloadavg_getloadavg
=yes
13252 ac_cv_lib_getloadavg_getloadavg
=no
13254 rm -f core conftest.err conftest.
$ac_objext \
13255 conftest
$ac_exeext conftest.
$ac_ext
13256 LIBS
=$ac_check_lib_save_LIBS
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13259 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13260 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
13261 LIBS
="-lgetloadavg $LIBS"
13263 LIBS
=$ac_getloadavg_LIBS
13268 # Make sure it is really in the library, if we think we found it,
13269 # otherwise set up the replacement function.
13270 for ac_func
in getloadavg
13272 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13273 if test "x$ac_cv_func_getloadavg" = xyes
; then :
13274 cat >>confdefs.h
<<_ACEOF
13275 #define HAVE_GETLOADAVG 1
13279 case " $LIBOBJS " in
13280 *" getloadavg.$ac_objext "* ) ;;
13281 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13286 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13288 # Figure out what our getloadavg.c needs.
13290 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13291 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
13294 $as_echo "#define DGUX 1" >>confdefs.h
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13297 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13298 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
13299 $as_echo_n "(cached) " >&6
13301 ac_check_lib_save_LIBS
=$LIBS
13303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13312 char dg_sys_info ();
13316 return dg_sys_info ();
13321 if ac_fn_c_try_link
"$LINENO"; then :
13322 ac_cv_lib_dgc_dg_sys_info
=yes
13324 ac_cv_lib_dgc_dg_sys_info
=no
13326 rm -f core conftest.err conftest.
$ac_objext \
13327 conftest
$ac_exeext conftest.
$ac_ext
13328 LIBS
=$ac_check_lib_save_LIBS
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13331 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13332 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
13333 cat >>confdefs.h
<<_ACEOF
13334 #define HAVE_LIBDGC 1
13345 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_locale_h" = xyes
; then :
13351 for ac_func
in setlocale
13353 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13354 if test "x$ac_cv_func_setlocale" = xyes
; then :
13355 cat >>confdefs.h
<<_ACEOF
13356 #define HAVE_SETLOCALE 1
13363 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13364 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13365 # Irix 4.0.5F has the header but not the library.
13366 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13367 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13370 $as_echo "#define SVR4 1" >>confdefs.h
13374 if test $ac_have_func = no
; then
13375 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13376 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
13379 $as_echo "#define UMAX 1" >>confdefs.h
13382 $as_echo "#define UMAX4_3 1" >>confdefs.h
13389 if test $ac_have_func = no
; then
13390 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13391 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
13392 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13399 if test $ac_have_func = no
; then
13400 for ac_header
in mach
/mach.h
13402 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13403 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
13404 cat >>confdefs.h
<<_ACEOF
13405 #define HAVE_MACH_MACH_H 1
13414 for ac_header
in nlist.h
13416 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13417 if test "x$ac_cv_header_nlist_h" = xyes
; then :
13418 cat >>confdefs.h
<<_ACEOF
13419 #define HAVE_NLIST_H 1
13421 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13423 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
13425 cat >>confdefs.h
<<_ACEOF
13426 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13430 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13443 # Some definitions of getloadavg require that the program be installed setgid.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13445 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13446 if ${ac_cv_func_getloadavg_setgid+:} false
; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13452 #ifdef LDAV_PRIVILEGED
13453 Yowza Am I SETGID yet
13456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13457 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
13458 ac_cv_func_getloadavg_setgid
=yes
13460 ac_cv_func_getloadavg_setgid
=no
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13466 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13467 if test $ac_cv_func_getloadavg_setgid = yes; then
13470 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13476 if test $ac_cv_func_getloadavg_setgid = yes; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13478 $as_echo_n "checking group of /dev/kmem... " >&6; }
13479 if ${ac_cv_group_kmem+:} false
; then :
13480 $as_echo_n "(cached) " >&6
13482 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13483 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13484 # If we got an error (system does not support symlinks), try without -L.
13485 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13486 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
13487 | sed -ne 's/[ ][ ]*/ /g;
13488 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13493 $as_echo "$ac_cv_group_kmem" >&6; }
13494 KMEM_GROUP
=$ac_cv_group_kmem
13496 if test "x$ac_save_LIBS" = x
; then
13497 GETLOADAVG_LIBS
=$LIBS
13499 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13506 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13507 if ${ac_cv_sys_largefile_source+:} false
; then :
13508 $as_echo_n "(cached) " >&6
13511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <sys/types.h> /* for off_t */
13518 int (*fp) (FILE *, off_t, int) = fseeko;
13519 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13524 if ac_fn_c_try_link
"$LINENO"; then :
13525 ac_cv_sys_largefile_source
=no
; break
13527 rm -f core conftest.err conftest.
$ac_objext \
13528 conftest
$ac_exeext conftest.
$ac_ext
13529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #define _LARGEFILE_SOURCE 1
13532 #include <sys/types.h> /* for off_t */
13537 int (*fp) (FILE *, off_t, int) = fseeko;
13538 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13543 if ac_fn_c_try_link
"$LINENO"; then :
13544 ac_cv_sys_largefile_source
=1; break
13546 rm -f core conftest.err conftest.
$ac_objext \
13547 conftest
$ac_exeext conftest.
$ac_ext
13548 ac_cv_sys_largefile_source
=unknown
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13553 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13554 case $ac_cv_sys_largefile_source in #(
13557 cat >>confdefs.h
<<_ACEOF
13558 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13564 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13565 # in glibc 2.1.3, but that breaks too many other things.
13566 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13567 if test $ac_cv_sys_largefile_source != unknown
; then
13569 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13574 # Configure getopt.
13575 # getopt.m4 serial 10
13577 # The getopt module assume you want GNU getopt, with getopt_long etc,
13578 # rather than vanilla POSIX getopt. This means your your code should
13579 # always include <getopt.h> for the getopt prototypes.
13591 # Prerequisites of lib/getopt*.
13597 for ac_header
in getopt.h
13599 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13601 cat >>confdefs.h
<<_ACEOF
13602 #define HAVE_GETOPT_H 1
13611 if test -z "$GETOPT_H"; then
13612 for ac_func
in getopt_long_only
13614 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13615 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13616 cat >>confdefs.h
<<_ACEOF
13617 #define HAVE_GETOPT_LONG_ONLY 1
13627 if test -z "$GETOPT_H"; then
13628 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13630 if test "x$ac_cv_have_decl_optreset" = xyes
; then :
13636 if test -z "$GETOPT_H"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13638 $as_echo_n "checking for working GNU getopt function... " >&6; }
13639 if ${gl_cv_func_gnu_getopt+:} false
; then :
13640 $as_echo_n "(cached) " >&6
13642 if test "$cross_compiling" = yes; then :
13643 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13645 if test "x$ac_cv_have_decl_getopt_clip" = xyes
; then :
13646 gl_cv_func_gnu_getopt
=no
13648 gl_cv_func_gnu_getopt
=yes
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <getopt.h>
13660 myargv[0] = "conftest";
13663 return getopt (2, myargv, "+a") != '?';
13669 if ac_fn_c_try_run
"$LINENO"; then :
13670 gl_cv_func_gnu_getopt
=yes
13672 gl_cv_func_gnu_getopt
=no
13674 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13675 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
13680 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
13681 if test "$gl_cv_func_gnu_getopt" = "no"; then
13688 if test -n "$GETOPT_H"; then :
13693 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13698 GETOPTOBJS
='getopt.o getopt1.o'
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13705 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13706 if ${ac_cv_func_getpgrp_void+:} false
; then :
13707 $as_echo_n "(cached) " >&6
13709 # Use it with a single arg.
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 $ac_includes_default
13721 if ac_fn_c_try_compile
"$LINENO"; then :
13722 ac_cv_func_getpgrp_void
=no
13724 ac_cv_func_getpgrp_void
=yes
13726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13730 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13731 if test $ac_cv_func_getpgrp_void = yes; then
13733 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13738 # Configure gnulib.
13741 GL_COND_LIBTOOL_TRUE
=
13742 GL_COND_LIBTOOL_FALSE
='#'
13744 GL_COND_LIBTOOL_TRUE
='#'
13745 GL_COND_LIBTOOL_FALSE
=
13748 gl_cond_libtool
=false
13758 gl_source_base
='lib'
13759 # Code from module dummy:
13760 # End of code from modules
13776 gl_source_base
='tests'
13777 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
13779 gl_module_indicator_condition
=$gltests_WITNESS
13789 LIBGNU_LIBDEPS
="$gl_libdeps"
13791 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
13795 for ac_func
in strftime
13797 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
13798 if test "x$ac_cv_func_strftime" = xyes
; then :
13799 cat >>confdefs.h
<<_ACEOF
13800 #define HAVE_STRFTIME 1
13804 # strftime is in -lintl on SCO UNIX.
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13806 $as_echo_n "checking for strftime in -lintl... " >&6; }
13807 if ${ac_cv_lib_intl_strftime+:} false
; then :
13808 $as_echo_n "(cached) " >&6
13810 ac_check_lib_save_LIBS
=$LIBS
13811 LIBS
="-lintl $LIBS"
13812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13825 return strftime ();
13830 if ac_fn_c_try_link
"$LINENO"; then :
13831 ac_cv_lib_intl_strftime
=yes
13833 ac_cv_lib_intl_strftime
=no
13835 rm -f core conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13837 LIBS
=$ac_check_lib_save_LIBS
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13840 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13841 if test "x$ac_cv_lib_intl_strftime" = xyes
; then :
13842 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13844 LIBS
="-lintl $LIBS"
13852 for ac_func
in grantpt
13854 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13855 if test "x$ac_cv_func_grantpt" = xyes
; then :
13856 cat >>confdefs.h
<<_ACEOF
13857 #define HAVE_GRANTPT 1
13864 # PTY-related GNU extensions.
13865 for ac_func
in getpt
13867 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
13868 if test "x$ac_cv_func_getpt" = xyes
; then :
13869 cat >>confdefs.h
<<_ACEOF
13870 #define HAVE_GETPT 1
13877 # Check this now, so that we will NOT find the above functions in ncurses.
13878 # That is because we have not set up to link ncurses in lib-src.
13879 # It's better to believe a function is not available
13880 # than to expect to find it in ncurses.
13881 # Also we need tputs and friends to be able to build at all.
13882 have_tputs_et_al
=true
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13884 $as_echo_n "checking for library containing tputs... " >&6; }
13885 if ${ac_cv_search_tputs+:} false
; then :
13886 $as_echo_n "(cached) " >&6
13888 ac_func_search_save_LIBS
=$LIBS
13889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13907 for ac_lib
in '' ncurses terminfo termcap
; do
13908 if test -z "$ac_lib"; then
13909 ac_res
="none required"
13912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13914 if ac_fn_c_try_link
"$LINENO"; then :
13915 ac_cv_search_tputs
=$ac_res
13917 rm -f core conftest.err conftest.
$ac_objext \
13919 if ${ac_cv_search_tputs+:} false
; then :
13923 if ${ac_cv_search_tputs+:} false
; then :
13926 ac_cv_search_tputs
=no
13928 rm conftest.
$ac_ext
13929 LIBS
=$ac_func_search_save_LIBS
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13932 $as_echo "$ac_cv_search_tputs" >&6; }
13933 ac_res
=$ac_cv_search_tputs
13934 if test "$ac_res" != no
; then :
13935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13938 have_tputs_et_al
=false
13941 if test "$have_tputs_et_al" != true
; then
13942 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
13943 Maybe some development libraries/packages are missing? Try installing
13944 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13946 # Must define this when any termcap library is found.
13948 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13950 ## FIXME This was the cpp logic, but I am not sure it is right.
13951 ## The above test has not necessarily found libncurses.
13952 HAVE_LIBNCURSES
=yes
13954 ## Use terminfo instead of termcap?
13955 ## Note only system files NOT using terminfo are:
13956 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13957 ## darwin|gnu without ncurses.
13961 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13962 ## hpux10-20: Use the system provided termcap(3) library.
13963 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13964 ## is necessary. Otherwise Emacs dumps core when run -nw.
13965 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13967 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13968 ## The ncurses library has been moved out of the System framework in
13969 ## Mac OS X 10.2. So if configure detects it, set the command-line
13970 ## option to use it.
13972 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13973 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13975 LIBS_TERMCAP
="-lncurses"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13981 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13982 if ${emacs_cv_freebsd_terminfo+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 #include <osreldate.h>
13991 #if __FreeBSD_version < 400000
13999 if ac_fn_c_try_link
"$LINENO"; then :
14000 emacs_cv_freebsd_terminfo
=yes
14002 emacs_cv_freebsd_terminfo
=no
14004 rm -f core conftest.err conftest.
$ac_objext \
14005 conftest
$ac_exeext conftest.
$ac_ext
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14010 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14012 if test $emacs_cv_freebsd_terminfo = yes; then
14014 LIBS_TERMCAP
="-lncurses"
14016 LIBS_TERMCAP
="-ltermcap"
14021 if test $ac_cv_search_tputs = -lterminfo; then
14023 LIBS_TERMCAP
="-lterminfo"
14025 LIBS_TERMCAP
="-ltermcap"
14032 ## hpux: Make sure we get select from libc rather than from libcurses
14033 ## because libcurses on HPUX 10.10 has a broken version of select.
14034 ## We used to use -lc -lcurses, but this may be cleaner.
14035 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14037 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14039 ## Must use system termcap, if we use any termcap. It does special things.
14040 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14043 TERMCAP_OBJ
=tparam.o
14044 if test $TERMINFO = yes; then
14046 $as_echo "#define TERMINFO 1" >>confdefs.h
14049 ## Default used to be -ltermcap. Add a case above if need something else.
14050 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14052 TERMCAP_OBJ
=terminfo.o
14058 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <netinet/in.h>
14063 #include <arpa/nameser.h>
14064 #include <resolv.h>
14073 if ac_fn_c_try_link
"$LINENO"; then :
14078 rm -f core conftest.err conftest.
$ac_objext \
14079 conftest
$ac_exeext conftest.
$ac_ext
14080 if test "$have_res_init" = no
; then
14082 LIBS
="$LIBS -lresolv"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14084 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <netinet/in.h>
14088 #include <arpa/nameser.h>
14089 #include <resolv.h>
14098 if ac_fn_c_try_link
"$LINENO"; then :
14103 rm -f core conftest.err conftest.
$ac_objext \
14104 conftest
$ac_exeext conftest.
$ac_ext
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14106 $as_echo "$have_res_init" >&6; }
14107 if test "$have_res_init" = yes ; then
14113 if test "$have_res_init" = yes; then
14115 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14119 # Do we need the Hesiod library to provide the support routines?
14121 if test "$with_hesiod" != no
; then
14122 # Don't set $LIBS here -- see comments above. FIXME which comments?
14123 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14124 if test "x$ac_cv_func_res_send" = xyes
; then :
14127 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14128 if test "x$ac_cv_func___res_send" = xyes
; then :
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14132 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14133 if ${ac_cv_lib_resolv_res_send+:} false
; then :
14134 $as_echo_n "(cached) " >&6
14136 ac_check_lib_save_LIBS
=$LIBS
14137 LIBS
="-lresolv $LIBS"
14138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14141 /* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
14151 return res_send ();
14156 if ac_fn_c_try_link
"$LINENO"; then :
14157 ac_cv_lib_resolv_res_send
=yes
14159 ac_cv_lib_resolv_res_send
=no
14161 rm -f core conftest.err conftest.
$ac_objext \
14162 conftest
$ac_exeext conftest.
$ac_ext
14163 LIBS
=$ac_check_lib_save_LIBS
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14166 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14167 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14171 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14172 if ${ac_cv_lib_resolv___res_send+:} false
; then :
14173 $as_echo_n "(cached) " >&6
14175 ac_check_lib_save_LIBS
=$LIBS
14176 LIBS
="-lresolv $LIBS"
14177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14186 char __res_send ();
14190 return __res_send ();
14195 if ac_fn_c_try_link
"$LINENO"; then :
14196 ac_cv_lib_resolv___res_send
=yes
14198 ac_cv_lib_resolv___res_send
=no
14200 rm -f core conftest.err conftest.
$ac_objext \
14201 conftest
$ac_exeext conftest.
$ac_ext
14202 LIBS
=$ac_check_lib_save_LIBS
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14205 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14206 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
14216 if test "$resolv" = yes ; then
14221 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14222 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14226 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14227 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
14228 $as_echo_n "(cached) " >&6
14230 ac_check_lib_save_LIBS
=$LIBS
14231 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14235 /* Override any GCC internal prototype to avoid an error.
14236 Use char because int might match the return type of a GCC
14237 builtin and then its argument prototype would still apply. */
14241 char hes_getmailhost ();
14245 return hes_getmailhost ();
14250 if ac_fn_c_try_link
"$LINENO"; then :
14251 ac_cv_lib_hesiod_hes_getmailhost
=yes
14253 ac_cv_lib_hesiod_hes_getmailhost
=no
14255 rm -f core conftest.err conftest.
$ac_objext \
14256 conftest
$ac_exeext conftest.
$ac_ext
14257 LIBS
=$ac_check_lib_save_LIBS
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14260 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14261 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
14270 if test x
"$hesiod" = xyes
; then
14272 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14279 # Do we need libresolv (due to res_init or Hesiod)?
14280 if test "$resolv" = yes ; then
14282 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14290 # These tell us which Kerberos-related libraries to use.
14297 if test "${with_kerberos}" != no
; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14299 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14300 if ${ac_cv_lib_com_err_com_err+:} false
; then :
14301 $as_echo_n "(cached) " >&6
14303 ac_check_lib_save_LIBS
=$LIBS
14304 LIBS
="-lcom_err $LIBS"
14305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14323 if ac_fn_c_try_link
"$LINENO"; then :
14324 ac_cv_lib_com_err_com_err
=yes
14326 ac_cv_lib_com_err_com_err
=no
14328 rm -f core conftest.err conftest.
$ac_objext \
14329 conftest
$ac_exeext conftest.
$ac_ext
14330 LIBS
=$ac_check_lib_save_LIBS
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14333 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14334 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
14340 if test $have_com_err = yes; then
14341 COM_ERRLIB
=-lcom_err
14342 LIBS
="$COM_ERRLIB $LIBS"
14344 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14348 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14349 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
14350 $as_echo_n "(cached) " >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14353 LIBS
="-lcrypto $LIBS"
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14363 char mit_des_cbc_encrypt ();
14367 return mit_des_cbc_encrypt ();
14372 if ac_fn_c_try_link
"$LINENO"; then :
14373 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14375 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14377 rm -f core conftest.err conftest.
$ac_objext \
14378 conftest
$ac_exeext conftest.
$ac_ext
14379 LIBS
=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14382 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14383 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
14389 if test $have_crypto = yes; then
14391 LIBS
="$CRYPTOLIB $LIBS"
14393 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14397 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14398 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
14399 $as_echo_n "(cached) " >&6
14401 ac_check_lib_save_LIBS
=$LIBS
14402 LIBS
="-lk5crypto $LIBS"
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14412 char mit_des_cbc_encrypt ();
14416 return mit_des_cbc_encrypt ();
14421 if ac_fn_c_try_link
"$LINENO"; then :
14422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14424 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14426 rm -f core conftest.err conftest.
$ac_objext \
14427 conftest
$ac_exeext conftest.
$ac_ext
14428 LIBS
=$ac_check_lib_save_LIBS
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14431 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14432 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
14438 if test $have_k5crypto = yes; then
14439 CRYPTOLIB
=-lk5crypto
14440 LIBS
="$CRYPTOLIB $LIBS"
14442 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14446 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14447 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
14448 $as_echo_n "(cached) " >&6
14450 ac_check_lib_save_LIBS
=$LIBS
14451 LIBS
="-lkrb5 $LIBS"
14452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14455 /* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14461 char krb5_init_context ();
14465 return krb5_init_context ();
14470 if ac_fn_c_try_link
"$LINENO"; then :
14471 ac_cv_lib_krb5_krb5_init_context
=yes
14473 ac_cv_lib_krb5_krb5_init_context
=no
14475 rm -f core conftest.err conftest.
$ac_objext \
14476 conftest
$ac_exeext conftest.
$ac_ext
14477 LIBS
=$ac_check_lib_save_LIBS
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14480 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14481 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
14487 if test $have_krb5=yes; then
14489 LIBS
="$KRB5LIB $LIBS"
14491 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14494 if test "${with_kerberos5}" = no
; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14496 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14497 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
14498 $as_echo_n "(cached) " >&6
14500 ac_check_lib_save_LIBS
=$LIBS
14501 LIBS
="-ldes425 $LIBS"
14502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14511 char des_cbc_encrypt ();
14515 return des_cbc_encrypt ();
14520 if ac_fn_c_try_link
"$LINENO"; then :
14521 ac_cv_lib_des425_des_cbc_encrypt
=yes
14523 ac_cv_lib_des425_des_cbc_encrypt
=no
14525 rm -f core conftest.err conftest.
$ac_objext \
14526 conftest
$ac_exeext conftest.
$ac_ext
14527 LIBS
=$ac_check_lib_save_LIBS
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14530 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14531 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
14537 if test $have_des425 = yes; then
14539 LIBS
="$DESLIB $LIBS"
14541 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14545 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14546 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
14547 $as_echo_n "(cached) " >&6
14549 ac_check_lib_save_LIBS
=$LIBS
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14560 char des_cbc_encrypt ();
14564 return des_cbc_encrypt ();
14569 if ac_fn_c_try_link
"$LINENO"; then :
14570 ac_cv_lib_des_des_cbc_encrypt
=yes
14572 ac_cv_lib_des_des_cbc_encrypt
=no
14574 rm -f core conftest.err conftest.
$ac_objext \
14575 conftest
$ac_exeext conftest.
$ac_ext
14576 LIBS
=$ac_check_lib_save_LIBS
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14579 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14580 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
14586 if test $have_des = yes; then
14588 LIBS
="$DESLIB $LIBS"
14590 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14595 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14596 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
14597 $as_echo_n "(cached) " >&6
14599 ac_check_lib_save_LIBS
=$LIBS
14600 LIBS
="-lkrb4 $LIBS"
14601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14610 char krb_get_cred ();
14614 return krb_get_cred ();
14619 if ac_fn_c_try_link
"$LINENO"; then :
14620 ac_cv_lib_krb4_krb_get_cred
=yes
14622 ac_cv_lib_krb4_krb_get_cred
=no
14624 rm -f core conftest.err conftest.
$ac_objext \
14625 conftest
$ac_exeext conftest.
$ac_ext
14626 LIBS
=$ac_check_lib_save_LIBS
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14629 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14630 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
14636 if test $have_krb4 = yes; then
14638 LIBS
="$KRB4LIB $LIBS"
14640 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14644 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14645 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 ac_check_lib_save_LIBS
=$LIBS
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14659 char krb_get_cred ();
14663 return krb_get_cred ();
14668 if ac_fn_c_try_link
"$LINENO"; then :
14669 ac_cv_lib_krb_krb_get_cred
=yes
14671 ac_cv_lib_krb_krb_get_cred
=no
14673 rm -f core conftest.err conftest.
$ac_objext \
14674 conftest
$ac_exeext conftest.
$ac_ext
14675 LIBS
=$ac_check_lib_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14678 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14679 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
14685 if test $have_krb = yes; then
14687 LIBS
="$KRB4LIB $LIBS"
14689 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14695 if test "${with_kerberos5}" != no
; then
14696 for ac_header
in krb5.h
14698 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14699 if test "x$ac_cv_header_krb5_h" = xyes
; then :
14700 cat >>confdefs.h
<<_ACEOF
14701 #define HAVE_KRB5_H 1
14703 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14705 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
14707 cat >>confdefs.h
<<_ACEOF
14708 #define HAVE_KRB5_ERROR_TEXT 1
14713 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14715 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
14717 cat >>confdefs.h
<<_ACEOF
14718 #define HAVE_KRB5_ERROR_E_TEXT 1
14729 for ac_header
in des.h
14731 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14732 if test "x$ac_cv_header_des_h" = xyes
; then :
14733 cat >>confdefs.h
<<_ACEOF
14734 #define HAVE_DES_H 1
14738 for ac_header
in kerberosIV
/des.h
14740 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14741 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
14742 cat >>confdefs.h
<<_ACEOF
14743 #define HAVE_KERBEROSIV_DES_H 1
14747 for ac_header
in kerberos
/des.h
14749 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14750 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
14751 cat >>confdefs.h
<<_ACEOF
14752 #define HAVE_KERBEROS_DES_H 1
14767 for ac_header
in krb.h
14769 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14770 if test "x$ac_cv_header_krb_h" = xyes
; then :
14771 cat >>confdefs.h
<<_ACEOF
14772 #define HAVE_KRB_H 1
14776 for ac_header
in kerberosIV
/krb.h
14778 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14779 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
14780 cat >>confdefs.h
<<_ACEOF
14781 #define HAVE_KERBEROSIV_KRB_H 1
14785 for ac_header
in kerberos
/krb.h
14787 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14788 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
14789 cat >>confdefs.h
<<_ACEOF
14790 #define HAVE_KERBEROS_KRB_H 1
14806 for ac_header
in com_err.h
14808 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14809 if test "x$ac_cv_header_com_err_h" = xyes
; then :
14810 cat >>confdefs.h
<<_ACEOF
14811 #define HAVE_COM_ERR_H 1
14826 # Solaris requires -lintl if you want strerror (which calls dgettext)
14827 # to return localized messages.
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14829 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14830 if ${ac_cv_lib_intl_dgettext+:} false
; then :
14831 $as_echo_n "(cached) " >&6
14833 ac_check_lib_save_LIBS
=$LIBS
14834 LIBS
="-lintl $LIBS"
14835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14848 return dgettext ();
14853 if ac_fn_c_try_link
"$LINENO"; then :
14854 ac_cv_lib_intl_dgettext
=yes
14856 ac_cv_lib_intl_dgettext
=no
14858 rm -f core conftest.err conftest.
$ac_objext \
14859 conftest
$ac_exeext conftest.
$ac_ext
14860 LIBS
=$ac_check_lib_save_LIBS
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14863 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14864 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
14865 cat >>confdefs.h
<<_ACEOF
14866 #define HAVE_LIBINTL 1
14869 LIBS
="-lintl $LIBS"
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14875 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14876 if ${emacs_cv_localtime_cache+:} false
; then :
14877 $as_echo_n "(cached) " >&6
14879 if test x
$ac_cv_func_tzset = xyes
; then
14880 if test "$cross_compiling" = yes; then :
14881 # If we have tzset, assume the worst when cross-compiling.
14882 emacs_cv_localtime_cache
=yes
14884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 char TZ_GMT0[] = "TZ=GMT0";
14888 char TZ_PST8[] = "TZ=PST8";
14891 time_t now = time ((time_t *) 0);
14892 int hour_GMT0, hour_unset;
14893 if (putenv (TZ_GMT0) != 0)
14895 hour_GMT0 = localtime (&now)->tm_hour;
14897 hour_unset = localtime (&now)->tm_hour;
14898 if (putenv (TZ_PST8) != 0)
14900 if (localtime (&now)->tm_hour == hour_GMT0)
14903 if (localtime (&now)->tm_hour != hour_unset)
14908 if ac_fn_c_try_run
"$LINENO"; then :
14909 emacs_cv_localtime_cache
=no
14911 emacs_cv_localtime_cache
=yes
14913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14918 # If we lack tzset, report that localtime does not cache TZ,
14919 # since we can't invalidate the cache if we don't have tzset.
14920 emacs_cv_localtime_cache
=no
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14924 $as_echo "$emacs_cv_localtime_cache" >&6; }
14925 if test $emacs_cv_localtime_cache = yes; then
14927 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14931 if test "x$HAVE_TIMEVAL" = xyes
; then
14932 for ac_func
in gettimeofday
14934 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14935 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
14936 cat >>confdefs.h
<<_ACEOF
14937 #define HAVE_GETTIMEOFDAY 1
14943 if test $ac_cv_func_gettimeofday = yes; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14945 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14946 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
14947 $as_echo_n "(cached) " >&6
14949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14952 #ifdef TIME_WITH_SYS_TIME
14953 #include <sys/time.h>
14956 #ifdef HAVE_SYS_TIME_H
14957 #include <sys/time.h>
14965 struct timeval time;
14966 gettimeofday (&time, 0);
14971 if ac_fn_c_try_compile
"$LINENO"; then :
14972 emacs_cv_gettimeofday_two_arguments
=yes
14974 emacs_cv_gettimeofday_two_arguments
=no
14976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14979 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14980 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14982 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14989 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14990 if test "x$ac_cv_func_socket" = xyes
; then :
14996 if test $ok_so_far = yes; then
14997 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14998 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
15006 if test $ok_so_far = yes; then
15007 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15008 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
15016 if test $ok_so_far = yes; then
15018 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15022 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15024 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15029 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15030 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15034 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15041 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15042 if test "x$ac_cv_type_pid_t" = xyes
; then :
15046 cat >>confdefs.h
<<_ACEOF
15052 for ac_header
in vfork.h
15054 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15055 if test "x$ac_cv_header_vfork_h" = xyes
; then :
15056 cat >>confdefs.h
<<_ACEOF
15057 #define HAVE_VFORK_H 1
15064 for ac_func
in fork vfork
15066 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15068 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15069 cat >>confdefs.h
<<_ACEOF
15070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15076 if test "x$ac_cv_func_fork" = xyes
; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15078 $as_echo_n "checking for working fork... " >&6; }
15079 if ${ac_cv_func_fork_works+:} false
; then :
15080 $as_echo_n "(cached) " >&6
15082 if test "$cross_compiling" = yes; then :
15083 ac_cv_func_fork_works
=cross
15085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 $ac_includes_default
15092 /* By Ruediger Kuhlmann. */
15093 return fork () < 0;
15099 if ac_fn_c_try_run
"$LINENO"; then :
15100 ac_cv_func_fork_works
=yes
15102 ac_cv_func_fork_works
=no
15104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15110 $as_echo "$ac_cv_func_fork_works" >&6; }
15113 ac_cv_func_fork_works
=$ac_cv_func_fork
15115 if test "x$ac_cv_func_fork_works" = xcross
; then
15117 *-*-amigaos* |
*-*-msdosdjgpp*)
15118 # Override, as these systems have only a dummy fork() stub
15119 ac_cv_func_fork_works
=no
15122 ac_cv_func_fork_works
=yes
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15126 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15128 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15129 if test "x$ac_cv_func_vfork" = xyes
; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15131 $as_echo_n "checking for working vfork... " >&6; }
15132 if ${ac_cv_func_vfork_works+:} false
; then :
15133 $as_echo_n "(cached) " >&6
15135 if test "$cross_compiling" = yes; then :
15136 ac_cv_func_vfork_works
=cross
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 /* Thanks to Paul Eggert for this test. */
15141 $ac_includes_default
15142 #include <sys/wait.h>
15143 #ifdef HAVE_VFORK_H
15144 # include <vfork.h>
15146 /* On some sparc systems, changes by the child to local and incoming
15147 argument registers are propagated back to the parent. The compiler
15148 is told about this with #include <vfork.h>, but some compilers
15149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15150 static variable whose address is put into a register that is
15151 clobbered by the vfork. */
15154 sparc_address_test (int arg)
15156 sparc_address_test (arg) int arg;
15159 static pid_t child;
15177 pid_t parent = getpid ();
15180 sparc_address_test (0);
15185 /* Here is another test for sparc vfork register problems. This
15186 test uses lots of local variables, at least as many local
15187 variables as main has allocated so far including compiler
15188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15190 reuse the register of parent for one of the local variables,
15191 since it will think that parent can't possibly be used any more
15192 in this routine. Assigning to the local variable will thus
15193 munge parent in the parent process. */
15195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15197 /* Convince the compiler that p..p7 are live; otherwise, it might
15198 use the same hardware register for all 8 local variables. */
15199 if (p != p1 || p != p2 || p != p3 || p != p4
15200 || p != p5 || p != p6 || p != p7)
15203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15204 from child file descriptors. If the child closes a descriptor
15205 before it execs or exits, this munges the parent's descriptor
15206 as well. Test for this by closing stdout in the child. */
15207 _exit(close(fileno(stdout)) != 0);
15212 while (wait(&status) != child)
15215 /* Was there some problem with vforking? */
15218 /* Did the child fail? (This shouldn't happen.) */
15221 /* Did the vfork/compiler bug occur? */
15222 || parent != getpid()
15224 /* Did the file descriptor bug occur? */
15225 || fstat(fileno(stdout), &st) != 0
15230 if ac_fn_c_try_run
"$LINENO"; then :
15231 ac_cv_func_vfork_works
=yes
15233 ac_cv_func_vfork_works
=no
15235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15241 $as_echo "$ac_cv_func_vfork_works" >&6; }
15244 if test "x$ac_cv_func_fork_works" = xcross
; then
15245 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15247 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15250 if test "x$ac_cv_func_vfork_works" = xyes
; then
15252 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15256 $as_echo "#define vfork fork" >>confdefs.h
15259 if test "x$ac_cv_func_fork_works" = xyes
; then
15261 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15267 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15268 if ${emacs_cv_langinfo_codeset+:} false
; then :
15269 $as_echo_n "(cached) " >&6
15271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <langinfo.h>
15277 char* cs = nl_langinfo(CODESET);
15282 if ac_fn_c_try_link
"$LINENO"; then :
15283 emacs_cv_langinfo_codeset
=yes
15285 emacs_cv_langinfo_codeset
=no
15287 rm -f core conftest.err conftest.
$ac_objext \
15288 conftest
$ac_exeext conftest.
$ac_ext
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15292 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15293 if test $emacs_cv_langinfo_codeset = yes; then
15295 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15299 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15300 if test "x$ac_cv_type_size_t" = xyes
; then :
15302 cat >>confdefs.h
<<_ACEOF
15303 #define HAVE_SIZE_T 1
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15311 $as_echo_n "checking for mbstate_t... " >&6; }
15312 if ${ac_cv_type_mbstate_t+:} false
; then :
15313 $as_echo_n "(cached) " >&6
15315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 # include <wchar.h>
15322 mbstate_t x; return sizeof x;
15327 if ac_fn_c_try_compile
"$LINENO"; then :
15328 ac_cv_type_mbstate_t
=yes
15330 ac_cv_type_mbstate_t
=no
15332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15335 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15336 if test $ac_cv_type_mbstate_t = yes; then
15338 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15342 $as_echo "#define mbstate_t int" >>confdefs.h
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
15347 $as_echo_n "checking for C restrict keyword... " >&6; }
15348 if ${emacs_cv_c_restrict+:} false
; then :
15349 $as_echo_n "(cached) " >&6
15351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15353 void fred (int *restrict x);
15362 if ac_fn_c_try_compile
"$LINENO"; then :
15363 emacs_cv_c_restrict
=yes
15365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 void fred (int *__restrict x);
15376 if ac_fn_c_try_compile
"$LINENO"; then :
15377 emacs_cv_c_restrict
=__restrict
15379 emacs_cv_c_restrict
=no
15381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
15386 $as_echo "$emacs_cv_c_restrict" >&6; }
15387 case "$emacs_cv_c_restrict" in
15388 yes) emacs_restrict
=restrict
;;
15389 no
) emacs_restrict
="";;
15390 *) emacs_restrict
="$emacs_cv_c_restrict";;
15392 if test "$emacs_restrict" != __restrict
; then
15394 cat >>confdefs.h
<<_ACEOF
15395 #define __restrict $emacs_restrict
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15401 $as_echo_n "checking for C restricted array declarations... " >&6; }
15402 if ${emacs_cv_c_restrict_arr+:} false
; then :
15403 $as_echo_n "(cached) " >&6
15405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 void fred (int x[__restrict]);
15416 if ac_fn_c_try_compile
"$LINENO"; then :
15417 emacs_cv_c_restrict_arr
=yes
15419 emacs_cv_c_restrict_arr
=no
15421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15424 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15425 if test "$emacs_cv_c_restrict_arr" = yes; then
15427 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15433 # Set up the CFLAGS for real compilation, so we can substitute it.
15434 CFLAGS
="$REAL_CFLAGS"
15435 CPPFLAGS
="$REAL_CPPFLAGS"
15437 ## Hack to detect a buggy GCC version.
15438 if test "x$GCC" = xyes \
15439 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15440 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15441 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15442 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15445 #### Find out which version of Emacs this is.
15446 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
15447 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15448 if test x
"${version}" = x
; then
15449 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
15451 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
15453 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
15456 ### Specify what sort of things we'll be editing into Makefile and config.h.
15457 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15481 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15482 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15483 ## end of LIBX_BASE, but nothing ever set it.
15488 ## Used in lwlib/Makefile.in.
15490 if test -n "${machfile}"; then
15491 M_FILE="\$
(srcdir
)/${machfile}"
15495 S_FILE="\$
(srcdir
)/${opsysfile}"
15507 cat >>confdefs.h <<_ACEOF
15508 #define EMACS_CONFIGURATION "${canonical}"
15512 cat >>confdefs.h <<_ACEOF
15513 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15516 if test -n "$machfile"; then
15518 cat >>confdefs.h <<_ACEOF
15519 #define config_machfile "${machfile}"
15524 cat >>confdefs.h <<_ACEOF
15525 #define config_opsysfile "${opsysfile}"
15532 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15534 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15537 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15539 if test "$HAVE_XFT" = "yes"; then
15540 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15541 elif test "$HAVE_FREETYPE" = "yes"; then
15542 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15552 if test "${USE_X_TOOLKIT}" != "none" ; then
15553 WIDGET_OBJ
=widget.o
15555 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15557 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15559 $as_echo "#define USE_LUCID 1" >>confdefs.h
15561 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15563 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15568 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15569 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15573 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15574 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15575 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15579 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15580 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15583 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15589 case "$USE_X_TOOLKIT" in
15590 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15591 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15592 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15596 if test "$USE_X_TOOLKIT" = "none"; then
15597 LIBXT_OTHER
="\$(LIBXSM)"
15598 OLDXMENU_TARGET
="really-oldXMenu"
15600 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15601 OLDXMENU_TARGET
="really-lwlib"
15605 ## The X Menu stuff is present in the X10 distribution, but missing
15606 ## from X11. If we have X10, just use the installed library;
15607 ## otherwise, use our own copy.
15608 if test "${HAVE_X11}" = "yes" ; then
15610 $as_echo "#define HAVE_X11 1" >>confdefs.h
15613 if test "$USE_X_TOOLKIT" = "none"; then
15614 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15616 OLDXMENU
="\${lwlibdir}/liblw.a"
15618 LIBXMENU
="\$(OLDXMENU)"
15619 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15620 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15622 ## For a syntactically valid Makefile; not actually used for anything.
15623 ## See comments in src/Makefile.in.
15625 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15626 if test "${HAVE_X_WINDOWS}" = "yes"; then
15635 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15648 if test "${HAVE_MENUS}" = "yes" ; then
15650 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15654 if test "${GNU_MALLOC}" = "yes" ; then
15656 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15661 if test "${REL_ALLOC}" = "yes" ; then
15663 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15666 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15670 if test "$opsys" = "cygwin"; then
15671 CYGWIN_OBJ
="sheap.o"
15672 ## Cygwin differs because of its unexec().
15674 POST_ALLOC_OBJ
=lastfile.o
15677 PRE_ALLOC_OBJ
=lastfile.o
15686 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
15689 ## The -headerpad option tells ld (see man page) to leave room at the
15690 ## end of the header for adding load commands. Needed for dumping.
15691 ## 0x690 is the total size of 30 segment load commands (at 56
15692 ## each); under Cocoa 31 commands are required.
15693 if test "$HAVE_NS" = "yes"; then
15694 libs_nsgui
="-framework AppKit"
15695 headerpad_extra
=6C8
15698 headerpad_extra
=690
15700 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
15702 ## This is here because src/Makefile.in did some extra fiddling around
15703 ## with LD_SWITCH_SYSTEM. The cpp logic was:
15704 ## #ifndef LD_SWITCH_SYSTEM
15705 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
15706 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
15707 ## not using gcc, darwin system not on an alpha (ie darwin, since
15708 ## darwin + alpha does not occur).
15709 ## Because this was done in src/Makefile.in, the resulting part of
15710 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
15711 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
15712 ## rather than LD_SWITCH_SYSTEM.
15713 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
15714 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
15717 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
15718 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
15719 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
15720 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
15721 ## had different values in configure (in ac_link) and src/Makefile.in.
15722 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
15723 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
15725 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
15728 if test "$NS_IMPL_GNUSTEP" = "yes"; then
15729 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
15738 ## gnu: GNU needs its own crt0.
15739 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
15741 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
15742 ## library search parth, i.e. it won't search /usr/lib for libc and
15743 ## friends. Using -nostartfiles instead avoids this problem, and
15744 ## will also work on earlier NetBSD releases.
15745 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
15747 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
15748 ## MkLinux/LinuxPPC needs this.
15749 ## ibms390x only supports opsys = gnu-linux so it can be added here.
15752 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
15758 if test "x$ORDINARY_LINK" = "xyes"; then
15762 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
15765 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
15766 ## freebsd, gnu-* not on macppc|ibms390x.
15767 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
15769 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
15770 ## places that are difficult to figure out at make time. Fortunately,
15771 ## these same versions allow you to pass arbitrary flags on to the
15772 ## linker, so there is no reason not to use it as a linker.
15774 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
15775 ## searching for libraries in its internal directories, so we have to
15776 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
15777 LD_FIRSTFLAG
="-nostdlib"
15780 ## FIXME? What setting of EDIT_LDFLAGS should this have?
15781 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
15786 ## FIXME? The logic here is not precisely the same as that above.
15787 ## There is no check here for a pre-defined LD_FIRSTFLAG.
15788 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
15790 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
15793 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
15796 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
15797 ## build on ARM EABI under GNU/Linux. (Bug#5518)
15803 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
15804 ## immediately undefine it again and redefine it to empty.
15805 ## Was the C_SWITCH_X_SITE part really necessary?
15806 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
15812 ## Ask GCC where to find libgcc.a.
15813 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
15820 ## If we're using X11/GNUstep, define some consequences.
15821 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
15823 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
15826 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
15828 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
15829 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
15831 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
15832 test "$HAVE_X_WINDOWS" = "yes" && \
15833 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
15843 #### Report on what we decided to do.
15844 #### Report GTK as a toolkit, even if it doesn't use Xt.
15845 #### It makes printing result more understandable as using GTK sets
15846 #### toolkit_scroll_bars to yes by default.
15847 if test "${HAVE_GTK}" = "yes"; then
15852 if test -n "$machfile"; then
15853 and_machfile
=" and \`${machfile}'"
15857 Configured for \`${canonical}'.
15859 Where should the build process find the source code? ${srcdir}
15860 What operating system and machine description files should Emacs use?
15861 \`${opsysfile}'${and_machfile}
15862 What compiler should emacs be built with? ${CC} ${CFLAGS}
15863 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15864 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15865 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15866 What window system should Emacs use? ${window_system}
15867 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15869 if test -n "${x_includes}"; then
15870 echo " Where do we find X Windows header files? ${x_includes}"
15872 echo " Where do we find X Windows header files? Standard dirs"
15874 if test -n "${x_libraries}"; then
15875 echo " Where do we find X Windows libraries? ${x_libraries}"
15877 echo " Where do we find X Windows libraries? Standard dirs"
15880 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15881 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15882 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15883 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15884 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
15885 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15886 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
15887 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
15889 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
15890 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15891 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15892 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15893 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15894 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15896 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15897 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15898 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15899 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15901 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15904 if test $USE_XASSERTS = yes; then
15905 echo " Compiling with asserts turned on."
15906 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
15911 if test "$HAVE_NS" = "yes"; then
15913 echo "You must run \"make install\" in order to test the built application.
15914 The installed application will go to nextstep/Emacs.app and can be
15915 run or moved from there."
15916 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15917 echo "The application will be fully self-contained."
15919 echo "The lisp resources for the application will be installed under ${prefix}.
15920 You may need to run \"make install\" with sudo. The application will fail
15921 to run if these resources are not installed."
15927 # Remove any trailing slashes in these variables.
15928 test "${prefix}" != NONE
&&
15929 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15930 test "${exec_prefix}" != NONE
&&
15931 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15933 ac_config_files
="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
15935 ac_config_commands
="$ac_config_commands default"
15937 cat >confcache
<<\_ACEOF
15938 # This file is a shell script that caches the results of configure
15939 # tests run on this system so they can be shared between configure
15940 # scripts and configure runs, see configure's option --config-cache.
15941 # It is not useful on other systems. If it contains results you don't
15942 # want to keep, you may remove or edit it.
15944 # config.status only pays attention to the cache file if you give it
15945 # the --recheck option to rerun configure.
15947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15949 # following values.
15953 # The following way of writing the cache mishandles newlines in values,
15954 # but we know of no workaround that is simple, portable, and efficient.
15955 # So, we kill variables containing newlines.
15956 # Ultrix sh set writes to stderr and can't be redirected directly,
15957 # and sets the high bit in the cache file unless we assign to the vars.
15959 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15960 eval ac_val
=\$
$ac_var
15964 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15968 _ | IFS | as_nl
) ;; #(
15969 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15970 *) { eval $ac_var=; unset $ac_var;} ;;
15976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15977 *${as_nl}ac_space
=\
*)
15978 # `set' does not quote correctly, so add quotes: double-quote
15979 # substitution turns \\\\ into \\, and sed turns \\ into \.
15982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15985 # `set' quotes correctly as required by POSIX, so do not add quotes.
15986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15999 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16000 if test -w "$cache_file"; then
16001 if test "x$cache_file" != "x/dev/null"; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16003 $as_echo "$as_me: updating cache $cache_file" >&6;}
16004 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16005 cat confcache
>"$cache_file"
16007 case $cache_file in #(
16009 mv -f confcache
"$cache_file"$$
&&
16010 mv -f "$cache_file"$$
"$cache_file" ;; #(
16012 mv -f confcache
"$cache_file" ;;
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16023 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16024 # Let make expand exec_prefix.
16025 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16027 DEFS
=-DHAVE_CONFIG_H
16032 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16033 # 1. Remove the extension, and $U if already installed.
16034 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16035 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16037 # will be set to the directory where LIBOBJS objects are built.
16038 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16039 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16041 LIBOBJS
=$ac_libobjs
16043 LTLIBOBJS
=$ac_ltlibobjs
16046 if test -n "$EXEEXT"; then
16048 am__EXEEXT_FALSE
='#'
16050 am__EXEEXT_TRUE
='#'
16054 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16055 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16058 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16059 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16063 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16064 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
16065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16070 if test -n "$gl_LIBOBJS"; then
16071 # Remove the extension.
16072 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16073 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16074 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16075 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16078 gl_LIBOBJS
=$gl_libobjs
16080 gl_LTLIBOBJS
=$gl_ltlibobjs
16086 if test -n "$gltests_LIBOBJS"; then
16087 # Remove the extension.
16088 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16089 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16090 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16091 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16094 gltests_LIBOBJS
=$gltests_libobjs
16096 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16100 : "${CONFIG_STATUS=./config.status}"
16102 ac_clean_files_save
=$ac_clean_files
16103 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16107 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16109 # Generated by $as_me.
16110 # Run this file to recreate the current configuration.
16111 # Compiler output produced by configure, useful for debugging
16112 # configure, is in config.log if it exists.
16115 ac_cs_recheck=false
16118 SHELL=\${CONFIG_SHELL-$SHELL}
16121 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16122 ## -------------------- ##
16123 ## M4sh Initialization. ##
16124 ## -------------------- ##
16126 # Be more Bourne compatible
16127 DUALCASE
=1; export DUALCASE
# for MKS sh
16128 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16132 # is contrary to our usage. Disable this feature.
16133 alias -g '${1+"$@"}'='"$@"'
16134 setopt NO_GLOB_SUBST
16136 case `(set -o) 2>/dev/null` in #(
16148 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16149 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16152 # Prefer a ksh shell builtin over an external printf program on Solaris,
16153 # but without wasting forks for bash or zsh.
16154 if test -z "$BASH_VERSION$ZSH_VERSION" \
16155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16156 as_echo='print
-r --'
16157 as_echo_n='print
-rn --'
16158 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16159 as_echo='printf %s
\n'
16160 as_echo_n='printf %s
'
16162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16163 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16164 as_echo_n='/usr
/ucb
/echo -n'
16166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16167 as_echo_n_body='eval
16171 expr "X$arg" : "X\\(.*\\)$as_nl";
16172 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16174 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16176 export as_echo_n_body
16177 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16179 export as_echo_body
16180 as_echo='sh
-c $as_echo_body as_echo
'
16183 # The user is always right.
16184 if test "${PATH_SEPARATOR+set}" != set; then
16186 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16187 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16194 # We need space, tab and new line, in precisely that order. Quoting is
16195 # there to prevent editors from complaining about space-tab.
16196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16197 # splitting by setting IFS to empty value.)
16200 # Find who we are. Look in the path if we contain no directory separator.
16203 *[\\/]* ) as_myself=$0 ;;
16204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16208 test -z "$as_dir" && as_dir=.
16209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16215 # We did not find ourselves, most probably we were run as `sh COMMAND'
16216 # in which case we are not to be found in the path.
16217 if test "x$as_myself" = x
; then
16220 if test ! -f "$as_myself"; then
16221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16225 # Unset variables that we do not need and which cause bugs (e.g. in
16226 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16227 # suppresses any "Segmentation fault" message there. '((' could
16228 # trigger a bug in pdksh 5.2.14.
16229 for as_var
in BASH_ENV ENV MAIL MAILPATH
16230 do eval test x\
${$as_var+set} = xset \
16231 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16244 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16248 # ----------------------------------------
16249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16251 # script with STATUS, using 1 if that was 0.
16254 as_status
=$1; test $as_status -eq 0 && as_status
=1
16256 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16259 $as_echo "$as_me: error: $2" >&2
16260 as_fn_exit
$as_status
16264 # as_fn_set_status STATUS
16265 # -----------------------
16266 # Set $? to STATUS, without forking.
16267 as_fn_set_status
()
16270 } # as_fn_set_status
16272 # as_fn_exit STATUS
16273 # -----------------
16274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16278 as_fn_set_status
$1
16284 # Portably unset VAR.
16287 { eval $1=; unset $1;}
16289 as_unset
=as_fn_unset
16290 # as_fn_append VAR VALUE
16291 # ----------------------
16292 # Append the text in VALUE to the end of the definition contained in VAR. Take
16293 # advantage of any shell optimizations that allow amortized linear growth over
16294 # repeated appends, instead of the typical quadratic growth present in naive
16296 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16297 eval 'as_fn_append ()
16308 # as_fn_arith ARG...
16309 # ------------------
16310 # Perform arithmetic evaluation on the ARGs, and store the result in the
16311 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16312 # must be portable across $(()) and expr.
16313 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16314 eval 'as_fn_arith ()
16321 as_val
=`expr "$@" || test $? -eq 1`
16326 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16327 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16333 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16334 as_basename
=basename
16339 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16345 as_me
=`$as_basename -- "$0" ||
16346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16347 X"$0" : 'X\(//\)$' \| \
16348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16350 sed '/^.*\/\([^/][^/]*\)\/*$/{
16364 # Avoid depending upon Character Ranges.
16365 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16366 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16367 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16368 as_cr_digits
='0123456789'
16369 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16371 ECHO_C
= ECHO_N
= ECHO_T
=
16372 case `echo -n x` in #(((((
16374 case `echo 'xy\c'` in
16375 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16377 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16384 rm -f conf$$ conf$$.exe conf$$.
file
16385 if test -d conf$$.dir
; then
16386 rm -f conf$$.dir
/conf$$.
file
16389 mkdir conf$$.dir
2>/dev
/null
16391 if (echo >conf$$.
file) 2>/dev
/null
; then
16392 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16394 # ... but there are two gotchas:
16395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16397 # In both cases, we have to default to `cp -p'.
16398 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16400 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16408 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16409 rmdir conf$$.dir
2>/dev
/null
16414 # Create "$as_dir" as a directory, including parents if necessary.
16419 -*) as_dir
=.
/$as_dir;;
16421 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16425 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16426 *) as_qdir
=$as_dir;;
16428 as_dirs
="'$as_qdir' $as_dirs"
16429 as_dir
=`$as_dirname -- "$as_dir" ||
16430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$as_dir" : 'X\(//\)[^/]' \| \
16432 X"$as_dir" : 'X\(//\)$' \| \
16433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$as_dir" |
16435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 /^X\(\/\/\)[^/].*/{
16452 test -d "$as_dir" && break
16454 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16455 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16459 if mkdir
-p .
2>/dev
/null
; then
16460 as_mkdir_p
='mkdir -p "$as_dir"'
16462 test -d .
/-p && rmdir .
/-p
16466 if test -x / >/dev
/null
2>&1; then
16467 as_test_x
='test -x'
16469 if ls -dL / >/dev
/null
2>&1; then
16476 if test -d "$1"; then
16482 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16483 ???[sx]*):;;*)false;;esac;fi
16487 as_executable_p
=$as_test_x
16489 # Sed expression to map a string onto a valid CPP name.
16490 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16492 # Sed expression to map a string onto a valid variable name.
16493 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16497 ## ----------------------------------- ##
16498 ## Main body of $CONFIG_STATUS script. ##
16499 ## ----------------------------------- ##
16501 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16504 # Save the log message, to keep $0 and so on meaningful, and to
16505 # report actual input values of CONFIG_FILES etc. instead of their
16506 # values after options handling.
16508 This file was extended by emacs $as_me 24.0.50, which was
16509 generated by GNU Autoconf 2.68. Invocation command line was
16511 CONFIG_FILES = $CONFIG_FILES
16512 CONFIG_HEADERS = $CONFIG_HEADERS
16513 CONFIG_LINKS = $CONFIG_LINKS
16514 CONFIG_COMMANDS = $CONFIG_COMMANDS
16517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16522 case $ac_config_files in *"
16523 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16526 case $ac_config_headers in *"
16527 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16532 # Files that config.status was made for.
16533 config_files="$ac_config_files"
16534 config_headers="$ac_config_headers"
16535 config_commands="$ac_config_commands"
16539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16541 \`$as_me' instantiates files and other configuration actions
16542 from templates according to the current configuration. Unless the files
16543 and actions are specified as TAGs, all are instantiated by default.
16545 Usage: $0 [OPTION]... [TAG]...
16547 -h, --help print this help, then exit
16548 -V, --version print version number and configuration settings, then exit
16549 --config print configuration, then exit
16550 -q, --quiet, --silent
16551 do not print progress messages
16552 -d, --debug don't remove temporary files
16553 --recheck update $as_me by reconfiguring in the same conditions
16554 --file=FILE[:TEMPLATE]
16555 instantiate the configuration file FILE
16556 --header=FILE[:TEMPLATE]
16557 instantiate the configuration header FILE
16559 Configuration files:
16562 Configuration headers:
16565 Configuration commands:
16568 Report bugs to the package provider."
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16574 emacs config.status 24.0.50
16575 configured by $0, generated by GNU Autoconf 2.68,
16576 with options \\"\$ac_cs_config\\"
16578 Copyright (C) 2010 Free Software Foundation, Inc.
16579 This config.status script is free software; the Free Software Foundation
16580 gives unlimited permission to copy, distribute and modify it."
16587 test -n "\$AWK" || AWK=awk
16590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16591 # The default lists apply if the user does not specify any file.
16597 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16598 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16602 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16614 # Handling of the options.
16615 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16617 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16618 $as_echo "$ac_cs_version"; exit ;;
16619 --config |
--confi |
--conf |
--con |
--co |
--c )
16620 $as_echo "$ac_cs_config"; exit ;;
16621 --debug |
--debu |
--deb |
--de |
--d |
-d )
16623 --file |
--fil |
--fi |
--f )
16626 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16627 '') as_fn_error $?
"missing file argument" ;;
16629 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16630 ac_need_defaults
=false
;;
16631 --header |
--heade |
--head |
--hea )
16634 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16636 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16637 ac_need_defaults
=false
;;
16639 # Conflict between --help and --header
16640 as_fn_error $?
"ambiguous option: \`$1'
16641 Try \`$0 --help' for more information.";;
16642 --help |
--hel |
-h )
16643 $as_echo "$ac_cs_usage"; exit ;;
16644 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16645 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16648 # This is an error.
16649 -*) as_fn_error $?
"unrecognized option: \`$1'
16650 Try \`$0 --help' for more information." ;;
16652 *) as_fn_append ac_config_targets
" $1"
16653 ac_need_defaults
=false
;;
16659 ac_configure_extra_args
=
16661 if $ac_cs_silent; then
16663 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 if \$ac_cs_recheck; then
16669 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16672 CONFIG_SHELL='$SHELL'
16673 export CONFIG_SHELL
16678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16683 ## Running $as_me. ##
16689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16694 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
16698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16700 # Handling of arguments.
16701 for ac_config_target
in $ac_config_targets
16703 case $ac_config_target in
16704 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16705 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16706 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16707 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
16708 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
16709 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16710 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
16711 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
16712 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
16713 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
16714 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16715 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16716 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16717 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16718 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16720 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16725 # If the user did not use the arguments to specify the items to instantiate,
16726 # then the envvar interface is used. Set only those that are not.
16727 # We use the long form for the default assignment because of an extremely
16728 # bizarre bug on SunOS 4.1.3.
16729 if $ac_need_defaults; then
16730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16735 # Have a temporary directory for convenience. Make it in the build tree
16736 # simply because there is no reason against having it here, and in addition,
16737 # creating and moving files from /tmp can sometimes cause problems.
16738 # Hook for its removal unless debugging.
16739 # Note that there is a small window in which the directory will not be cleaned:
16740 # after its creation but before its name has been assigned to `$tmp'.
16744 trap 'exit_status=$?
16745 : "${ac_tmp:=$tmp}"
16746 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16748 trap 'as_fn_exit 1' 1 2 13 15
16750 # Create a (secure) tmp directory for tmp files.
16753 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16757 tmp
=.
/conf$$
-$RANDOM
16758 (umask 077 && mkdir
"$tmp")
16759 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16762 # Set up the scripts for CONFIG_FILES section.
16763 # No need to generate them if there are no CONFIG_FILES.
16764 # This happens for instance with `./config.status config.h'.
16765 if test -n "$CONFIG_FILES"; then
16767 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16768 ac_cs_awk_getline
=:
16769 ac_cs_awk_pipe_init
=
16770 ac_cs_awk_read_file
='
16771 while ((getline aline < (F[key])) > 0)
16774 ac_cs_awk_pipe_fini
=
16776 ac_cs_awk_getline
=false
16777 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16778 ac_cs_awk_read_file
='
16780 print "cat " F[key] " &&"
16781 '$ac_cs_awk_pipe_init
16782 # The final `:' finishes the AND list.
16783 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16785 ac_cr
=`echo X | tr X '\015'`
16786 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16787 # But we know of no other shell where ac_cr would be empty at this
16788 # point, so we can use a bashism as a fallback.
16789 if test "x$ac_cr" = x
; then
16790 eval ac_cr
=\$
\'\\r
\'
16792 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16793 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16796 ac_cs_awk_cr
=$ac_cr
16799 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16802 # Create commands to substitute file output variables.
16804 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16805 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16806 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16809 } >conf$
$files.sh
&&
16810 . .
/conf$
$files.sh ||
16811 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16812 rm -f conf$
$files.sh
16815 echo "cat >conf$$subs.awk <<_ACEOF" &&
16816 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16818 } >conf$$subs.sh ||
16819 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16820 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16822 for ac_last_try in false false false false false :; do
16823 . ./conf$$subs.sh ||
16824 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16826 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16827 if test $ac_delim_n = $ac_delim_num; then
16829 elif $ac_last_try; then
16830 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16832 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16835 rm -f conf$$subs.sh
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16842 s/^/S["/; s
/!.
*/"]=/
16852 s/\(.\{148\}\)..*/\1/
16854 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16859 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16866 s/\(.\{148\}\)..*/\1/
16868 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16872 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16877 ' <conf$$subs.awk | sed '
16882 ' >>$CONFIG_STATUS || ac_write_fail=1
16883 rm -f conf$$subs.awk
16884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16887 for (key in S) S_is_set[key] = 1
16889 \$ac_cs_awk_pipe_init
16893 nfields = split(line, field, "@
")
16895 len = length(field[1])
16896 for (i = 2; i < nfields; i++) {
16898 keylen = length(key)
16899 if (S_is_set[key]) {
16901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16902 len += length(value) + length(field[++i])
16907 if (nfields == 3 && !substed) {
16909 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16910 \$ac_cs_awk_read_file
16916 \$ac_cs_awk_pipe_fini
16919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16920 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16921 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16924 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16925 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16930 # trailing colons and then remove the whole line if VPATH becomes empty
16931 # (actually we leave an empty line to preserve line numbers).
16932 if test "x
$srcdir" = x.; then
16933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16952 fi # test -n "$CONFIG_FILES"
16954 # Set up the scripts for CONFIG_HEADERS section.
16955 # No need to generate them if there are no CONFIG_HEADERS.
16956 # This happens for instance with `./config.status Makefile'.
16957 if test -n "$CONFIG_HEADERS"; then
16958 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16962 # Transform confdefs.h into an awk script `defines.awk', embedded as
16963 # here-document in config.status, that substitutes the proper values into
16964 # config.h.in to produce config.h.
16966 # Create a delimiter string that does not exist in confdefs.h, to ease
16967 # handling of long lines.
16969 for ac_last_try in false false :; do
16970 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16971 if test -z "$ac_tt"; then
16973 elif $ac_last_try; then
16974 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16976 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16980 # For the awk script, D is an array of macro values keyed by name,
16981 # likewise P contains macro parameters if any. Preserve backslash
16982 # newline sequences.
16984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16986 s/.\{148\}/&'"$ac_delim"'/g
16989 s/^[ ]*#[ ]*define[ ][ ]*/ /
16996 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16998 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17003 D["\
1"]=" \
3\\\\\\n
"\\/p
17005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17010 s/.\{148\}/&'"$ac_delim"'/g
17015 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17018 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17020 ' <confdefs.h | sed '
17021 s/'"$ac_delim"'/"\\\
17022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 for (key in D) D_is_set[key] = 1
17028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17030 split(line, arg, " ")
17031 if (arg[1] == "#") {
17035 defundef
= substr
(arg
[1], 2)
17038 split(mac1
, mac2
, "(") #)
17040 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17041 if (D_is_set
[macro
]) {
17042 # Preserve the white space surrounding the "#".
17043 print prefix
"define", macro P
[macro
] D
[macro
]
17046 # Replace #undef with comments. This is necessary, for example,
17047 # in the case of _POSIX_SOURCE, which is predefined and required
17048 # on some systems where configure will not decide to define it.
17049 if (defundef
== "undef") {
17050 print
"/*", prefix defundef
, macro
, "*/"
17058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17059 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17060 fi # test -n "$CONFIG_HEADERS"
17063 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17068 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17070 case $ac_mode$ac_tag in
17072 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17073 :[FH
]-) ac_tag
=-:-;;
17074 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17091 -) ac_f
="$ac_tmp/stdin";;
17092 *) # Look for the file first in the build tree, then in the source tree
17093 # (if the path is not absolute). The absolute path cannot be DOS-style,
17094 # because $ac_f cannot contain `:'.
17098 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17100 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17102 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17103 as_fn_append ac_file_inputs
" '$ac_f'"
17106 # Let's still pretend it is `configure' which instantiates (i.e., don't
17107 # use $as_me), people would be surprised to read:
17108 # /* config.h. Generated by config.status. */
17109 configure_input
='Generated from '`
17110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17112 if test x
"$ac_file" != x-
; then
17113 configure_input
="$ac_file. $configure_input"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17115 $as_echo "$as_me: creating $ac_file" >&6;}
17117 # Neutralize special characters interpreted by sed in replacement strings.
17118 case $configure_input in #(
17119 *\
&* |
*\|
* |
*\\* )
17120 ac_sed_conf_input
=`$as_echo "$configure_input" |
17121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17122 *) ac_sed_conf_input
=$configure_input;;
17126 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17127 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17132 ac_dir
=`$as_dirname -- "$ac_file" ||
17133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17134 X"$ac_file" : 'X\(//\)[^/]' \| \
17135 X"$ac_file" : 'X\(//\)$' \| \
17136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17137 $as_echo X"$ac_file" |
17138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17142 /^X\(\/\/\)[^/].*/{
17155 as_dir
="$ac_dir"; as_fn_mkdir_p
17159 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17161 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17162 # A ".." for each directory in $ac_dir_suffix.
17163 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17164 case $ac_top_builddir_sub in
17165 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17166 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17169 ac_abs_top_builddir
=$ac_pwd
17170 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17171 # for backward compatibility:
17172 ac_top_builddir
=$ac_top_build_prefix
17175 .
) # We are building in place.
17177 ac_top_srcdir
=$ac_top_builddir_sub
17178 ac_abs_top_srcdir
=$ac_pwd ;;
17179 [\\/]* | ?
:[\\/]* ) # Absolute name.
17180 ac_srcdir
=$srcdir$ac_dir_suffix;
17181 ac_top_srcdir
=$srcdir
17182 ac_abs_top_srcdir
=$srcdir ;;
17183 *) # Relative name.
17184 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17185 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17186 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17188 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17198 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17199 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17201 ac_MKDIR_P
=$MKDIR_P
17203 [\\/$
]* | ?
:[\\/]* ) ;;
17204 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17209 # If the template does not know about datarootdir, expand it.
17210 # FIXME: This hack should be removed a few years after 2.60.
17211 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17223 *datarootdir
*) ac_datarootdir_seen
=yes;;
17224 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17229 ac_datarootdir_hack='
17230 s&@datadir@&$datadir&g
17231 s&@docdir@&$docdir&g
17232 s&@infodir@&$infodir&g
17233 s&@localedir@&$localedir&g
17234 s&@mandir@&$mandir&g
17235 s&\\\${datarootdir}&$datarootdir&g' ;;
17239 # Neutralize VPATH when `$srcdir' = `.'.
17240 # Shell code in configure.ac might set extrasub.
17241 # FIXME: do we really want to maintain this feature?
17242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17243 ac_sed_extra="$ac_vpsub
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17248 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17249 s|@configure_input@|
$ac_sed_conf_input|
;t t
17250 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17251 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17252 s
&@srcdir@
&$ac_srcdir&;t t
17253 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17254 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17255 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17256 s
&@builddir@
&$ac_builddir&;t t
17257 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17258 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17259 s
&@INSTALL@
&$ac_INSTALL&;t t
17260 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17261 $ac_datarootdir_hack
17263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17264 if $ac_cs_awk_getline; then
17265 $AWK -f "$ac_tmp/subs.
awk"
17267 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17269 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17274 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17276 which seems to be undefined. Please make sure it is defined" >&5
17277 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17278 which seems to be undefined. Please make sure it is defined" >&2;}
17280 rm -f "$ac_tmp/stdin"
17282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17291 if test x"$ac_file" != x-; then
17293 $as_echo "/* $configure_input */" \
17294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17295 } >"$ac_tmp/config.h" \
17296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17299 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17302 mv "$ac_tmp/config.h" "$ac_file" \
17303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17306 $as_echo "/* $configure_input */" \
17307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17308 || as_fn_error $? "could not create -" "$LINENO" 5
17310 # Compute "$ac_file"'s index
in $config_headers.
17313 for _am_header
in $config_headers :; do
17314 case $_am_header in
17315 $_am_arg |
$_am_arg:* )
17318 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17321 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17322 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323 X"$_am_arg" : 'X\(//\)[^/]' \| \
17324 X"$_am_arg" : 'X\(//\)$' \| \
17325 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17326 $as_echo X"$_am_arg" |
17327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17331 /^X\(\/\/\)[^/].*/{
17343 s/.*/./; q'`/stamp-h
$_am_stamp_count
17346 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17347 $as_echo "$as_me: executing $ac_file commands" >&6;}
17352 case $ac_file$ac_mode in
17353 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17354 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17355 # are listed without --file. Let's play safe and only enable the eval
17356 # if we detect the quoting.
17357 case $CONFIG_FILES in
17358 *\'*) eval set x
"$CONFIG_FILES" ;;
17359 *) set x
$CONFIG_FILES ;;
17364 # Strip MF so we end up with the name of the file.
17365 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17366 # Check whether this is an Automake generated Makefile or not.
17367 # We used to match only the files named `Makefile.in', but
17368 # some people rename them; so instead we look at the file content.
17369 # Grep'ing the first line is not enough: some people post-process
17370 # each Makefile.in and add a new line on top of each file to say so.
17371 # Grep'ing the whole file is not good either: AIX grep has a line
17372 # limit of 2048, but all sed's we know have understand at least 4000.
17373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17374 dirpart
=`$as_dirname -- "$mf" ||
17375 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17376 X"$mf" : 'X\(//\)[^/]' \| \
17377 X"$mf" : 'X\(//\)$' \| \
17378 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17384 /^X\(\/\/\)[^/].*/{
17400 # Extract the definition of DEPDIR, am__include, and am__quote
17401 # from the Makefile without running `make'.
17402 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17403 test -z "$DEPDIR" && continue
17404 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17405 test -z "am__include" && continue
17406 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17407 # When using ansi2knr, U may be empty or an underscore; expand it
17408 U
=`sed -n 's/^U = //p' < "$mf"`
17409 # Find all dependency output files, they are included files with
17410 # $(DEPDIR) in their names. We invoke sed twice because it is the
17411 # simplest approach to changing $(DEPDIR) to its actual value in the
17413 for file in `sed -n "
17414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17416 # Make sure the directory exists.
17417 test -f "$dirpart/$file" && continue
17418 fdir
=`$as_dirname -- "$file" ||
17419 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17420 X"$file" : 'X\(//\)[^/]' \| \
17421 X"$file" : 'X\(//\)$' \| \
17422 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17423 $as_echo X"$file" |
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17428 /^X\(\/\/\)[^/].*/{
17441 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17442 # echo "creating $dirpart/$file"
17443 echo '# dummy' > "$dirpart/$file"
17450 ### Make the necessary directories, if they don't exist.
17451 for dir
in etc lisp
; do
17452 test -d ${dir} || mkdir
${dir}
17455 echo creating src
/epaths.h
17456 ${MAKE-make} epaths-force
17458 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17459 echo creating src
/.gdbinit
17460 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17471 ac_clean_files
=$ac_clean_files_save
17473 test $ac_write_fail = 0 ||
17474 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17477 # configure is writing to config.log, and then calls config.status.
17478 # config.status does its own redirection, appending to config.log.
17479 # Unfortunately, on DOS this fails, as config.log is still kept open
17480 # by configure, so config.status won't be able to write to it; its
17481 # output is simply discarded. So we exec the FD to /dev/null,
17482 # effectively closing config.log, so it can be properly (re)opened and
17483 # appended to by config.status. When coming back to configure, we
17484 # need to make the FD available again.
17485 if test "$no_create" != yes; then
17487 ac_config_status_args
=
17488 test "$silent" = yes &&
17489 ac_config_status_args
="$ac_config_status_args --quiet"
17491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17494 # would make configure fail if this is the last instruction.
17495 $ac_cs_success || as_fn_exit
1
17497 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17499 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}